domain_name 0.6.20231109 → 0.6.20240107

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: 064d2e2843b35e605d1d84f64b192df23b0bde115f716295489a79ebba8305de
4
- data.tar.gz: e9cdad6938f920b124c465c97c1a7201c19f789c5648cfd10311e7c1f0407d22
3
+ metadata.gz: 712047d02b4fa86805be0e9e3cf64e0725d8e7bc7396a8cc02eaee0fb47cc1c4
4
+ data.tar.gz: 24661d27286d2533fd25b733c4e72364eb99e1fee2ef7643d811479f7b6c7345
5
5
  SHA512:
6
- metadata.gz: ee5da3a9ebc6f879895bcdf58730a2401c36301b4005729f6cb94156a1cb245fc121ca44552e417389d675741c69b479ff7088ab66a0cada1a78f15d50e2ffa7
7
- data.tar.gz: b08c7c1cda5907aaec76559b78e2c3c236f99b9f2ebef403e68ec1d76828b3faadc1d54ae6009697ef98c1fa025f610f02a2595ff3b2645d07e70c09d58ad700
6
+ metadata.gz: 1184c28247f223ff9e9faa143cf3063d17dcc16cae63df8b4d2436bec516c32d037d1e8fd90314297064f5bb650f2e355daafa91d388d7120b39016f024a4478
7
+ data.tar.gz: 118da88bb79a0a7471e8d3d7edc42d29aa6f58af9791ea2894aef602d1d4bbc8c6d923576c47deb5ea6656928747ea5553c6d0544dd7371506f20eb53d96ff42
@@ -7,12 +7,19 @@ on:
7
7
  pull_request:
8
8
 
9
9
  jobs:
10
+ ruby-versions:
11
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12
+ with:
13
+ engine: cruby
14
+ min_version: 2.7
15
+
10
16
  test:
17
+ needs: ruby-versions
11
18
  strategy:
12
19
  fail-fast: false
13
20
  matrix:
14
21
  os: [ubuntu]
15
- ruby: [2.7, "3.0", 3.1, 3.2, head, jruby]
22
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
16
23
 
17
24
  name: >-
18
25
  ${{matrix.os}}:ruby-${{matrix.ruby}}
data/CHANGELOG.md CHANGED
@@ -1,195 +1,261 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## [v0.6.20240107](https://github.com/knu/ruby-domain_name/tree/v0.6.20240107) (2024-01-09)
4
+
5
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20231109...v0.6.20240107)
6
+
7
+ - Update the eTLD database to 2024-01-07 11:25:45 UTC
8
+
9
+ **Closed issues:**
10
+
11
+ - git tag v0.6.20231109 is missing [\#25](https://github.com/knu/ruby-domain_name/issues/25)
12
+ - Unicode Normalization not appropriate for ASCII-8BIT [\#23](https://github.com/knu/ruby-domain_name/issues/23)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Fix regression: Allow DomainName.normalize to accept ASCII-only, non-unicode encoded input [\#27](https://github.com/knu/ruby-domain_name/pull/27) ([tisba](https://github.com/tisba))
2
17
 
3
18
  ## [v0.6.20231109](https://github.com/knu/ruby-domain_name/tree/v0.6.20231109) (2023-11-14)
4
- [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20190701...v0.6.20231109)
5
19
 
6
- - Update the eTLD database to 2023-11-09 00:10:10 UTC
20
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20190701...v0.6.20231109)
7
21
 
8
22
  - Require Ruby >=2.7 and drop the dependency on unf
23
+ - Update the eTLD database to 2023-11-09 00:10:10 UTC
24
+
25
+ **Closed issues:**
26
+
27
+ - "web.app" domain is not considered canonical [\#21](https://github.com/knu/ruby-domain_name/issues/21)
9
28
 
10
29
  ## [v0.5.20190701](https://github.com/knu/ruby-domain_name/tree/v0.5.20190701) (2019-07-05)
30
+
11
31
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20180417...v0.5.20190701)
12
32
 
13
33
  - Update the eTLD database to 2019-07-01 18:45:50 UTC
14
34
 
15
- ## [v0.5.20180417](https://github.com/knu/ruby-domain_name/tree/v0.5.20180417) (2018-04-17)
35
+ ## [v0.5.20180417](https://github.com/knu/ruby-domain_name/tree/v0.5.20180417) (2018-04-18)
36
+
16
37
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170404...v0.5.20180417)
17
38
 
