whois 6.0.0 → 6.0.2

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +5 -7
  3. data/.github/workflows/release.yml +3 -2
  4. data/.github/workflows/tests.yml +5 -4
  5. data/.rubocop.yml +1 -1
  6. data/.rubocop_todo.yml +11 -88
  7. data/.tool-versions +1 -1
  8. data/CHANGELOG.md +14 -0
  9. data/CONTRIBUTING.md +6 -6
  10. data/Gemfile +2 -2
  11. data/bin/whoisrb +3 -3
  12. data/data/tld.json +18 -791
  13. data/lib/whois/client.rb +1 -1
  14. data/lib/whois/record.rb +1 -1
  15. data/lib/whois/server/adapters/arpa.rb +3 -5
  16. data/lib/whois/server/adapters/base.rb +3 -3
  17. data/lib/whois/server/adapters/none.rb +1 -1
  18. data/lib/whois/server/adapters/not_implemented.rb +1 -1
  19. data/lib/whois/server/adapters/web.rb +1 -1
  20. data/lib/whois/server/socket_handler.rb +3 -3
  21. data/lib/whois/server.rb +5 -5
  22. data/lib/whois/version.rb +1 -1
  23. data/lib/whois.rb +18 -18
  24. data/spec/integration/whois_spec.rb +2 -2
  25. data/spec/spec_helper.rb +2 -2
  26. data/spec/whois/client_spec.rb +1 -1
  27. data/spec/whois/record/part_spec.rb +1 -1
  28. data/spec/whois/record_spec.rb +26 -18
  29. data/spec/whois/server/adapters/afilias_spec.rb +1 -1
  30. data/spec/whois/server/adapters/arin_spec.rb +1 -1
  31. data/spec/whois/server/adapters/arpa_spec.rb +2 -2
  32. data/spec/whois/server/adapters/base_spec.rb +17 -12
  33. data/spec/whois/server/adapters/formatted_spec.rb +1 -1
  34. data/spec/whois/server/adapters/none_spec.rb +1 -1
  35. data/spec/whois/server/adapters/not_implemented_spec.rb +2 -2
  36. data/spec/whois/server/adapters/standard_spec.rb +1 -1
  37. data/spec/whois/server/adapters/verisign_spec.rb +1 -1
  38. data/spec/whois/server/adapters/web_spec.rb +1 -1
  39. data/spec/whois/server/socket_handler_spec.rb +9 -5
  40. data/spec/whois/server_spec.rb +51 -51
  41. data/spec/whois/web_interface_error_spec.rb +1 -1
  42. data/spec/whois/whois_spec.rb +1 -1
  43. data/utils/deftld.rb +0 -1
  44. metadata +4 -9
  45. data/.github/workflows/codeql-analysis.yml +0 -64
  46. data/4.0-Upgrade.md +0 -143
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 233983f2127c776b5e77d6ac832a4443aa21a8da7dcc09dba31c76772926783a
4
- data.tar.gz: 84ee1063c4dbdded63b6b6d83aaaf957a44f548eda71cba420a249a887a7f5e4
3
+ metadata.gz: e64d874205f6eca344d3975f0875549c7d5f2a002e3380544cf869bc1a13eb66
4
+ data.tar.gz: 76d7a2839d49787c470b1e555752916a7b6fae580816b97190f1b0edfcbbd656
5
5
  SHA512:
6
- metadata.gz: 7acf2553be68cc588e3850e6b9ed2339bfa8c63b138c63511d6c4b3dacbbe8f63bdf9b074a9823606f7e6f56c5925adda2d0ad781742eedc2c16d9eb5e5d6eca
7
- data.tar.gz: 59137ef3644bf7a5ac1ba42622550b9eb3aabdbb2f90a78d5eba3da69c5163d494630f430c94e166bec430dd77ba5df080d126bb48d05d596fa442e72ca275de
6
+ metadata.gz: 7cbd42e91809e62fc7f67ae51dff76392c8d706cff0443c7f26adb26b5590653c777f4e91158de1a75e6d43a96106fcb7d29aa1130dc14c293a0024f43bc010a
7
+ data.tar.gz: 81a76fb294b075cd2bb77e21fd337e9895694d01bd117abe8d694a26b32b8d1ab9df7af9375d21d51bc18d731637c50647df2ee5aa288b46391bcc1686c9fce0
@@ -1,19 +1,17 @@
1
+ ---
1
2
  version: 2
2
3
  updates:
3
4
  - package-ecosystem: bundler
4
5
  directory: /
5
6
  schedule:
6
- interval: daily
7
- time: "04:00"
7
+ interval: weekly
8
8
  open-pull-requests-limit: 10
9
9
  labels:
10
10
  - dependencies
11
11
 
12
- - package-ecosystem: "github-actions"
13
- directory: "/"
12
+ - package-ecosystem: github-actions
13
+ directory: /
14
14
  schedule:
15
- interval: "daily"
16
- time: "04:00"
17
- open-pull-requests-limit: 10
15
+ interval: weekly
18
16
  labels:
19
17
  - dependencies
@@ -1,4 +1,5 @@
1
- name: release
1
+ ---
2
+ name: Release
2
3
 
3
4
  on:
4
5
  workflow_dispatch:
