jruby/jruby — pull request #129 by akiellor (2012-03-19 02:14:48+00:00)
Title: Enable running of binscripts from gems on classpath.

This patch is to enable running gem commands from classpath using the "-S" option. eg.

```
java -cp gems.jar:jruby-complete.jar org.jruby.Main -S
```

JRuby currently supports running binscripts from the classpath:

```
java -cp gems.jar:jruby-complete.jar org.jruby.Main classpath:bin/
```

This method requires users to be aware of the internal structure of a gemjar and the magic classpath file prefix. I expected gems placed on the classpath to behave similarly to gems installed into the systems GEM_HOME.