nx-spys-proxy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -2
- data/lib/nx/spys-proxy.rb +1 -3
- data/lib/nx/version.rb +1 -1
- data/nx-spys-proxy-0.1.1.gem +0 -0
- metadata +3 -3
- data/nx-spys-proxy-0.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfc75c504e3440e9e0f01eeaca652f05bd65ff765e0d8727cf3a7367b681f9f4
|
4
|
+
data.tar.gz: caa4ca187fa8b16bbb3528a134c99530f1331543d1e142cb9e185e275a5185fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce80e0851978848eba72849be222530945f63a02c66ce5b3e12917e6338ceb7d780d773684d6880e993eb97bf9e25f1ad47f1e73b6983b969bdc0c0427f93533
|
7
|
+
data.tar.gz: 479b98daa27d0c51bcb3aca0952d7173e52da8d5e1ee00d12ae02074a97c9b2420495b7110d2087b657f369bcc44dc9ad42808597c2008a5114d7feb492281c8
|
data/README.md
CHANGED
@@ -11,9 +11,24 @@ gem 'nx-spys-proxy', git: 'git@github.com:afeiship/nx-spys-proxy.git'
|
|
11
11
|
|
12
12
|
## usage
|
13
13
|
```rb
|
14
|
-
Nx::SpysProxy::
|
14
|
+
Nx::SpysProxy::fetch
|
15
15
|
|
16
|
-
#
|
16
|
+
# results
|
17
|
+
[
|
18
|
+
{
|
19
|
+
:ip => "202.105.136.92",
|
20
|
+
:port => "3128",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
:ip => "223.247.158.170",
|
24
|
+
:port => "8080",
|
25
|
+
},
|
26
|
+
{
|
27
|
+
:ip => "114.67.71.90",
|
28
|
+
:port => "80",
|
29
|
+
},
|
30
|
+
# ... total: 93
|
31
|
+
]
|
17
32
|
```
|
18
33
|
|
19
34
|
## build/publish
|
@@ -24,3 +39,6 @@ gem build nx-spys-proxy.gemspec
|
|
24
39
|
# publish
|
25
40
|
gem push nx-spys-proxy-0.1.0.gem
|
26
41
|
```
|
42
|
+
|
43
|
+
## resources
|
44
|
+
- http://spys.one/free-proxy-list/CN/
|
data/lib/nx/spys-proxy.rb
CHANGED
@@ -15,8 +15,7 @@ module Nx
|
|
15
15
|
data
|
16
16
|
end
|
17
17
|
|
18
|
-
def initialize
|
19
|
-
@proxy = proxy
|
18
|
+
def initialize
|
20
19
|
@ip_re = /\d+\.\d+\.\d+\.\d+/
|
21
20
|
@ports = {
|
22
21
|
3128 => "1",
|
@@ -30,7 +29,6 @@ module Nx
|
|
30
29
|
open(
|
31
30
|
"http://spys.one/free-proxy-list/CN/",
|
32
31
|
read_timeout: 5,
|
33
|
-
proxy: @proxy,
|
34
32
|
)
|
35
33
|
)
|
36
34
|
|
data/lib/nx/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nx-spys-proxy
|
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
|
- afeiship
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- lib/nx-spys-proxy.rb
|
61
61
|
- lib/nx/spys-proxy.rb
|
62
62
|
- lib/nx/version.rb
|
63
|
-
- nx-spys-proxy-0.1.
|
63
|
+
- nx-spys-proxy-0.1.1.gem
|
64
64
|
- nx-spys-proxy.gemspec
|
65
65
|
homepage: https://github.com/afeiship/nx-spys-proxy
|
66
66
|
licenses:
|
data/nx-spys-proxy-0.1.0.gem
DELETED
Binary file
|