[Rubygems-developers] Preliminary testing and executable support

Gavin Sinclair gsinclair at soyabean.com.au
Sat Apr 3 13:16:27 EST 2004


On Sunday, March 21, 2004, 4:31:21 AM, Chad wrote:


> On Mar 20, 2004, at 12:37 PM, Gavin Sinclair wrote:

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

> That's definitely a possibility (easy to do).  I wonder if there is a
> reason not to do that.  I'll think about that before doing any more 
> hacking.

> Chad


Just digging through some old threads, and wondering if you made any
progress on this.

Cheers,
Gavin



More information about the Rubygems-developers mailing list