Skip to content

Commit 534ff08

Browse files
JonRowesebjacobs
authored andcommitted
force rails gems to be the same version as rails for maintenance branches (rspec#1713)
1 parent b588199 commit 534ff08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gemfile-rails-dependencies

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ when /master/
1414
gem 'sprockets', :git => 'git://github.com/rails/sprockets.git', :branch => 'master'
1515
gem 'sprockets-rails', :git => 'git://github.com/rails/sprockets-rails.git', :branch => 'master'
1616
when /stable$/
17-
gem "rails", :git => "git://github.com/rails/rails.git", :branch => version
17+
gem_list = %w[rails railties actionmailer actionpack activerecord activesupport]
18+
gem_list << 'activejob' if version > '4-1-stable'
19+
gem_list << 'actionview' if version > '4-0-stable'
20+
gem_list.each do |rails_gem|
21+
gem rails_gem, :git => "git://github.com/rails/rails.git", :branch => version
22+
end
1823
when nil, false, ""
1924
if RUBY_VERSION < '1.9.3'
2025
# Rails 4+ requires 1.9.3+, so on earlier versions default to the last 3.x release.

0 commit comments

Comments
 (0)