semver is a version parsing library for Ruby.
version = Semver.new("1.2.3")
version.to_s # => "1.2.3"
version.major # => 1
version.minor # => 2
version.patch # => 3
version.included_in?("~> 1.2.0") # => trueComing soon. For now, just clone the repository and drop it in your load path.
semver requires ruby 2.0.0 or higher.
See CONTRIBUTING file.
ruby test/test_semver.rb
semver is released under the MIT License. See the bundled LICENSE file for details.