public_suffix 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a76377a5517bdb6d514afc695a068693ce686a05
4
- data.tar.gz: e6dcf02235a7a2db0a9998d253ccd3d1b087c320
3
+ metadata.gz: 49244598a3e6e0ae4cbadac12b21f3c803b89b97
4
+ data.tar.gz: 8a3d9f9195efad42e5f55dfb52418d47471b7339
5
5
  SHA512:
6
- metadata.gz: eaf306a9358c612ce7488750348c1d35baea22a865c40a4b00c6d3dea8a5226922e9de9532b53bf9f6152ac0109da5e315f57f49a9b63efd50a3f2c9176ac7d2
7
- data.tar.gz: 7f80e35d969e7bf468483d6bd39c07bfa532aaf47daeb88ace1690799348ea4ad17b2654ac25ada0d6ea2ddf3b67d65ba9ec5c196cfa3f066e234430101fa318
6
+ metadata.gz: eef4623655891b8e75ed08df1683414a4e1a849b0cb03b24082f386ca05426a80f7bdd903881b47d2d86347718b0c34aca66db64391ea4b54ea6fb40f23a0adc
7
+ data.tar.gz: d10fdf686a1ae31457a1432c84c02674023ec8789fa2099851b0e3c91dca726d81af3bf4f835ac9c7b07ac17bd57c82797b0294c186889d54057f850825be641
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ #### Release 1.4.5
5
+
6
+ - CHANGED: Updated definitions.
7
+
8
+
4
9
  #### Release 1.4.4
5
10
 
6
11
  - CHANGED: Updated definitions.
data/lib/definitions.txt CHANGED
@@ -404,7 +404,7 @@ mil.bo
404
404
  tv.bo
405
405
 
406
406
  // br : http://registro.br/dominio/categoria.html
407
- // Submitted by registry <fneves@registro.br> 2014-03-04
407
+ // Submitted by registry <fneves@registro.br> 2014-08-11
408
408
  br
409
409
  adm.br
410
410
  adv.br
@@ -452,7 +452,7 @@ mil.br
452
452
  mp.br
453
453
  mus.br
454
454
  net.br
455
- nom.br
455
+ *.nom.br
456
456
  not.br
457
457
  ntr.br
458
458
  odo.br
@@ -818,7 +818,14 @@ gob.es
818
818
  edu.es
819
819
 
820
820
  // et : http://en.wikipedia.org/wiki/.et
821
- *.et
821
+ et
822
+ com.et
823
+ gov.et
824
+ org.et
825
+ edu.et
826
+ biz.et
827
+ name.et
828
+ info.et
822
829
 
823
830
  // eu : http://en.wikipedia.org/wiki/.eu
824
831
  eu
@@ -6005,11 +6012,35 @@ mil.to
6005
6012
  // Submitted by Ryan Sleevi <ryan.sleevi@gmail.com> 2014-01-03
6006
6013
  tp
6007
6014
 
6008
- // tr : http://en.wikipedia.org/wiki/.tr
6009
- *.tr
6010
- !nic.tr
6011
- // Used by government in the TRNC
6012
- // http://en.wikipedia.org/wiki/.nc.tr
6015
+ // subTLDs: https://www.nic.tr/forms/eng/policies.pdf
6016
+ // and: https://www.nic.tr/forms/politikalar.pdf
6017
+ // Submitted by <mehmetgurevin@gmail.com> 2014-07-19
6018
+ tr
6019
+ com.tr
6020
+ info.tr
6021
+ biz.tr
6022
+ net.tr
6023
+ org.tr
6024
+ web.tr
6025
+ gen.tr
6026
+ tv.tr
6027
+ av.tr
6028
+ dr.tr
6029
+ bbs.tr
6030
+ name.tr
6031
+ tel.tr
6032
+ gov.tr
6033
+ bel.tr
6034
+ pol.tr
6035
+ mil.tr
6036
+ k12.tr
6037
+ edu.tr
6038
+ kep.tr
6039
+
6040
+ // Used by Northern Cyprus
6041
+ nc.tr
6042
+
6043
+ // Used by government agencies of Northern Cyprus
6013
6044
  gov.nc.tr
