Sha256: 7410b23db4d688bbd0c1fc48145712a6497a0c074a9378b72532c5abc69b7471
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 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 Spade. # # The application '#{@spec.name}' is installed as part of an spd, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spade-packager-0.1.0.1 | lib/libgems_ext/installer.rb |
spade-packager-0.1.0 | lib/libgems_ext/installer.rb |