Jgem or gem

Jruby binaries comes with two “rubygems” : jgem and gem.
which one do I use?

root@K2:/usr/local/jruby/bin# diff jgem gem
18c18,21
< args = ARGV.clone

We need to preserve the original ARGV to use for passing gem options

to source gems. If there is a – in the line, strip all options after

it…its for the source building process.

args = !ARGV.include?("–") ? ARGV.clone : ARGV[0…ARGV.index("–")]

Hi Bruno,

In theory, users can use either of them, and the files should be
actually the same. They are provided just as convenience for those who
prefer to use jgem and for those who prefer to use gem.

In practice, as you’ve noticed, the content is a little bit different.
jgem’s content is more up-to-date.

Personally, I always prefer to use: “jruby -S gem …” variant.

Thanks,
–Vladimir

On Sun, May 16, 2010 at 9:01 PM, Bruno S. [email protected]
wrote:

args = !ARGV.include?(“–”) ? ARGV.clone : ARGV[0…ARGV.index(“–”)]

Posted via http://www.ruby-forum.com/.


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