@@ -42,9 +42,9 @@ def self.unzip_to(source, target)
4242 #
4343 # @param source [#read] An IO-like object containing a Zip file.
4444 # @param target [String, ::File, Pathname] The target directory where the file should be unzipped.
45- def self . unzip_io_to ( io , target )
45+ def self . unzip_io_to ( source , target )
4646 Dir . chdir ( target ) do
47- Zip ::InputStream . open ( io ) do |input |
47+ Zip ::InputStream . open ( source ) do |input |
4848 while ( entry = input . get_next_entry )
4949 unless ::File . exist? ( entry . name ) || entry . name_is_directory?
5050 FileUtils ::mkdir_p ( ::File . dirname ( entry . name ) )
@@ -60,9 +60,9 @@ def self.unzip_io_to(io, target)
6060 #
6161 # @param source [String, ::File, Pathname] The location of the zip file.
6262 # @param target [String, ::File, Pathname] The target directory where the file should be unzipped.
63- def self . unzip_file_to ( file_or_path , target )
63+ def self . unzip_file_to ( source , target )
6464 Dir . chdir ( target ) do
65- Zip ::File . open ( file_or_path ) do |zipfile |
65+ Zip ::File . open ( source ) do |zipfile |
6666 zipfile . each do |entry |
6767 unless ::File . exist? ( entry . name )
6868 FileUtils ::mkdir_p ( ::File . dirname ( entry . name ) )
0 commit comments