proxifier 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ module Proxifier
6
6
  def open(host, port, local_host = nil, local_port = nil)
7
7
  return TCPSocket.new(host, port, local_host, local_port, :proxy => nil) unless proxify?(host)
8
8
 
9
- socket = TCPSocket.new(proxy.host, proxy.port, local_host, local_port, :proxy => nil)
9
+ socket = TCPSocket.new(self.host, self.port, local_host, local_port, :proxy => nil)
10
10
 
11
11
  begin
12
12
  proxify(socket, host, port)
@@ -0,0 +1,4 @@
1
+ module Proxifier
2
+ class ProxyError < StandardError
3
+ end
4
+ end
@@ -23,7 +23,7 @@ module Proxifier
23
23
  def open(host, port, local_host = nil, local_port = nil)
24
24
  return TCPSocket.new(host, port, local_host, local_port) unless proxify?(host)
25
25
 
26
- socket = TCPSocket.new(proxy.host, proxy.port, local_host, local_port)
26
+ socket = TCPSocket.new(self.host, self.port, local_host, local_port)
27
27
 
28
28
  begin
29
29
  proxify(socket, host, port)
@@ -1,3 +1,3 @@
1
1
  module Proxifier
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-23 00:00:00.000000000Z
12
+ date: 2012-03-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Proxifier adds support for HTTP or SOCKS proxies and lets you force TCPSocket
15
15
  to use proxies.
@@ -24,6 +24,7 @@ files:
24
24
  - bin/pirb
25
25
  - bin/pruby
26
26
  - lib/proxifier/env.rb
27
+ - lib/proxifier/errors.rb
27
28
  - lib/proxifier/proxies/http.rb
28
29
  - lib/proxifier/proxies/socks.rb
29
30
  - lib/proxifier/proxies/socks4.rb
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
55
  version: '0'
55
56
  requirements: []
56
57
  rubyforge_project:
57
- rubygems_version: 1.8.6
58
+ rubygems_version: 1.8.15
58
59
  signing_key:
59
60
  specification_version: 3
60
61
  summary: Proxifier is a gem to force ruby to use a proxy.