6014
6045
 
6015
6046
  // travel : http://en.wikipedia.org/wiki/.travel
@@ -6284,7 +6315,7 @@ k12.mo.us
6284
6315
  k12.ms.us
6285
6316
  k12.mt.us
6286
6317
  k12.nc.us
6287
- k12.nd.us
6318
+ // k12.nd.us Bug 1028347 - Removed at request of Travis Rosso <trossow@nd.gov>
6288
6319
  k12.ne.us
6289
6320
  k12.nh.us
6290
6321
  k12.nj.us
@@ -6309,7 +6340,6 @@ k12.wa.us
6309
6340
  k12.wi.us
6310
6341
  // k12.wv.us Bug 947705 - Removed at request of Verne Britton <verne@wvnet.edu>
6311
6342
  k12.wy.us
6312
-
6313
6343
  cc.ak.us
6314
6344
  cc.al.us
6315
6345
  cc.ar.us
@@ -6365,7 +6395,6 @@ cc.wa.us
6365
6395
  cc.wi.us
6366
6396
  cc.wv.us
6367
6397
  cc.wy.us
6368
-
6369
6398
  lib.ak.us
6370
6399
  lib.al.us
6371
6400
  lib.ar.us
@@ -6421,7 +6450,6 @@ lib.wa.us
6421
6450
  lib.wi.us
6422
6451
  // lib.wv.us Bug 941670 - Removed at request of Larry W Arnold <arnold@wvlc.lib.wv.us>
6423
6452
  lib.wy.us
6424
-
6425
6453
  // k12.ma.us contains school districts in Massachusetts. The 4LDs are
6426
6454
  // managed indepedently except for private (PVT), charter (CHTR) and
6427
6455
  // parochial (PAROCH) schools. Those are delegated dorectly to the
@@ -7673,8 +7701,8 @@ pictures
7673
7701
  // gripe : 2014-03-07 Corn Sunset, LLC
7674
7702
  gripe
7675
7703
 
7676
- // engineering : 2014-03-07 United TLD Holdco Ltd.
7677
- engineering
7704
+ // engineer : 2014-03-07 United TLD Holdco Ltd.
7705
+ engineer
7678
7706
 
7679
7707
  // associates : 2014-03-07 Baxter Hill, LLC
7680
7708
  associates
@@ -7988,6 +8016,171 @@ click
7988
8016
  // cern : 2014-06-05 European Organization for Nuclear Research ("CERN")
7989
8017
  cern
7990
8018
 
