[Jruby-devel] socket status

2006-03-22 Thread Evan
What's the status of socket support? My poking indicates that although "accept" appears to work, send and recv (and anything else I try) don't. I've been trying to hack some support in via stuff like OldTCPSocket = TCPSocket class NewTCPSocket < OldTCPSocket ... end TCPSocket = NewTCPSocket b

Re: [Jruby-devel] Bugs 911493 and 911497

2006-03-22 Thread Thomas E Enebo
On Wed, 22 Mar 2006, Marc Hadley defenestrated me: > Hi, > > I was going to take a crack at implementing String#unpack for 'u', > 'm' and 'M' as requested in bugs 911493 and 911497 but it seems that > someone already beat me to it - perhaps someone should close those > bugs ? Yes. Thanks

[Jruby-devel] ActiveRecord and Servlets [WAS: Bugs 911493 and 911497]

2006-03-22 Thread Ola Bini
> - Rails ActiveRecord to JDBC adapter (Nick Sieger making progress, > I have > not tried his stuff yet) > - Rails handling a request (Tom's been working on this, but has > reached a > point where we need a better "CGI wrapper" servlet) Hi, if I could get more information on these two points (

[Jruby-devel] newArray-implementations.

2006-03-22 Thread Ola Bini
Hi. Here comes a small patch, with implementations for Object[] toArray(Object[]) in RubyArray and RubyHash. Regards Ola Bini toArray.patch Description: Binary data

Re: [Jruby-devel] Bugs 911493 and 911497

2006-03-22 Thread Charles O Nutter
Hello again Marc! I assume you were finally able to get into SourceForge's flaky anon CVS server. Kudos!The outstanding functional issues currently being worked on are as follows:- Zlib library support (Ola Bini making big contributions here, with Tom and I testing and fixing as we can) - Rails Act

[Jruby-devel] Bugs 911493 and 911497

2006-03-22 Thread Marc Hadley
Hi, I was going to take a crack at implementing String#unpack for 'u', 'm' and 'M' as requested in bugs 911493 and 911497 but it seems that someone already beat me to it - perhaps someone should close those bugs ? Are there any other bugs/features that someone new to the codebase (i.e.

Re: [Jruby-devel] Error is in YAML [WAS: Zlib and RubyGems]

2006-03-22 Thread Thomas E Enebo
I will take a look at this more this evening, and I will apply your patch you sent in that other email then tooThanks, rubygems is a major thing to get working and you are making it happen sooner than later! -Tom On Wed, 22 Mar 2006, Ola Bini defenestrated me: > It seems as if the error o

[Jruby-devel] Error is in YAML [WAS: Zlib and RubyGems]

2006-03-22 Thread Ola Bini
It seems as if the error occurs on line 44 in builder.rb whichs read like this: pkg.metadata = @spec.to_yaml where @spec is an instance of Gem::Specification /O - Original Message - From: Ola Bini <[EMAIL PROTECTED]> Date: Wednesday, March 22, 2006 6:16 pm Subject: Re: [Jruby-d

[Jruby-devel] Updated Zlib

2006-03-22 Thread Ola Bini
Here comes the patch and two new source files in the package org.jruby.util. The IOConverter class can be removed. (the patch is done with cvs diff -Nu) /O zlib.patch Description: Binary data /* BEGIN LICENSE BLOCK * * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file a

Re: [Jruby-devel] Zlib and RubyGems.

2006-03-22 Thread Ola Bini
If I change that line as I made it I get this error instead: hook D:/Project/jruby/rubygems/./post-install.rb failed: duplicated object must be same type Try 'ruby setup.rb --help' for detailed usage. Which comes from RubyObject#dup /O - Original Message - From: Ola Bini <[EMAIL PROTECT

[Jruby-devel] Zlib and RubyGems.

2006-03-22 Thread Ola Bini
Hi. It's going forward. I'll soon send in patches for the error with IO-objects. Wrappers seem to solve that problem, but now something else seems very strange. This error comes from the bowels of JRuby, and I can't get a fix on what in the post-install-script that triggers it. This is the output:

Re: [Jruby-devel] Howto get java value from a RubyNumeric.

2006-03-22 Thread Ola Bini
Hi again. Disregard this message. I guess it's murphy that you always find the answer AFTER you've sent mail to the mailing list... /O - Original Message - From: Ola Bini <[EMAIL PROTECTED]> Date: Wednesday, March 22, 2006 4:59 pm Subject: [Jruby-devel] Howto get java value from a RubyNum

[Jruby-devel] Howto get java value from a RubyNumeric.

2006-03-22 Thread Ola Bini
Hi. This is probably a stupid question, but I need to get the value of a RubyNumeric in Java. How do I do this? I have something like this: RubyNumeric val = (RubyNumeric)io.callMethod("read",this.numOne); how do I get the java int or long or bigint from val? Regards Ola Bini -

Re: [Jruby-devel] Status of Zlib and Gem

2006-03-22 Thread Ola Bini
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, M

Re: [Jruby-devel] Status of Zlib and Gem

2006-03-22 Thread Thomas E Enebo
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 do

Re: [Jruby-devel] Status of Zlib and Gem

2006-03-22 Thread Ola Bini
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 go