2013-12-07 00:51:55 +00:00
|
|
|
source 'https://rubygems.org'
|
2011-03-31 00:31:39 +00:00
|
|
|
gemspec
|
|
|
|
|
2011-07-17 23:04:00 +00:00
|
|
|
gem 'rake'
|
|
|
|
|
2015-01-13 19:03:21 +00:00
|
|
|
rails = ENV['RAILS'] || '4-2-stable'
|
2011-07-17 23:04:00 +00:00
|
|
|
|
2014-12-10 19:05:37 +00:00
|
|
|
if rails == 'master'
|
2014-12-10 00:13:22 +00:00
|
|
|
gem 'arel', github: 'rails/arel'
|
2014-10-12 21:05:53 +00:00
|
|
|
end
|
|
|
|
|
2014-08-21 22:01:13 +00:00
|
|
|
gem 'polyamorous', '~> 1.1'
|
2011-07-17 23:04:00 +00:00
|
|
|
|
2014-08-01 05:15:58 +00:00
|
|
|
gem 'pry'
|
|
|
|
|
2014-10-06 12:07:37 +00:00
|
|
|
# Provide timezone information on Windows
|
|
|
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
|
|
|
|
|
2011-07-17 23:04:00 +00:00
|
|
|
case rails
|
|
|
|
when /\// # A path
|
2013-07-04 14:21:06 +00:00
|
|
|
gem 'activesupport', path: "#{rails}/activesupport"
|
2014-08-01 06:42:45 +00:00
|
|
|
gem 'activerecord', path: "#{rails}/activerecord", require: false
|
2014-06-09 00:59:16 +00:00
|
|
|
gem 'actionpack', path: "#{rails}/actionpack"
|
2011-07-17 23:04:00 +00:00
|
|
|
when /^v/ # A tagged version
|
2014-05-01 13:55:39 +00:00
|
|
|
git 'git://github.com/rails/rails.git', :tag => rails do
|
2011-07-17 23:04:00 +00:00
|
|
|
gem 'activesupport'
|
|
|
|
gem 'activemodel'
|
2014-08-01 06:42:45 +00:00
|
|
|
gem 'activerecord', require: false
|
2011-07-17 23:04:00 +00:00
|
|
|
gem 'actionpack'
|
|
|
|
end
|
2011-05-30 15:14:30 +00:00
|
|
|
else
|
2014-05-01 13:55:39 +00:00
|
|
|
git 'git://github.com/rails/rails.git', :branch => rails do
|
2011-05-30 15:14:30 +00:00
|
|
|
gem 'activesupport'
|
2011-07-17 23:04:00 +00:00
|
|
|
gem 'activemodel'
|
2014-08-01 06:42:45 +00:00
|
|
|
gem 'activerecord', require: false
|
2011-05-30 15:14:30 +00:00
|
|
|
gem 'actionpack'
|
|
|
|
end
|
2013-12-04 15:09:33 +00:00
|
|
|
if rails == '3-0-stable'
|
|
|
|
gem 'mysql2', '< 0.3'
|
|
|
|
end
|
2012-01-19 14:06:10 +00:00
|
|
|
end
|
2014-08-01 06:42:45 +00:00
|
|
|
|
2014-08-04 05:48:13 +00:00
|
|
|
if ENV['DB'] =~ /mongodb/
|
2014-08-04 05:43:36 +00:00
|
|
|
gem 'mongoid', '~> 4.0.0', require: false
|
|
|
|
end
|
2015-01-07 23:17:33 +00:00
|
|
|
|
|
|
|
# Removed from Ruby 2.2 but needed for testing Rails 3.x.
|
|
|
|
group :test do
|
2015-01-07 23:54:24 +00:00
|
|
|
gem 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
|
2015-01-07 23:17:33 +00:00
|
|
|
end
|