Forum: IronRuby Code review: Implements Zlib::GzipWriter using System.IO.Compression.GZipStream.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aea6cfe04952626ab630bde47ff82f89?d=identicon&s=25 Shri Borde (Guest)
on 2009-03-09 18:02
(Received via mailing list)
http://github.com/shri/ironruby/commit/7ca74030445...

Implements Zlib::GzipWriter using System.IO.Compression.GZipStream.
- GzipWriter.new ignores the level and strategy arguments for now.
- The arguments are not marked with DefaultProtocol as it does not look
like you can pass an arbitrary object responding to to_s
- Most of the work was for the Ruby library API. We can change the
details
of the compression later if we want to.
Removed Zlib::GZipReader.Create overloads which took RubyIO since they
would not handle the case of File being monkey-patched. This also
allowed
some code to be factored out into the base GZipFile class.
Implemented Zlib::GzipFile.wrap and added tests for it
Changed App.config to only include valid paths to the Ruby libs that are
included in GIT


Thanks,
Shri
This topic is locked and can not be replied to.