18
39
  - Update the eTLD database to 2018-04-17T23:50:25Z
19
40
 
20
- ## [v0.5.20170404](https://github.com/knu/ruby-domain_name/tree/v0.5.20170404) (2017-04-04)
41
+ ## [v0.5.20170404](https://github.com/knu/ruby-domain_name/tree/v0.5.20170404) (2017-04-06)
42
+
21
43
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170223...v0.5.20170404)
22
44
 
23
45
  - Update the eTLD database to 2017-04-04T20:20:25Z
24
46
 
25
47
  ## [v0.5.20170223](https://github.com/knu/ruby-domain_name/tree/v0.5.20170223) (2017-02-23)
48
+
26
49
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20161129...v0.5.20170223)
27
50
 
28
51
  - Update the eTLD database to 2017-02-23T00:52:11Z
29
52
 
53
+ **Closed issues:**
54
+
55
+ - Changelog doesn't mention the version '0.5.20161021' [\#10](https://github.com/knu/ruby-domain_name/issues/10)
56
+
30
57
  ## [v0.5.20161129](https://github.com/knu/ruby-domain_name/tree/v0.5.20161129) (2016-11-29)
31
- [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160826...v0.5.20161129)
58
+
59
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20161021...v0.5.20161129)
32
60
 
33
61
  - Update the eTLD database to 2016-11-29T01:22:03Z
34
62
 
35
63
  ## [v0.5.20161021](https://github.com/knu/ruby-domain_name/tree/v0.5.20161021) (2016-10-27)
64
+
36
65
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160826...v0.5.20161021)
37
66
 
38
67
  - Update the eTLD database to 2016-10-21T20:52:10Z
39
68
 
40
69
  ## [v0.5.20160826](https://github.com/knu/ruby-domain_name/tree/v0.5.20160826) (2016-09-01)
70
+
41
71
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160615...v0.5.20160826)
42
72
 
43
73
  - Update the license for the eTLD database
44
74
  - Update the eTLD database to 2016-08-26T16:52:03Z
45
75
 
76
+ **Closed issues:**
77
+
78
+ - Please add a changelog [\#5](https://github.com/knu/ruby-domain_name/issues/5)
79
+
46
80
  ## [v0.5.20160615](https://github.com/knu/ruby-domain_name/tree/v0.5.20160615) (2016-06-16)
81
+
47
82
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160310...v0.5.20160615)
48
83
 
49
84
  - Always set `@domain` to avoid a warning when `$VERBOSE` is on
50
85
  - Update the eTLD database to 2016-06-15T16:22:11Z
51
86
 
52
87
  ## [v0.5.20160310](https://github.com/knu/ruby-domain_name/tree/v0.5.20160310) (2016-03-17)
88
+
53
89
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160309...v0.5.20160310)
54
90
 
55
91
  - Update development dependencies for obsolete rubies
56
92
  - Update the eTLD database to 2016-03-10T21:22:02Z
57
93
 
58
94
  ## [v0.5.20160309](https://github.com/knu/ruby-domain_name/tree/v0.5.20160309) (2016-03-09)
95
+
59
96
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160216...v0.5.20160309)
60
97
 
61
98
  - Fix support for Ruby 1.8
62
99
  - Update the eTLD database to 2016-03-09T09:52:02Z
63
100
 
64
101
  ## [v0.5.20160216](https://github.com/knu/ruby-domain_name/tree/v0.5.20160216) (2016-02-24)
102
+
65
103
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160128...v0.5.20160216)
66
104
 
67
105
  - Update the eTLD database to 2016-02-16T19:22:02Z
68
106
 
69
107
  ## [v0.5.20160128](https://github.com/knu/ruby-domain_name/tree/v0.5.20160128) (2016-01-29)
108
+
70
109
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.25...v0.5.20160128)
71
110
 
72
111
  - Use the date as part of VERSION
73
112
  - Update the eTLD database to 2016-01-28T23:22:02Z
74
113
 
