proxy_service 0.0.3 → 1.0.0

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: 4e6d358768c44f1374444e0a4ae94c02e579e15d
4
- data.tar.gz: b94249dbfa487c461fc5f484a91caad9d7321e09
3
+ metadata.gz: 793aab6348b3c20900c94308d3a30f158043d9ec
4
+ data.tar.gz: 5723dad70f776dd4f68cb4bf7fb2448d407e1734
5
5
  SHA512:
6
- metadata.gz: ed89ffe6b0221b84dc8ac19d2328157b47cec3f46f8e9050d6b04ba0a290b3f1be4ad29ce6819a246f02bbcf82f04a32e38455276c67a8fa96e6c9e1946d4211
7
- data.tar.gz: 2c8c355cfe7d368238d3e9a53168f6f3de119eb683f3bf58d30d7b26e576b308ee3ce15dd556e7d4102ac82cc7746927d8ef911823ab138c4337acc9f253ef24
6
+ metadata.gz: 250af7703a6b1a9a659266658488018c9d164ba8be44aab6d85e5777a0a842e55254e66d82fcae392657ab4ed1a2313700c04c3c61ea7c3d6bbd485521161a32
7
+ data.tar.gz: 88053537ef2b1e8b6b56cd562052d93f208deecb72c183358f124e15b4f306fb69fbe232307133ed7b6cb873f5b5f54fb74cf9b8db0c73605db9d44f9dc34858
data/lib/proxy_service.rb CHANGED
@@ -39,13 +39,12 @@ class ProxyService
39
39
  agent.set_proxy(proxy)
40
40
  yield agent
41
41
  proxy.reset_failures
42
- rescue => e
42
+ rescue
43
43
  if proxy.failures >= MAX_FAILURES
44
44
  proxy.blocked!
45
45
  else
46
46
  proxy.increment_failures
47
47
  end
48
- puts "ERROR: #{e.message}"
49
48
  ensure
50
49
  proxy.release
51
50
  end
@@ -1,3 +1,3 @@
1
1
  class ProxyService
2
- VERSION = '0.0.3'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Buckley