ruby-proxifier/bin/pirb

8 lines
264 B
Plaintext
Raw Normal View History

2011-06-09 15:28:05 +00:00
#!/usr/bin/env ruby
executable = File.expand_path("../" + Gem.default_exec_format % "irb", Gem.ruby)
load_paths = Gem.loaded_specs["sockets"].load_paths.map { |p| "-I#{p}" }
# TODO: support argument switches
exec(executable, *load_paths, "-rsockets/env", *ARGV)