75
114
  ## [v0.5.25](https://github.com/knu/ruby-domain_name/tree/v0.5.25) (2015-10-06)
115
+
76
116
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.24...v0.5.25)
77
117
 
78
118
  - Restrict i18n < 0.7.0 on ruby 1.8.
79
119
  - Update the eTLD database to 2015-09-29T17:22:03Z
80
120
 
121
+ **Closed issues:**
122
+
123
+ - Bad link on rubygems.org? [\#4](https://github.com/knu/ruby-domain_name/issues/4)
124
+
81
125
  ## [v0.5.24](https://github.com/knu/ruby-domain_name/tree/v0.5.24) (2015-04-16)
126
+
82
127
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.23...v0.5.24)
83
128
 
84
129
  - Update the eTLD database to 2015-04-07T20:26:05Z
85
130
 
86
131
  ## [v0.5.23](https://github.com/knu/ruby-domain_name/tree/v0.5.23) (2014-12-19)
132
+
87
133
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.22...v0.5.23)
88
134
 
89
135
  - Update the eTLD database to 2014-12-18T02:26:03Z
90
136
 
91
137
  ## [v0.5.22](https://github.com/knu/ruby-domain_name/tree/v0.5.22) (2014-10-28)
138
+
92
139
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.21...v0.5.22)
93
140
 
94
141
  - Update the eTLD database to 2014-10-27T15:26:07Z
95
142
 
96
143
  ## [v0.5.21](https://github.com/knu/ruby-domain_name/tree/v0.5.21) (2014-09-09)
144
+
97
145
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20...v0.5.21)
98
146
 
99
147
  - Update the eTLD database to 2014-09-05T01:56:10Z
100
148
 
101
149
  ## [v0.5.20](https://github.com/knu/ruby-domain_name/tree/v0.5.20) (2014-08-18)
150
+
102
151
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.19...v0.5.20)
103
152
 
104
153
  - Update the eTLD database to 2014-08-14T00:56:09Z
105
154
 
106
155
  ## [v0.5.19](https://github.com/knu/ruby-domain_name/tree/v0.5.19) (2014-06-12)
156
+
107
157
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.18...v0.5.19)
108
158
 
109
159
  - Update the eTLD database to 2014-06-11T15:26:13Z
110
160
 
111
161
  ## [v0.5.18](https://github.com/knu/ruby-domain_name/tree/v0.5.18) (2014-03-27)
162
+
112
163
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.17...v0.5.18)
113
164
 
114
165
  - Update the eTLD database to 2014-03-27T03:00:59Z
115
166
 
116
167
  ## [v0.5.17](https://github.com/knu/ruby-domain_name/tree/v0.5.17) (2014-03-21)
168
+
117
169
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.16...v0.5.17)
118
170
 
119
171
  - Update the eTLD database to 2014-03-20T15:01:09Z
120
172
 
121
173
  ## [v0.5.16](https://github.com/knu/ruby-domain_name/tree/v0.5.16) (2014-02-12)
174
+
122
175
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.15...v0.5.16)
123
176
 
124
177
  - Update the eTLD database to 2014-02-11T16:01:07Z
125
178
 
126
179
  ## [v0.5.15](https://github.com/knu/ruby-domain_name/tree/v0.5.15) (2013-11-15)
180
+
127
181
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.14...v0.5.15)
128
182
 
129
183
  - Update the eTLD database to 2013-11-15T16:01:28Z
130
184
  - Merge IDN tests from mozilla-central/netwerk/test/unit/data/test_psl.txt
131
185
 
132
186
  ## [v0.5.14](https://github.com/knu/ruby-domain_name/tree/v0.5.14) (2013-10-16)
187
+
133
188
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.13...v0.5.14)
134
189
 
135
190
  - Update the eTLD database to 2013-10-16T07:01:24Z
136
191
 
137
192
  ## [v0.5.13](https://github.com/knu/ruby-domain_name/tree/v0.5.13) (2013-08-18)
193
+
138
194
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.12...v0.5.13)
139
195
 
140
196
  - Update the eTLD database to 2013-08-15T11:01:26Z
141
197
  - Adjust dependencies for Ruby 1.8
142
198
 
143
199
  ## [v0.5.12](https://github.com/knu/ruby-domain_name/tree/v0.5.12) (2013-06-07)
