diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-21 20:52:17 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-26 10:55:48 +0200 |
commit | 13cef81582858af9509726f3a24a817cf029ad9b (patch) | |
tree | ca6ec08f852c3fd3b98ea60ffc26472e9d8ff4f9 /lib | |
parent | 31414dd7768d6492b5174a349cbf0ab5c12c9989 (diff) | |
download | bundler-13cef81582858af9509726f3a24a817cf029ad9b.tar.gz |
Revert "Remove now unused method"
This reverts commit 3a2d2f025081755bdb38af660897e7b2f749a33a.
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 |