diff options
Diffstat (limited to 'lib/bundler/ruby_version.rb')
-rw-r--r-- | lib/bundler/ruby_version.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb index 9321f94c23..8c050c6d31 100644 --- a/lib/bundler/ruby_version.rb +++ b/lib/bundler/ruby_version.rb @@ -128,6 +128,11 @@ module Bundler end end + def exact? + return @exact if defined?(@exact) + @exact = versions.all? {|v| Gem::Requirement.create(v).exact? } + end + private def matches?(requirements, version) |