Rather than manually managing the version in files I think we should use semver2 gem there are several benefits to this:
- programmatic bumping of versions
- easier to potentially update changelog (insert diff links and such)
I have used it on several other projects and it has worked fairly nicely. I don't think it would be too much effort to start leveraging the biggest pain is automating the change across ~200 repos.
But I think it would look something like this:
- in gemspec
require 'semver'
- in gemspec
s.add_development_dependency 'semver2', '~> 3.4'
- in gemspec
s.version = SemVer.find.format '%M.%m.%p' (might want to include special/meta/pre?)
- for migration we would want to a
semver init, read in the current version from the class, and write it back out to the .semver file. This can be easily done programmatically.
Rather than manually managing the version in files I think we should use semver2 gem there are several benefits to this:
I have used it on several other projects and it has worked fairly nicely. I don't think it would be too much effort to start leveraging the biggest pain is automating the change across ~200 repos.
But I think it would look something like this:
require 'semver's.add_development_dependency 'semver2', '~> 3.4's.version = SemVer.find.format '%M.%m.%p'(might want to include special/meta/pre?)semver init, read in the current version from the class, and write it back out to the.semverfile. This can be easily done programmatically.