[dancer-users] [Dancer-dev] dancer_major_version

Alexis Sukrieh sukria at sukria.net
Thu Dec 27 12:43:06 GMT 2012


2012/12/27 David Precious <davidp at preshweb.co.uk>

>
> I'm not sure; a lot of existing plugins use dancer_version, and it's
> meaning is fairly clear.
>
> I think the pragmatic approach is to let them continue to do so, with a
> couple of tweaks:
>
>  - dancer_version can strip /_\d+$/ so that dev releases don't cause
>    issues
>  - a special-case for D2 - e.g. return 2 if ($version >= 1.9) - if the
>    code is calling dancer_version, it most likely wants to know the
>    difference between D1 and D2, I can't see that it's likely to be
>    used in many other ways, you'd tend to use $Dancer::VERSION for that.
>
>
Good point, I like that approach. Then we should remove api_version. I
don't even know why it was introduced to be frank :)

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20121227/ccc9aabd/attachment.htm>


More information about the dancer-users mailing list