jruby/jruby — pull request #130 by akiellor (2012-03-19 02:25:49+00:00)
Title: Enable running binscripts from 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.

I've added a bin script to the testgem.jar which was being used for some gemjar related testing.