Gemfile in by_star-2.1.0.beta2 vs Gemfile in by_star-2.2.0.rc1

- old
+ new

@@ -1,4 +1,25 @@ -source "http://rubygems.org" - -# Specify your gem's dependencies in by_star.gemspec -gemspec +source 'http://rubygems.org' + +# Specify your gem's dependencies in by_star.gemspec +gemspec + +active_record_version = ENV['ACTIVE_RECORD_VERSION'] || 'default' + +active_record_opts = + case active_record_version + when 'master' then {github: 'rails/rails'} + when 'default' then '~> 3.0' + else "~> #{active_record_version}" + end + +mongoid_version = ENV['MONGOID_VERSION'] || 'default' + +mongoid_opts = + case mongoid_version + when 'master' then {github: 'mongoid/mongoid'} + when 'default' then '~> 3.0' + else "~> #{mongoid_version}" + end + +gem 'activerecord', active_record_opts +gem 'mongoid', mongoid_opts