8019
+ // healthcare : 2014-06-13 Silver Glen, LLC
8020
+ healthcare
8021
+
8022
+ // xn--30rr7y : 2014-06-13 Excellent First Limited
8023
+ 慈善
8024
+
8025
+ // band : 2014-06-13 Auburn Hollow, LLC
8026
+ band
8027
+
8028
+ // xn--9et52u : 2014-06-13 RISE VICTORY LIMITED
8029
+ 时尚
8030
+
8031
+ // world : 2014-06-13 Bitter Fields, LLC
8032
+ world
8033
+
8034
+ // latrobe : 2014-06-16 La Trobe University
8035
+ latrobe
8036
+
8037
+ // bible : 2014-06-19 American Bible Society
8038
+ bible
8039
+
8040
+ // java : 2014-06-19 Oracle Corporation
8041
+ java
8042
+
8043
+ // sky : 2014-06-19 Sky IP International Ltd, a company incorporated in England and Wales, operating via its registered Swiss branch
8044
+ sky
8045
+
8046
+ // oracle : 2014-06-19 Oracle Corporation
8047
+ oracle
8048
+
8049
+ // pharmacy : 2014-06-19 National Association of Boards of Pharmacy
8050
+ pharmacy
8051
+
8052
+ // dvag : 2014-06-23 Deutsche Vermögensberatung Aktiengesellschaft DVAG
8053
+ dvag
8054
+
8055
+ // xn--vermgensberater-ctb : 2014-06-23 Deutsche Vermögensberatung Aktiengesellschaft DVAG
8056
+ vermögensberater
8057
+
8058
+ // xn--vermgensberatung-pwb : 2014-06-23 Deutsche Vermögensberatung Aktiengesellschaft DVAG
8059
+ vermögensberatung
8060
+
8061
+ // montblanc : 2014-06-23 Richemont DNS Inc.
8062
+ montblanc
8063
+
8064
+ // iwc : 2014-06-23 Richemont DNS Inc.
8065
+ iwc
8066
+
8067
+ // cartier : 2014-06-23 Richemont DNS Inc.
8068
+ cartier
8069
+
8070
+ // pohl : 2014-06-23 Deutsche Vermögensberatung Aktiengesellschaft DVAG
8071
+ pohl
8072
+
8073
+ // diet : 2014-06-26 Uniregistry, Corp.
8074
+ diet
8075
+
8076
+ // cba : 2014-06-26 COMMONWEALTH BANK OF AUSTRALIA
8077
+ cba
8078
+
8079
+ // netbank : 2014-06-26 COMMONWEALTH BANK OF AUSTRALIA
8080
+ netbank
8081
+
8082
+ // pictet : 2014-06-26 Pictet Europe S.A.
8083
+ pictet
8084
+
8085
+ // help : 2014-06-26 Uniregistry, Corp.
8086
+ help
8087
+
8088
+ // pizza : 2014-06-26 Foggy Moon, LLC
8089
+ pizza
8090
+
8091
+ // garden : 2014-06-26 Top Level Domain Holdings Limited
8092
+ garden
8093
+
8094
+ // commbank : 2014-06-26 COMMONWEALTH BANK OF AUSTRALIA
8095
+ commbank
8096
+
8097
+ // gifts : 2014-07-03 Goose Sky, LLC
8098
+ gifts
8099
+
8100
+ // fashion : 2014-07-03 Top Level Domain Holdings Limited
8101
+ fashion
8102
+
8103
+ // tui : 2014-07-03 TUI AG
8104
+ tui
8105
+
8106
+ // iinet : 2014-07-03 Connect West Pty. Ltd.
8107
+ iinet
8108
+
8109
+ // restaurant : 2014-07-03 Snow Avenue, LLC
8110
+ restaurant
8111
+
8112
+ // alsace : 2014-07-02 REGION D ALSACE
8113
+ alsace
8114
+
8115
+ // poker : 2014-07-03 Afilias Domains No. 5 Limited
8116
+ poker
8117
+
8118
+ // allfinanz : 2014-07-03 Allfinanz Deutsche Vermögensberatung Aktiengesellschaft
8119
+ allfinanz
8120
+
8121
+ // sarl : 2014-07-03 Delta Orchard, LLC
8122
+ sarl
8123
+
8124
+ // taipei : 2014-07-10 Taipei City Government
8125
+ taipei
8126
+
8127
+ // immo : 2014-07-10 Auburn Bloom, LLC
8128
+ immo
8129
+
8130
+ // hermes : 2014-07-10 HERMES INTERNATIONAL
8131
+ hermes
8132
+
8133
+ // rip : 2014-07-10 United TLD Holdco Ltd.
8134
+ rip
8135
+
8136
+ // gbiz : 2014-07-17 Charleston Road Registry Inc.
8137
+ gbiz
8138
+
8139
+ // bloomberg : 2014-07-17 Bloomberg IP Holdings LLC
8140
+ bloomberg
8141
+
8142
+ // sew : 2014-07-17 SEW-EURODRIVE GmbH & Co KG
8143
+ sew
8144
+
8145
+ // prof : 2014-07-24 Charleston Road Registry Inc.
8146
+ prof
8147
+
8148
+ // gle : 2014-07-24 Charleston Road Registry Inc.
8149
+ gle
8150
+
8151
+ // amsterdam : 2014-07-24 Gemeente Amsterdam
8152
+ amsterdam
8153
+
8154
+ // aquarelle : 2014-07-24 Aquarelle.com
8155
+ aquarelle
8156
+
8157
+ // nexus : 2014-07-24 Charleston Road Registry Inc.
8158
+ nexus
8159
+
8160
+ // flsmidth : 2014-07-24 FLSmidth A/S
8161
+ flsmidth
8162
+
8163
+ // bnl : 2014-07-24 Banca Nazionale del Lavoro
8164
+ bnl
8165
+
8166
+ // bcn : 2014-07-24 Municipi de Barcelona
8167
+ bcn
8168
+
8169
+ // chrome : 2014-07-24 Charleston Road Registry Inc.
8170
+ chrome
8171
+
8172
+ // google : 2014-07-24 Charleston Road Registry Inc.
8173
+ google
8174
+
8175
+ // barcelona : 2014-07-24 Municipi de Barcelona
8176
+ barcelona
8177
+
8178
+ // cal : 2014-07-24 Charleston Road Registry Inc.
8179
+ cal
8180
+
8181
+ // abbott : 2014-07-24 Abbott Laboratories, Inc.
8182
+ abbott
8183
+
7991
8184
  // ===END ICANN DOMAINS===
