ip_contact_finder 1.0.0.rc2 → 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: cdcdae6a540bd2965e12c86ec4e052db8b0f39c11d0bb80ff8a050f0a4bf18a2
4
- data.tar.gz: 5d4a8e9e4a13973e7f685e0cde0c807c823229525bc40a47cefbf0abc6c54686
3
+ metadata.gz: da98d2b498193e6fb166d143130e51196d00ddc46d0829e51f0c59c2c15b6f9c
4
+ data.tar.gz: ef89cad1449dddff6ea9d50fcb057d25d95cb992283336387f1e7f12c72dbbf7
5
5
  SHA512:
6
- metadata.gz: d5bf5aa0b770818250cf2cc9ef8e68b3f31f4dfc8feac7bf02e174167745b14327e8a215936bf4874cbdd8231bc97b663f9edbf14b53e1898c5e2ec0412391b8
7
- data.tar.gz: 62f682ef9104a79ba63e976940aa69704eeba01d9979118d30192cac916c1619c705b8cf434f6a048fecbe0fa7379749db6e398d1153e95b37049d9c129f9feb
6
+ metadata.gz: d2ace3a77aa71adfe3c04bc97e3510866cf9edf971172c06ea85adfb858ca03e7e1bfd8fe3bd4e9e5f964b52081416b9b211436b1079c7d572f9c9f106d3bdff
7
+ data.tar.gz: 81c066f2d36a0473bacbec2e6a3032c4eec4f0cb561a18b713e15b1d7bc2df63e0a407489eb639123f1bbfb3f01d8f66fda95a419784d43fd6a93f54401c3f7d
@@ -4,6 +4,7 @@ require 'net/http'
4
4
  require 'uri'
5
5
  require 'json'
6
6
  require 'ip_contact_finder/error'
7
+ require 'ip_contact_finder/version'
7
8
 
8
9
  module IPContactFinder
9
10
  class RDAP
@@ -54,6 +55,7 @@ module IPContactFinder
54
55
 
55
56
  @logger&.info "Making request to #{uri}"
56
57
 
58
+ http.start
57
59
  response = http.request(request)
58
60
  @logger&.info "Got response #{response.code}"
59
61
 
@@ -73,6 +75,8 @@ module IPContactFinder
73
75
  rescue SocketError, Errno::ECONNRESET, EOFError, Errno::EINVAL, Errno::ENETUNREACH, Errno::EHOSTUNREACH,
74
76
  Errno::ECONNREFUSED, OpenSSL::SSL::SSLError, Timeout::Error => e
75
77
  raise RequestError, "#{e.message} (#{e.class})"
78
+ ensure
79
+ http.finish
76
80
  end
77
81
  end
78
82
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ip_contact_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -193,11 +193,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ">"
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
- version: 1.3.1
198
+ version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.3.7
200
+ rubygems_version: 3.3.27
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: A Ruby library to resolve IP addresses and AS numbers to responsible email