200
+
144
201
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.11...v0.5.12)
145
202
 
146
203
  - Update the eTLD database to 2013-06-06T23:00:56Z
147
204
  - Add *_idn methods that do ToUnicode conversion
148
205
 
149
206
  ## [v0.5.11](https://github.com/knu/ruby-domain_name/tree/v0.5.11) (2013-04-12)
207
+
150
208
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.10...v0.5.11)
151
209
 
152
210
  - Add DomainName#superdomain
153
211
  - Update the database to 2013-04-05T23:00:49Z
154
212
 
155
213
  ## [v0.5.10](https://github.com/knu/ruby-domain_name/tree/v0.5.10) (2013-04-01)
214
+
156
215
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.9...v0.5.10)
157
216
 
158
217
  - Update the eTLD database to that of 2013-03-31T03:02:39Z
159
218
 
160
219
  ## [v0.5.9](https://github.com/knu/ruby-domain_name/tree/v0.5.9) (2013-03-17)
220
+
161
221
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.8...v0.5.9)
162
222
 
163
223
  - Support unf 0.1.0
164
224
 
165
225
  ## [v0.5.8](https://github.com/knu/ruby-domain_name/tree/v0.5.8) (2013-03-14)
226
+
166
227
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.7...v0.5.8)
167
228
 
168
229
  - Update the eTLD database to the version as of 2013-02-18T20:02:07Z
169
230
 
170
231
  ## [v0.5.7](https://github.com/knu/ruby-domain_name/tree/v0.5.7) (2013-01-07)
232
+
171
233
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.6...v0.5.7)
172
234
 
173
235
  - Update the eTLD list
174
236
 
175
237
  ## [v0.5.6](https://github.com/knu/ruby-domain_name/tree/v0.5.6) (2012-12-06)
238
+
176
239
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.5...v0.5.6)
177
240
 
178
241
  - Update the eTLD list
179
242
 
180
243
  ## [v0.5.5](https://github.com/knu/ruby-domain_name/tree/v0.5.5) (2012-12-06)
244
+
181
245
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.4...v0.5.5)
182
246
 
183
247
  - Add an optional host_only flag to DomainName#cookie_domain?
184
248
  - Migrate from jeweler to bundle gem
185
249
 
186
250
  ## [v0.5.4](https://github.com/knu/ruby-domain_name/tree/v0.5.4) (2012-09-18)
251
+
187
252
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.3...v0.5.4)
188
253
 
189
254
  - Update the eTLD list
190
255
  - Import updated test cases suggested by Mozilla developers
191
256
 
192
257
  ## [v0.5.3](https://github.com/knu/ruby-domain_name/tree/v0.5.3) (2012-04-06)
258
+
193
259
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.2...v0.5.3)
194
260
 
195
261
  - Implement Punycode decoder
@@ -199,11 +265,13 @@
199
265
  - Running DomainName multi-threaded leads to Stack Errors [\#2](https://github.com/knu/ruby-domain_name/issues/2)
200
266
 
201
267
  ## [v0.5.2](https://github.com/knu/ruby-domain_name/tree/v0.5.2) (2012-01-18)
268
+
202
269
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.1...v0.5.2)
203
270
 
204
271
  - Update the eTLD list
205
272
 
206
273
  ## [v0.5.1](https://github.com/knu/ruby-domain_name/tree/v0.5.1) (2011-11-09)
274
+
207
275
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.0...v0.5.1)
208
276
 
209
277
  - DomainName.new calls #to_str if a non-string object is given
@@ -214,6 +282,7 @@
214
282
  - Fixed DomainName\#\<=\> for use with Ruby 1.8.7 [\#1](https://github.com/knu/ruby-domain_name/pull/1) ([drbrain](https://github.com/drbrain))
215
283
 
216
284
  ## [v0.5.0](https://github.com/knu/ruby-domain_name/tree/v0.5.0) (2011-11-04)
285
+
217
286
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.0.0...v0.5.0)
218
287
 
219
288
  - Implement DomainName comparison and fix cookie_domain?()
@@ -223,4 +292,4 @@
223
292
 
224
293
  - Initial release
225
294
 
