From: Jim Freeze Date: 2005-04-18T08:42:14+09:00 Subject: Re: Binary not executing using RubyGems * Chad Fowler [2005-04-18 00:26:54 +0900]: > 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. The $0 == __FILE__ is good for facilitating system testing. Is there a constant that gems can set so that we can do system testing and have versioning? Something like: if $0 == __FILE__ || RUBYGEMS run code end -- Jim Freeze Code Red. Code Ruby