Yes, that's the place I'm looking at too.
I think it should be possible to create wrapper objects for OutputStream
that only use the write-method of the RubyObject passed in.
I'll get on it!

Regards
 Ola Bini

----- Original Message -----
From: Thomas E Enebo <[EMAIL PROTECTED]>
Date: Wednesday, March 22, 2006 4:07 pm
Subject: Re: [Jruby-devel] Status of Zlib and Gem
To: [email protected]

> On Wed, 22 Mar 2006, Ola Bini defenestrated me:
> >
> > Hi!
> > 
> > This is my bad, with the implementation of IOConverter. I think 
> it was a
> > bad idea from the beginning, actually. The reason for this error 
> (which> I also get now) is that RubyGems uses StringIO on lots of 
> places, and
> > since StringIO does not descend from IO, this fails. And the 
> strategy is
> > not good either.
> > 
> > I will think about this, and fix it later tonight. Probably I 
> will do
> > some kind of wrapper for working between IO-objects and java 
> streams in
> > a better fashion.
> 
>  I ran into a related, but different problem.  GzipWriter is being
> passed a Gem::Package::TarWriter::RestrictedStream which is a wrapper
> around an io (which is likely really an StringIO).  RestrictedStream
> only provides a single write method.  So I believe zlib for output
> probably only needs write to work?
> 
>  The place I am looking at is:
> 
> os = Zlib::GzipWriter.new(sio || inner)  line 702 on package.rb
> sio is nil and inner is the RestrictedStream
> 
> -Tom
> 
> -- 
> + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
> | Thomas E Enebo, Protagonist  | "Luck favors the prepared    |
> |                              |  mind." -Louis Pasteur       |
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> languagethat extends applications into web and mobile media. Attend 
> the live webcast
> and join the prime developer group breaking into this new coding 
> territory!http://sel.as-
>
us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642_______________________________________________
> Jruby-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jruby-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to