diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-21 20:52:17 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-09-18 18:26:32 +0900 |
commit | 399501cdfe957325631e70efa6afffca6b56db6e (patch) | |
tree | 1eca91ca654cd4efd978c5646e579f249e9adaf7 /lib | |
parent | c27aaf1a8f6f4240dadeaa9b203cce640b56e3db (diff) | |
download | ruby-399501cdfe957325631e70efa6afffca6b56db6e.tar.gz |
[bundler/bundler] Revert "Remove now unused method"
This reverts commit 3a2d2f025081755bdb38af660897e7b2f749a33a.
https://github.com/bundler/bundler/commit/13cef81582
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/definition.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |