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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f89ee4d44eb50706b723857def75d68bdff776e
4
- data.tar.gz: cdf2218d01930082f6458b36aa6c456bda1098e9
3
+ metadata.gz: c8c8e6939900aec1650960d7159aeb75b190a646
4
+ data.tar.gz: 39f22e3ae5367e3b8cb16ed8039918848f2c7d36
5
5
  SHA512:
6
- metadata.gz: 6a2c9c742f8b0a658e3a3446f32a497a038eee1c9044658fcbe9dd4d88e770c113dd5d7fba4994bc6fa4727e2cad36315ce83a61e7f52fdce2c45b5fceb90afc
7
- data.tar.gz: f8f805752e8b0881e1a8eda7dfc7c9245786728da4ea4f2044a3f02b8b532bdc4eed6d9e2797df4b607e2912a7fa4cb63218fa7aef375eb7f1cdb2d3c7096727
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
@@ -1,3 +1,3 @@
1
1
  class ProxyService
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
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.3
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-01-29 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler