domain_prefix 0.4.20210201 → 1.0.20241203
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.
- checksums.yaml +4 -4
- data/Rakefile +10 -11
- data/VERSION +1 -1
- data/data/effective_tld_names.dat +5952 -3781
- data/domain_prefix.gemspec +9 -18
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7996954e9574a6609880417fcb5c2a54203c3b4fc05f8346de5c1a6c0d3b6d05
|
4
|
+
data.tar.gz: 2e10caee76327af7fdc28345bea19fe9fef3c90daed0b8e578a4e0ccce6579a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aec8f622d3b386677afe2bfd09ecac224ca6cf704c5b41bad5ed7275cd14512973fd52370d3f32c00f955975281ae1ecc0e41f8c05f65503ab02dcddceb6cf1
|
7
|
+
data.tar.gz: 93fa00742ae63fc788b9f489212e65964b19144a43f4becc14776ff498e1cda844086e61832268392f4386153d44355140ca04da04697db111b1e97d88dd756e
|
data/Rakefile
CHANGED
@@ -2,22 +2,23 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
|
4
4
|
require 'bundler/setup'
|
5
|
+
require 'open-uri'
|
5
6
|
|
6
7
|
begin
|
7
8
|
require 'juwelier'
|
8
9
|
|
9
10
|
Juwelier::Tasks.new do |gem|
|
10
|
-
gem.name =
|
11
|
-
gem.summary =
|
12
|
-
gem.description =
|
13
|
-
gem.email =
|
14
|
-
gem.homepage =
|
11
|
+
gem.name = 'domain_prefix'
|
12
|
+
gem.summary = 'Domain Prefix Extraction Library'
|
13
|
+
gem.description = 'A library to extract information about top-level domain and registered name from generic and international domain names'
|
14
|
+
gem.email = 'tadman@postageapp.com'
|
15
|
+
gem.homepage = 'http://github.com/postageapp/domain_prefix'
|
15
16
|
gem.authors = [ 'Scott Tadman' ]
|
16
17
|
end
|
17
18
|
|
18
19
|
Juwelier::GemcutterTasks.new
|
19
20
|
rescue LoadError
|
20
|
-
puts
|
21
|
+
puts 'Juwelier (or a dependency) not available. Install it with: gem install Juwelier'
|
21
22
|
end
|
22
23
|
|
23
24
|
require 'rake/testtask'
|
@@ -29,17 +30,15 @@ Rake::TestTask.new(:test) do |test|
|
|
29
30
|
end
|
30
31
|
|
31
32
|
namespace :domain_prefix do
|
32
|
-
desc
|
33
|
+
desc 'Update the domain information'
|
33
34
|
task :update do
|
34
|
-
|
35
|
-
|
36
|
-
open("https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat") do |source|
|
35
|
+
URI.open('https://publicsuffix.org/list/public_suffix_list.dat') do |source|
|
37
36
|
open(File.expand_path(File.join('data', 'effective_tld_names.dat'), File.dirname(__FILE__)), 'w') do |dest|
|
38
37
|
dest.write(source.read)
|
39
38
|
end
|
40
39
|
end
|
41
40
|
|
42
|
-
open(
|
41
|
+
URI.open('https://raw.githubusercontent.com/publicsuffix/list/master/tests/test_psl.txt') do |source|
|
43
42
|
open(File.expand_path(File.join('test', 'sample', 'test.txt'), File.dirname(__FILE__)), 'w') do |dest|
|
44
43
|
dest.write(source.read)
|
45
44
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.20241203
|