# File lib/rubygems/installer.rb, line 271
    def app_script_text(spec, install_dir, filename)
      text = "\#{shebang(spec, install_dir, filename)}\n#\n# This file was generated by RubyGems.\n#\n# The application '\#{spec.name}' is installed as part of a gem, and\n# this file is here to facilitate running it.\n#\n\nrequire 'rubygems'\nversion = \"> 0\"\nif ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then\nversion = $1\nARGV.shift\nend\ngem '\#{spec.name}', version\nload '\#{filename}'\n"
      text
    end