ruby-win32/lib/ruby/site_ruby/1.8/rubygems/installer.rb
def app_script_text(bin_file_name)
    <<-TEXT
#{shebang bin_file_name}
#
# This file was generated by RubyGems.
#
# The application '#{@spec.name}' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

version = "#{Gem::Requirement.default}"

if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
  version = $1
  ARGV.shift
end

gem '#{@spec.name}', version
load '#{bin_file_name}'
TEXT
  end
# Return the text for an application file.
Return the text for an application file.
Return the text for an application file .
def app_script_text(bin_file_name)
    <<-TEXT
#{shebang bin_file_name}
#
# This file was generated by RubyGems.
#
# The application '#{@spec.name}' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = "#{Gem::Requirement.default}"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
  version = $1
  ARGV.shift
end
gem '#{@spec.name}', version
load '#{bin_file_name}'
TEXT
  end
def app_script_text ( bin_file_name ) <<-TEXT #{ shebang bin_file_name } 
#
# This file was generated by RubyGems.
#
# The application ' #{ @spec . name } ' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

version = " #{ Gem :: Requirement . default } "

if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
  version = $1
  ARGV.shift
end

gem ' #{ @spec . name } ', version
load ' #{ bin_file_name } '
 TEXT end
Return the text for an application file.
Return the text for an application file .
bin_file_name