Skip to content

Commit

Permalink
Zlib::GzipReader.new can't accept variable length arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Feb 9, 2012
1 parent e96da03 commit 9cbb85e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubygems/package/tar_input.rb
Expand Up @@ -54,7 +54,9 @@ def initialize(io, security_policy = nil)
args << { :external_encoding => Encoding::UTF_8 } if
Object.const_defined?(:Encoding)

gzis = Zlib::GzipReader.new(*args)
# XXX MACRUBY our Zlib::GzipReader.new can't accept variable length arguments
#gzis = Zlib::GzipReader.new(*args)
gzis = Zlib::GzipReader.new(sio || entry)

# YAML wants an instance of IO
@metadata = load_gemspec(gzis)
Expand Down

0 comments on commit 9cbb85e

Please sign in to comment.