ip2asn 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ip2asn.rb +1 -2
- data/lib/ip2asn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91b842e17b45b69c14a9d9ec5613de0a7e49481d24207020d9db3441ec18d1d
|
4
|
+
data.tar.gz: f528692bcdbae5dc791ad62ef338c5270df80e430fe14b0e63f68aab150c151d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90d6ee4ad885617216af3b9eed5f2efe4960a9cab55c98c03e95f035d471fcf4c5a3872cc93f74cf7fbd2c2cc9b737e326d28c5227d1cd958a373404b0d879f
|
7
|
+
data.tar.gz: aa6327cc6f3b25fcdadf4bcfcc8f8e15f800605b077768f33bb32b1db25fec04f14a6d95d9a411b8825c33fec08653d5035807d025b99be9b7b168075f69ddee
|
data/Gemfile.lock
CHANGED
data/lib/ip2asn.rb
CHANGED
@@ -7,8 +7,7 @@ module IP2ASN
|
|
7
7
|
def self.check(ip_address, json: false)
|
8
8
|
resp = Unirest.get URL + ip_address
|
9
9
|
if resp.code != 200
|
10
|
-
raise resp.body
|
11
|
-
raise resp
|
10
|
+
raise resp.body
|
12
11
|
end
|
13
12
|
return resp.body unless json
|
14
13
|
return resp.raw_body
|
data/lib/ip2asn/version.rb
CHANGED