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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 886edd202d9b6ed6b8e5c74659c16be5184311a1b566b3e74b552836036de850
4
- data.tar.gz: bd8176f4114346fcd983a0b3a7e439f5e2e915a04af6d2fb48b34ebb7f3712e5
3
+ metadata.gz: 7996954e9574a6609880417fcb5c2a54203c3b4fc05f8346de5c1a6c0d3b6d05
4
+ data.tar.gz: 2e10caee76327af7fdc28345bea19fe9fef3c90daed0b8e578a4e0ccce6579a3
5
5
  SHA512:
6
- metadata.gz: 36408eb6b0456f4e30186110c0fc7b06233754dd9d3a91fa072ce2e7278913a525a5cb7c2e87fff7eb24e71e3b8552ac2695ae8a05899d7018b9810463feead7
7
- data.tar.gz: 6ea8ee634d9ec3727599c19cb7013b4a29d6512a7ab521f46904062df0709ddb87416cc3f89bb9a3cc06aaee17bb29610e6fb36d81e006630fcd4cfeb61cd751
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 = "domain_prefix"
11
- gem.summary = "Domain Prefix Extraction Library"
12
- gem.description = "A library to extract information about top-level domain and registered name from generic and international domain names"
13
- gem.email = "tadman@postageapp.com"
14
- gem.homepage = "http://github.com/postageapp/domain_prefix"
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 "Juwelier (or a dependency) not available. Install it with: gem install Juwelier"
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 "Update the domain information"
33
+ desc 'Update the domain information'
33
34
  task :update do
34
- require 'open-uri'
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("https://raw.githubusercontent.com/publicsuffix/list/master/tests/test_psl.txt") do |source|
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.4.20210201
1
+ 1.0.20241203