Permalink
Browse files

Accept operater ruby version and engine_version

ruby '>= 1.9.3'
accepts 1.9.3, 2.0.0
  • Loading branch information...
1 parent e46a888 commit 857cc98c4f10ad4f9f0aea11f7014f902aa99a0d @sanemat committed Dec 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/ruby_version.rb
@@ -44,9 +44,9 @@ def ==(other)
def diff(other)
if engine != other.engine && @input_engine
[ :engine, engine, other.engine ]
- elsif version != other.version
+ elsif !Gem::Requirement.create(version).satisfied_by?(Gem::Version.create(other.version))
[ :version, version, other.version ]
- elsif engine_version != other.engine_version && @input_engine
+ elsif !Gem::Requirement.create(engine_version).satisfied_by?(Gem::Version.create(other.engine_version)) && @input_engine
[ :engine_version, engine_version, other.engine_version ]
else
nil

0 comments on commit 857cc98

Please sign in to comment.