whois 6.0.0 → 6.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/.github/workflows/tests.yml +1 -0
- data/.rubocop_todo.yml +11 -87
- data/CHANGELOG.md +7 -0
- data/bin/whoisrb +3 -3
- data/data/tld.json +2 -769
- data/lib/whois/client.rb +1 -1
- data/lib/whois/record.rb +1 -1
- data/lib/whois/server/adapters/arpa.rb +3 -5
- data/lib/whois/server/adapters/base.rb +3 -3
- data/lib/whois/server/adapters/none.rb +1 -1
- data/lib/whois/server/adapters/not_implemented.rb +1 -1
- data/lib/whois/server/adapters/web.rb +1 -1
- data/lib/whois/server/socket_handler.rb +3 -3
- data/lib/whois/server.rb +5 -5
- data/lib/whois/version.rb +1 -1
- data/lib/whois.rb +18 -18
- data/spec/integration/whois_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/spec/whois/client_spec.rb +1 -1
- data/spec/whois/record/part_spec.rb +1 -1
- data/spec/whois/record_spec.rb +26 -18
- data/spec/whois/server/adapters/afilias_spec.rb +1 -1
- data/spec/whois/server/adapters/arin_spec.rb +1 -1
- data/spec/whois/server/adapters/arpa_spec.rb +2 -2
- data/spec/whois/server/adapters/base_spec.rb +17 -12
- data/spec/whois/server/adapters/formatted_spec.rb +1 -1
- data/spec/whois/server/adapters/none_spec.rb +1 -1
- data/spec/whois/server/adapters/not_implemented_spec.rb +2 -2
- data/spec/whois/server/adapters/standard_spec.rb +1 -1
- data/spec/whois/server/adapters/verisign_spec.rb +1 -1
- data/spec/whois/server/adapters/web_spec.rb +1 -1
- data/spec/whois/server/socket_handler_spec.rb +2 -2
- data/spec/whois/server_spec.rb +51 -51
- data/spec/whois/web_interface_error_spec.rb +1 -1
- data/spec/whois/whois_spec.rb +1 -1
- data/utils/deftld.rb +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9783dca8336df04d4554e54f30f71d58c5d5dbdb9a4857e513b37be4ca3aae09
|
|
4
|
+
data.tar.gz: cfecb0ebe734dcdc78825d09dccf208bc4f47dcc212fa1a4df97b7bef9f74ea1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6da4a414226e3f3b838f5a5df21d0598ccd90e133eb46174bef22e52bd8a8eff945cff85dcbb41644ca6a9fc03e77c580885b5dfbb755a0e8e68ad4a4255741b
|
|
7
|
+
data.tar.gz: 4aeadb9da22d6fb89b71e49fbe2986f33f45ee7917f7389f443af15ff44233cfc34db9d6bbc6359a55618ab9303d2b921a750d3b8edefe773bc89a137cedd653
|
data/.github/workflows/tests.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2024-11-22 13:51:42 UTC using RuboCop version 1.68.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count: 5
|
|
10
|
-
# Cop supports --auto-correct.
|
|
11
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
12
|
-
Lint/UnusedMethodArgument:
|
|
13
|
-
Exclude:
|
|
14
|
-
- 'lib/whois.rb'
|
|
15
|
-
- 'lib/whois/server.rb'
|
|
16
|
-
- 'lib/whois/server/adapters/none.rb'
|
|
17
|
-
- 'lib/whois/server/adapters/not_implemented.rb'
|
|
18
|
-
- 'lib/whois/server/adapters/web.rb'
|
|
19
|
-
|
|
20
|
-
# Offense count: 61
|
|
21
|
-
# Cop supports --auto-correct.
|
|
22
|
-
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
|
23
|
-
# SupportedStyles: described_class, explicit
|
|
24
|
-
RSpec/DescribedClass:
|
|
25
|
-
Exclude:
|
|
26
|
-
- 'spec/integration/whois_spec.rb'
|
|
27
|
-
- 'spec/whois/server/adapters/not_implemented_spec.rb'
|
|
28
|
-
- 'spec/whois/server_spec.rb'
|
|
29
|
-
|
|
30
9
|
# Offense count: 35
|
|
31
|
-
# Configuration parameters:
|
|
10
|
+
# Configuration parameters: CountAsOne.
|
|
32
11
|
RSpec/ExampleLength:
|
|
33
|
-
|
|
34
|
-
- 'spec/integration/whois_spec.rb'
|
|
35
|
-
- 'spec/whois/client_spec.rb'
|
|
36
|
-
- 'spec/whois/record/part_spec.rb'
|
|
37
|
-
- 'spec/whois/record_spec.rb'
|
|
38
|
-
- 'spec/whois/server/adapters/afilias_spec.rb'
|
|
39
|
-
- 'spec/whois/server/adapters/arin_spec.rb'
|
|
40
|
-
- 'spec/whois/server/adapters/arpa_spec.rb'
|
|
41
|
-
- 'spec/whois/server/adapters/formatted_spec.rb'
|
|
42
|
-
- 'spec/whois/server/adapters/none_spec.rb'
|
|
43
|
-
- 'spec/whois/server/adapters/standard_spec.rb'
|
|
44
|
-
- 'spec/whois/server/adapters/verisign_spec.rb'
|
|
45
|
-
- 'spec/whois/server/socket_handler_spec.rb'
|
|
46
|
-
- 'spec/whois/server_spec.rb'
|
|
12
|
+
Max: 17
|
|
47
13
|
|
|
48
14
|
# Offense count: 4
|
|
49
15
|
# Configuration parameters: AssignmentOnly.
|
|
@@ -58,26 +24,18 @@ RSpec/InstanceVariable:
|
|
|
58
24
|
RSpec/MessageSpies:
|
|
59
25
|
EnforcedStyle: receive
|
|
60
26
|
|
|
61
|
-
# Offense count:
|
|
27
|
+
# Offense count: 71
|
|
62
28
|
RSpec/MultipleExpectations:
|
|
63
29
|
Max: 5
|
|
64
30
|
|
|
65
31
|
# Offense count: 8
|
|
66
|
-
# Configuration parameters: IgnoreSharedExamples.
|
|
32
|
+
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
|
33
|
+
# SupportedStyles: always, named_only
|
|
67
34
|
RSpec/NamedSubject:
|
|
68
35
|
Exclude:
|
|
69
36
|
- 'spec/whois/record_spec.rb'
|
|
70
37
|
- 'spec/whois/server/socket_handler_spec.rb'
|
|
71
38
|
|
|
72
|
-
# Offense count: 15
|
|
73
|
-
# Cop supports --auto-correct.
|
|
74
|
-
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
|
75
|
-
# SupportedStyles: inflected, explicit
|
|
76
|
-
RSpec/PredicateMatcher:
|
|
77
|
-
Exclude:
|
|
78
|
-
- 'spec/whois/record_spec.rb'
|
|
79
|
-
- 'spec/whois/server/adapters/base_spec.rb'
|
|
80
|
-
|
|
81
39
|
# Offense count: 40
|
|
82
40
|
RSpec/StubbedMock:
|
|
83
41
|
Exclude:
|
|
@@ -98,17 +56,16 @@ RSpec/SubjectStub:
|
|
|
98
56
|
Exclude:
|
|
99
57
|
- 'spec/whois/server/socket_handler_spec.rb'
|
|
100
58
|
|
|
101
|
-
# Offense count:
|
|
102
|
-
#
|
|
103
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods,
|
|
59
|
+
# Offense count: 30
|
|
60
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
61
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
104
62
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
105
63
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
106
64
|
# FunctionalMethods: let, let!, subject, watch
|
|
107
|
-
#
|
|
65
|
+
# AllowedMethods: lambda, proc, it
|
|
108
66
|
Style/BlockDelimiters:
|
|
109
67
|
Exclude:
|
|
110
68
|
- 'spec/whois/client_spec.rb'
|
|
111
|
-
- 'spec/whois/errors_spec.rb'
|
|
112
69
|
- 'spec/whois/record/part_spec.rb'
|
|
113
70
|
- 'spec/whois/record_spec.rb'
|
|
114
71
|
- 'spec/whois/server/adapters/base_spec.rb'
|
|
@@ -120,6 +77,7 @@ Style/BlockDelimiters:
|
|
|
120
77
|
- 'spec/whois/server_spec.rb'
|
|
121
78
|
|
|
122
79
|
# Offense count: 6
|
|
80
|
+
# Configuration parameters: AllowedConstants.
|
|
123
81
|
Style/Documentation:
|
|
124
82
|
Exclude:
|
|
125
83
|
- 'spec/**/*'
|
|
@@ -130,37 +88,3 @@ Style/Documentation:
|
|
|
130
88
|
- 'lib/whois/server/adapters/arpa.rb'
|
|
131
89
|
- 'lib/whois/server/adapters/base.rb'
|
|
132
90
|
- 'lib/whois/server/adapters/not_implemented.rb'
|
|
133
|
-
|
|
134
|
-
# Offense count: 8
|
|
135
|
-
# Configuration parameters: MinBodyLength.
|
|
136
|
-
Style/GuardClause:
|
|
137
|
-
Exclude:
|
|
138
|
-
- 'lib/whois.rb'
|
|
139
|
-
- 'lib/whois/server.rb'
|
|
140
|
-
- 'lib/whois/server/adapters/afilias.rb'
|
|
141
|
-
- 'lib/whois/server/adapters/arin.rb'
|
|
142
|
-
- 'lib/whois/server/adapters/arpa.rb'
|
|
143
|
-
- 'lib/whois/server/adapters/verisign.rb'
|
|
144
|
-
- 'spec/support/helpers/connectivity_helper.rb'
|
|
145
|
-
|
|
146
|
-
# Offense count: 13
|
|
147
|
-
# Cop supports --auto-correct.
|
|
148
|
-
Style/ParallelAssignment:
|
|
149
|
-
Exclude:
|
|
150
|
-
- 'spec/whois/record_spec.rb'
|
|
151
|
-
- 'spec/whois/server/adapters/base_spec.rb'
|
|
152
|
-
|
|
153
|
-
# Offense count: 1
|
|
154
|
-
# Cop supports --auto-correct.
|
|
155
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
156
|
-
# AllowedMethods: present?, blank?, presence, try, try!
|
|
157
|
-
Style/SafeNavigation:
|
|
158
|
-
Exclude:
|
|
159
|
-
- 'lib/whois/server/socket_handler.rb'
|
|
160
|
-
|
|
161
|
-
# Offense count: 44
|
|
162
|
-
# Cop supports --auto-correct.
|
|
163
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
164
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
165
|
-
Style/StringLiterals:
|
|
166
|
-
Enabled: false
|
data/CHANGELOG.md
CHANGED
data/bin/whoisrb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
$LOAD_PATH.unshift(File.expand_path(
|
|
4
|
+
$LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
|
|
5
5
|
|
|
6
|
-
require
|
|
7
|
-
require
|
|
6
|
+
require "optparse"
|
|
7
|
+
require "whois"
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
options = {}
|