Skip to content

Commit

Permalink
Use a regex that matches major version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jun 21, 2018
1 parent c69ae4d commit 0efe49d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Gemfile
Expand Up @@ -5,18 +5,18 @@ gemspec
case version = ENV['MONGOID_VERSION'] || '~> 7.0.0'
when 'HEAD'
gem 'mongoid', github: 'mongodb/mongoid'
when /7/
when /\b7/
gem 'mongoid', '~> 7.0.0'
when /6/
when /\b6/
gem 'mongoid', '~> 6.0.0'
when /5/
when /\b5/
gem 'mongoid', '~> 5.0'
gem 'mongoid-observers', '~> 0.2.0'
when /4/
when /\b4/
gem 'mongoid', '~> 4.0'
gem 'mongoid-observers', '~> 0.2.0'
when /3/
gem 'mongoid', '~> 3.1'
when /\b3/
gem 'mongoid', '~> 3.1.7'
else
gem 'mongoid', version
end
Expand Down

0 comments on commit 0efe49d

Please sign in to comment.