summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 7a01de5ddb..c72ad27c40 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -212,13 +212,10 @@ module Bundler
end
end
- def locked_bundler_version
- return nil unless defined?(@definition) && @definition
+ def most_specific_locked_platform?(platform)
+ return false unless defined?(@definition) && @definition
- locked_gems = definition.locked_gems
- return nil unless locked_gems
-
- locked_gems.bundler_version
+ definition.most_specific_locked_platform == platform
end
def ruby_scope