[jruby-dev] Java Integration problem

2007-05-02 Thread Ola Bini
Hi, I'm investigating something that looks like a slight problem with the new JI, or with me. Basically, this code in standard JRuby Java: public static IRubyObject prepareStatement(IRubyObject recv, IRubyObject sql) throws SQLException { Connection c = (Connection)recv.dataGetStruct

[jruby-dev] CI help for JRuby

2007-05-02 Thread Ola Bini
As you all know, we have been running Bamboo as a CI for a few months. It's a great help and is really wonderful in giving us opportunity to flaunt our mistakes to the world. That said, it doesn't catch enough. For me personally, there are two areas where we need more CI. The problem is that b

[jruby-dev] Re: [Jruby-extras-devel] CI help for JRuby

2007-05-02 Thread Chad Woolley
If your tests aren't too resource intensive, a dedicated hosted server running vmware can be an inexpensive and consolidated way to run all of these platforms, if you can get someone to pop for around ~$150-$250/month. I recommend rimuhosting.com, they have great support. VMWare is we do for our

[jruby-dev] RE: [Jruby-extras-devel] CI help for JRuby

2007-05-02 Thread Peter K Chan
Ola, can you detail specifically what kind of help you are looking for? I can donate a spare license for Windows XP Professional to the project. I also have a small 4-node server cluster running on the public Internet right now, equipped with VMWare server. Can you detail the performance requirem

Re: [jruby-dev] Java Integration problem

2007-05-02 Thread Bill Dortch
I'm not sure why this wouldn't work. Am looking into it. -Bill On 5/2/07, Ola Bini <[EMAIL PROTECTED]> wrote: Hi, I'm investigating something that looks like a slight problem with the new JI, or with me. Basically, this code in standard JRuby Java: public static IRubyObject prepareStatem

Re: [jruby-dev] Java Integration problem

2007-05-02 Thread Bill Dortch
I haven't tried this (yet, will shortly), but I think what you need to do is: return Java.wrap(recv,JavaObject.wrap( recv.getRuntime(),c.prepareStatement(sql.toString( Otherwise you're just returning a raw JavaObject, with no proxy (hence no methods). On 5/2/07, Ola Bini <[EMAIL PROTECTED

[jruby-dev] [jira] Created: (JRUBY-911) gem unpack fails with "install directory not absolute

2007-05-02 Thread Dudley Flanders (JIRA)
gem unpack fails with "install directory not absolute - Key: JRUBY-911 URL: http://jira.codehaus.org/browse/JRUBY-911 Project: JRuby Issue Type: Bug Reporter: D

Re: [jruby-dev] Java Integration problem

2007-05-02 Thread Bill Dortch
Actually, Java.wrap wants the recv parameter to be JavaUtilities, so you'd need to do something like this: return Java.wrap(recv.getRuntime().getModule("JavaUtilities"), JavaObject.wrap(recv.getRuntime(),c.prepareStatement(sql.toString(; You could also call Java.java_to_ruby, but it adds a