1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Revert "Remove now unused method"

This reverts commit 3a2d2f025081755bdb38af660897e7b2f749a33a.

https://github.com/bundler/bundler/commit/13cef81582
This commit is contained in:
David Rodríguez 2019-08-21 20:52:17 +02:00 committed by Hiroshi SHIBATA
parent c27aaf1a8f
commit 399501cdfe
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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