-
-
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
Merged
benoittgt
merged 8 commits into
rspec:master
from
benoittgt:handle-puma-gemspec-ruby-2-2
Jul 20, 2018
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8d2b95c
Change minimum Ruby version for Puma to 2.2
benoittgt 0d4547b
Specify rdoc version when Ruby version is under 2.2
benoittgt 1a47885
Use generated Gemfile to store rdoc specific requirement for Ruby 2.2
benoittgt d920c30
Permit usage of puma 3.11.4 between Ruby 1.9.3 and 2.2
benoittgt 00a254e
Specify rdoc version when Ruby version is under 2.2 on generated_app
benoittgt ae334b5
Clear conflicts and rewrite puma clause
benoittgt 65d85a3
Revert to initial changes
benoittgt c503989
Avoid bundler load error on CI
benoittgt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,14 @@ when /master/ | |
gem 'i18n', :git => 'git://github.com/svenfuchs/i18n.git', :branch => 'master' | ||
gem 'sprockets', :git => 'git://github.com/rails/sprockets.git', :branch => 'master' | ||
gem 'sprockets-rails', :git => 'git://github.com/rails/sprockets-rails.git', :branch => 'master' | ||
if RUBY_VERSION >= "1.9.3" | ||
if RUBY_VERSION >= "2.2" | ||
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" | ||
gem_list << 'puma' if version > '5-0-stable' | ||
end | ||
|
||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
gem "puma" | ||
end | ||
end | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.