From: naruse@... Date: 2019-01-10T07:19:37+00:00 Subject: [ruby-core:90973] [Ruby trunk Feature#15456] Adopt some kind of consistent versioning mechanism Issue #15456 has been updated by naruse (Yui NARUSE). ioquatix (Samuel Williams) wrote: > > But dropping old rubies will happen every year and it can affect gems to remove legacy code. If it is considered as breaking changes as you said, it will cause major bump and it's false positive for normal users who runs application with current rubies. > > I'm sorry, but I don't understand how this is a problem. Can you explain it in more detail with an example? Mr.A create a1.gem and its version is 1.0 which support Ruby 2.0, 2.1, and 2.2. Mr.B write an application which uses a1.gem and write in `gem "a1", "~> 1.0"` Gemfile. Next year, Mr.A drops Ruby 2.0 support and released a1.gem as 2.0. Mr.B update Gemfile as `gem "a1", "~> 2.0"`. Next year, Mr.A drops Ruby 2.1 support and released a1.gem as 3.0. Mr.B update Gemfile as `gem "a1", "~> 3.0"`. Next year, Mr.A drops Ruby 2.2 support and released a1.gem as 4.0. Mr.B update Gemfile as `gem "a1", "~> 4.0"`. Next year, Mr.A drops Ruby 2.3 support and released a1.gem as 5.0. Mr.B update Gemfile as `gem "a1", "~> 5.0"`. This is yearly normal changes is syntactically equal to big bang change. ---------------------------------------- Feature #15456: Adopt some kind of consistent versioning mechanism https://bugs.ruby-lang.org/issues/15456#change-76184 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- After the discussion https://github.com/ruby/bigdecimal/issues/114 I feel like we would benefit from some consistent versioning mechanism across all of Ruby. So far, I feel the majority of Ruby uses some form of semantic versioning. For the sanity of all Ruby users, I think it would be a good policy to adopt this across core Ruby and standard gems. There are some previous discussions around this: - https://bugs.ruby-lang.org/issues/9215 - https://bugs.ruby-lang.org/projects/ruby/wiki/GeneralMaintenancePolicy - https://bugs.ruby-lang.org/issues/8835 So, the questions are as follows: - Can we adopt Semantic Versioning (or as much of it as possible) across Ruby? - Would such a change help users of Ruby? - Is there existing documentation about how version number works? - How does it deviate from Semantic Versioning? - Is this deviation important and worth the additional complexity for our users? As an aside: - How do other implementations advertise compatibility with Ruby? - JRuby and RBX have totally different version numbers that are difficult to understand w.r.t. compatibility with mainline CRuby. My main concern is how difficult this is for everyone to keep track of and also the implied assumptions (e.g. breaking change if and only if major versions bump). If different parts of Ruby use different versioning scheme, it is hard for our users to define dependencies which don't cause broken software. -- https://bugs.ruby-lang.org/ Unsubscribe: