forked from rspec/rspec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile-rails-dependencies
27 lines (26 loc) · 1.23 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
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 => "git://github.com/rails/rails.git"
gem "arel", :git => "git://github.com/rails/arel.git"
gem "journey", :git => "git://github.com/rails/journey.git"
gem "activerecord-deprecated_finders", :git => "git://github.com/rails/activerecord-deprecated_finders.git"
gem "rails-observers", :git => "git://github.com/rails/rails-observers"
gem 'sass-rails', :git => "git://github.com/rails/sass-rails.git"
gem 'coffee-rails', :git => "git://github.com/rails/coffee-rails.git"
gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'i18n', :git => 'git://github.com/svenfuchs/i18n.git', :branch => 'master'
when /stable$/
gem "rails", :git => "git://github.com/rails/rails.git", :branch => version
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"
else
gem "rails", "~> 4.0.4"
end
else
gem "rails", version
end
gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'
gem "test-unit" if RUBY_VERSION >= '2.2.0' && version =~ /3[.-]2[.-]/