Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Accept operater ruby version and engine_version

ruby '>= 1.9.3'
accepts 1.9.3, 2.0.0
  • Loading branch information...
commit 857cc98c4f10ad4f9f0aea11f7014f902aa99a0d 1 parent e46a888
@sanemat authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/ruby_version.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.