2011-06-09 15:28:05 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
executable = File.expand_path("../" + Gem.default_exec_format % "irb", Gem.ruby)
|
2011-07-19 20:11:35 +00:00
|
|
|
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)}" }
|
2011-06-09 15:28:05 +00:00
|
|
|
# TODO: support argument switches
|
|
|
|
|
2011-07-19 20:11:35 +00:00
|
|
|
exec(executable, *load_paths, "-rproxifier/env", *ARGV)
|