[Rubygems-developers] Preliminary testing and executable support

Gavin Sinclair gsinclair at soyabean.com.au
Sun Mar 21 04:37:20 EST 2004

On Sunday, March 21, 2004, 4:04:52 AM, Chad wrote:

> This will result in a generated "myapp" being installed from "bin" in
> the gem distribution  into the same location as the ruby executable 
> (not yet over-ridable).    The generated script looks like this:

>    #!/usr/local/bin/ruby
>    require 'rubygems'
>    require_gem 'an-app', "0.0.1"
>    load 'myapp'

> ...assuming that the gem is caled "an-app" and is at version 0.0.1.  To
> make the "load" work properly, I had to stuff "bin" into the 
> require_path.

Couldn't you generate an absolute path in some way?


More information about the Rubygems-developers mailing list