7992
8185
  // ===BEGIN PRIVATE DOMAINS===
7993
8186
 
@@ -8414,6 +8607,10 @@ global.prod.fastly.net
8414
8607
  // Submitted by Chris Raynor <chris@firebase.com> 2014-01-21
8415
8608
  firebaseapp.com
8416
8609
 
8610
+ // Flynn : https://flynn.io
8611
+ // Submitted by Jonathan Rudenberg <jonathan@flynn.io> 2014-07-12
8612
+ flynnhub.com
8613
+
8417
8614
  // GitHub, Inc.
8418
8615
  // Submitted by Ben Toews <btoews@github.com> 2014-02-06
8419
8616
  github.io
@@ -8521,6 +8718,10 @@ rhcloud.com
8521
8718
  // Submitted by registry <lendl@nic.at> 2008-06-09
8522
8719
  priv.at
8523
8720
 
8721
+ // Yola : https://www.yola.com/
8722
+ // Submitted by Stefano Rivera <stefano@yola.com> 2014-07-09
8723
+ yolasite.com
8724
+
8524
8725
  // ZaNiC : http://www.za.net/
8525
8726
  // Submitted by registry <hostmaster@nic.za.net> 2009-10-03
8526
8727
  za.net
data/lib/public_suffix.rb CHANGED
@@ -34,15 +34,15 @@ module PublicSuffix
34
34
  # @example Parse a valid domain
35
35
  # PublicSuffix.parse("google.com")
36
36
  # # => #<PublicSuffix::Domain ...>
37
- #
37
+ #
38
38
  # @example Parse a valid subdomain
39
39
  # PublicSuffix.parse("www.google.com")
40
40
  # # => #<PublicSuffix::Domain ...>
41
- #
41
+ #
42
42
  # @example Parse a fully qualified domain
43
43
  # PublicSuffix.parse("google.com.")
44
44
  # # => #<PublicSuffix::Domain ...>
45
- #
45
+ #
46
46
  # @example Parse a fully qualified domain (subdomain)
47
47
  # PublicSuffix.parse("www.google.com.")
48
48
  # # => #<PublicSuffix::Domain ...>
@@ -104,7 +104,7 @@ module PublicSuffix
104
104
  # # => true
105
105
  #
106
106
  # @example Validate a not-assigned domain
