rdap 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rdap.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44bcf18831f152631c1aa6622ed34234f9a1278d97ca1817eceb74d85df13da3
|
|
4
|
+
data.tar.gz: d3f2ceb9e57741d94bb7d6ec6818cfd84ae7260410b6a75354fa3df6047ff4ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f065c251808541b6bee45399324bd673d37d5ce1ae2715a6c715a540e2804eb0cdd9b65a4514dbd7da9d938a009e9028bb435a0100b42056f1cbee4db8d10b5
|
|
7
|
+
data.tar.gz: 20ef69aa7d7d10484f9ab3c5dd0eb3d1f8b14aa72d673cea5797fa689614d39c6ae884563b245372303d8d535029e873dd63981bd4dde3450373d7def1ff29f2
|
data/lib/rdap.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'net/http'
|
|
|
3
3
|
require 'ipaddr'
|
|
4
4
|
|
|
5
5
|
module RDAP
|
|
6
|
-
VERSION = "1.0.
|
|
6
|
+
VERSION = "1.0.1"
|
|
7
7
|
BOOTSTRAP = "https://rdap.org/"
|
|
8
8
|
TYPES = [:domain, :ip, :autnum].freeze
|
|
9
9
|
HEADERS = {
|
|
@@ -15,6 +15,7 @@ module RDAP
|
|
|
15
15
|
class Error < StandardError; end
|
|
16
16
|
class ServerError < Error; end
|
|
17
17
|
class SSLError < ServerError; end
|
|
18
|
+
class ConnectionError < ServerError; end
|
|
18
19
|
class EmptyResponse < ServerError; end
|
|
19
20
|
class InvalidResponse < ServerError; end
|
|
20
21
|
class NotFound < Error; end
|
|
@@ -117,5 +118,8 @@ module RDAP
|
|
|
117
118
|
raise SSLError.new("#{e.message} (#{uri.host})")
|
|
118
119
|
rescue JSON::ParserError => e
|
|
119
120
|
raise InvalidResponse.new("JSON parser error: #{e.message}")
|
|
121
|
+
rescue Timeout::Error, IOError, SocketError, SystemCallError => e
|
|
122
|
+
# Transport failures (timeouts, DNS, connection reset/refused, EOF, ...)
|
|
123
|
+
raise ConnectionError.new("#{e.class}: #{e.message} (#{uri.host})")
|
|
120
124
|
end
|
|
121
125
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rdap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrien Rey-Jarthon
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-09-10 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
email:
|
|
13
13
|
- jobs@adrienjarthon.com
|