226
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
295
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -6710,7 +6710,7 @@ org.zw
6710
6710
 
6711
6711
  // newGTLDs
6712
6712
 
6713
- // List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2023-11-03T15:13:18Z
6713
+ // List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2024-01-06T15:12:04Z
6714
6714
  // This list is auto-generated, don't edit it manually.
6715
6715
  // aaa : American Automobile Association, Inc.
6716
6716
  // https://www.iana.org/domains/root/db/aaa.html
@@ -7752,6 +7752,10 @@ dental
7752
7752
  // https://www.iana.org/domains/root/db/dentist.html
7753
7753
  dentist
7754
7754
 
7755
+ // desi
7756
+ // https://www.iana.org/domains/root/db/desi.html
7757
+ desi
7758
+
7755
7759
  // design : Registry Services, LLC
7756
7760
  // https://www.iana.org/domains/root/db/design.html
7757
7761
  design
@@ -7796,7 +7800,7 @@ discover
7796
7800
  // https://www.iana.org/domains/root/db/dish.html
7797
7801
  dish
7798
7802
 
7799
- // diy : Lifestyle Domain Holdings, Inc.
7803
+ // diy : Internet Naming Company LLC
7800
7804
  // https://www.iana.org/domains/root/db/diy.html
7801
7805
  diy
7802
7806
 
@@ -7928,10 +7932,6 @@ esq
7928
7932
  // https://www.iana.org/domains/root/db/estate.html
7929
7933
  estate
7930
7934
 
7931
- // etisalat : Emirates Telecommunications Corporation (trading as Etisalat)
7932
- // https://www.iana.org/domains/root/db/etisalat.html
7933
- etisalat
7934
-
7935
7935
  // eurovision : European Broadcasting Union (EBU)
7936
7936
  // https://www.iana.org/domains/root/db/eurovision.html
7937
7937
  eurovision
@@ -8104,7 +8104,7 @@ fly
8104
8104
  // https://www.iana.org/domains/root/db/foo.html
8105
8105
  foo
8106
8106
 
8107
- // food : Lifestyle Domain Holdings, Inc.
8107
+ // food : Internet Naming Company LLC
8108
8108
  // https://www.iana.org/domains/root/db/food.html
8109
8109
  food
8110
8110
 
@@ -8312,7 +8312,7 @@ goldpoint
8312
8312
  // https://www.iana.org/domains/root/db/golf.html
8313
8313
  golf
8314
8314
 
8315
- // goo : NTT Resonant Inc.
8315
+ // goo : NTT DOCOMO, INC.
8316
8316
  // https://www.iana.org/domains/root/db/goo.html
8317
8317
  goo
8318
8318
 
@@ -8720,7 +8720,7 @@ jpmorgan
8720
8720
  // https://www.iana.org/domains/root/db/jprs.html
8721
8721
  jprs
8722
8722
 
8723
- // juegos : Internet Naming Company LLC
8723
+ // juegos : Dog Beach, LLC
8724
8724
  // https://www.iana.org/domains/root/db/juegos.html
8725
8725
  juegos
8726
8726
 
@@ -8908,7 +8908,7 @@ life
8908
8908
  // https://www.iana.org/domains/root/db/lifeinsurance.html
8909
8909
  lifeinsurance
8910
8910
 
8911
- // lifestyle : Lifestyle Domain Holdings, Inc.
8911
+ // lifestyle : Internet Naming Company LLC
8912
8912
  // https://www.iana.org/domains/root/db/lifestyle.html
8913
8913
  lifestyle
8914
8914
 
@@ -8948,7 +8948,7 @@ lipsy
8948
8948
  // https://www.iana.org/domains/root/db/live.html
8949
8949
  live
8950
8950
 
8951
- // living : Lifestyle Domain Holdings, Inc.
8951
+ // living : Internet Naming Company LLC
8952
8952
  // https://www.iana.org/domains/root/db/living.html
8953
8953
  living
8954
8954
 
@@ -9928,10 +9928,6 @@ sbi
9928
9928
  // https://www.iana.org/domains/root/db/sbs.html
9929
9929
  sbs
9930
9930
 
