summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Morhovich <dmorhovich@pivotal.io>2015-11-18 11:43:27 -0500
committerDavid Morhovich <dmorhovich@pivotal.io>2015-11-18 16:46:26 -0500
commitaa437a2eaa24098c7f449c74271c8bd819de198d (patch)
tree1c8389364c35501cd0241be7b57c2ef02e192d1d
parent0a21902b28ee57645f1fb9e2354d477fe0dec547 (diff)
downloadbundler-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.rb2
-rw-r--r--lib/bundler/ruby_version.rb2
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