Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ruby-1.9.1 compatibility patch from Tatsuki Sugiura.

  • Loading branch information...
commit 13b785685854ab62269028ac842ae87a0cec8868 1 parent d0faedc
thomas authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/zip/ioextras.rb
  2. +2 −2 test/ziptest.rb
View
2  lib/zip/ioextras.rb
@@ -128,7 +128,7 @@ def write(data)
def print(*params)
- self << params.to_s << $\.to_s
+ self << params.join($,) << $\.to_s
end
def printf(aFormatString, *params)
View
4 test/ziptest.rb
@@ -642,7 +642,7 @@ def test_put_next_entry
zos << stored_text
end
- assert(File.read(TEST_ZIP.zip_name).grep(stored_text))
+ assert(File.read(TEST_ZIP.zip_name)[stored_text])
ZipFile.open(TEST_ZIP.zip_name) do
|zf|
assert_equal(stored_text, zf.read(entry_name))
@@ -676,7 +676,7 @@ def compare_enumerables(otherEnumerable)
|element, index|
return false unless yield(element, otherAsArray[index])
}
- return index+1 == otherAsArray.size
+ return self.size == otherAsArray.size
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.