Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
move mongoid/dm gems into Gemfile and load dynamically based on MODEL…
Browse files Browse the repository at this point in the history
…_ADAPTER env variable
  • Loading branch information
ryanb committed Dec 29, 2010
1 parent f9a498d commit 2dc2a57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions cancan.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 '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.required_rubygems_version = ">= 1.3.4"
end

0 comments on commit 2dc2a57

Please sign in to comment.