rubygems/rubygems — pull request #330 by mpapis (2012-05-16 00:55:53+00:00)
Title: custom_shebang should not be used on binaries used in it - prevent loop

The basic example is a `awesome.gemspec`:

...
spec.executables = %w( ruby_awesome_launcher )
...

and a `~/gemrc`:

custom_shebang: "$env ruby_awesome_launcher"

this would generate a loop where `ruby_awesome_launcher` will be using itself in shebang if the gem is installed multiple times.