Sha256: c1092f2f6c674f532fa04f12b26dd913a9c11aaa417a10552e6461ae31e8a367
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
#!/usr/bin/env ruby title = "ruby #{ARGV*" "}" $0 = ARGV.shift Process.setproctitle(title) if Process.methods.include?(:setproctitle) require 'rubygems' begin require 'executable-hooks/hooks' Gem::ExecutableHooks.run($0) rescue LoadError warn "unable to load executable-hooks/hooks" if ENV.key?('ExecutableHooks_DEBUG') end unless $0.end_with?('/executable-hooks-uninstaller') content = File.read($0) if (index = content.index("\n#!ruby\n")) && index > 0 skipped_content = content.slice!(0..index) start_line = skipped_content.count("\n") + 1 eval content, binding, $0, start_line else eval content, binding, $0 end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
devcycle-ruby-server-sdk-1.1.0 | examples/sinatra/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks |
executable-hooks-1.6.1 | bin/ruby_executable_hooks |