[Rubygems-developers] [ rubygems-Patches-26790 ] Patch to support MagLev

noreply at rubyforge.org noreply at rubyforge.org
Wed Jul 29 17:20:45 EDT 2009


Patches item #26790, was opened at 2009-07-29 14:20
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=577&aid=26790&group_id=126

Category: other
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Peter McLain (pbm)
Assigned to: Nobody (None)
Summary: Patch to support MagLev

Initial Comment:
Hi,

  I'm working on the MagLev project at GemStone, and am currently trying to get RubyGems working under MagLev.  Apparently, MagLev processes zip streams the same way Rubinius does.  The following one-line patch (also attached) allows RubyGems 1.3.5 to work under MagLev.

Thanks,


diff --git a/src/external/rubygems-1.3.5/lib/rubygems/package/tar_input.rb b/src/external/rubygems-1.3.5/lib/rubygems/package/tar_input.rb
index 9f90102..cb1bbe7 100644
--- a/src/external/rubygems-1.3.5/lib/rubygems/package/tar_input.rb
+++ b/src/external/rubygems-1.3.5/lib/rubygems/package/tar_input.rb
@@ -199,7 +199,7 @@ class Gem::Package::TarInput
   # times.  And that's the way it is.
 
   def zipped_stream(entry)
-    if defined? Rubinius then
+    if defined? Rubinius or defined? Maglev then
       zis = Zlib::GzipReader.new entry
       dis = zis.read
       is = StringIO.new(dis)





----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=577&aid=26790&group_id=126


More information about the Rubygems-developers mailing list