Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ change the version variable of a plugin to a string
|
change the version variable of a plugin to a string
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Bast
(78 posts) Bio
|
| Date
| Sun 06 Jun 2010 08:55 PM (UTC) |
| Message
| Is there any particular reason that the version of a plugin is limited to a number? I would like it to be a string so that I can use svn keywords and automatically change the version whenever I commit a change.
Thanks,
Bast |
Bast
Scripts: http://github.com/endavis | | Top |
|
| Posted by
| Twisol
USA (2,257 posts) Bio
|
| Date
| Reply #1 on Sun 06 Jun 2010 09:48 PM (UTC) |
| Message
| | I'd appreciate this too. I want to use semantic versioning for my plugins (semver.org, format major.minor.bugfix), i.e. 5.1.0, but I can't use more than one dot in the version string, so I have to do something like "5.100". |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Mon 07 Jun 2010 03:27 AM (UTC) |
| Message
| It was intended to let you do a numeric compare to see if plugin A needed plugin B of a certain version or more.
Changing to a string makes numeric compares not work, and string compares work differently.
You can always imbed the svn version number into the description, for instance. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,176 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top