Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow normal version updates within a release series #22657

Merged
merged 1 commit into from
Dec 18, 2015

Conversation

matthewd
Copy link
Member

We originally chose to apply very strict versioning on the rails entry in the Gemfile, because our future versioning policy was not strongly defined.

Now it is, and our policy is very much designed on the expectation that people will regularly update to the latest patch level in their release series... so we should encourage that.

Of course, Gemfile.lock will do its job and prevent unplanned updates, just as it does for every other gem in the bundle... but if you run bundle update, we want to get you the latest bug/security fixes without requiring a manual edit of the Gemfile entry.

Our current version could be a few different shapes, so it takes a bit of work to find the right specifier, but in principle, we match anything of the form x.y.*, where x.y matches our current release series.

We originally chose to apply very strict versioning on the `rails` entry
in the Gemfile, because our future versioning policy was not strongly
defined.

Now it is, and our policy is very much designed on the expectation that
people will regularly update to the latest patch level in their release
series... so we should encourage that.

Of course, Gemfile.lock will do its job and prevent unplanned updates,
just as it does for every other gem in the bundle... but if you run
`bundle update`, we want to get you the latest bug/security fixes
without requiring a manual edit of the Gemfile entry.

Our current version could be a few different shapes, so it takes a bit
of work to find the right specifier, but in principle, we match anything
of the form x.y.*, where x.y matches our current release series.
@matthewd matthewd added this to the 5.0.0 milestone Dec 18, 2015
@matthewd
Copy link
Member Author

@rafaelfranca we spoke about this a little while ago. Seem reasonable?

@@ -1,7 +1,7 @@
source 'https://rubygems.org'

<% if options[:skip_gemspec] -%>
<%= '# ' if options.dev? || options.edge? -%>gem 'rails', '~> <%= Rails::VERSION::STRING %>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On replacing ~> with >=, test cases fail at following places:

PluginGeneratorTest#test_skipping_gemspec
PluginGeneratorTest#test_skipping_gemspec_in_full_mode.

@rafaelfranca rafaelfranca merged commit 46d1cc9 into rails:master Dec 18, 2015
rafaelfranca added a commit that referenced this pull request Dec 18, 2015
Allow normal version updates within a release series
@rafaelfranca rafaelfranca modified the milestones: 5.0.0 [temp], 5.0.0 Dec 30, 2015
@matthewd matthewd deleted the loosen-version branch January 24, 2016 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants