whois 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +1 -0
  3. data/.rubocop_todo.yml +11 -87
  4. data/CHANGELOG.md +7 -0
  5. data/bin/whoisrb +3 -3
  6. data/data/tld.json +2 -769
  7. data/lib/whois/client.rb +1 -1
  8. data/lib/whois/record.rb +1 -1
  9. data/lib/whois/server/adapters/arpa.rb +3 -5
  10. data/lib/whois/server/adapters/base.rb +3 -3
  11. data/lib/whois/server/adapters/none.rb +1 -1
  12. data/lib/whois/server/adapters/not_implemented.rb +1 -1
  13. data/lib/whois/server/adapters/web.rb +1 -1
  14. data/lib/whois/server/socket_handler.rb +3 -3
  15. data/lib/whois/server.rb +5 -5
  16. data/lib/whois/version.rb +1 -1
  17. data/lib/whois.rb +18 -18
  18. data/spec/integration/whois_spec.rb +2 -2
  19. data/spec/spec_helper.rb +2 -2
  20. data/spec/whois/client_spec.rb +1 -1
  21. data/spec/whois/record/part_spec.rb +1 -1
  22. data/spec/whois/record_spec.rb +26 -18
  23. data/spec/whois/server/adapters/afilias_spec.rb +1 -1
  24. data/spec/whois/server/adapters/arin_spec.rb +1 -1
  25. data/spec/whois/server/adapters/arpa_spec.rb +2 -2
  26. data/spec/whois/server/adapters/base_spec.rb +17 -12
  27. data/spec/whois/server/adapters/formatted_spec.rb +1 -1
  28. data/spec/whois/server/adapters/none_spec.rb +1 -1
  29. data/spec/whois/server/adapters/not_implemented_spec.rb +2 -2
  30. data/spec/whois/server/adapters/standard_spec.rb +1 -1
  31. data/spec/whois/server/adapters/verisign_spec.rb +1 -1
  32. data/spec/whois/server/adapters/web_spec.rb +1 -1
  33. data/spec/whois/server/socket_handler_spec.rb +2 -2
  34. data/spec/whois/server_spec.rb +51 -51
  35. data/spec/whois/web_interface_error_spec.rb +1 -1
  36. data/spec/whois/whois_spec.rb +1 -1
  37. data/utils/deftld.rb +0 -1
  38. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 233983f2127c776b5e77d6ac832a4443aa21a8da7dcc09dba31c76772926783a
4
- data.tar.gz: 84ee1063c4dbdded63b6b6d83aaaf957a44f548eda71cba420a249a887a7f5e4
3
+ metadata.gz: 9783dca8336df04d4554e54f30f71d58c5d5dbdb9a4857e513b37be4ca3aae09
4
+ data.tar.gz: cfecb0ebe734dcdc78825d09dccf208bc4f47dcc212fa1a4df97b7bef9f74ea1
5
5
  SHA512:
6
- metadata.gz: 7acf2553be68cc588e3850e6b9ed2339bfa8c63b138c63511d6c4b3dacbbe8f63bdf9b074a9823606f7e6f56c5925adda2d0ad781742eedc2c16d9eb5e5d6eca
7
- data.tar.gz: 59137ef3644bf7a5ac1ba42622550b9eb3aabdbb2f90a78d5eba3da69c5163d494630f430c94e166bec430dd77ba5df080d126bb48d05d596fa442e72ca275de
6
+ metadata.gz: 6da4a414226e3f3b838f5a5df21d0598ccd90e133eb46174bef22e52bd8a8eff945cff85dcbb41644ca6a9fc03e77c580885b5dfbb755a0e8e68ad4a4255741b
7
+ data.tar.gz: 4aeadb9da22d6fb89b71e49fbe2986f33f45ee7917f7389f443af15ff44233cfc34db9d6bbc6359a55618ab9303d2b921a750d3b8edefe773bc89a137cedd653
@@ -13,6 +13,7 @@ jobs:
13
13
  - "3.0"
14
14
  - "3.1"
15
15
  - "3.2"
16
+ - "3.3"
16
17
  platform: [ubuntu-latest]
17
18
  runs-on: ${{ matrix.platform }}
18
19
  steps:
data/.rubocop_todo.yml CHANGED
@@ -1,49 +1,15 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-03-02 10:06:13 UTC using RuboCop version 1.11.0.
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: Max.
10
+ # Configuration parameters: CountAsOne.
32
11
  RSpec/ExampleLength:
33
- Exclude:
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: 70
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: 31
102
- # Cop supports --auto-correct.
103
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
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
- # IgnoredMethods: lambda, proc, it
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
@@ -3,6 +3,13 @@
3
3
  This project uses [Semantic Versioning 2.0.0](http://semver.org/).
4
4
 
5
5
 
6
+ ## Release 6.0.1
7
+
8
+ ### Changed
9
+
10
+ - SERVER: Updated .TV (GH-662).
11
+
12
+
6
13
  ## Release 6.0.0
7
14
 
8
15
  ### Fixed
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('../lib', __dir__))
4
+ $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
5
5
 
6
- require 'optparse'
7
- require 'whois'
6
+ require "optparse"
7
+ require "whois"
8
8
 
9
9
 
10
10
  options = {}