2010-10-05 10:09:37 -07:00
|
|
|
source "http://rubygems.org"
|
2010-12-29 13:22:14 -08:00
|
|
|
|
|
|
|
case ENV["MODEL_ADAPTER"]
|
2010-12-29 15:01:49 -08:00
|
|
|
when nil, "active_record"
|
2010-12-30 00:43:22 -08:00
|
|
|
gem "sqlite3-ruby", :require => "sqlite3"
|
2010-12-29 15:01:49 -08:00
|
|
|
gem "activerecord", :require => "active_record"
|
2010-12-30 00:43:22 -08:00
|
|
|
gem "with_model"
|
2010-12-29 15:01:49 -08:00
|
|
|
when "data_mapper"
|
|
|
|
gem "dm-core", "~> 1.0.2"
|
2010-12-29 13:22:14 -08:00
|
|
|
when "mongoid"
|
|
|
|
gem "bson_ext", "~> 1.1"
|
|
|
|
gem "mongoid", "~> 2.0.0.beta.19"
|
2010-12-30 14:42:19 -08:00
|
|
|
else
|
|
|
|
raise "Unknown model adapter: #{ENV["MODEL_ADAPTER"]}"
|
2010-12-29 13:22:14 -08:00
|
|
|
end
|
2010-12-29 15:01:49 -08:00
|
|
|
|
|
|
|
gemspec
|