public_suffix 1.5.1 → 1.5.2

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.
@@ -11,7 +11,7 @@ module PublicSuffix
11
11
  module Version
12
12
  MAJOR = 1
13
13
  MINOR = 5
14
- PATCH = 1
14
+ PATCH = 2
15
15
  BUILD = nil
16
16
 
17
17
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: public_suffix 1.5.0 ruby lib
2
+ # stub: public_suffix 1.5.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "public_suffix"
6
- s.version = "1.5.0"
6
+ s.version = "1.5.1"
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-03-24"
11
+ s.date = "2015-04-10"
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
14
  s.files = [".gemtest", ".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/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"]
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class AcceptanceTest < Test::Unit::TestCase
3
+ class AcceptanceTest < Minitest::Unit::TestCase
4
4
 
5
5
  ValidCases = [
6
6
  ["google.com", [nil, "google", "com"]],
data/test/test_helper.rb CHANGED
@@ -1,6 +1,12 @@
1
1
  require 'rubygems'
2
- require 'test/unit'
2
+ require 'minitest/autorun'
3
3
  require 'mocha/setup'
4
4
 
5
5
  $:.unshift File.expand_path('../../lib', __FILE__)
6
6
  require 'public_suffix'
7
+
8
+ Minitest::Unit::TestCase.class_eval do
9
+ def assert_not_equal(exp, act, msg = nil)
10
+ assert_operator(exp, :!=, act, msg)
11
+ end unless method_exists?(:assert_not_equal)
12
+ end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class PublicSuffix::DomainTest < Test::Unit::TestCase
3
+ class PublicSuffix::DomainTest < Minitest::Unit::TestCase
4
4
 
5
5
  def setup
6
6
  @klass = PublicSuffix::Domain
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class ErrorsTest < Test::Unit::TestCase
3
+ class ErrorsTest < Minitest::Unit::TestCase
4
4
 
5
5
  # Inherits from StandardError
6
6
  def test_error_inheritance
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class PublicSuffix::ListTest < Test::Unit::TestCase
3
+ class PublicSuffix::ListTest < Minitest::Unit::TestCase
4
4
 
5
5
  def setup
6
6
  @list = PublicSuffix::List.new
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class PublicSuffixTest < Test::Unit::TestCase
3
+ class PublicSuffixTest < Minitest::Unit::TestCase
4
4
 
5
5
  def test_self_parse_a_domain_with_tld_and_sld
6
6
  domain = PublicSuffix.parse("example.com")
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class PublicSuffix::RuleTest < Test::Unit::TestCase
3
+ class PublicSuffix::RuleTest < Minitest::Unit::TestCase
4
4
 
5
5
  def test_factory_should_return_rule_normal
6
6
  rule = PublicSuffix::Rule.factory("com")
@@ -26,7 +26,7 @@ class PublicSuffix::RuleTest < Test::Unit::TestCase
26
26
  end
27
27
 
28
28
 
29
- class PublicSuffix::RuleBaseTest < Test::Unit::TestCase
29
+ class PublicSuffix::RuleBaseTest < Minitest::Unit::TestCase
30
30
 
31
31
  class ::PublicSuffix::Rule::Test < ::PublicSuffix::Rule::Base
32
32
  end
@@ -88,7 +88,7 @@ class PublicSuffix::RuleBaseTest < Test::Unit::TestCase
88
88
  end
89
89
 
90
90
 
91
- class PublicSuffix::RuleNormalTest < Test::Unit::TestCase
91
+ class PublicSuffix::RuleNormalTest < Minitest::Unit::TestCase
92
92
 
93
93
  def setup
94
94
  @klass = PublicSuffix::Rule::Normal
@@ -165,7 +165,7 @@ class PublicSuffix::RuleNormalTest < Test::Unit::TestCase
165
165
  end
166
166
 
167
167
 
168
- class PublicSuffix::RuleExceptionTest < Test::Unit::TestCase
168
+ class PublicSuffix::RuleExceptionTest < Minitest::Unit::TestCase
169
169
 
170
170
  def setup
171
171
  @klass = PublicSuffix::Rule::Exception
@@ -236,7 +236,7 @@ class PublicSuffix::RuleExceptionTest < Test::Unit::TestCase
236
236
  end
237
237
 
238
238
 
239
- class PublicSuffix::RuleWildcardTest < Test::Unit::TestCase
239
+ class PublicSuffix::RuleWildcardTest < Minitest::Unit::TestCase
240
240
 
241
241
  def setup
242
242
  @klass = PublicSuffix::Rule::Wildcard
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: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Carletti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-10 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.4.5
107
+ rubygems_version: 2.4.7
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Domain name parser based on the Public Suffix List.