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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5147d462f30b65079e689dd7f60384cfc950387df72465b2dcd65face97df3d
4
- data.tar.gz: da1d9692f8b0029a29db86aa47f05131e3a1b56b697a7228721804a0907105fc
3
+ metadata.gz: dfc75c504e3440e9e0f01eeaca652f05bd65ff765e0d8727cf3a7367b681f9f4
4
+ data.tar.gz: caa4ca187fa8b16bbb3528a134c99530f1331543d1e142cb9e185e275a5185fe
5
5
  SHA512:
6
- metadata.gz: 83e1e5b36de486a9216c5ccd27e218e7837384b60dcf60c5d728a22d5a5ffec36ba3d78907ad1ae5ed88518ff96fcdd8785a8a56d80f19785a492f89f8db1fa3
7
- data.tar.gz: 38540e5d9563a83713647ada5a1188a64f0276213006f2e7b7752ee7057915a155304540700f0ada3c5de830f7edd53bc3a3e347889313c3b8b358af5812f802
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::hello
14
+ Nx::SpysProxy::fetch
15
15
 
16
- # hello world
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(proxy = "http://127.0.0.1:9090")
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
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class SpysProxy
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-03 00:00:00.000000000 Z
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.0.gem
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:
Binary file