1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
activerecord-hackery--ransack/Gemfile
2012-01-20 15:13:27 -05:00

40 lines
958 B
Ruby

source "http://rubygems.org"
gemspec
gem 'rake'
rails = ENV['RAILS'] || 'master'
arel = ENV['AREL'] || 'master'
arel_opts = case arel
when /\// # A path
{:path => arel}
when /^v/ # A tagged version
{:git => 'git://github.com/rails/arel.git', :tag => arel}
else
{:git => 'git://github.com/rails/arel.git', :branch => arel}
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
else
git 'git://github.com/rails/rails.git', :branch => rails do
gem 'activesupport'
gem 'activemodel'
gem 'activerecord'
gem 'actionpack'
end
end