zokor 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea48f1b43eeffa90b08f99091626bd1368726cc8
4
- data.tar.gz: c1aa61dcbe174a1bf1b926f387eb6ae95b98aa36
3
+ metadata.gz: 2a142505b12aff3f4cd794dfe6bc4c660f392ea9
4
+ data.tar.gz: 9f777026ab6bd2e9249ae139382773a37e9a78be
5
5
  SHA512:
6
- metadata.gz: 9072d5051d61c732437bed2be2c03d7f17a4c666f5053676a7f3c13a2b9c36cb258bb67c6907653b529ba07f2a7cddfb53b0dc6ce3c8d46d0b4d48cd04150574
7
- data.tar.gz: f2c7a7c3b29ce5559207afee31682fce4bf76956435c266aa18d58afa4604bfe9b1b502fa84aeb23d9d1127410fec20596f5108e962dcf727fd13d667c6ec133
6
+ metadata.gz: c6ea518ffc62cbf1a1f869d977a4a8f07918a528f407f7c318df828427b6d934be5b6b19d996b3cfd96d85225ec021650a8be59a13521f22fc60db8a5557a115
7
+ data.tar.gz: 9b114533b0e15b4d86d9ad214588daa4fa797ca89210371919ed89e6b32226ec95399046823f24b5212ca24015fabaf890d39b56c830784757a521b5b6cfb984
@@ -143,7 +143,15 @@ module Zokor
143
143
  label = "#{@remote_host}:#{@remote_port}"
144
144
  if @proxy_url
145
145
  log.info("Connecting to #{label} through proxy #{@proxy_url}")
146
- @proxy = Proxifier::Proxy(@proxy_url)
146
+
147
+ popts = {}
148
+ popts[:user_agent] = ENV['HTTP_USER_AGENT'] if ENV['HTTP_USER_AGENT']
149
+
150
+ if popts[:user_agent]
151
+ log.debug('Passing User-Agent: ' + popts[:user_agent].inspect)
152
+ end
153
+
154
+ @proxy = Proxifier::Proxy(@proxy_url, popts)
147
155
  tcp_socket = @proxy.open(@remote_host, @remote_port)
148
156
  else
149
157
  log.info("Connecting to #{label}")
@@ -1,3 +1,3 @@
1
1
  module Zokor
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_dependency 'proxifier', '~> 1.0'
29
+ spec.add_dependency 'proxifier-fork', '~> 1.0.4'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 1.3'
32
32
  spec.add_development_dependency 'pry'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zokor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Brody
@@ -11,19 +11,19 @@ cert_chain: []
11
11
  date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: proxifier
14
+ name: proxifier-fork
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 1.0.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 1.0.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement