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

View File

@ -1,2 +1,10 @@
source "http://rubygems.org" source "http://rubygems.org"
gemspec 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

View File

@ -15,10 +15,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rr', '~> 0.10.11' # 1.0.0 has respond_to? issues: http://github.com/btakita/rr/issues/issue/43 s.add_development_dependency 'rr', '~> 0.10.11' # 1.0.0 has respond_to? issues: http://github.com/btakita/rr/issues/issue/43
s.add_development_dependency 'supermodel', '~> 0.1.4' s.add_development_dependency 'supermodel', '~> 0.1.4'
s.add_development_dependency 'mongoid', '~> 2.0.0.beta.19'
s.add_development_dependency 'bson_ext', '~> 1.1'
s.add_development_dependency 'dm-core', '~> 1.0.2'
s.rubyforge_project = s.name s.rubyforge_project = s.name
s.required_rubygems_version = ">= 1.3.4" s.required_rubygems_version = ">= 1.3.4"
end end