Sha256: 97bc4fb2a688372bd7f0a5fde6ad8cb0252b6a716518c4d2a066e33a4b72182a
Contents?: true
Size: 681 Bytes
Versions: 17
Compression:
Stored size: 681 Bytes
Contents
require 'libgems/installer' module LibGems class Installer def app_script_text(bin_file_name) <<-TEXT #{shebang bin_file_name} # # This file was generated by BPM. # # The application '#{@spec.name}' is installed as part of an bpkg, and # this file is here to facilitate running it. # version = "#{LibGems::Requirement.default}" if ARGV.first =~ /^_(.*)_$/ and LibGems::Version.correct? $1 then version = $1 ARGV.shift end gem '#{@spec.name}', version path = LibGems.bin_path('#{@spec.name}', '#{bin_file_name}', version) shebang = File.open(path){|f| f.readline } if shebang =~ /^\#\!.*ruby/ load path else exec path, *ARGV end TEXT end end end
Version data entries
17 entries across 17 versions & 1 rubygems