public_suffix 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: eaa67d1cb0c7a21070e9b0bc56d3f83950efddb3
4
- data.tar.gz: 6c15669d468bf25585e7381127adc4670b147879
3
+ metadata.gz: cfa918ce54d7842eb495c67de83afab0bedffebc
4
+ data.tar.gz: 72167bc3655f79f968b348eb84a3a5a169370e38
5
5
  SHA512:
6
- metadata.gz: 7ad8bbd99caed951de6db31c58e6597e928af763aadb92a284533c2f64e9c6e6652a43cb2f890839ca052a7358d46fd35f87f7402334f3776955a3abdea4f609
7
- data.tar.gz: c59285a5c3c31f617f3e935202a7058d733629fb77fe1b3b9797e554de837810986b26a3e00f328a9d1511a00836a0de696d6bad1df899bf606a7e28c573988b
6
+ metadata.gz: 255aeb827a3aea57bc9037b9f15c1b787d121dc5650fc6cbb5ca2548994d2974f9a03c931a1a9c5ed63f1b94ad28b1fb70ece81382e1cbdaaa44a9a02fcc06d0
7
+ data.tar.gz: b600a8461867d367b3ce20a8f9518b68eebd70cbaf36fa5ece8abd8866153f904c5ef729f8a17f1870763bb92b084187d9a3a0a24356b171748fda53615f9775
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ #### Release 2.0.1
4
+
5
+ - FIXED: Fix bug that prevented .valid? to reset the default rule
6
+
3
7
 
4
8
  #### Release 2.0.0
5
9
 
@@ -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: nil, ignore_private: false)
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?
@@ -8,5 +8,5 @@
8
8
 
9
9
  module PublicSuffix
10
10
  # The current library version.
11
- VERSION = "2.0.0".freeze
11
+ VERSION = "2.0.1".freeze
12
12
  end
@@ -1,23 +1,23 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: public_suffix 1.5.3 ruby lib
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 = "1.5.3"
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 = "2015-12-14"
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/definitions.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 = "http://simonecarletti.com/code/publicsuffix"
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.4.7"
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.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-20 00:00:00.000000000 Z
11
+ date: 2016-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake