ruby-public_suffix: use system public-suffix

This commit is contained in:
Đoàn Trần Công Danh 2024-08-31 16:52:02 +07:00
parent ab5ef01b5e
commit 1285ae2c9d
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- a/public_suffix.gemspec
+++ b/public_suffix.gemspec
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
s.required_ruby_version = ">= 2.3"
s.require_paths = ["lib"]
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.files = `find . -type f -printf '%P\\n'`.split("\n")
+ s.test_files = `find test spec features -type f`.split("\n")
s.extra_rdoc_files = %w( LICENSE.txt )
s.add_development_dependency "rake"

View File

@ -0,0 +1,11 @@
--- a/lib/public_suffix/list.rb
+++ b/lib/public_suffix/list.rb
@@ -39,7 +39,7 @@ module PublicSuffix
#
class List
- DEFAULT_LIST_PATH = File.expand_path("../../data/list.txt", __dir__)
+ DEFAULT_LIST_PATH = "/usr/share/publicsuffix/public_suffix_list.dat"
# Gets the default rule list.
#

View File

@ -1,7 +1,7 @@
# Template file for 'ruby-public_suffix'
pkgname=ruby-public_suffix
version=4.0.2
revision=8
revision=9
build_style=gemspec
depends="ruby public-suffix"
short_desc="Parse domain names into top level domain, domain and subdomains"