Packaging up gems with jruby-complete

View: New views
4 Messages — Rating Filter:   Alert me  

Packaging up gems with jruby-complete

by goodieboy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using jruby-complete and would like to bundle up some other gems (Hpricot etc.). What's the easiest way to do this?

Thanks,
Matt

Re: Packaging up gems with jruby-complete

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Dec 27, 2008 at 4:14 PM, Matt Mitchell <goodieboy@...> wrote:
> Hi,
>
> I'm using jruby-complete and would like to bundle up some other gems
> (Hpricot etc.). What's the easiest way to do this?

There isn't an "easy" way to do this right now. JRuby 1.1.6 has a
feature that allows you to bundle gems in a jar file, so you could
manually put the "gems" and "specifications" directories of a gem
repository into the root of the jruby-complete jar, for example. But
we still need to do some work on this for gems that include other jar
files of Java code, such as Hpricot.

I plan to do a write-up of this soonish, check my blog
(http://blog.nicksieger.com/) for the details.

/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Packaging up gems with jruby-complete

by goodieboy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cool thanks Nick. Would you mind explaining the workaround? I unjared the jruby-complete jar. But not seeing rubygems or any other gem specifications. Are you saying Hpricot won't work?

Thanks,
Matt

On Sun, Dec 28, 2008 at 1:02 PM, Nick Sieger <nicksieger@...> wrote:
On Sat, Dec 27, 2008 at 4:14 PM, Matt Mitchell <goodieboy@...> wrote:
> Hi,
>
> I'm using jruby-complete and would like to bundle up some other gems
> (Hpricot etc.). What's the easiest way to do this?

There isn't an "easy" way to do this right now. JRuby 1.1.6 has a
feature that allows you to bundle gems in a jar file, so you could
manually put the "gems" and "specifications" directories of a gem
repository into the root of the jruby-complete jar, for example. But
we still need to do some work on this for gems that include other jar
files of Java code, such as Hpricot.

I plan to do a write-up of this soonish, check my blog
(http://blog.nicksieger.com/) for the details.

/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Packaging up gems with jruby-complete

by straightflush@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

matt did you ever get this to work?  I need to do the same.

On Sun, Dec 28, 2008 at 1:02 PM, Nick Sieger <nicksieger@...> wrote:

> On Sat, Dec 27, 2008 at 4:14 PM, Matt Mitchell <goodieboy@...> wrote:
>> Hi,
>>
>> I'm using jruby-complete and would like to bundle up some other gems
>> (Hpricot etc.). What's the easiest way to do this?
>
> There isn't an "easy" way to do this right now. JRuby 1.1.6 has a
> feature that allows you to bundle gems in a jar file, so you could
> manually put the "gems" and "specifications" directories of a gem
> repository into the root of the jruby-complete jar, for example. But
> we still need to do some work on this for gems that include other jar
> files of Java code, such as Hpricot.
>
> I plan to do a write-up of this soonish, check my blog
> (http://blog.nicksieger.com/) for the details.
>
> /Nick
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email