nx-us-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: 338809cea748ec918326556d78aae7f60790a28fddaee9e0e0250d8cd72f0d51
4
- data.tar.gz: e187bbe912bedcbbece954d1da1435e9ed2329003b640ae2cc902682ba4943fd
3
+ metadata.gz: cc2749389d5b671862250729ef3b18f769fc0afc8646a9def4f3e69214a9727c
4
+ data.tar.gz: c0d685a9a61c7f533f6a1e4e56bf072568dff4c4cd6b5c1ca678a2699622dca2
5
5
  SHA512:
6
- metadata.gz: 765b6bc3c19241bf48398d7b2e5e8df6d5851eb3c70446e129be84fe70d7c95e814e03aa0e046bd4544cbede32462474a3383a7683f464e7bf3593d34ea0595e
7
- data.tar.gz: 9dc61cea1e681d482010008a39ccf8402d57786e898220dfb8c07adfe1d43a11a558189d06e5c000bc8ddddf4a2cdff960eadc500c2d77bf1bf0c2127abd1606
6
+ metadata.gz: e00e59dcba8f40a0bb1a08a1f93ddb61a6f84a536201967819e2c6a66e91408ac04af507c54b0ed6d6c1c2a82eb0c43495c0667c38919e9f292de1ba0d223b8b
7
+ data.tar.gz: b5dd6ca12f57d3792571fe4652ef6c604213bb3c7b4b28d6ed5d9a6009154f1da9234ffb48099e748b692445a2c802f7dbb38188781119976f9915ac71e78a14
data/README.md CHANGED
@@ -26,3 +26,6 @@ Nx::UsProxy::fetch
26
26
  # ...
27
27
  ]
28
28
  ```
29
+
30
+ ## resources
31
+ - https://www.us-proxy.org/
@@ -0,0 +1,17 @@
1
+ require "open-uri"
2
+
3
+ real_ip = res = open(
4
+ "http://icanhazip.com/",
5
+ read_timeout: 5,
6
+ ).read.strip
7
+
8
+ proxy_ip = open(
9
+ "http://icanhazip.com/",
10
+ read_timeout: 5,
11
+ proxy: "http://209.141.46.133:8080",
12
+ ).read.strip
13
+
14
+ p real_ip, proxy_ip
15
+
16
+ # "112.112.110.6"
17
+ # "209.141.46.133"
@@ -1,2 +1,2 @@
1
- require "nx/version"
2
- require "nx/us-proxy"
1
+ require_relative "./nx/version"
2
+ require_relative "./nx/us-proxy"
@@ -3,12 +3,11 @@ require "open-uri"
3
3
 
4
4
  module Nx
5
5
  class UsProxy
6
- def self.fetch(proxy = "http://127.0.0.1:9090")
6
+ def self.fetch()
7
7
  doc = Nokogiri::HTML(
8
8
  open(
9
9
  "https://www.us-proxy.org/",
10
10
  read_timeout: 5,
11
- proxy: proxy,
12
11
  )
13
12
  )
14
13
 
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class UsProxy
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-us-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-02-29 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,12 +69,13 @@ files:
69
69
  - Gemfile
70
70
  - README.md
71
71
  - Rakefile
72
+ - __tests__/api.test.rb
72
73
  - bin/console
73
74
  - bin/setup
74
75
  - lib/nx-us-proxy.rb
75
76
  - lib/nx/us-proxy.rb
76
77
  - lib/nx/version.rb
77
- - nx-us-proxy-0.1.0.gem
78
+ - nx-us-proxy-0.1.1.gem
78
79
  - nx-us-proxy.gemspec
79
80
  homepage: https://github.com/afeiship/nx-us-proxy
80
81
  licenses:
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  requirements: []
98
- rubygems_version: 3.1.2
99
+ rubygems_version: 3.0.3
99
100
  signing_key:
100
101
  specification_version: 4
101
102
  summary: Get us free proxies.
Binary file