mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Move some logic to LazySpecification#__materialize__
https://github.com/rubygems/rubygems/commit/5e100df7c9
This commit is contained in:
parent
24204d54ab
commit
6ec8f684aa
2 changed files with 2 additions and 2 deletions
|
@ -76,6 +76,8 @@ module Bundler
|
|||
end
|
||||
|
||||
def materialize_for_installation
|
||||
source.local!
|
||||
|
||||
__materialize__(ruby_platform_materializes_to_ruby_platform? ? platform : Bundler.local_platform)
|
||||
end
|
||||
|
||||
|
|
|
@ -70,7 +70,6 @@ module Bundler
|
|||
|
||||
materialized.map! do |s|
|
||||
next s unless s.is_a?(LazySpecification)
|
||||
s.source.local!
|
||||
s.materialize_for_installation || s
|
||||
end
|
||||
SpecSet.new(materialized)
|
||||
|
@ -82,7 +81,6 @@ module Bundler
|
|||
def materialized_for_all_platforms
|
||||
@specs.map do |s|
|
||||
next s unless s.is_a?(LazySpecification)
|
||||
s.source.local!
|
||||
s.source.remote!
|
||||
spec = s.materialize_for_installation
|
||||
raise GemNotFound, "Could not find #{s.full_name} in any of the sources" unless spec
|
||||
|
|
Loading…
Add table
Reference in a new issue