forked from rspec/rspec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile-rails-dependencies
49 lines (46 loc) · 2.17 KB
/
Gemfile-rails-dependencies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version_file = File.expand_path("../.rails-version", __FILE__)
case version = ENV['RAILS_VERSION'] || (File.exist?(version_file) && File.read(version_file).chomp) || ''
when /master/
gem "rails", :git => "https://github.com/rails/rails.git"
gem "arel", :git => "https://github.com/rails/arel.git"
gem "journey", :git => "https://github.com/rails/journey.git"
gem "activerecord-deprecated_finders", :git => "https://github.com/rails/activerecord-deprecated_finders.git"
gem "rails-observers", :git => "https://github.com/rails/rails-observers"
gem "web-console", :git => "https://github.com/rails/web-console", :group => :development
gem 'sass-rails', :git => "https://github.com/rails/sass-rails.git"
gem 'coffee-rails', :git => "https://github.com/rails/coffee-rails.git"
gem 'rack', :git => 'https://github.com/rack/rack.git'
gem 'i18n', :git => 'https://github.com/svenfuchs/i18n.git', :branch => 'master'
gem 'sprockets', :git => 'https://github.com/rails/sprockets.git', :branch => 'master'
gem 'sprockets-rails', :git => 'https://github.com/rails/sprockets-rails.git', :branch => 'master'
if RUBY_VERSION >= "2.2"
gem 'puma', :git => 'https://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 >= "2.2"
gem_list << 'puma' if version > '5-0-stable'
end
gem_list.each do |rails_gem|
gem rails_gem, :git => "https://github.com/rails/rails.git", :branch => version
end
when nil, false, ""
if RUBY_VERSION < '1.9.3'
# Rails 4+ requires 1.9.3+, so on earlier versions default to the last 3.x release.
gem "rails", "~> 3.2.17"
elsif RUBY_VERSION < '2.2.0'
# Rails 5+ requires 2.2+, so on earlier versions default to the last 4.x release.
gem "rails", "~> 4.2.0"
else
gem "rails", "~> 5.0.0"
end
else
gem "rails", version
if version >= '5-1-stable' && RUBY_VERSION >= "2.2"
gem "puma"
end
end
gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'
gem "test-unit" if RUBY_VERSION >= '2.2.0' && version =~ /3[.-]2[.-]/