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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a854e3f252d2bb668732ba35bb166375eb71252a005a6f29b459c3681d5e932
4
- data.tar.gz: 72128bad7772567d4dba42c9333f594b99e0d2cd9a443a80b25eeb785c8a75a0
3
+ metadata.gz: d91b842e17b45b69c14a9d9ec5613de0a7e49481d24207020d9db3441ec18d1d
4
+ data.tar.gz: f528692bcdbae5dc791ad62ef338c5270df80e430fe14b0e63f68aab150c151d
5
5
  SHA512:
6
- metadata.gz: a9eca39e45286ec6852f2d586d439ee195d3dcea8a35336cd1e4372de8937b62fa5667bd3c3654f6bf70c53c0ac2e0f3612bfaa50de3d89b2a733925d417e389
7
- data.tar.gz: 636ee4cb004da84ab48ebf0cc081fc8465e0be1cdd6e57109568a3842eb7846a2bc95ca97bda86dbca28a698f55a4a5da9fc9a10b3768a5d5faa3cca15cf747c
6
+ metadata.gz: d90d6ee4ad885617216af3b9eed5f2efe4960a9cab55c98c03e95f035d471fcf4c5a3872cc93f74cf7fbd2c2cc9b737e326d28c5227d1cd958a373404b0d879f
7
+ data.tar.gz: aa6327cc6f3b25fcdadf4bcfcc8f8e15f800605b077768f33bb32b1db25fec04f14a6d95d9a411b8825c33fec08653d5035807d025b99be9b7b168075f69ddee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ip2asn (1.0.0)
4
+ ip2asn (1.0.1)
5
5
  rest-client (~> 1.7.3)
6
6
  unirest
7
7
 
@@ -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['error'] if resp.body.key?('error')
11
- raise resp
10
+ raise resp.body
12
11
  end
13
12
  return resp.body unless json
14
13
  return resp.raw_body
@@ -1,3 +1,3 @@
1
1
  module IP2ASN
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ip2asn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kent 'picat' Gruber