9931
- // sca : SVENSKA CELLULOSA AKTIEBOLAGET SCA (publ)
9932
- // https://www.iana.org/domains/root/db/sca.html
9933
- sca
9934
-
9935
9931
  // scb : The Siam Commercial Bank Public Company Limited ("SCB")
9936
9932
  // https://www.iana.org/domains/root/db/scb.html
9937
9933
  scb
@@ -10524,7 +10520,7 @@ ups
10524
10520
  // https://www.iana.org/domains/root/db/vacations.html
10525
10521
  vacations
10526
10522
 
10527
- // vana : Lifestyle Domain Holdings, Inc.
10523
+ // vana : Internet Naming Company LLC
10528
10524
  // https://www.iana.org/domains/root/db/vana.html
10529
10525
  vana
10530
10526
 
@@ -10608,10 +10604,6 @@ vlaanderen
10608
10604
  // https://www.iana.org/domains/root/db/vodka.html
10609
10605
  vodka
10610
10606
 
10611
- // volkswagen : Volkswagen Group of America Inc.
10612
- // https://www.iana.org/domains/root/db/volkswagen.html
10613
- volkswagen
10614
-
10615
10607
  // volvo : Volvo Holding Sverige Aktiebolag
10616
10608
  // https://www.iana.org/domains/root/db/volvo.html
10617
10609
  volvo
@@ -10680,6 +10672,10 @@ weber
10680
10672
  // https://www.iana.org/domains/root/db/website.html
10681
10673
  website
10682
10674
 
10675
+ // wed
10676
+ // https://www.iana.org/domains/root/db/wed.html
10677
+ wed
10678
+
10683
10679
  // wedding : Registry Services, LLC
10684
10680
  // https://www.iana.org/domains/root/db/wedding.html
10685
10681
  wedding
@@ -11012,10 +11008,6 @@ xin
11012
11008
  // https://www.iana.org/domains/root/db/xn--mgba7c0bbn0a.html
11013
11009
  العليان
11014
11010
 
11015
- // xn--mgbaakc7dvf : Emirates Telecommunications Corporation (trading as Etisalat)
11016
- // https://www.iana.org/domains/root/db/xn--mgbaakc7dvf.html
11017
- اتصالات
11018
-
11019
11011
  // xn--mgbab2bd : CORE Association
11020
11012
  // https://www.iana.org/domains/root/db/xn--mgbab2bd.html
11021
11013
  بازار
@@ -13193,7 +13185,7 @@ shw.io
13193
13185
  // Submitted by Jonathan Rudenberg <jonathan@flynn.io>
13194
13186
  flynnhosting.net
13195
13187
 
13196
- // Forgerock : https://www.forgerock.com
13188
+ // Forgerock : https://www.forgerock.com
13197
13189
  // Submitted by Roderick Parr <roderick.parr@forgerock.com>
13198
13190
  forgeblocks.com
13199
13191
  id.forgerock.io
@@ -13434,10 +13426,6 @@ london.cloudapps.digital
13434
13426
  // Submitted by Richard Baker <richard.baker@digital.cabinet-office.gov.uk>
13435
13427
  pymnt.uk
13436
13428
 
13437
- // UKHomeOffice : https://www.gov.uk/government/organisations/home-office
13438
- // Submitted by Jon Shanks <jon.shanks@digital.homeoffice.gov.uk>
13439
- homeoffice.gov.uk
13440
-
13441
13429
  // GlobeHosting, Inc.
13442
13430
  // Submitted by Zoltan Egresi <egresi@globehosting.com>
13443
13431
  ro.im
@@ -14887,7 +14875,7 @@ alpha.bounty-full.com
14887
14875
  beta.bounty-full.com
14888
14876
 
14889
14877
  // Smallregistry by Promopixel SARL: https://www.smallregistry.net
14890
- // Former AFNIC's SLDs
14878
+ // Former AFNIC's SLDs
14891
14879
  // Submitted by Jérôme Lipowicz <support@promopixel.com>
14892
14880
  aeroport.fr
14893
14881
  avocat.fr
@@ -1,5 +1,5 @@
1
1
  class DomainName
2
- ETLD_DATA_DATE = '2023-11-09T00:10:10Z'
2
+ ETLD_DATA_DATE = '2024-01-07T11:25:45Z'
3
3
 
