[macruby-changes] [5156] MacRuby/trunk/lib/rubygems/package/tar_input.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 10 17:56:17 PST 2011


Revision: 5156
          http://trac.macosforge.org/projects/ruby/changeset/5156
Author:   lsansonetti at apple.com
Date:     2011-01-10 17:56:10 -0800 (Mon, 10 Jan 2011)
Log Message:
-----------
fix the local installation of certain gems (such as macbacon)

Modified Paths:
--------------
    MacRuby/trunk/lib/rubygems/package/tar_input.rb

Modified: MacRuby/trunk/lib/rubygems/package/tar_input.rb
===================================================================
--- MacRuby/trunk/lib/rubygems/package/tar_input.rb	2011-01-11 00:52:13 UTC (rev 5155)
+++ MacRuby/trunk/lib/rubygems/package/tar_input.rb	2011-01-11 01:56:10 UTC (rev 5156)
@@ -203,7 +203,9 @@
   # times.  And that's the way it is.
 
   def zipped_stream(entry)
-    if defined? Rubinius or defined? Maglev then
+    # XXX MACRUBY we also enter the first condition
+    if true#defined? Rubinius or defined? Maglev then
+      require 'stringio'
       # these implementations have working Zlib
       zis = Zlib::GzipReader.new entry
       dis = zis.read
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110110/a94ae1ff/attachment.html>


More information about the macruby-changes mailing list