@@ -10,7 +11,7 @@ jobs:
10
11
  release:
11
12
  runs-on: ubuntu-latest
12
13
  steps:
13
- - uses: actions/checkout@v4
14
+ - uses: actions/checkout@v5
14
15
  - name: Release Gem
15
16
  uses: cadwallion/publish-rubygems-action@94a6f4cd5350581749c569b5001eecc864e3ad0b
16
17
  env:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: Tests
2
3
 
3
4
  on:
@@ -13,10 +14,11 @@ jobs:
13
14
  - "3.0"
14
15
  - "3.1"
15
16
  - "3.2"
16
- platform: [ubuntu-latest]
17
- runs-on: ${{ matrix.platform }}
17
+ - "3.3"
18
+ - "3.4"
19
+ runs-on: ubuntu-latest
18
20
  steps:
19
- - uses: actions/checkout@v4
21
+ - uses: actions/checkout@v5
20
22
  - name: Set up Ruby
21
23
  uses: ruby/setup-ruby@v1
22
24
  with:
@@ -25,4 +27,3 @@ jobs:
25
27
  run: bundle install
26
28
  - name: Run tests
27
29
  run: bundle exec rake
28
-
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_from:
2
2
  - .rubocop_opinionated.yml
3
3
  - .rubocop_todo.yml
4
4
 
5
- require:
5
+ plugins:
6
6
  - rubocop-rspec
7
7
 
8
8
  AllCops:
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 2025-08-19 11:02:59 UTC using RuboCop version 1.79.2.
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,25 +24,16 @@ 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
- - 'spec/whois/server/socket_handler_spec.rb'
71
-
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
37
 
81
38
  # Offense count: 40
82
39
  RSpec/StubbedMock:
@@ -98,17 +55,16 @@ RSpec/SubjectStub:
98
55
  Exclude:
99
56
  - 'spec/whois/server/socket_handler_spec.rb'
100
57
 
101
- # Offense count: 31
102
- # Cop supports --auto-correct.
103
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
58
+ # Offense count: 30
59
+ # This cop supports safe autocorrection (--autocorrect).
60
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
104
61
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
105
62
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
106
63
  # FunctionalMethods: let, let!, subject, watch
107
- # IgnoredMethods: lambda, proc, it
64
+ # AllowedMethods: lambda, proc, it
108
65
  Style/BlockDelimiters:
109
66
  Exclude:
110
67
  - 'spec/whois/client_spec.rb'
111
- - 'spec/whois/errors_spec.rb'
112
68
  - 'spec/whois/record/part_spec.rb'
113
69
  - 'spec/whois/record_spec.rb'
114
70
  - 'spec/whois/server/adapters/base_spec.rb'
@@ -120,6 +76,7 @@ Style/BlockDelimiters:
120
76
  - 'spec/whois/server_spec.rb'
121
77
 
122
78
  # Offense count: 6
79
+ # Configuration parameters: AllowedConstants.
123
80
  Style/Documentation:
124
81
  Exclude:
125
82
  - 'spec/**/*'
@@ -130,37 +87,3 @@ Style/Documentation:
130
87
  - 'lib/whois/server/adapters/arpa.rb'
131
88
  - 'lib/whois/server/adapters/base.rb'
132
89
  - '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/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.2.2
1
+ ruby 3.4.2
data/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  This project uses [Semantic Versioning 2.0.0](http://semver.org/).
4
4
 
5
5
 
6
+ ## Release 6.0.2
7
+
8
+ ### Changed
9
+
10
+ - SERVER: Updated .IN and other registry.in TLDs (GH-663).
11
+
12
+
13
+ ## Release 6.0.1
14
+
15
+ ### Changed
16
+
17
+ - SERVER: Updated .TV (GH-662).
18
+
19
+
6
20
  ## Release 6.0.0
7
21
 
8
22
  ### Fixed
data/CONTRIBUTING.md CHANGED
@@ -4,37 +4,37 @@
4
4
 
5
5
  Fork, then clone the repo:
6
6
 
7
- ```
7
+ ```shell
8
8
  git clone git@github.com:your-username/whois.git
9
9
  ```
10
10
 
11
11
  Set up your machine:
12
12
 
13
- ```
13
+ ```shell
14
14
  bundle
15
15
  ```
16
16
 
17
17
  Make sure the tests pass:
18
18
 
19
- ```
19
+ ```shell
20
20
  bundle exec rake
21
21
  ```
22
22
 
23
23
  To propose a change/feature/patch, create your feature branch:
24
24
 
25
- ```
25
+ ```shell
26
26
  git checkout -b my-new-feature
27
27
  ```
28
28
 
29
29
  Make your change. Add tests for your change. Make the tests pass:
30
30
 
31
- ```
31
+ ```shell
32
32
  bundle exec rake
33
33
  ```
34
34
 
35
35
  Commit your changes:
36
36
 
37
- ```
37
+ ```shell
38
38
  git commit -am 'Add some feature'
39
39
  ```
40
40
 
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem "rubocop", require: false
8
- gem "rubocop-rspec", require: false
7
+ gem "rubocop", "~> 1.79.2", require: false
8
+ gem "rubocop-rspec", "~> 3.6.0", require: false
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 = {}