mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
ead2dc0ec9
commit
3af9d8bb67
1 changed files with 9 additions and 3 deletions
|
@ -519,9 +519,7 @@ module Bundler
|
|||
end
|
||||
|
||||
def add_current_platform
|
||||
current_platform = Bundler.local_platform
|
||||
add_platform(current_platform) if Bundler.feature_flag.specific_platform?
|
||||
add_platform(generic(current_platform))
|
||||
current_platforms.each {|platform| add_platform(platform) }
|
||||
end
|
||||
|
||||
def find_resolved_spec(current_spec)
|
||||
|
@ -545,6 +543,14 @@ module Bundler
|
|||
|
||||
private
|
||||
|
||||
def current_platforms
|
||||
current_platform = Bundler.local_platform
|
||||
platforms = []
|
||||
platforms << current_platform if Bundler.feature_flag.specific_platform?
|
||||
platforms << generic(current_platform)
|
||||
platforms
|
||||
end
|
||||
|
||||
def change_reason
|
||||
if unlocking?
|
||||
unlock_reason = @unlock.reject {|_k, v| Array(v).empty? }.map do |k, v|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue