From 399501cdfe957325631e70efa6afffca6b56db6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 21 Aug 2019 20:52:17 +0200 Subject: [bundler/bundler] Revert "Remove now unused method" This reverts commit 3a2d2f025081755bdb38af660897e7b2f749a33a. https://github.com/bundler/bundler/commit/13cef81582 --- lib/bundler/definition.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/bundler/definition.rb') diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index de3950a744..08bd19e337 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -518,6 +518,10 @@ module Bundler raise InvalidOption, "Unable to remove the platform `#{platform}` since the only platforms are #{@platforms.join ", "}" end + def add_current_platform + current_platforms.each {|platform| add_platform(platform) } + end + def find_resolved_spec(current_spec) specs.find_by_name_and_platform(current_spec.name, current_spec.platform) end -- cgit v1.2.3