On Jan 9, 4:26   ̮󮮮 
> Daniel Berger wrote:
> > Ok, I was able to download the project and I ran the specs:
>
> > C:\ruby\src\ruby-zlib>spec specs
> > .............FF.......................
>
> > 1)
> > 'Zlib::Deflate#params changes the deflate parameters' FAILED
> > expected: "x\001\000\v\000\364\377abcdefghijk\002,'\027\000#
> > \364\005<",
> >  ܲܳܳܳܳܳܳܰܰ
> > \364\005<" (using ==)
> > C:/ruby/src/ruby-zlib/specs/deflate/params_spec.rb:16
>
> > 2)
> > NameError in 'Zlib::Deflate#set_dictionary sets the dictionary'
> > uninitialized constant Zlib::Deflate
> > C:/ruby/src/ruby-zlib/specs/deflate/set_dictionary_spec.rb:6
> > C:/ruby/src/ruby-zlib/specs/deflate/set_dictionary_spec.rb:5:in `each'
> > C:/ruby/src/ruby-zlib/specs/deflate/set_dictionary_spec.rb:5
>
> > Finished in 1.688 seconds
>
> > 38 examples, 2 failures
>
> > Ruby 1.8.6-p114 built with VC++ 8
> > Windows XP Pro
> > RSpec 1.1.11
>
> > Regards,
>
> > Dan
>
> Yeah the github download functionality seems broken for me most of the
> time also... :/
>
> Anyway, the params failure is the only failure I get. Thats because I've
> not implemented the NO_COMPRESSION mode yet, and is an easy fix. The
> other error you're getting is odd, as Zlib::Deflate is defined, and if
> it weren't none of the other deflate specs would have passed!

Ok, I tried again. Reading seemed to work fine. For writing it worked
fine for small libs, but when I tried it against my largest project,
windows-pr, I got this:

C:\Documents and Settings\djberge\workspace\windows-pr>ruby windows-
pr.gemspec
C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:859:in `log': Result
too large - log (Errno::ERANGE)
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:859:in
`log2'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:901:in
`chooseblock'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:882:in
`times'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:882:in
`chooseblock'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:613:in
`outsym'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:575:in
`match'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:430:in
`lz77_compress'
        from C:/ruby/lib/ruby/site_ruby/1.8/zlib/deflate.rb:490:in
`deflate'
         ... 10 levels...
        from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb:68:in
`open'
        from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb:68:in
`write_package'
        from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb:37:in
`build'
        from windows-pr.gemspec:25

It's about 60 files. If you'd like to try windows-pr yourself you can
grab it via:

cvs -d :pserver:anonymous / rubyforge.org:/var/cvs/win32utils login

cvs -d :pserver:anonymous / rubyforge.org:/var/cvs/win32utils checkout

Regards,

Dan