[MacRuby] #1109: Installing a gem from disk fails

MacRuby ruby-noreply at macosforge.org
Mon Jan 10 17:42:03 PST 2011


#1109: Installing a gem from disk fails
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:                       
Component:  MacRuby                  |    Keywords:  rubygems             
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * milestone:  MacRuby 0.9 =>


Comment:

 "lib/rubygems/package/tar_input.rb" line 218

 {{{

   def zipped_stream(entry)
     if defined? Rubinius or defined? Maglev then
       # these implementations have working Zlib
       zis = Zlib::GzipReader.new entry
       dis = zis.read
       is = StringIO.new(dis)
     else
       # This is Jamis Buck's Zlib workaround for some unknown issue
       entry.read(10) # skip the gzip header
       zis = Zlib::Inflate.new(-Zlib::MAX_WBITS)
       is = StringIO.new(zis.inflate(entry.read))
     end
   ensure
     zis.finish if zis   # XXX we crash here
   end
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1109#comment:2>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list