nx-real-ip 0.1.2 → 0.1.3

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: 4e66c2d1f1dbb6a88dfda0f27755b24071dbc9b47394937d2263f99f555efaa6
4
- data.tar.gz: c17296f1c97b3ed1e5a5cb25476e13c76ebbb47836c4e34b36f259da36b49e37
3
+ metadata.gz: fe1595517abbe15c6aeddef2ba53675b53c4c5f6e70f3241f9868cd15c5110a1
4
+ data.tar.gz: c1218d1b56c4387a8a5d1a54ce2671046ac2a98c6d4a6690e08176b5712045dc
5
5
  SHA512:
6
- metadata.gz: ace21da77a06135ddce177bb336794ddcb135c590ccd0e2ee2060b2f0eb928433b2f782acd0a6e9c7b872273fba896432d6a096549eea97765b6f3a3509b805a
7
- data.tar.gz: 924eef59109ee76412787afab01592dc74b2e9bd62ab7a2bcb665d52cf2e1f2159a04924751027d219ba5199b4f0864a2ce8ac1e356f53c17f40e9aad7c249a4
6
+ metadata.gz: 3454e9a46f80c635fa99b55f37b3381319189fccab476324be422f0034d8fd194254cc42c7a36ff312cf331d1960196812d55d13727cf5716f4dd634d945fa93
7
+ data.tar.gz: 659b14c01f6da8253907e7bd63a58fa412faf0290bdda2362deb21232676eea645dfb124aa52cdf449574ee74dc5fd2b82b8234043cf1868ad7a251784b68d80
data/lib/nx/real-ip.rb CHANGED
@@ -2,7 +2,7 @@ require "open-uri"
2
2
 
3
3
  module Nx
4
4
  class RealIp
5
- def get(args = { timeout: 5, proxy: nil })
5
+ def self.get(args = { timeout: 5, proxy: nil })
6
6
  real_ip = open(
7
7
  "http://icanhazip.com/",
8
8
  read_timeout: args[:timeout],
data/lib/nx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class RealIp
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nx-real-ip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
@@ -60,7 +60,7 @@ files:
60
60
  - lib/nx-real-ip.rb
61
61
  - lib/nx/real-ip.rb
62
62
  - lib/nx/version.rb
63
- - nx-real-ip-0.1.1.gem
63
+ - nx-real-ip-0.1.2.gem
64
64
  - nx-real-ip.gemspec
65
65
  homepage: https://github.com/afeiship/nx-real-ip
66
66
  licenses:
data/nx-real-ip-0.1.1.gem DELETED
Binary file