<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Oh thanks. I check that.<br></div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Damien Krotkine" &lt;dkrotkine@gmail.com&gt;<br><b>À: </b>"Perl Dancer users mailing list" &lt;dancer-users@dancer.pm&gt;<br><b>Cc: </b>"Dancer Mailing List" &lt;dancer-users@perldancer.org&gt;<br><b>Envoyé: </b>Vendredi 28 Décembre 2012 18:10:31<br><b>Objet: </b>[dancer-users] Re : &nbsp;Dancer-&gt;VERSION comparison issue<br><div><br></div>
    <div id="reply-content">
        Hi,
    </div><div id="reply-content"><br></div><div id="reply-content">We are going to change dancer_version to return always a numerical value. Should be done very quickly.&nbsp;</div><div id="reply-content"><br></div><div id="reply-content">But your problem can be fixed easily by using plugin_args ( I think, can't check right now). It exists in dancer 1 and 2, and handles the dsl as first arg. In dancer 1 it returns undef instead of the dsl. See Dancer::Plugin::Altered on guthub for an example. It's also a good example of a plugin with tests that works on both dancer versions.&nbsp;</div>
     
     
    <p style="color: #A0A0A8;">Le vendredi 28 décembre 2012 à 16:08, Celogeek a écrit :</p><blockquote><div>
        <div id="quoted-message-content"><div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi, I'm still working on upgrading Dancer::Plugin::Redis.<br></div><div><br></div><div>And the think I have seen and missing in all module I have look and say compatible with dancer2 is that the 'register' pass 'DSL' as a first args !<br></div><div><br></div><div>so I need to be backward compatible to do that :<br></div><div><br></div><div>register redis =&gt; sub {<br></div><div>&nbsp; shift if dancer_version &gt;= 1.99<br></div><div>&nbsp; ...<br></div><div>}<br></div><div><br></div><div>But it failed because 1.9999_02 is not numeric !<br></div><div><br></div><div>so I use the "ge" but it is not very great.<br></div><div><br></div><div><br></div></div><div>_______________________________________________</div><div>dancer-users mailing list</div><div>dancer-users@dancer.pm</div><div>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</div></div></div>
         
         
         
         
    </div></blockquote><div>
        <br>
    </div>
<br>_______________________________________________<br>dancer-users mailing list<br>dancer-users@dancer.pm<br>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users<br></div><div><br></div></div></body></html>