Skip to content

Commit

Permalink
Specify ruby version for mongoid in gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
bowsersenior committed Sep 9, 2012
1 parent 4c72472 commit 4d2375e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion workflow_on_mongoid.gemspec
Expand Up @@ -15,7 +15,12 @@ Gem::Specification.new do |s|
s.description = "Lets you use the Workflow gem with your Mongoid documents to add state machine functionality."

s.add_dependency "workflow", '~>0.8'
s.add_dependency "mongoid", '>=2.0.0'

if RUBY_VERSION < '1.9.3' # Mongoid 3.x only works on ruby 1.9.3 and above
s.add_dependency "mongoid", '~>2.0.0'
else
s.add_dependency "mongoid", '~>3.0.0'
end

s.add_development_dependency "rake"
s.add_development_dependency "rspec", '>=2.6.0'
Expand Down

0 comments on commit 4d2375e

Please sign in to comment.