Shipping a gem with jruby.jar

J

Juan Zanos

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
 
E

Eric Hodel

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.
 
J

Juan Zanos

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?
 
E

Eric Hodel

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.
 
J

Juan Zanos

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.


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top