107
- # PublicSuffix.valid?("example.zip")
107
+ # PublicSuffix.valid?("example.qqq")
108
108
  # # => false
109
109
  #
110
110
  # @example Validate a not-allowed domain
@@ -112,7 +112,7 @@ module PublicSuffix
112
112
  # # => false
113
113
  # PublicSuffix.valid?("www.example.do")
114
114
  # # => true
115
- #
115
+ #
116
116
  # @example Validate a fully qualified domain
117
117
  # PublicSuffix.valid?("google.com.")
118
118
  # # => true
@@ -146,8 +146,8 @@ module PublicSuffix
146
146
  # as a valid domain name and simply applies the necessary transformations.
147
147
  #
148
148
  # # This is an invalid domain
149
- # PublicSuffix::Domain.new("zip", "google").domain
150
- # # => "google.zip"
149
+ # PublicSuffix::Domain.new("qqq", "google").domain
150
+ # # => "google.qqq"
151
151
  #
152
152
  # This method returns a FQD, not just the domain part.
153
153
  # To get the domain part, use <tt>#sld</tt> (aka second level domain).
@@ -184,8 +184,8 @@ module PublicSuffix
184
184
  # as a valid domain name and simply applies the necessary transformations.
185
185
  #
186
186
  # # This is an invalid domain
187
- # PublicSuffix::Domain.new("zip", "google", "www").subdomain
188
- # # => "www.google.zip"
187
+ # PublicSuffix::Domain.new("qqq", "google", "www").subdomain
188
+ # # => "www.google.qqq"
189
189
  #
190
190
  # This method returns a FQD, not just the domain part.
191
191
  # To get the subdomain part, use <tt>#trd</tt> (aka third level domain).
@@ -240,7 +240,7 @@ module PublicSuffix
240
240
  #
241
241
  # # This is an invalid domain, but returns true
242
242
  # # because this method doesn't validate the content.
243
- # PublicSuffix::Domain.new("zip", "google").domain?
243
+ # PublicSuffix::Domain.new("qqq", "google").domain?
244
244
  # # => true
245
245
  #
246
246
  # @see #subdomain?
@@ -272,7 +272,7 @@ module PublicSuffix
272
272
  #
273
273
  # # This is an invalid domain, but returns true
274
274
  # # because this method doesn't validate the content.
275
- # PublicSuffix::Domain.new("zip", "google", "www").subdomain?
275
+ # PublicSuffix::Domain.new("qqq", "google", "www").subdomain?
276
276
  # # => true
277
277
  #
278
278
  # @see #domain?
@@ -313,7 +313,7 @@ module PublicSuffix
313
313
  # # => true
314
314
  #
315
315
  # @example Check a not-assigned domain
316
- # Domain.new("zip", "example").valid?
316
+ # Domain.new("qqq", "example").valid?
317
317
  # # => false
318
318
  #
319
319
  # @example Check a not-allowed domain
@@ -345,7 +345,7 @@ module PublicSuffix
345
345
  # # => true
346
346
  #
347
347
  # # This is an invalid domain
348
- # PublicSuffix::Domain.new("zip", "google").false?
348
+ # PublicSuffix::Domain.new("qqq", "google").false?
349
349
  # # => true
350
350
  #
351
351
  # @see #domain?
@@ -372,7 +372,7 @@ module PublicSuffix
372
372
  # # => true
373
373
  #
374
374
  # # This is an invalid domain
375
- # PublicSuffix::Domain.new("zip", "google", "www").subdomain?
375
+ # PublicSuffix::Domain.new("qqq", "google", "www").subdomain?
376
376
  # # => false
377
377
  #
378
378
  # @see #subdomain?
@@ -12,7 +12,7 @@ module PublicSuffix
12
12
  module Version
13
13
  MAJOR = 1
14
14
  MINOR = 4
15
- PATCH = 4
15
+ PATCH = 5
16
16
  BUILD = nil
17
17
 
