[Rubygems-developers] Preliminary testing and executable support

Chad Fowler chad at chadfowler.com
Sat Apr 3 07:24:33 EST 2004


On 2/4/2004, at 10:16 PM, Gavin Sinclair wrote:

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

I haven't touched it since.  I guess I'm not offended enough by it to 
make it a priority yet. :)  That, and, I've been traveling (as you all 
know, because I keep whining about it).

Chad



More information about the Rubygems-developers mailing list