Skip to content

Commit

Permalink
Forward __materialize__ kwargs too
Browse files Browse the repository at this point in the history
…to fix bundler 2.4.4 incompatiblity

rubygems/rubygems#6261 changed the arity of `__materialize__` method again, which broke `licensed`
See also: licensee#522 😅
  • Loading branch information
CvX committed Jan 17, 2023
1 parent 2ab41e8 commit 7fc435e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/licensed/sources/bundler/missing_specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def materialize_for_installation(*args)
Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
end

def __materialize__(*args)
spec = super(*args)
def __materialize__(*args, **kwargs)
spec = super(*args, **kwargs)
return spec if spec

Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
Expand Down

0 comments on commit 7fc435e

Please sign in to comment.