18
18
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: public_suffix 1.4.3 ruby lib
2
+ # stub: public_suffix 1.4.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "public_suffix"
6
- s.version = "1.4.3"
6
+ s.version = "1.4.4"
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 = "2014-06-12"
11
+ s.date = "2014-06-17"
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", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/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"]
@@ -85,24 +85,24 @@ class PublicSuffix::DomainTest < Test::Unit::TestCase
85
85
 
86
86
  def test_domain
87
87
  assert_equal nil, @klass.new("com").domain
88
- assert_equal nil, @klass.new("zip").domain
88
+ assert_equal nil, @klass.new("qqq").domain
89
89
  assert_equal "google.com", @klass.new("com", "google").domain
90
- assert_equal "google.zip", @klass.new("zip", "google").domain
90
+ assert_equal "google.qqq", @klass.new("qqq", "google").domain
91
91
  assert_equal "google.com", @klass.new("com", "google", "www").domain
92
- assert_equal "google.zip", @klass.new("zip", "google", "www").domain
92
+ assert_equal "google.qqq", @klass.new("qqq", "google", "www").domain
93
93
  end
94
94
 
95
95
  def test_subdomain
96
96
  assert_equal nil, @klass.new("com").subdomain
97
- assert_equal nil, @klass.new("zip").subdomain
97
+ assert_equal nil, @klass.new("qqq").subdomain
98
98
  assert_equal nil, @klass.new("com", "google").subdomain
99
- assert_equal nil, @klass.new("zip", "google").subdomain
99
+ assert_equal nil, @klass.new("qqq", "google").subdomain
100
100
  assert_equal "www.google.com", @klass.new("com", "google", "www").subdomain
101
- assert_equal "www.google.zip", @klass.new("zip", "google", "www").subdomain
101
+ assert_equal "www.google.qqq", @klass.new("qqq", "google", "www").subdomain
102
102
  end
103
103
 
104
104
  def test_rule
105
- assert_equal nil, @klass.new("zip").rule
105
+ assert_equal nil, @klass.new("qqq").rule
106
106
  assert_equal PublicSuffix::Rule.factory("com"), @klass.new("com").rule
107
107
  assert_equal PublicSuffix::Rule.factory("com"), @klass.new("com", "google").rule
108
108
  assert_equal PublicSuffix::Rule.factory("com"), @klass.new("com", "google", "www").rule
@@ -111,28 +111,28 @@ class PublicSuffix::DomainTest < Test::Unit::TestCase
111
111
 
112
112
  def test_domain_question
113
113
  assert @klass.new("com", "google").domain?
114
- assert @klass.new("zip", "google").domain?
114
+ assert @klass.new("qqq", "google").domain?
115
115
  assert @klass.new("com", "google", "www").domain?
116
116
  assert !@klass.new("com").domain?
117
117
  end
118
118
 
119
119
  def test_subdomain_question
120
120
  assert @klass.new("com", "google", "www").subdomain?
121
- assert @klass.new("zip", "google", "www").subdomain?
121
+ assert @klass.new("qqq", "google", "www").subdomain?
122
122
  assert !@klass.new("com").subdomain?
123
123
  assert !@klass.new("com", "google").subdomain?
124
124
  end
125
125
 
126
126
  def test_is_a_domain_question
127
127
  assert @klass.new("com", "google").is_a_domain?
128
- assert @klass.new("zip", "google").is_a_domain?
128
+ assert @klass.new("qqq", "google").is_a_domain?
129
129
  assert !@klass.new("com", "google", "www").is_a_domain?
130
130
  assert !@klass.new("com").is_a_domain?
131
131
  end
132
132
 
133
133
  def test_is_a_subdomain_question
134
134
  assert @klass.new("com", "google", "www").is_a_subdomain?
135
- assert @klass.new("zip", "google", "www").is_a_subdomain?
135
+ assert @klass.new("qqq", "google", "www").is_a_subdomain?
136
136
  assert !@klass.new("com").is_a_subdomain?
