Gemfile in ransack-0.5.3 vs Gemfile in ransack-0.5.4

- old
+ new

@@ -1,15 +1,40 @@ source "http://rubygems.org" gemspec -if ENV['RAILS_VERSION'] == 'release' - gem 'activesupport' - gem 'activerecord' - gem 'actionpack' +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 - gem 'arel', :git => 'git://github.com/rails/arel.git' - git 'git://github.com/rails/rails.git' do + {: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 \ No newline at end of file