Skip to content

Commit

Permalink
[rubygems/rubygems] Fix: vendor_gem takes a block
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde authored and matzbot committed Mar 25, 2024
1 parent 06d5d4f commit aa90013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rubygems/helper.rb
Expand Up @@ -1367,12 +1367,12 @@ def v(string)
#
# Yields the +specification+ to the block, if given

def vendor_gem(name = "a", version = 1)
def vendor_gem(name = "a", version = 1, &block)
directory = File.join "vendor", name

FileUtils.mkdir_p directory

save_gemspec name, version, directory
save_gemspec name, version, directory, &block
end

##
Expand Down

0 comments on commit aa90013

Please sign in to comment.