-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Change minimum Ruby version for Puma to 2.2 + specify rdoc version under 2.2 #2013
Change minimum Ruby version for Puma to 2.2 + specify rdoc version under 2.2 #2013
Conversation
The issue is now on
Because of ruby/rdoc@51b03c3 |
It doesn't seem this is the way to fix rdoc issue. https://travis-ci.org/rspec/rspec-rails/builds/404100674 Do I miss something? |
c809ae3
to
a1d9f81
Compare
It seems to be better now. Even if it's not very stable (especially on rails 3). Feel free to merge it if it's ok RSpec core team members. |
Gemfile
Outdated
# Version 6.0.4 of rdoc requires Ruby 2.2 | ||
if RUBY_VERSION < '2.2' | ||
gem 'rdoc', '< 6.0.4' | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If rdoc is failing it's likely down in the app installs, not in our outer Gemfile, you can see in the example app generator gsub rules for generated Gemfiles which help to mitigate this.
gem 'puma', :git => 'git://github.com/puma/puma', :branch => 'master' | ||
end | ||
when /stable$/ | ||
gem_list = %w[rails railties actionmailer actionpack activerecord activesupport] | ||
gem_list << 'activejob' if version > '4-1-stable' | ||
gem_list << 'actionview' if version > '4-0-stable' | ||
if RUBY_VERSION >= "1.9.3" | ||
if RUBY_VERSION >= "2.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we'd normally do a gate here, install an older version of puma on platforms that support it, and install the latest on Ruby 2.2, this is necessary to support older rubies.
@@ -40,7 +40,7 @@ when nil, false, "" | |||
else | |||
gem "rails", version | |||
|
|||
if version >= '5-1-stable' && RUBY_VERSION >= "1.9.3" | |||
if version >= '5-1-stable' && RUBY_VERSION >= "2.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
This CI is a nightmare. I tried only on failing build on my machine and it's working. I hope I understand properly your comments @JonRowe. I will look at it tonight (UTC) again. |
@@ -47,6 +47,11 @@ | |||
| gem 'mime-types', '< 3' | |||
|end | |||
| | |||
|# Version 6.0.4 of rdoc requires Ruby 2.2 | |||
|if RUBY_VERSION < '2.2' | |||
| gem 'rdoc', '< 6.0.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to do a gsub, to specify the version only if rails adds it, and ensures theres only one, see line 24
Gemfile-rails-dependencies
Outdated
gem 'puma', :git => 'git://github.com/puma/puma', :branch => 'master' | ||
end | ||
when /stable$/ | ||
gem_list = %w[rails railties actionmailer actionpack activerecord activesupport] | ||
gem_list << 'activejob' if version > '4-1-stable' | ||
gem_list << 'actionview' if version > '4-0-stable' | ||
if RUBY_VERSION >= "1.9.3" | ||
if RUBY_VERSION >= "1.9.3" && RUBY_VERSION < "2.2" | ||
gem "puma", "~> 3.11.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of these (this line, and line 26) is wrong, but I'm not sure which, can puma ever be found in the rails repo?
Puma now require Ruby 2.2 minmum https://github.com/puma/puma/pull/1506/files
dc02578
to
65d85a3
Compare
I read this 087cb16 and this aa93e58 and it helps me to understand what could I do. For me we don't need puma before Ruby 2.2. Because it seems we need puma for system test added into Rails 5.1. The minimum requirement for Rails 5.1 is Ruby 2.2 https://github.com/rails/rails/blob/5-1-stable/rails.gemspec#L10 So maybe the initial commit is not a bad idea 33e41f2 For rdoc you did the change few week ago. 6a3e2bc So I rebase from master and keep only my initial commit. We will see what CI say. |
Actually even Rails 5 requires >= Ruby 2.2 so this should be safe |
If this goes green merge it @benoittgt, sorry for the wild goose chase! |
The error is now somewhere else
I'm gonna take a look |
Ok. This seems linked rubygems/bundler#6629 |
See: rubygems/bundler#6629 Should be changed when fixed on next bundler release
I will monitor the status of this issue on bundler and will remove the specific version of bundler when it will be fixed. |
On bundle 1.16.3 we start seeing fail builds: - rspec#2013 (comment) This is related to: - rspec#2013 (comment) As mentionned this has been fixed in 1.16.4: - rubygems/bundler#6629 (comment)
On bundle 1.16.3 we start seeing fail builds: - rspec#2013 (comment) This is related to: - rspec#2013 (comment) As mentionned this has been fixed in 1.16.4: - rubygems/bundler#6629 (comment)
On bundle 1.16.3 we start seeing fail builds: - rspec#2013 (comment) This is related to: - rspec#2013 (comment) As mentionned this has been fixed in 1.16.4: - rubygems/bundler#6629 (comment)
Fix #2012
Puma now requires Ruby 2.2 minimum https://github.com/puma/puma/pull/1506/files