From a4c3f5bddb8a2e17d6e5c246e30f80a931ea3715 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 9 Apr 2024 12:45:21 +0200 Subject: [PATCH] Fix deprecation in Entry#get_input_stream --- lib/zip/entry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zip/entry.rb b/lib/zip/entry.rb index db46c4c0..576c1661 100644 --- a/lib/zip/entry.rb +++ b/lib/zip/entry.rb @@ -571,7 +571,7 @@ def get_input_stream(&block) raise "unknown @file_type #{@ftype}" end else - zis = ::Zip::InputStream.new(@zipfile, local_header_offset) + zis = ::Zip::InputStream.new(@zipfile, offset: local_header_offset) zis.instance_variable_set(:@complete_entry, self) zis.get_next_entry if block_given?