public_suffix 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/public_suffix.rb +1 -2
- data/lib/public_suffix/version.rb +1 -1
- data/public_suffix.gemspec +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfa918ce54d7842eb495c67de83afab0bedffebc
|
4
|
+
data.tar.gz: 72167bc3655f79f968b348eb84a3a5a169370e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255aeb827a3aea57bc9037b9f15c1b787d121dc5650fc6cbb5ca2548994d2974f9a03c931a1a9c5ed63f1b94ad28b1fb70ece81382e1cbdaaa44a9a02fcc06d0
|
7
|
+
data.tar.gz: b600a8461867d367b3ce20a8f9518b68eebd70cbaf36fa5ece8abd8866153f904c5ef729f8a17f1870763bb92b084187d9a3a0a24356b171748fda53615f9775
|
data/CHANGELOG.md
CHANGED
data/lib/public_suffix.rb
CHANGED
@@ -113,11 +113,10 @@ module PublicSuffix
|
|
113
113
|
# @param [String, #to_s] name The domain name or fully qualified domain name to validate.
|
114
114
|
# @param [Boolean] ignore_private
|
115
115
|
# @return [Boolean]
|
116
|
-
def self.valid?(name, list: List.default, default_rule:
|
116
|
+
def self.valid?(name, list: List.default, default_rule: list.default_rule, ignore_private: false)
|
117
117
|
what = normalize(name)
|
118
118
|
return false if what.is_a?(DomainInvalid)
|
119
119
|
|
120
|
-
default_rule ||= list.default_rule
|
121
120
|
rule = list.find(what, default: default_rule, ignore_private: ignore_private)
|
122
121
|
|
123
122
|
!rule.nil? && !rule.decompose(what).last.nil?
|
data/public_suffix.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: public_suffix
|
2
|
+
# stub: public_suffix 2.0.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "public_suffix"
|
6
|
-
s.version = "
|
6
|
+
s.version = "2.0.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["Simone Carletti"]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2016-05-20"
|
12
12
|
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
|
13
13
|
s.email = "weppos@weppos.net"
|
14
|
-
s.files = [".gitignore", ".ruby-gemset", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "data/
|
15
|
-
s.homepage = "
|
14
|
+
s.files = [".gitignore", ".rubocop.yml", ".rubocop_defaults.yml", ".ruby-gemset", ".travis.yml", ".yardopts", "2.0-Upgrade.md", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "data/list.txt", "lib/public_suffix.rb", "lib/public_suffix/domain.rb", "lib/public_suffix/errors.rb", "lib/public_suffix/list.rb", "lib/public_suffix/rule.rb", "lib/public_suffix/version.rb", "public_suffix.gemspec", "test/acceptance_test.rb", "test/benchmark_helper.rb", "test/execution_profiler.rb", "test/initialization_profiler.rb", "test/performance_benchmark.rb", "test/psl_test.rb", "test/test_helper.rb", "test/tests.txt", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
|
15
|
+
s.homepage = "https://simonecarletti.com/code/publicsuffix-ruby"
|
16
16
|
s.licenses = ["MIT"]
|
17
17
|
s.required_ruby_version = Gem::Requirement.new(">= 2.0")
|
18
|
-
s.rubygems_version = "2.
|
18
|
+
s.rubygems_version = "2.5.1"
|
19
19
|
s.summary = "Domain name parser based on the Public Suffix List."
|
20
|
-
s.test_files = ["test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
|
20
|
+
s.test_files = ["test/acceptance_test.rb", "test/benchmark_helper.rb", "test/execution_profiler.rb", "test/initialization_profiler.rb", "test/performance_benchmark.rb", "test/psl_test.rb", "test/test_helper.rb", "test/tests.txt", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
s.specification_version = 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: public_suffix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|