Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Zlib::GzipReader#level never get updated #1840
JRuby doesn't update at all the compression
>> require "zlib"; >> require "stringio"; >> gzipped = StringIO.new; >> writer = Zlib::GzipWriter.new(gzipped, Zlib::BEST_COMPRESSION); >> writer.write("a"); >> gzipped = StringIO.new(gzipped.string); >> RUBY_ENGINE => "jruby" >> Zlib::GzipReader.new(gzipped).level => -1 >> RUBY_ENGINE => "ruby" >> Zlib::GzipReader.new(gzipped).level => 9
Tested with JRuby 1.7.13 and MRI 2.1.2 and 1.9.3.
Have a nice day.