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 +4 -4
- data/README.md +3 -0
- data/__tests__/api.test.rb +17 -0
- data/lib/nx-us-proxy.rb +2 -2
- data/lib/nx/us-proxy.rb +1 -2
- data/lib/nx/version.rb +1 -1
- data/nx-us-proxy-0.1.1.gem +0 -0
- metadata +5 -4
- data/nx-us-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: cc2749389d5b671862250729ef3b18f769fc0afc8646a9def4f3e69214a9727c
|
4
|
+
data.tar.gz: c0d685a9a61c7f533f6a1e4e56bf072568dff4c4cd6b5c1ca678a2699622dca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00e59dcba8f40a0bb1a08a1f93ddb61a6f84a536201967819e2c6a66e91408ac04af507c54b0ed6d6c1c2a82eb0c43495c0667c38919e9f292de1ba0d223b8b
|
7
|
+
data.tar.gz: b5dd6ca12f57d3792571fe4652ef6c604213bb3c7b4b28d6ed5d9a6009154f1da9234ffb48099e748b692445a2c802f7dbb38188781119976f9915ac71e78a14
|
data/README.md
CHANGED
@@ -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"
|
data/lib/nx-us-proxy.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative "./nx/version"
|
2
|
+
require_relative "./nx/us-proxy"
|
data/lib/nx/us-proxy.rb
CHANGED
data/lib/nx/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
99
|
+
rubygems_version: 3.0.3
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: Get us free proxies.
|
data/nx-us-proxy-0.1.0.gem
DELETED
Binary file
|