domain_name 0.5.20190701 → 0.6.20240107
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +41 -0
- data/CHANGELOG.md +81 -5
- data/Rakefile +2 -2
- data/data/public_suffix_list.dat +4749 -2315
- data/domain_name.gemspec +3 -3
- data/lib/domain_name/etld_data.rb +1691 -903
- data/lib/domain_name/version.rb +1 -1
- data/lib/domain_name.rb +5 -2
- data/test/test_domain_name-punycode.rb +1 -1
- data/test/test_domain_name.rb +4 -0
- metadata +11 -31
- data/.travis.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 712047d02b4fa86805be0e9e3cf64e0725d8e7bc7396a8cc02eaee0fb47cc1c4
|
4
|
+
data.tar.gz: 24661d27286d2533fd25b733c4e72364eb99e1fee2ef7643d811479f7b6c7345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1184c28247f223ff9e9faa143cf3063d17dcc16cae63df8b4d2436bec516c32d037d1e8fd90314297064f5bb650f2e355daafa91d388d7120b39016f024a4478
|
7
|
+
data.tar.gz: 118da88bb79a0a7471e8d3d7edc42d29aa6f58af9791ea2894aef602d1d4bbc8c6d923576c47deb5ea6656928747ea5553c6d0544dd7371506f20eb53d96ff42
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
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
|
+
|
16
|
+
test:
|
17
|
+
needs: ruby-versions
|
18
|
+
strategy:
|
19
|
+
fail-fast: false
|
20
|
+
matrix:
|
21
|
+
os: [ubuntu]
|
22
|
+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
23
|
+
|
24
|
+
name: >-
|
25
|
+
${{matrix.os}}:ruby-${{matrix.ruby}}
|
26
|
+
runs-on: ${{matrix.os}}-latest
|
27
|
+
continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}}
|
28
|
+
|
29
|
+
steps:
|
30
|
+
- name: Check out
|
31
|
+
uses: actions/checkout@v4
|
32
|
+
|
33
|
+
- name: Set up ruby and bundle
|
34
|
+
uses: ruby/setup-ruby@v1
|
35
|
+
with:
|
36
|
+
ruby-version: ${{matrix.ruby}}
|
37
|
+
bundler-cache: true
|
38
|
+
|
39
|
+
- name: Run rake
|
40
|
+
run: |
|
41
|
+
bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,188 +1,261 @@
|
|
1
|
-
#
|
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))
|
17
|
+
|
18
|
+
## [v0.6.20231109](https://github.com/knu/ruby-domain_name/tree/v0.6.20231109) (2023-11-14)
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20190701...v0.6.20231109)
|
21
|
+
|
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)
|
2
28
|
|
3
29
|
## [v0.5.20190701](https://github.com/knu/ruby-domain_name/tree/v0.5.20190701) (2019-07-05)
|
30
|
+
|
4
31
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20180417...v0.5.20190701)
|
5
32
|
|
6
33
|
- Update the eTLD database to 2019-07-01 18:45:50 UTC
|
7
34
|
|
8
|
-
## [v0.5.20180417](https://github.com/knu/ruby-domain_name/tree/v0.5.20180417) (2018-04-
|
35
|
+
## [v0.5.20180417](https://github.com/knu/ruby-domain_name/tree/v0.5.20180417) (2018-04-18)
|
36
|
+
|
9
37
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170404...v0.5.20180417)
|
10
38
|
|
11
39
|
- Update the eTLD database to 2018-04-17T23:50:25Z
|
12
40
|
|
13
|
-
## [v0.5.20170404](https://github.com/knu/ruby-domain_name/tree/v0.5.20170404) (2017-04-
|
41
|
+
## [v0.5.20170404](https://github.com/knu/ruby-domain_name/tree/v0.5.20170404) (2017-04-06)
|
42
|
+
|
14
43
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170223...v0.5.20170404)
|
15
44
|
|
16
45
|
- Update the eTLD database to 2017-04-04T20:20:25Z
|
17
46
|
|
18
47
|
## [v0.5.20170223](https://github.com/knu/ruby-domain_name/tree/v0.5.20170223) (2017-02-23)
|
48
|
+
|
19
49
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20161129...v0.5.20170223)
|
20
50
|
|
21
51
|
- Update the eTLD database to 2017-02-23T00:52:11Z
|
22
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
|
+
|
23
57
|
## [v0.5.20161129](https://github.com/knu/ruby-domain_name/tree/v0.5.20161129) (2016-11-29)
|
24
|
-
|
58
|
+
|
59
|
+
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20161021...v0.5.20161129)
|
25
60
|
|
26
61
|
- Update the eTLD database to 2016-11-29T01:22:03Z
|
27
62
|
|
28
63
|
## [v0.5.20161021](https://github.com/knu/ruby-domain_name/tree/v0.5.20161021) (2016-10-27)
|
64
|
+
|
29
65
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160826...v0.5.20161021)
|
30
66
|
|
31
67
|
- Update the eTLD database to 2016-10-21T20:52:10Z
|
32
68
|
|
33
69
|
## [v0.5.20160826](https://github.com/knu/ruby-domain_name/tree/v0.5.20160826) (2016-09-01)
|
70
|
+
|
34
71
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160615...v0.5.20160826)
|
35
72
|
|
36
73
|
- Update the license for the eTLD database
|
37
74
|
- Update the eTLD database to 2016-08-26T16:52:03Z
|
38
75
|
|
76
|
+
**Closed issues:**
|
77
|
+
|
78
|
+
- Please add a changelog [\#5](https://github.com/knu/ruby-domain_name/issues/5)
|
79
|
+
|
39
80
|
## [v0.5.20160615](https://github.com/knu/ruby-domain_name/tree/v0.5.20160615) (2016-06-16)
|
81
|
+
|
40
82
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160310...v0.5.20160615)
|
41
83
|
|
42
84
|
- Always set `@domain` to avoid a warning when `$VERBOSE` is on
|
43
85
|
- Update the eTLD database to 2016-06-15T16:22:11Z
|
44
86
|
|
45
87
|
## [v0.5.20160310](https://github.com/knu/ruby-domain_name/tree/v0.5.20160310) (2016-03-17)
|
88
|
+
|
46
89
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160309...v0.5.20160310)
|
47
90
|
|
48
91
|
- Update development dependencies for obsolete rubies
|
49
92
|
- Update the eTLD database to 2016-03-10T21:22:02Z
|
50
93
|
|
51
94
|
## [v0.5.20160309](https://github.com/knu/ruby-domain_name/tree/v0.5.20160309) (2016-03-09)
|
95
|
+
|
52
96
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160216...v0.5.20160309)
|
53
97
|
|
54
98
|
- Fix support for Ruby 1.8
|
55
99
|
- Update the eTLD database to 2016-03-09T09:52:02Z
|
56
100
|
|
57
101
|
## [v0.5.20160216](https://github.com/knu/ruby-domain_name/tree/v0.5.20160216) (2016-02-24)
|
102
|
+
|
58
103
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20160128...v0.5.20160216)
|
59
104
|
|
60
105
|
- Update the eTLD database to 2016-02-16T19:22:02Z
|
61
106
|
|
62
107
|
## [v0.5.20160128](https://github.com/knu/ruby-domain_name/tree/v0.5.20160128) (2016-01-29)
|
108
|
+
|
63
109
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.25...v0.5.20160128)
|
64
110
|
|
65
111
|
- Use the date as part of VERSION
|
66
112
|
- Update the eTLD database to 2016-01-28T23:22:02Z
|
67
113
|
|
68
114
|
## [v0.5.25](https://github.com/knu/ruby-domain_name/tree/v0.5.25) (2015-10-06)
|
115
|
+
|
69
116
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.24...v0.5.25)
|
70
117
|
|
71
118
|
- Restrict i18n < 0.7.0 on ruby 1.8.
|
72
119
|
- Update the eTLD database to 2015-09-29T17:22:03Z
|
73
120
|
|
121
|
+
**Closed issues:**
|
122
|
+
|
123
|
+
- Bad link on rubygems.org? [\#4](https://github.com/knu/ruby-domain_name/issues/4)
|
124
|
+
|
74
125
|
## [v0.5.24](https://github.com/knu/ruby-domain_name/tree/v0.5.24) (2015-04-16)
|
126
|
+
|
75
127
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.23...v0.5.24)
|
76
128
|
|
77
129
|
- Update the eTLD database to 2015-04-07T20:26:05Z
|
78
130
|
|
79
131
|
## [v0.5.23](https://github.com/knu/ruby-domain_name/tree/v0.5.23) (2014-12-19)
|
132
|
+
|
80
133
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.22...v0.5.23)
|
81
134
|
|
82
135
|
- Update the eTLD database to 2014-12-18T02:26:03Z
|
83
136
|
|
84
137
|
## [v0.5.22](https://github.com/knu/ruby-domain_name/tree/v0.5.22) (2014-10-28)
|
138
|
+
|
85
139
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.21...v0.5.22)
|
86
140
|
|
87
141
|
- Update the eTLD database to 2014-10-27T15:26:07Z
|
88
142
|
|
89
143
|
## [v0.5.21](https://github.com/knu/ruby-domain_name/tree/v0.5.21) (2014-09-09)
|
144
|
+
|
90
145
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20...v0.5.21)
|
91
146
|
|
92
147
|
- Update the eTLD database to 2014-09-05T01:56:10Z
|
93
148
|
|
94
149
|
## [v0.5.20](https://github.com/knu/ruby-domain_name/tree/v0.5.20) (2014-08-18)
|
150
|
+
|
95
151
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.19...v0.5.20)
|
96
152
|
|
97
153
|
- Update the eTLD database to 2014-08-14T00:56:09Z
|
98
154
|
|
99
155
|
## [v0.5.19](https://github.com/knu/ruby-domain_name/tree/v0.5.19) (2014-06-12)
|
156
|
+
|
100
157
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.18...v0.5.19)
|
101
158
|
|
102
159
|
- Update the eTLD database to 2014-06-11T15:26:13Z
|
103
160
|
|
104
161
|
## [v0.5.18](https://github.com/knu/ruby-domain_name/tree/v0.5.18) (2014-03-27)
|
162
|
+
|
105
163
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.17...v0.5.18)
|
106
164
|
|
107
165
|
- Update the eTLD database to 2014-03-27T03:00:59Z
|
108
166
|
|
109
167
|
## [v0.5.17](https://github.com/knu/ruby-domain_name/tree/v0.5.17) (2014-03-21)
|
168
|
+
|
110
169
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.16...v0.5.17)
|
111
170
|
|
112
171
|
- Update the eTLD database to 2014-03-20T15:01:09Z
|
113
172
|
|
114
173
|
## [v0.5.16](https://github.com/knu/ruby-domain_name/tree/v0.5.16) (2014-02-12)
|
174
|
+
|
115
175
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.15...v0.5.16)
|
116
176
|
|
117
177
|
- Update the eTLD database to 2014-02-11T16:01:07Z
|
118
178
|
|
119
179
|
## [v0.5.15](https://github.com/knu/ruby-domain_name/tree/v0.5.15) (2013-11-15)
|
180
|
+
|
120
181
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.14...v0.5.15)
|
121
182
|
|
122
183
|
- Update the eTLD database to 2013-11-15T16:01:28Z
|
123
184
|
- Merge IDN tests from mozilla-central/netwerk/test/unit/data/test_psl.txt
|
124
185
|
|
125
186
|
## [v0.5.14](https://github.com/knu/ruby-domain_name/tree/v0.5.14) (2013-10-16)
|
187
|
+
|
126
188
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.13...v0.5.14)
|
127
189
|
|
128
190
|
- Update the eTLD database to 2013-10-16T07:01:24Z
|
129
191
|
|
130
192
|
## [v0.5.13](https://github.com/knu/ruby-domain_name/tree/v0.5.13) (2013-08-18)
|
193
|
+
|
131
194
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.12...v0.5.13)
|
132
195
|
|
133
196
|
- Update the eTLD database to 2013-08-15T11:01:26Z
|
134
197
|
- Adjust dependencies for Ruby 1.8
|
135
198
|
|
136
199
|
## [v0.5.12](https://github.com/knu/ruby-domain_name/tree/v0.5.12) (2013-06-07)
|
200
|
+
|
137
201
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.11...v0.5.12)
|
138
202
|
|
139
203
|
- Update the eTLD database to 2013-06-06T23:00:56Z
|
140
204
|
- Add *_idn methods that do ToUnicode conversion
|
141
205
|
|
142
206
|
## [v0.5.11](https://github.com/knu/ruby-domain_name/tree/v0.5.11) (2013-04-12)
|
207
|
+
|
143
208
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.10...v0.5.11)
|
144
209
|
|
145
210
|
- Add DomainName#superdomain
|
146
211
|
- Update the database to 2013-04-05T23:00:49Z
|
147
212
|
|
148
213
|
## [v0.5.10](https://github.com/knu/ruby-domain_name/tree/v0.5.10) (2013-04-01)
|
214
|
+
|
149
215
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.9...v0.5.10)
|
150
216
|
|
151
217
|
- Update the eTLD database to that of 2013-03-31T03:02:39Z
|
152
218
|
|
153
219
|
## [v0.5.9](https://github.com/knu/ruby-domain_name/tree/v0.5.9) (2013-03-17)
|
220
|
+
|
154
221
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.8...v0.5.9)
|
155
222
|
|
156
223
|
- Support unf 0.1.0
|
157
224
|
|
158
225
|
## [v0.5.8](https://github.com/knu/ruby-domain_name/tree/v0.5.8) (2013-03-14)
|
226
|
+
|
159
227
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.7...v0.5.8)
|
160
228
|
|
161
229
|
- Update the eTLD database to the version as of 2013-02-18T20:02:07Z
|
162
230
|
|
163
231
|
## [v0.5.7](https://github.com/knu/ruby-domain_name/tree/v0.5.7) (2013-01-07)
|
232
|
+
|
164
233
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.6...v0.5.7)
|
165
234
|
|
166
235
|
- Update the eTLD list
|
167
236
|
|
168
237
|
## [v0.5.6](https://github.com/knu/ruby-domain_name/tree/v0.5.6) (2012-12-06)
|
238
|
+
|
169
239
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.5...v0.5.6)
|
170
240
|
|
171
241
|
- Update the eTLD list
|
172
242
|
|
173
243
|
## [v0.5.5](https://github.com/knu/ruby-domain_name/tree/v0.5.5) (2012-12-06)
|
244
|
+
|
174
245
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.4...v0.5.5)
|
175
246
|
|
176
247
|
- Add an optional host_only flag to DomainName#cookie_domain?
|
177
248
|
- Migrate from jeweler to bundle gem
|
178
249
|
|
179
250
|
## [v0.5.4](https://github.com/knu/ruby-domain_name/tree/v0.5.4) (2012-09-18)
|
251
|
+
|
180
252
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.3...v0.5.4)
|
181
253
|
|
182
254
|
- Update the eTLD list
|
183
255
|
- Import updated test cases suggested by Mozilla developers
|
184
256
|
|
185
257
|
## [v0.5.3](https://github.com/knu/ruby-domain_name/tree/v0.5.3) (2012-04-06)
|
258
|
+
|
186
259
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.2...v0.5.3)
|
187
260
|
|
188
261
|
- Implement Punycode decoder
|
@@ -192,11 +265,13 @@
|
|
192
265
|
- Running DomainName multi-threaded leads to Stack Errors [\#2](https://github.com/knu/ruby-domain_name/issues/2)
|
193
266
|
|
194
267
|
## [v0.5.2](https://github.com/knu/ruby-domain_name/tree/v0.5.2) (2012-01-18)
|
268
|
+
|
195
269
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.1...v0.5.2)
|
196
270
|
|
197
271
|
- Update the eTLD list
|
198
272
|
|
199
273
|
## [v0.5.1](https://github.com/knu/ruby-domain_name/tree/v0.5.1) (2011-11-09)
|
274
|
+
|
200
275
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.0...v0.5.1)
|
201
276
|
|
202
277
|
- DomainName.new calls #to_str if a non-string object is given
|
@@ -207,6 +282,7 @@
|
|
207
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))
|
208
283
|
|
209
284
|
## [v0.5.0](https://github.com/knu/ruby-domain_name/tree/v0.5.0) (2011-11-04)
|
285
|
+
|
210
286
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.0.0...v0.5.0)
|
211
287
|
|
212
288
|
- Implement DomainName comparison and fix cookie_domain?()
|
@@ -216,4 +292,4 @@
|
|
216
292
|
|
217
293
|
- Initial release
|
218
294
|
|
219
|
-
\* *This
|
295
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Rakefile
CHANGED
@@ -52,7 +52,7 @@ end
|
|
52
52
|
|
53
53
|
namespace :etld_data do
|
54
54
|
task :commit do
|
55
|
-
if system(
|
55
|
+
if system('git', 'diff', '--exit-code', '--quiet', ETLD_DATA_FILE)
|
56
56
|
warn "Nothing to commit."
|
57
57
|
exit
|
58
58
|
end
|
@@ -63,7 +63,7 @@ namespace :etld_data do
|
|
63
63
|
|
64
64
|
File.open('CHANGELOG.md', 'r+') do |f|
|
65
65
|
lines = f.readlines
|
66
|
-
lines.insert(2,
|
66
|
+
lines.insert(2, <<-EOF)
|
67
67
|
## [v#{curr}](https://github.com/knu/ruby-domain_name/tree/v#{curr}) (#{Time.now.strftime('%F')})
|
68
68
|
[Full Changelog](https://github.com/knu/ruby-domain_name/compare/v#{prev}...v#{curr})
|
69
69
|
|