Skip to content

Commit

Permalink
Add the options parameter to Zip::File.open.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Oct 19, 2019
1 parent 34d2074 commit f58e380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class << self
# Same as #new. If a block is passed the ZipFile object is passed
# to the block and is automatically closed afterwards just as with
# ruby's builtin File.open method.
def open(file_name, create = false)
zf = ::Zip::File.new(file_name, create)
def open(file_name, create = false, options = {})
zf = ::Zip::File.new(file_name, create, false, options)
return zf unless block_given?
begin
yield zf
Expand Down

0 comments on commit f58e380

Please sign in to comment.