Skip to content

[RFC] leverage semver2 gem to manage versions #113

Description

@majormoses

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions