ruby-public_suffix: use system public-suffix
This commit is contained in:
parent
ab5ef01b5e
commit
1285ae2c9d
|
@ -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"
|
|
@ -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.
|
||||
#
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue