diff options
author | David Morhovich <dmorhovich@pivotal.io> | 2015-11-18 11:43:27 -0500 |
---|---|---|
committer | David Morhovich <dmorhovich@pivotal.io> | 2015-11-18 16:46:26 -0500 |
commit | aa437a2eaa24098c7f449c74271c8bd819de198d (patch) | |
tree | 1c8389364c35501cd0241be7b57c2ef02e192d1d | |
parent | 0a21902b28ee57645f1fb9e2354d477fe0dec547 (diff) | |
download | bundler-aa437a2eaa24098c7f449c74271c8bd819de198d.tar.gz |
Changes for https://github.com/bundler/bundler/pull/4064#discussion-diff-45137800
https://www.pivotaltracker.com/story/show/106008092
-rw-r--r-- | lib/bundler/resolver.rb | 2 | ||||
-rw-r--r-- | lib/bundler/ruby_version.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index a1be22c524..9145480332 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -131,7 +131,7 @@ module Bundler def for?(platform, required_ruby_version) if spec = @specs[platform] if required_ruby_version && spec_required_ruby_version = spec.required_ruby_version - spec_required_ruby_version.satisfied_by?(required_ruby_version.to_gem_version) + spec_required_ruby_version.satisfied_by?(required_ruby_version.gem_version) else true end diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb index 61eabb6468..2a918b6791 100644 --- a/lib/bundler/ruby_version.rb +++ b/lib/bundler/ruby_version.rb @@ -46,7 +46,7 @@ module Bundler ].join("-") end - def to_gem_version + def gem_version Gem::Version.new(version) end end |