2013-02-27 06:34:56 -05:00
|
|
|
source "https://rubygems.org"
|
2011-08-28 00:51:30 -04:00
|
|
|
|
2012-03-03 09:01:19 -05:00
|
|
|
gemspec
|
2012-11-02 22:28:45 -04:00
|
|
|
|
2012-12-26 08:33:40 -05:00
|
|
|
platforms :ruby do
|
|
|
|
gem "sqlite3"
|
|
|
|
end
|
2012-11-02 22:28:45 -04:00
|
|
|
|
2012-12-26 08:33:40 -05:00
|
|
|
platforms :jruby do
|
|
|
|
gem "minitest", ">= 3.0"
|
2013-01-23 20:38:07 -05:00
|
|
|
gem "activerecord-jdbcsqlite3-adapter"
|
2012-12-26 08:33:40 -05:00
|
|
|
end
|
2013-01-12 06:34:34 -05:00
|
|
|
|
2013-01-25 11:41:32 -05:00
|
|
|
version = ENV["RAILS_VERSION"] || "3.2"
|
2013-01-21 07:27:11 -05:00
|
|
|
|
2013-01-25 11:41:32 -05:00
|
|
|
rails = case version
|
|
|
|
when "master"
|
|
|
|
{github: "rails/rails"}
|
|
|
|
else
|
|
|
|
"~> #{version}.0"
|
|
|
|
end
|
2013-01-21 07:27:11 -05:00
|
|
|
|
2013-01-25 11:41:32 -05:00
|
|
|
mongoid = case version
|
|
|
|
when "master"
|
2013-02-15 04:55:12 -05:00
|
|
|
{github: "mongoid/mongoid"}
|
|
|
|
when "3.2"
|
|
|
|
"~> 3.1.0"
|
|
|
|
when "3.1"
|
2013-01-25 11:41:32 -05:00
|
|
|
"~> 3.0.0"
|
|
|
|
end
|
2013-01-21 07:27:11 -05:00
|
|
|
|
2013-01-25 11:41:32 -05:00
|
|
|
devise = case version
|
|
|
|
when "3.1", "3.2"
|
|
|
|
"~> 2.2"
|
2013-01-12 06:34:34 -05:00
|
|
|
end
|
2013-01-25 11:41:32 -05:00
|
|
|
|
|
|
|
gem "rails", rails
|
|
|
|
gem "mongoid", mongoid if mongoid
|
|
|
|
gem "devise", devise if devise
|