proxy_rotater 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/proxy_rotater/proxy.rb +1 -1
- data/lib/proxy_rotater/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba38d2219604d21897a6c62e2fd8177bd79ed509
|
|
4
|
+
data.tar.gz: 4f43bc1be7b5f41cf4138f1582d8cb390de395ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bec5ab0466279c391cf516fadfaf5c5be2d8c9205ea13313d17a37262e4864a8cf1ee5b3c7ca49b352c03749bd605217f99edf02153a551c7d5fc45c8b760a6
|
|
7
|
+
data.tar.gz: 1d9b52c492c17788562c37aacecf6934f3ba6f1937796a1a35421950fc7b45150c5f0c55e670c144220fba9029e563ff5df550eca2a4ee8bc71c7b0c4daf540e
|
data/lib/proxy_rotater/proxy.rb
CHANGED
|
@@ -30,7 +30,7 @@ class Proxy
|
|
|
30
30
|
# TODO: redirect too deepの時にどうにかする
|
|
31
31
|
begin
|
|
32
32
|
res = self.class.get(url)
|
|
33
|
-
rescue Errno::ETIMEDOUT, Errno::ECONNRESET, EOFError, Errno::ECONNREFUSED => e
|
|
33
|
+
rescue Errno::ETIMEDOUT, Errno::ECONNRESET, EOFError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e
|
|
34
34
|
@timeout = true
|
|
35
35
|
return nil
|
|
36
36
|
rescue Net::ReadTimeout, Net::OpenTimeout => e
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: proxy_rotater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- shim0mura
|
|
@@ -144,3 +144,4 @@ summary: rotate proxy
|
|
|
144
144
|
test_files:
|
|
145
145
|
- spec/proxy_rotater_spec.rb
|
|
146
146
|
- spec/spec_helper.rb
|
|
147
|
+
has_rdoc:
|