2011-03-31 00:31:39 +00:00
|
|
|
source "http://rubygems.org"
|
|
|
|
gemspec
|
|
|
|
|
2011-07-17 23:04:00 +00:00
|
|
|
gem 'rake'
|
|
|
|
|
2012-01-19 14:06:10 +00:00
|
|
|
rails = ENV['RAILS'] || 'master'
|
|
|
|
arel = ENV['AREL'] || 'master'
|
2011-07-17 23:04:00 +00:00
|
|
|
|
|
|
|
arel_opts = case arel
|
|
|
|
when /\// # A path
|
|
|
|
{:path => arel}
|
|
|
|
when /^v/ # A tagged version
|
|
|
|
{:git => 'git://github.com/rails/arel.git', :tag => arel}
|
2011-11-01 18:20:31 +00:00
|
|
|
else
|
2012-01-20 20:13:27 +00:00
|
|
|
{:git => 'git://github.com/rails/arel.git', :branch => arel}
|
2011-07-17 23:04:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
gem 'arel', arel_opts
|
|
|
|
|
|
|
|
case rails
|
|
|
|
when /\// # A path
|
|
|
|
gem 'activesupport', :path => "#{rails}/activesupport"
|
|
|
|
gem 'activemodel', :path => "#{rails}/activemodel"
|
|
|
|
gem 'activerecord', :path => "#{rails}/activerecord"
|
|
|
|
gem 'actionpack', :path => "#{rails}/activerecord"
|
|
|
|
when /^v/ # A tagged version
|
|
|
|
git 'git://github.com/rails/rails.git', :tag => rails do
|
|
|
|
gem 'activesupport'
|
|
|
|
gem 'activemodel'
|
|
|
|
gem 'activerecord'
|
|
|
|
gem 'actionpack'
|
|
|
|
end
|
2011-05-30 15:14:30 +00:00
|
|
|
else
|
2011-07-17 23:04:00 +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'
|
2011-05-30 15:14:30 +00:00
|
|
|
gem 'activerecord'
|
|
|
|
gem 'actionpack'
|
|
|
|
end
|
2012-01-19 14:06:10 +00:00
|
|
|
end
|