Skip to content

Commit

Permalink
Move some logic to LazySpecification#__materialize__
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jul 30, 2022
1 parent db3857d commit 5e100df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bundler/lib/bundler/lazy_specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def to_lock
end

def materialize_for_installation
source.local!

__materialize__(ruby_platform_materializes_to_ruby_platform? ? platform : Bundler.local_platform)
end

Expand Down
2 changes: 0 additions & 2 deletions bundler/lib/bundler/spec_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def materialize(deps)

materialized.map! do |s|
next s unless s.is_a?(LazySpecification)
s.source.local!
s.materialize_for_installation || s
end
SpecSet.new(materialized)
Expand All @@ -82,7 +81,6 @@ def materialize(deps)
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
Expand Down

0 comments on commit 5e100df

Please sign in to comment.