# File lib/rubygems/installer.rb, line 455
  def app_script_text(bin_file_name)
    return "\#{shebang bin_file_name}\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'\n\nversion = \"\#{Gem::Requirement.default}\"\n\nif ARGV.first\nstr = ARGV.first\nstr = str.dup.force_encoding(\"BINARY\") if str.respond_to? :force_encoding\nif str =~ /\\\\A_(.*)_\\\\z/\nversion = $1\nARGV.shift\nend\nend\n\ngem '\#{spec.name}', version\nload Gem.bin_path('\#{spec.name}', '\#{bin_file_name}', version)\n"
  end