From: Chad Fowler Date: 2005-04-18T00:26:54+09:00 Subject: Re: Binary not executing using RubyGems On 4/17/05, Trans 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? > > 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. -- Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 100,000 gems served!)