Trans
4/17/2005 4:02:00 PM
Hi Chad--
Chad Fowler wrote:
> On 4/17/05, Trans <transfire@gmail.com> wrote:
> > I created a Ruby Gem for one of my projects. I managed to get
> > everything working okay (it wasn't as easy as I would have liked),
>
> What was difficult about it?
Primarily it's still setting up the whole RUBYOPT thing. Not that its
hard per se, just that one has to do it. But also I had to 'gem install
rubygems-update' even though I had installed a very recent verion of
RubyGems. I assume the whole RUBYOPT thing (vs. stubs) arises from
versioning. I'm surprised that there is no other way to do this.
> >
> > autorequire: reap/reap
> > default_executable: reap
> > bindir: bin
> > executables:
> > - reap
> >
> > The file 'bin/reap' is included in the files list.
> >
> > When I actualy type 'reap' on the commandline it simple does
nothing.
> > No error, no nothing.
> >
> > Any suggestions?
>
> The script wrappers don't work with "if __FILE__ == $0" blocks,
> because they use "load" to execute the script. Since you're probably
> not ever going to use 'require "bin/reap"', you could take the if
> condition out and it would work.
Ah, That'll do it. Thanks.
T.