proxy_pool 0.1.0 → 0.1.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/Gemfile.lock +2 -2
- data/lib/proxy_pool/dealer.rb +4 -3
- data/lib/proxy_pool/version.rb +1 -1
- data/proxy_pool.gemspec +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5df2dcb6b28092b782f2776fa189916c74e33b675fe9a63f527e1300686d6336
|
|
4
|
+
data.tar.gz: b2bb0c3eee1091c3e768d89cc3a3de34be31d5042a7df4d95e4768dbac869c79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b02af548b629fd004984bf536609cdd30b164e6f3c430cbd659fd5aeca589c977c86fd711f49db69798ab7958f751f38801d0cd09587ff900754d7552066e414
|
|
7
|
+
data.tar.gz: 9795bd28b5fdae004f1747c8b48c55bfab0f90f034eede05d88abdb272577e48d3670bbb7cf8f1abafd64789545e493da572668c6bf14548a10c97a245eafd93
|
data/Gemfile.lock
CHANGED
|
@@ -22,7 +22,7 @@ GEM
|
|
|
22
22
|
http_parser.rb (0.6.0)
|
|
23
23
|
minitest (5.11.3)
|
|
24
24
|
public_suffix (3.1.1)
|
|
25
|
-
rake (
|
|
25
|
+
rake (13.0.1)
|
|
26
26
|
unf (0.1.4)
|
|
27
27
|
unf_ext
|
|
28
28
|
unf_ext (0.0.7.6)
|
|
@@ -34,7 +34,7 @@ DEPENDENCIES
|
|
|
34
34
|
bundler (~> 2.0)
|
|
35
35
|
minitest (~> 5.0)
|
|
36
36
|
proxy_pool!
|
|
37
|
-
rake (~>
|
|
37
|
+
rake (~> 13.0)
|
|
38
38
|
|
|
39
39
|
BUNDLED WITH
|
|
40
40
|
2.0.2
|
data/lib/proxy_pool/dealer.rb
CHANGED
|
@@ -44,11 +44,12 @@ module ProxyPool
|
|
|
44
44
|
|
|
45
45
|
# Get a random proxy
|
|
46
46
|
#
|
|
47
|
-
# @param anonymous [
|
|
47
|
+
# @param anonymous [Boolean] Return high anonymous proxy if true
|
|
48
48
|
# @param filter [Hash] Filter
|
|
49
|
+
# @param update [Boolean] Update pool before select proxy server
|
|
49
50
|
# @return [Hash] Proxy
|
|
50
|
-
def get(anonymous=true, filter={})
|
|
51
|
-
update if @transparent_pools.nil? && @anonymous_pools.nil?
|
|
51
|
+
def get(anonymous=true, filter={}, update=false)
|
|
52
|
+
update if update || (@transparent_pools.nil? && @anonymous_pools.nil?)
|
|
52
53
|
|
|
53
54
|
target_pools = if anonymous
|
|
54
55
|
@anonymous_pools
|
data/lib/proxy_pool/version.rb
CHANGED
data/proxy_pool.gemspec
CHANGED
|
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.require_paths = ["lib"]
|
|
29
29
|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 2.0"
|
|
31
|
-
spec.add_development_dependency "rake", "~>
|
|
31
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
32
32
|
spec.add_development_dependency "minitest", "~> 5.0"
|
|
33
33
|
|
|
34
|
-
spec.add_runtime_dependency 'http', '~> 4.
|
|
34
|
+
spec.add_runtime_dependency 'http', '~> 4.4', '>= 4.4.1'
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: proxy_pool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- hi_ztz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '13.0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '13.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: minitest
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,20 +58,20 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '4.
|
|
61
|
+
version: '4.4'
|
|
62
62
|
- - ">="
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: 4.
|
|
64
|
+
version: 4.4.1
|
|
65
65
|
type: :runtime
|
|
66
66
|
prerelease: false
|
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
|
69
69
|
- - "~>"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '4.
|
|
71
|
+
version: '4.4'
|
|
72
72
|
- - ">="
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 4.
|
|
74
|
+
version: 4.4.1
|
|
75
75
|
description: proxy_pool can give you free and random proxy ip
|
|
76
76
|
email:
|
|
77
77
|
- hi_ztz@protonmail.com
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 3.0.
|
|
119
|
+
rubygems_version: 3.0.8
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: select a ip from proxy list randomly
|