move mongoid/dm gems into Gemfile and load dynamically based on MODEL_ADAPTER env variable

This commit is contained in:
Ryan Bates
2010-12-29 13:22:14 -08:00
parent f9a498d2fc
commit 2dc2a573f9
2 changed files with 8 additions and 4 deletions
+8
View File
@@ -1,2 +1,10 @@
source "http://rubygems.org"
gemspec
case ENV["MODEL_ADAPTER"]
when "mongoid"
gem "bson_ext", "~> 1.1"
gem "mongoid", "~> 2.0.0.beta.19"
when "data_mapper"
gem "dm-core", "~> 1.0.2"
end