Permalink
Browse files

ack, rubygems collisions

  • Loading branch information...
1 parent 2062416 commit f4d227c6bfee8d42e73d86bd323c315ad7ec0214 @igrigorik committed Nov 7, 2011
View
@@ -1,6 +1,6 @@
-# Hydra: load-balanced (multi-headed) SOCKS5 proxy
+# Hydra5: load-balanced (multi-headed) SOCKS5 proxy
-Given a list of hosts hydra opens a pool of SOCKS5 tunnels and routes incoming requests via a random tunnel. In effect, hydra is a regular SOCKS5 proxy, except that each outbound request is automatically load-balanced.
+Given a list of hosts hydra5 opens a pool of SOCKS5 tunnels and routes incoming requests via a random tunnel. In effect, hydra5 is a regular SOCKS5 proxy, except that each outbound request is automatically load-balanced.
![hydra overview](misc/hydra.png)
@@ -9,7 +9,7 @@ Hydra uses SSH to establish the SOCKS5 tunnels and [em-proxy](https://github.com
## Getting started
```
-$> gem install hydra
+$> gem install hydra5
$> hydra --listen 8080 --hosts host1,host2 --key ssh_key.pub --user name --verbose
```
@@ -25,7 +25,7 @@ c.perform
c.body_str # => => {"ip":"34.22.124.45"}
```
-Of course, you can also convert hydra into a proper HTTP proxy by deploying [privoxy](http://www.privoxy.org/) or an equivalent tool in front.
+Of course, you can also convert hydra5 into a proper HTTP proxy by deploying [privoxy](http://www.privoxy.org/) or an equivalent tool in front.
## License
@@ -3,14 +3,14 @@
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
-require 'hydra'
+require 'hydra5'
require 'optparse'
ARGV << '--help' if ARGV.empty?
options = {}
OptionParser.new do |opts|
- opts.banner = "Usage: hydra [options]"
+ opts.banner = "Usage: hydra5 [options]"
opts.on("-l", "--listen PORT", Integer, "Port to listen on") do |v|
options[:listen] = v
@@ -33,4 +33,4 @@ OptionParser.new do |opts|
end
end.parse!
-Hydra::Proxy.new(options).start!
+Hydra5::Proxy.new(options).start!
@@ -1,13 +1,13 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "hydra/version"
+require "hydra5/version"
Gem::Specification.new do |s|
- s.name = "hydra"
+ s.name = "hydra5"
s.version = Hydra::VERSION
s.authors = ["Ilya Grigorik"]
s.email = ["ilya@igvita.com"]
- s.homepage = "https://github.com/igrigorik/hydra"
+ s.homepage = "https://github.com/igrigorik/hydra5"
s.summary = "Load-balanced (multi-headed) SOCKS5 proxy"
s.description = s.summary
View
@@ -1,2 +0,0 @@
-require "hydra/version"
-require "hydra/proxy"
View
@@ -0,0 +1,2 @@
+require "hydra5/version"
+require "hydra5/proxy"
@@ -1,12 +1,12 @@
require 'em-proxy'
-module Hydra
+module Hydra5
class Logger
[:info, :error].each do |m|
define_method m do |msg|
msg = msg.join(", ") if msg.is_a? Array
- puts ["Hydra", m, msg].join(" :: ")
+ puts ["Hydra5", m, msg].join(" :: ")
end
end
end
@@ -1,3 +1,3 @@
-module Hydra
+module Hydra5
VERSION = "0.1.0"
end

0 comments on commit f4d227c

Please sign in to comment.