proxy_service 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proxy_service.rb +2 -1
- data/lib/proxy_service/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8c8e6939900aec1650960d7159aeb75b190a646
|
4
|
+
data.tar.gz: 39f22e3ae5367e3b8cb16ed8039918848f2c7d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a7c3d175741b213721435ff03e975b9221f01c8e4674b45ca021dfeb987d122752ba776180639b49262eb3946236dffe2807701f021aaa0cfb6daa69c5bdcc4
|
7
|
+
data.tar.gz: 07f782d3d3a399a0fcae8cf6ad9a55f9948e6b73f8e06c5eebea0103039a3888f3689e9320e0b65124b0715cd5942a72e98e1dbd71becd9d9f4dae2b56aa5258
|
data/lib/proxy_service.rb
CHANGED
@@ -12,6 +12,7 @@ class ProxyService
|
|
12
12
|
|
13
13
|
attr_accessor :source, :failure_limit, :failure_codes
|
14
14
|
attr_writer :proxies_enabled
|
15
|
+
attr_reader :proxy
|
15
16
|
|
16
17
|
# = Create a new proxy service with for a specific ODS
|
17
18
|
#
|
@@ -29,7 +30,7 @@ class ProxyService
|
|
29
30
|
|
30
31
|
# @yield [agent] Passes a [proxied] Mechanize agent to the block
|
31
32
|
def with_mechanize
|
32
|
-
proxy = reserve_proxy
|
33
|
+
@proxy = reserve_proxy
|
33
34
|
agent = MechanizeAgent.new
|
34
35
|
agent.set_proxy(proxy)
|
35
36
|
yield agent
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxy_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|