Shipping a gem with jruby.jar

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

BTW, googling variants of ruby, gem, and shipping produces useless results.

Juan

You need Ruby to install a gem via RubyGems, so I don't see how this could possibly work.

···

On Mar 26, 2009, at 13:13, Juan Zanos wrote:

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

So shipping a Ruby application that uses a gem is impossible?

···

On 26 mars 09, at 17:08, Eric Hodel wrote:

On Mar 26, 2009, at 13:13, Juan Zanos wrote:

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

You need Ruby to install a gem via RubyGems, so I don't see how this could possibly work.

I wonder if it's possible to write a gem to jar converter.

···

On 26 mars 09, at 17:14, Juan Zanos wrote:

On 26 mars 09, at 17:08, Eric Hodel wrote:

On Mar 26, 2009, at 13:13, Juan Zanos wrote:

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

You need Ruby to install a gem via RubyGems, so I don't see how this could possibly work.

So shipping a Ruby application that uses a gem is impossible?

You said that you want the gem to install without ruby or jruby. Without a ruby interpreter, a gem won't install.

If you already have ruby or jruby, you can use a gem to ship an application.

···

On Mar 26, 2009, at 14:14, Juan Zanos wrote:

On 26 mars 09, at 17:08, Eric Hodel wrote:

On Mar 26, 2009, at 13:13, Juan Zanos wrote:

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

You need Ruby to install a gem via RubyGems, so I don't see how this could possibly work.

So shipping a Ruby application that uses a gem is impossible?

You may be interested in
http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar\.
Feel free to hop over to the jruby lists if you want to continue the
discussion.

Cheers,
/Nick

···

On Thu, Mar 26, 2009 at 5:18 PM, Juan Zanos <juan_zanos@talkhouse.com> wrote:

I wonder if it's possible to write a gem to jar converter.

Sorry for the confusion. I don't want someone to have to separately install Ruby or JRuby. Since JRuby comes in a jar that isn't a problem. I can run a script using just using jruby.jar. What I don't know is how to get such a script to be able to access a gem.

···

On 26 mars 09, at 17:23, Eric Hodel wrote:

On Mar 26, 2009, at 14:14, Juan Zanos wrote:

On 26 mars 09, at 17:08, Eric Hodel wrote:

On Mar 26, 2009, at 13:13, Juan Zanos wrote:

Is it possible to ship a gem with jruby.jar in a way that jruby scripts can access the gem? I'd like to do so in a way that doesn't require installing either ruby or jruby.

You need Ruby to install a gem via RubyGems, so I don't see how this could possibly work.

So shipping a Ruby application that uses a gem is impossible?

You said that you want the gem to install without ruby or jruby. Without a ruby interpreter, a gem won't install.

If you already have ruby or jruby, you can use a gem to ship an application.

Thanks, I will do that.
Juan

···

On 26 mars 09, at 17:28, Nick Sieger wrote:

On Thu, Mar 26, 2009 at 5:18 PM, Juan Zanos > <juan_zanos@talkhouse.com> wrote:

I wonder if it's possible to write a gem to jar converter.

You may be interested in
http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar\.
Feel free to hop over to the jruby lists if you want to continue the
discussion.

Cheers,
/Nick