137
137
  assert !@klass.new("com", "google").is_a_subdomain?
138
138
  end
@@ -143,9 +143,9 @@ class PublicSuffix::DomainTest < Test::Unit::TestCase
143
143
  assert @klass.new("com", "example", "www").valid?
144
144
 
145
145
  # not-assigned
146
- assert !@klass.new("zip").valid?
147
- assert !@klass.new("zip", "example").valid?
148
- assert !@klass.new("zip", "example", "www").valid?
146
+ assert !@klass.new("qqq").valid?
147
+ assert !@klass.new("qqq", "example").valid?
148
+ assert !@klass.new("qqq", "example", "www").valid?
149
149
 
150
150
  # not-allowed
151
151
  assert !@klass.new("ke").valid?
@@ -155,14 +155,14 @@ class PublicSuffix::DomainTest < Test::Unit::TestCase
155
155
 
156
156
  def test_valid_domain_question
157
157
  assert @klass.new("com", "google").valid_domain?
158
- assert !@klass.new("zip", "google").valid_domain?
158
+ assert !@klass.new("qqq", "google").valid_domain?
159
159
  assert @klass.new("com", "google", "www").valid_domain?
160
160
  assert !@klass.new("com").valid_domain?
161
161
  end
162
162
 
163
163
  def test_valid_subdomain_question
164
164
  assert @klass.new("com", "google", "www").valid_subdomain?
165
- assert !@klass.new("zip", "google", "www").valid_subdomain?
165
+ assert !@klass.new("qqq", "google", "www").valid_subdomain?
166
166
  assert !@klass.new("com").valid_subdomain?
167
167
  assert !@klass.new("com", "google").valid_subdomain?
168
168
  end
@@ -51,12 +51,12 @@ class PublicSuffixTest < Test::Unit::TestCase
51
51
  assert_equal "example", domain.sld
52
52
  assert_equal "www", domain.trd
53
53
  end
54
-
54
+
55
55
  def test_private_domains_are_enabled_by_default
56
56
  domain = PublicSuffix.parse("www.example.blogspot.com")
57
57
  assert_equal "blogspot.com", domain.tld
58
58
  end
59
-
59
+
60
60
  def test_disable_support_for_private_domains
61
61
  begin
62
62
  PublicSuffix::List.private_domains = false
@@ -78,8 +78,8 @@ class PublicSuffixTest < Test::Unit::TestCase
78
78
  end
79
79
 
80
80
  def test_self_parse_raises_with_invalid_domain
81
- error = assert_raise(PublicSuffix::DomainInvalid) { PublicSuffix.parse("example.zip") }
82
- assert_match %r{example\.zip}, error.message
81
+ error = assert_raise(PublicSuffix::DomainInvalid) { PublicSuffix.parse("example.qqq") }
82
+ assert_match %r{example\.qqq}, error.message
83
83
  end
84
84
 
85
85
  def test_self_parse_raises_with_unallowed_domain
@@ -102,14 +102,14 @@ class PublicSuffixTest < Test::Unit::TestCase
102
102
 
103
103
  # Returns false when domain has an invalid TLD
104
104
  def test_self_valid_with_invalid_tld
105
- assert !PublicSuffix.valid?("google.zip")
106
- assert !PublicSuffix.valid?("www.google.zip")
105
+ assert !PublicSuffix.valid?("google.qqq")
106
+ assert !PublicSuffix.valid?("www.google.qqq")
107
107
  end
108
108
 
109
109
  def test_self_valid_with_fully_qualified_domain_name
110
110
  assert PublicSuffix.valid?("google.com.")
111
111
  assert PublicSuffix.valid?("google.co.uk.")
112
- assert !PublicSuffix.valid?("google.zip.")
112
+ assert !PublicSuffix.valid?("google.qqq.")
113
113
  end
114
114
 
115
- end
115
+ end
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.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Carletti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake