3

Is there a way to mark or version a ruby package, specifically a rubygem, as a developer or beta release?

In the Perl world, there is a widely respected convention of the underscore-separated minuscule number indicating a developer release. That is, 1.23_01 is a dev release following ordinary release 1.23, and the main Perl packaging software and community distribution site know this. Is there a similar practice for ruby?

2 Answers 2

5

Rubygems supports the notion of prerelease gems. To mark a gem version as a prerelease you just have to include at least one letter in the version number (for example 1.0.a, 1.0.beta1, 1.0.dev1).

Rubygems version numbers must match this regular expression: [0-9]+(\.[0-9a-zA-Z]+)*, thus hyphens or underscores are not allowed.

1
  • @pilcrow Yes, you can find it in rubygems/version.rb, it's the constant VERSION_PATTERN (rubygems 1.8.23).
    – toro2k
    Commented Jun 5, 2013 at 14:41
0

Depends on the project, but I've seen Semantic Versioning used quite often.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.