Gemfile in draper-1.2.1 vs Gemfile in draper-1.3.0

- old
+ new

@@ -6,34 +6,11 @@ gem "sqlite3" end platforms :jruby do gem "minitest", ">= 3.0" - gem "activerecord-jdbcsqlite3-adapter" + gem "activerecord-jdbcsqlite3-adapter", ">= 1.3.0.beta2" end -version = ENV["RAILS_VERSION"] || "3.2" +version = ENV["RAILS_VERSION"] || "4.0" -rails = case version -when "master" - {github: "rails/rails"} -else - "~> #{version}.0" -end - -mongoid = case version -when "master" - {github: "mongoid/mongoid"} -when "3.2" - "~> 3.1.0" -when "3.1" - "~> 3.0.0" -end - -devise = case version -when "3.1", "3.2" - "~> 2.2" -end - -gem "rails", rails -gem "mongoid", mongoid if mongoid -gem "devise", devise if devise +eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__)