Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
GZipFile#close does not return IO object as MRI does #5197
MRI documents (and implements) that #close on GZipFile and subclasses should return the associated IO object. JRuby returns nil.
In MRI I can do this:
writer = Zlib::GzipWriter.new(str) writer.write(data) writer.close.string
which fails in JRuby when trying to call