4
4
  ETLD_DATA = {
5
5
  "ac" => 0,
@@ -6014,6 +6014,7 @@ class DomainName
6014
6014
  "democrat" => 0,
6015
6015
  "dental" => 0,
6016
6016
  "dentist" => 0,
6017
+ "desi" => 0,
6017
6018
  "design" => 0,
6018
6019
  "dev" => 0,
6019
6020
  "dhl" => 0,
@@ -6058,7 +6059,6 @@ class DomainName
6058
6059
  "erni" => 0,
6059
6060
  "esq" => 0,
6060
6061
  "estate" => 0,
6061
- "etisalat" => 0,
6062
6062
  "eurovision" => 0,
6063
6063
  "eus" => 0,
6064
6064
  "events" => 0,
@@ -6558,7 +6558,6 @@ class DomainName
6558
6558
  "saxo" => 0,
6559
6559
  "sbi" => 0,
6560
6560
  "sbs" => 0,
6561
- "sca" => 0,
6562
6561
  "scb" => 0,
6563
6562
  "schaeffler" => 0,
6564
6563
  "schmidt" => 0,
@@ -6728,7 +6727,6 @@ class DomainName
6728
6727
  "vivo" => 0,
6729
6728
  "vlaanderen" => 0,
6730
6729
  "vodka" => 0,
6731
- "volkswagen" => 0,
6732
6730
  "volvo" => 0,
6733
6731
  "vote" => 0,
6734
6732
  "voting" => 0,
@@ -6746,6 +6744,7 @@ class DomainName
6746
6744
  "webcam" => 0,
6747
6745
  "weber" => 0,
6748
6746
  "website" => 0,
6747
+ "wed" => 0,
6749
6748
  "wedding" => 0,
6750
6749
  "weibo" => 0,
6751
6750
  "weir" => 0,
@@ -6829,7 +6828,6 @@ class DomainName
6829
6828
  "xn--kput3i" => 0,
6830
6829
  "xn--mgba3a3ejt" => 0,
6831
6830
  "xn--mgba7c0bbn0a" => 0,
6832
- "xn--mgbaakc7dvf" => 0,
6833
6831
  "xn--mgbab2bd" => 0,
6834
6832
  "xn--mgbca7dzdo" => 0,
6835
6833
  "xn--mgbi4ecexp" => 0,
@@ -8455,7 +8453,6 @@ class DomainName
8455
8453
  "cloudapps.digital" => 0,
8456
8454
  "london.cloudapps.digital" => 0,
8457
8455
  "pymnt.uk" => 0,
8458
- "homeoffice.gov.uk" => 0,
8459
8456
  "ro.im" => 0,
8460
8457
  "goip.de" => 0,
8461
8458
  "run.app" => 0,
@@ -1,3 +1,3 @@
1
1
  class DomainName
2
- VERSION = '0.6.20231109'
2
+ VERSION = '0.6.20240107'
3
3
  end
data/lib/domain_name.rb CHANGED
@@ -283,9 +283,13 @@ class DomainName
283
283
 
284
284
  class << self
285
285
  # Normalizes a _domain_ using the Punycode algorithm as necessary.
286
+ # Input must be strictly ASCII-only or unicode.
286
287
  # The result will be a downcased, ASCII-only string.
287
288
  def normalize(domain)
288
- DomainName::Punycode.encode_hostname(domain.chomp(DOT).unicode_normalize(:nfc)).downcase
289
+ chomped = domain.chomp(DOT)
290
+ normalized = chomped.ascii_only? ? chomped : chomped.unicode_normalize(:nfc)
291
+
292
+ DomainName::Punycode.encode_hostname(normalized).downcase
289
293
  end
290
294
  end
291
295
  end
@@ -35,6 +35,10 @@ class TestDomainName < Test::Unit::TestCase
35
35
  }
36
36
  end
37
37
 
38
+ test "accept ASCII-only 'binary' encoded hostnames" do
39
+ assert_equal "example.com", DomainName.new("example.com".force_encoding("ASCII-8BIT")).hostname
40
+ end
41
+
38
42
  test "parse canonical domain names correctly" do
39
43
  [
40
44
  # Mixed case.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.20231109
4
+ version: 0.6.20240107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-14 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit