domain_name 0.5.20180417 → 0.6.20231109

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
- SHA1:
3
- metadata.gz: 5badd0e4ef271e0b57f1e0a3105848ac9023cae0
4
- data.tar.gz: 279bfb183a198420d6b5425ef0589b1199bc6a5b
2
+ SHA256:
3
+ metadata.gz: 064d2e2843b35e605d1d84f64b192df23b0bde115f716295489a79ebba8305de
4
+ data.tar.gz: e9cdad6938f920b124c465c97c1a7201c19f789c5648cfd10311e7c1f0407d22
5
5
  SHA512:
6
- metadata.gz: 8818a7b7415593f90152772887fcc22c9bf86cb15c315c3911094e5cfae4e92233b571a62c65b0183fbdd7b3fbad96ba5cc401f27b4e6c8d2d628e0ad0a0933a
7
- data.tar.gz: 77cfaedc2c286a8fdd81349667507b873265c0fb7bfa3adad348a8bb994ec3e832e5cb00d2fd3515b5dba4c0ab948a359d007eaf1092911f99e28ef8cb3d873f
6
+ metadata.gz: ee5da3a9ebc6f879895bcdf58730a2401c36301b4005729f6cb94156a1cb245fc121ca44552e417389d675741c69b479ff7088ab66a0cada1a78f15d50e2ffa7
7
+ data.tar.gz: b08c7c1cda5907aaec76559b78e2c3c236f99b9f2ebef403e68ec1d76828b3faadc1d54ae6009697ef98c1fa025f610f02a2595ff3b2645d07e70c09d58ad700
@@ -0,0 +1,34 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ubuntu]
15
+ ruby: [2.7, "3.0", 3.1, 3.2, head, jruby]
16
+
17
+ name: >-
18
+ ${{matrix.os}}:ruby-${{matrix.ruby}}
19
+ runs-on: ${{matrix.os}}-latest
20
+ continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}}
21
+
22
+ steps:
23
+ - name: Check out
24
+ uses: actions/checkout@v4
25
+
26
+ - name: Set up ruby and bundle
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{matrix.ruby}}
30
+ bundler-cache: true
31
+
32
+ - name: Run rake
33
+ run: |
34
+ bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Change Log
2
2
 
3
+ ## [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
+
6
+ - Update the eTLD database to 2023-11-09 00:10:10 UTC
7
+
8
+ - Require Ruby >=2.7 and drop the dependency on unf
9
+
10
+ ## [v0.5.20190701](https://github.com/knu/ruby-domain_name/tree/v0.5.20190701) (2019-07-05)
11
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20180417...v0.5.20190701)
12
+
13
+ - Update the eTLD database to 2019-07-01 18:45:50 UTC
14
+
15
+ ## [v0.5.20180417](https://github.com/knu/ruby-domain_name/tree/v0.5.20180417) (2018-04-17)
16
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170404...v0.5.20180417)
17
+
18
+ - Update the eTLD database to 2018-04-17T23:50:25Z
19
+
3
20
  ## [v0.5.20170404](https://github.com/knu/ruby-domain_name/tree/v0.5.20170404) (2017-04-04)
4
21
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.5.20170223...v0.5.20170404)
5
22
 
data/Rakefile CHANGED
@@ -52,13 +52,36 @@ end
52
52
 
53
53
  namespace :etld_data do
54
54
  task :commit do
55
- load ETLD_DATA_RB
55
+ if system('git', 'diff', '--exit-code', '--quiet', ETLD_DATA_FILE)
56
+ warn "Nothing to commit."
57
+ exit
58
+ end
59
+
60
+ prev = `ruby -e "$(git cat-file -p @:lib/domain_name/version.rb); puts DomainName::VERSION"`.chomp
61
+ curr = `ruby -e "load 'lib/domain_name/version.rb'; puts DomainName::VERSION"`.chomp
62
+ timestamp = File.mtime(ETLD_DATA_FILE).utc
63
+
64
+ File.open('CHANGELOG.md', 'r+') do |f|
65
+ lines = f.readlines
66
+ lines.insert(2, <<-EOF)
67
+ ## [v#{curr}](https://github.com/knu/ruby-domain_name/tree/v#{curr}) (#{Time.now.strftime('%F')})
68
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v#{prev}...v#{curr})
69
+
70
+ - Update the eTLD database to #{timestamp}
71
+
72
+ EOF
73
+ f.rewind
74
+ f.puts lines
75
+ end
56
76
 
57
77
  sh 'git', 'commit',
78
+ 'CHANGELOG.md',
58
79
  ETLD_DATA_FILE,
59
80
  ETLD_DATA_RB,
60
81
  VERSION_RB,
61
- '-m', 'Update the eTLD database to %s.' % DomainName::ETLD_DATA_DATE
82
+ '-m', 'Update the eTLD database to %s.' % timestamp
83
+
84
+ sh 'git', 'tag', "v#{curr}"
62
85
  end
63
86
  end
64
87