<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. </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. </div>
<p style="color: #A0A0A8;">Le vendredi 28 décembre 2012 à 16:08, Celogeek a écrit :</p><blockquote type="cite"><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 => sub {<br></div><div> shift if dancer_version >= 1.99<br></div><div> ...<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>