ruby-proxifier/bin/pirb

9 lines
357 B
Ruby
Executable File

#!/usr/bin/env ruby
executable = File.expand_path("../" + Gem.default_exec_format % "irb", Gem.ruby)
full_gem_path = Gem.loaded_specs["proxifier"].full_gem_path
load_paths = Gem.loaded_specs["proxifier"].require_paths.map { |p| "-I#{File.join(full_gem_path, p)}" }
# TODO: support argument switches
exec(executable, *load_paths, "-rproxifier/env", *ARGV)