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'
|
|
|
|
|
2016-07-14 11:17:37 +00:00
|
|
|
rails = ENV['RAILS'] || '5-0-stable'
|
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
|
2018-06-23 17:00:21 +00:00
|
|
|
if rails == 'v5.2.0'
|
|
|
|
gem 'mysql2', '~> 0.4.4'
|
|
|
|
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
|
2018-02-03 13:28:57 +00:00
|
|
|
if rails == '5-2-stable'
|
|
|
|
gem 'mysql2', '~> 0.4.4'
|
|
|
|
end
|
2012-01-19 14:06:10 +00:00
|
|
|
end
|
2014-08-01 06:42:45 +00:00
|
|
|
|
2015-01-07 23:17:33 +00:00
|
|
|
group :test do
|
2016-08-07 08:46:01 +00:00
|
|
|
# TestUnit was removed from Ruby 2.2 but still needed for testing Rails 3.x.
|
2015-01-07 23:54:24 +00:00
|
|
|
gem 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
|
2017-10-09 14:23:51 +00:00
|
|
|
gem 'simplecov', :require => false
|
2015-01-07 23:17:33 +00:00
|
|
|
end
|