ruby-proxifier/bin/pruby

9 lines
292 B
Plaintext
Raw Normal View History

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