public_suffix 2.0.2 → 2.0.3

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: 68fe527c1734de75cf3747b9820a40e182bd2cdd
4
- data.tar.gz: e53db4d13c769baa0d170b3c7cfe6a8353ad3ea3
3
+ metadata.gz: da682b74eee72598f1659f0857f398fd054c5730
4
+ data.tar.gz: 7ca5aaa333dcc7c7fa5e4839e6d8e49996519cd2
5
5
  SHA512:
6
- metadata.gz: 60e029efcdc9b842ac6fe6fe8ca1c05ae12245747738fba6e1b042d51f6a21fa1f555fe0103b8dfaf41343e74535ba64e00a98114de05c7918dc00cda9280a25
7
- data.tar.gz: 712f7473d8fd368d801126d927c4d562fbc5bf31b4a1206ca5c5da8a15adcd3f98378797a24346d2563365f396166796a8bc23e52cb00755511bd5555185d6ef
6
+ metadata.gz: 85fba00ff15c765f556d1bd3300d3adeccf97a327623faacb2e0f7da129c2f15983e7b51365589ef78e2b86d8a0d7310b5618bbfb08bdb592839cc9cc7c1c52c
7
+ data.tar.gz: 0f66ae5d47e618417c4db33e0cfd27e50e02a9a357b4d5dee8e2c41db59d13d50ff4c67a0de1915a93cf7ffee9b8ee2a069ae8f2e34d3c6f7422deef04fb07b2
@@ -91,9 +91,6 @@ Style/MultilineMethodCallIndentation:
91
91
  EnforcedStyle: indented
92
92
  IndentationWidth: 4
93
93
 
94
- Style/IfUnlessModifier:
95
- Enabled: false
96
-
97
94
  # unless is not always cool.
98
95
  Style/NegatedIf:
99
96
  Enabled: false
@@ -103,6 +100,17 @@ Style/NegatedIf:
103
100
  Style/RescueModifier:
104
101
  Enabled: false
105
102
 
103
+ # Sorry, but using trailing spaces helps readability.
104
+ #
105
+ # %w( foo bar )
106
+ #
107
+ # looks better to me than
108
+ #
109
+ # %w( foo bar )
110
+ #
111
+ Style/SpaceInsidePercentLiteralDelimiters:
112
+ Enabled: false
113
+
106
114
  # Hate It or Love It, I prefer double quotes as this is more consistent
107
115
  # with several other programming languages and the output of puts and inspect.
108
116
  Style/StringLiterals:
@@ -6,7 +6,7 @@ This document documents the most relevant changes to help you upgrading from Pub
6
6
 
7
7
  ## What's New
8
8
 
9
- - The library is now 100% compliants with the official PublicSuffix tests. The major breaking change you may experience, is that if a domain passed as input doesn't match any rule, the rule `*` is assumed. You can override this behavior by passing a custom default rule with the `default_rule` option.
9
+ - The library is now 100% compliants with the official PublicSuffix tests. The major breaking change you may experience, is that if a domain passed as input doesn't match any rule, the rule `*` is assumed. You can override this behavior by passing a custom default rule with the `default_rule` option. The old behavior can be restored by passing `default_rule: nil`.
10
10
  - `PublicSuffix.domain` is a new method that parses the input and returns the domain (combination of second level domain + suffix). This is a convenient helper to parse a domain name, for example when you need to determine the cookie or SSL scope.
11
11
  - Added the ability to disable the use of private domains either at runtime, in addition to the ability to not load the private domains section when reading the list (`private_domains: false`). This feature also superseded the `private_domains` class-level attribute, that is no longer available.
12
12
 
@@ -18,7 +18,7 @@ When upgrading, here's the most relevant changes to keep an eye on:
18
18
  - `PublicSuffix::List.private_domains` is no longer available. Instead, you now have two ways to enable/disable the private domains:
19
19
 
20
20
  1. At runtime, by using the `ignore_private` option
21
-
21
+
22
22
  ```ruby
23
23
  PublicSuffix.domain("something.blogspot.com", ignore_private: true)
24
24
  ```
@@ -27,9 +27,26 @@ When upgrading, here's the most relevant changes to keep an eye on:
27
27
 
28
28
  ```ruby
29
29
  # Disable support for private TLDs
30
- PublicSuffix::List.default = Public::Suffix.parse(File.read(Public::Suffix::DEFAULT_LIST_PATH), private_domains: false)
30
+ PublicSuffix::List.default = PublicSuffix::List.parse(File.read(PublicSuffix::List::DEFAULT_LIST_PATH), private_domains: false)
31
31
  # => "blogspot.com"
32
32
  PublicSuffix.domain("something.blogspot.com")
33
33
  # => "blogspot.com"
34
34
  ```
35
+ - Now that the library is 100% compliant with the official PublicSuffix algorithm, if a domain passed as input doesn't match any rule, the wildcard rule `*` is assumed. This means that unlisted TLDs will be considered valid by default, when they would have been invalid in 1.x. However, you can override this behavior to emulate the 1.x behavior if needed:
36
+
37
+ ```ruby
38
+ # 1.x:
39
+
40
+ PublicSuffix.valid?("google.commm")
41
+ # => false
42
+
43
+ # 2.x:
44
+
45
+ PublicSuffix.valid?("google.commm")
46
+ # => true
47
+
48
+ # Overriding 2.x behavior if needed:
35
49
 
50
+ PublicSuffix.valid?("google.commm", default_rule: nil)
51
+ # => false
52
+ ````
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ #### Release 2.0.3
5
+
6
+ - CHANGED: Updated definitions.
7
+
8
+
4
9
  #### Release 2.0.2
5
10
 
6
11
  - CHANGED: Updated definitions.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Public Suffix <small>Ruby</small>
1
+ # Public Suffix <small>for Ruby</small>
2
2
 
3
3
  <tt>PublicSuffix</tt> is a Ruby domain name parser based on the [Public Suffix List](https://publicsuffix.org/).
4
4
 
@@ -96,11 +96,11 @@ This library automatically recognizes Fully Qualified Domain Names. A FQDN is a
96
96
  ```ruby
97
97
  # Parse a standard domain name
98
98
  PublicSuffix.domain("www.google.com")
99
- # => "domain.com"
99
+ # => "google.com"
100
100
 
101
101
  # Parse a fully qualified domain name
102
102
  PublicSuffix.domain("www.google.com.")
103
- # => "domain.com"
103
+ # => "google.com"
104
104
  ```
105
105
 
106
106
  ## Private domains
@@ -2,6 +2,11 @@
2
2
  // License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
4
 
5
+ // Please pull this list from, and only from https://publicsuffix.org/list/public_suffix_list.dat,
6
+ // rather than any other VCS sites. Pulling from any other URL is not guaranteed to be supported.
7
+
8
+ // Instructions on pulling and using this list can be found at https://publicsuffix.org/list/.
9
+
5
10
  // ===BEGIN ICANN DOMAINS===
6
11
 
7
12
  // ac : https://en.wikipedia.org/wiki/.ac
@@ -267,18 +272,14 @@ name.az
267
272
  pro.az
268
273
  biz.az
269
274
 
270
- // ba : https://en.wikipedia.org/wiki/.ba
275
+ // ba : http://nic.ba/users_data/files/pravilnik_o_registraciji.pdf
271
276
  ba
272
- org.ba
273
- net.ba
277
+ com.ba
274
278
  edu.ba
275
279
  gov.ba
276
280
  mil.ba
277
- unsa.ba
278
- unbi.ba
279
- co.ba
280
- com.ba
281
- rs.ba
281
+ net.ba
282
+ org.ba
282
283
 
283
284
  // bb : https://en.wikipedia.org/wiki/.bb
284
285
  bb
@@ -2549,7 +2550,6 @@ hitoyoshi.kumamoto.jp
2549
2550
  kamiamakusa.kumamoto.jp
2550
2551
  kashima.kumamoto.jp
2551
2552
  kikuchi.kumamoto.jp
2552
- kosa.kumamoto.jp
2553
2553
  kumamoto.kumamoto.jp
2554
2554
  mashiki.kumamoto.jp
2555
2555
  mifune.kumamoto.jp
@@ -6531,7 +6531,7 @@ lib.ca.us
6531
6531
  lib.co.us
6532
6532
  lib.ct.us
6533
6533
  lib.dc.us
6534
- lib.de.us
6534
+ // lib.de.us Issue #243 - Moved to Private section at request of Ed Moore <Ed.Moore@lib.de.us>
6535
6535
  lib.fl.us
6536
6536
  lib.ga.us
6537
6537
  lib.gu.us
@@ -6947,7 +6947,7 @@ sch.zm
6947
6947
  *.zw
6948
6948
 
6949
6949
 
6950
- // List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2016-05-09T22:17:27Z
6950
+ // List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2016-08-17T00:17:46Z
6951
6951
 
6952
6952
  // aaa : 2015-02-26 American Automobile Association, Inc.
6953
6953
  aaa
@@ -7024,9 +7024,6 @@ afl
7024
7024
  // africa : 2014-03-24 ZA Central Registry NPC trading as Registry.Africa
7025
7025
  africa
7026
7026
 
7027
- // africamagic : 2015-03-05 Electronic Media Network (Pty) Ltd
7028
- africamagic
7029
-
7030
7027
  // agakhan : 2015-04-23 Fondation Aga Khan (Aga Khan Foundation)
7031
7028
  agakhan
7032
7029
 
@@ -7306,7 +7303,7 @@ blanco
7306
7303
  // blockbuster : 2015-07-30 Dish DBS Corporation
7307
7304
  blockbuster
7308
7305
 
7309
- // blog : 2015-05-14 PRIMER NIVEL S.A.
7306
+ // blog : 2015-05-14
7310
7307
  blog
7311
7308
 
7312
7309
  // bloomberg : 2014-07-17 Bloomberg IP Holdings LLC
@@ -7732,6 +7729,9 @@ dad
7732
7729
  // dance : 2013-10-24 United TLD Holdco Ltd.
7733
7730
  dance
7734
7731
 
7732
+ // data : 2016-06-02 Dish DBS Corporation
7733
+ data
7734
+
7735
7735
  // date : 2014-11-20 dot Date Limited
7736
7736
  date
7737
7737
 
@@ -7828,6 +7828,9 @@ dnp
7828
7828
  // docs : 2014-10-16 Charleston Road Registry Inc.
7829
7829
  docs
7830
7830
 
7831
+ // doctor : 2016-06-02 Brice Trail, LLC
7832
+ doctor
7833
+
7831
7834
  // dodge : 2015-07-30 FCA US LLC.
7832
7835
  dodge
7833
7836
 
@@ -7849,9 +7852,6 @@ download
7849
7852
  // drive : 2015-03-05 Charleston Road Registry Inc.
7850
7853
  drive
7851
7854
 
7852
- // dstv : 2015-03-12 MultiChoice (Proprietary) Limited
7853
- dstv
7854
-
7855
7855
  // dtv : 2015-06-04 Dish DBS Corporation
7856
7856
  dtv
7857
7857
 
@@ -7876,6 +7876,9 @@ durban
7876
7876
  // dvag : 2014-06-23 Deutsche Vermögensberatung Aktiengesellschaft DVAG
7877
7877
  dvag
7878
7878
 
7879
+ // dvr : 2016-05-26 Hughes Satellite Systems Corporation
7880
+ dvr
7881
+
7879
7882
  // dwg : 2015-07-23 Autodesk, Inc.
7880
7883
  dwg
7881
7884
 
@@ -7885,6 +7888,9 @@ earth
7885
7888
  // eat : 2014-01-23 Charleston Road Registry Inc.
7886
7889
  eat
7887
7890
 
7891
+ // eco : 2016-07-08 Big Room Inc.
7892
+ eco
7893
+
7888
7894
  // edeka : 2014-12-18 EDEKA Verband kaufmännischer Genossenschaften e.V.
7889
7895
  edeka
7890
7896
 
@@ -8068,9 +8074,6 @@ florist
8068
8074
  // flowers : 2014-10-09 Uniregistry, Corp.
8069
8075
  flowers
8070
8076
 
8071
- // flsmidth : 2014-07-24 FLSmidth A/S
8072
- flsmidth
8073
-
8074
8077
  // fly : 2014-05-08 Charleston Road Registry Inc.
8075
8078
  fly
8076
8079
 
@@ -8161,7 +8164,7 @@ gallup
8161
8164
  // game : 2015-05-28 Uniregistry, Corp.
8162
8165
  game
8163
8166
 
8164
- // games : 2015-05-28 Foggy Beach, LLC
8167
+ // games : 2015-05-28
8165
8168
  games
8166
8169
 
8167
8170
  // gap : 2015-07-31 The Gap, Inc.
@@ -8263,9 +8266,6 @@ gop
8263
8266
  // got : 2014-12-18 Amazon EU S.à r.l.
8264
8267
  got
8265
8268
 
8266
- // gotv : 2015-03-12 MultiChoice (Proprietary) Limited
8267
- gotv
8268
-
8269
8269
  // grainger : 2015-05-07 Grainger Registry Services, LLC
8270
8270
  grainger
8271
8271
 
@@ -8281,6 +8281,9 @@ green
8281
8281
  // gripe : 2014-03-06 Corn Sunset, LLC
8282
8282
  gripe
8283
8283
 
8284
+ // grocery : 2016-06-16 Wal-Mart Stores, Inc.
8285
+ grocery
8286
+
8284
8287
  // group : 2014-08-15 Romeo Town, LLC
8285
8288
  group
8286
8289
 
@@ -8644,9 +8647,6 @@ kred
8644
8647
  // kuokgroup : 2015-04-09 Kerry Trading Co. Limited
8645
8648
  kuokgroup
8646
8649
 
8647
- // kyknet : 2015-03-05 Electronic Media Network (Pty) Ltd
8648
- kyknet
8649
-
8650
8650
  // kyoto : 2014-11-07 Academic Institution: Kyoto Jyoho Gakuen
8651
8651
  kyoto
8652
8652
 
@@ -8851,6 +8851,9 @@ management
8851
8851
  // mango : 2013-10-24 PUNTO FA S.L.
8852
8852
  mango
8853
8853
 
8854
+ // map : 2016-06-09 Charleston Road Registry Inc.
8855
+ map
8856
+
8854
8857
  // market : 2014-03-06
8855
8858
  market
8856
8859
 
@@ -8911,6 +8914,9 @@ menu
8911
8914
  // meo : 2014-11-07 PT Comunicacoes S.A.
8912
8915
  meo
8913
8916
 
8917
+ // merckmsd : 2016-07-14 MSD Registry Holdings, Inc.
8918
+ merckmsd
8919
+
8914
8920
  // metlife : 2015-05-07 MetLife Services and Solutions, LLC
8915
8921
  metlife
8916
8922
 
@@ -8941,8 +8947,8 @@ mls
8941
8947
  // mma : 2014-11-07 MMA IARD
8942
8948
  mma
8943
8949
 
8944
- // mnet : 2015-03-05 Electronic Media Network (Pty) Ltd
8945
- mnet
8950
+ // mobile : 2016-06-02 Dish DBS Corporation
8951
+ mobile
8946
8952
 
8947
8953
  // mobily : 2014-12-18 GreenTech Consultancy Company W.L.L.
8948
8954
  mobily
@@ -9010,18 +9016,12 @@ mtpc
9010
9016
  // mtr : 2015-03-12 MTR Corporation Limited
9011
9017
  mtr
9012
9018
 
9013
- // multichoice : 2015-03-12 MultiChoice (Proprietary) Limited
9014
- multichoice
9015
-
9016
9019
  // mutual : 2015-04-02 Northwestern Mutual MU TLD Registry, LLC
9017
9020
  mutual
9018
9021
 
9019
9022
  // mutuelle : 2015-06-18 Fédération Nationale de la Mutualité Française
9020
9023
  mutuelle
9021
9024
 
9022
- // mzansimagic : 2015-03-05 Electronic Media Network (Pty) Ltd
9023
- mzansimagic
9024
-
9025
9025
  // nab : 2015-08-20 National Australia Bank Limited
9026
9026
  nab
9027
9027
 
@@ -9031,9 +9031,6 @@ nadex
9031
9031
  // nagoya : 2013-10-24 GMO Registry, Inc.
9032
9032
  nagoya
9033
9033
 
9034
- // naspers : 2015-02-12 Intelprop (Proprietary) Limited
9035
- naspers
9036
-
9037
9034
  // nationwide : 2015-07-23 Nationwide Mutual Insurance Company
9038
9035
  nationwide
9039
9036
 
@@ -9196,7 +9193,7 @@ orange
9196
9193
  // organic : 2014-03-27 Afilias Limited
9197
9194
  organic
9198
9195
 
9199
- // orientexpress : 2015-02-05 Belmond Ltd.
9196
+ // orientexpress : 2015-02-05
9200
9197
  orientexpress
9201
9198
 
9202
9199
  // origins : 2015-10-01 The Estée Lauder Companies Inc.
@@ -9247,9 +9244,6 @@ passagens
9247
9244
  // pay : 2015-08-27 Amazon EU S.à r.l.
9248
9245
  pay
9249
9246
 
9250
- // payu : 2015-02-12 MIH PayU B.V.
9251
- payu
9252
-
9253
9247
  // pccw : 2015-05-14 PCCW Enterprises Limited
9254
9248
  pccw
9255
9249
 
@@ -9262,9 +9256,15 @@ pfizer
9262
9256
  // pharmacy : 2014-06-19 National Association of Boards of Pharmacy
9263
9257
  pharmacy
9264
9258
 
9259
+ // phd : 2016-07-28 Charleston Road Registry Inc.
9260
+ phd
9261
+
9265
9262
  // philips : 2014-11-07 Koninklijke Philips N.V.
9266
9263
  philips
9267
9264
 
9265
+ // phone : 2016-06-02 Dish DBS Corporation
9266
+ phone
9267
+
9268
9268
  // photo : 2013-11-14 Uniregistry, Corp.
9269
9269
  photo
9270
9270
 
@@ -9400,6 +9400,9 @@ qvc
9400
9400
  // racing : 2014-12-04 Premier Registry Limited
9401
9401
  racing
9402
9402
 
9403
+ // radio : 2016-07-21 European Broadcasting Union (EBU)
9404
+ radio
9405
+
9403
9406
  // raid : 2015-07-23 Johnson Shareholdings, Inc.
9404
9407
  raid
9405
9408
 
@@ -9622,6 +9625,9 @@ scor
9622
9625
  // scot : 2014-01-23 Dot Scot Registry Limited
9623
9626
  scot
9624
9627
 
9628
+ // search : 2016-06-09 Charleston Road Registry Inc.
9629
+ search
9630
+
9625
9631
  // seat : 2014-05-22 SEAT, S.A. (Sociedad Unipersonal)
9626
9632
  seat
9627
9633
 
@@ -9835,9 +9841,6 @@ style
9835
9841
  // sucks : 2014-12-22 Vox Populi Registry Inc.
9836
9842
  sucks
9837
9843
 
9838
- // supersport : 2015-03-05 SuperSport International Holdings Proprietary Limited
9839
- supersport
9840
-
9841
9844
  // supplies : 2013-12-19 Atomic Fields, LLC
9842
9845
  supplies
9843
9846
 
@@ -10632,6 +10635,10 @@ zuerich
10632
10635
  // ===BEGIN PRIVATE DOMAINS===
10633
10636
  // (Note: these are in alphabetical order by company name)
10634
10637
 
10638
+ // Agnat sp. z o.o. : https://domena.pl
10639
+ // Submitted by Przemyslaw Plewa <it-admin@domena.pl>
10640
+ beep.pl
10641
+
10635
10642
  // Alces Software Ltd : http://alces-software.com
10636
10643
  // Submitted by Mark J. Titorenko <mark.titorenko@alces-software.com>
10637
10644
  *.compute.estate
@@ -10642,24 +10649,24 @@ zuerich
10642
10649
  cloudfront.net
10643
10650
 
10644
10651
  // Amazon Elastic Compute Cloud: https://aws.amazon.com/ec2/
10645
- // Submitted by Luke Wells <lawells@amazon.com>
10652
+ // Submitted by Philip Allchin <pallchin@amazon.com>
10653
+ compute.amazonaws.com
10646
10654
  ap-northeast-1.compute.amazonaws.com
10647
10655
  ap-northeast-2.compute.amazonaws.com
10648
10656
  ap-southeast-1.compute.amazonaws.com
10649
10657
  ap-southeast-2.compute.amazonaws.com
10650
- cn-north-1.compute.amazonaws.cn
10651
- compute-1.amazonaws.com
10652
- compute.amazonaws.cn
10653
- compute.amazonaws.com
10654
10658
  eu-central-1.compute.amazonaws.com
10655
10659
  eu-west-1.compute.amazonaws.com
10656
10660
  sa-east-1.compute.amazonaws.com
10657
- us-east-1.amazonaws.com
10658
10661
  us-gov-west-1.compute.amazonaws.com
10659
10662
  us-west-1.compute.amazonaws.com
10660
10663
  us-west-2.compute.amazonaws.com
10664
+ compute-1.amazonaws.com
10661
10665
  z-1.compute-1.amazonaws.com
10662
10666
  z-2.compute-1.amazonaws.com
10667
+ us-east-1.amazonaws.com
10668
+ compute.amazonaws.com.cn
10669
+ cn-north-1.compute.amazonaws.com.cn
10663
10670
 
10664
10671
  // Amazon Elastic Beanstalk : https://aws.amazon.com/elasticbeanstalk/
10665
10672
  // Submitted by Adam Stein <astein@amazon.com>
@@ -10695,23 +10702,43 @@ on-aptible.com
10695
10702
 
10696
10703
  // Association potager.org : https://potager.org/
10697
10704
  // Submitted by Lunar <jardiniers@potager.org>
10698
- potager.org
10705
+ pimienta.org
10699
10706
  poivron.org
10707
+ potager.org
10700
10708
  sweetpepper.org
10701
- pimienta.org
10709
+
10710
+ // ASUSTOR Inc. : http://www.asustor.com
10711
+ // Submitted by Vincent Tseng <vincenttseng@asustor.com>
10712
+ myasustor.com
10702
10713
 
10703
10714
  // AVM : https://avm.de
10704
10715
  // Submitted by Andreas Weise <a.weise@avm.de>
10705
10716
  myfritz.net
10706
10717
 
10718
+ // backplane : https://www.backplane.io
10719
+ // Submitted by Anthony Voutas <anthony@backplane.io>
10720
+ backplaneapp.io
10721
+
10707
10722
  // BetaInABox
10708
10723
  // Submitted by Adrian <adrian@betainabox.com>
10709
10724
  betainabox.com
10710
10725
 
10726
+ // BinaryLane : http://www.binarylane.com
10727
+ // Submitted by Nathan O'Sullivan <nathan@mammoth.com.au>
10728
+ bnr.la
10729
+
10711
10730
  // Boxfuse : https://boxfuse.com
10712
10731
  // Submitted by Axel Fontaine <axel@boxfuse.com>
10713
10732
  boxfuse.io
10714
10733
 
10734
+ // BrowserSafetyMark
10735
+ // Submitted by Dave Tharp <browsersafetymark.io@quicinc.com>
10736
+ browsersafetymark.io
10737
+
10738
+ // callidomus: https://www.callidomus.com/
10739
+ // Submitted by Marcus Popp <admin@callidomus.com>
10740
+ mycd.eu
10741
+
10715
10742
  // CentralNic : http://www.centralnic.com/names/domains
10716
10743
  // Submitted by registry <gavin.brown@centralnic.com>
10717
10744
  ae.org
@@ -10766,10 +10793,18 @@ co.com
10766
10793
  // c.la : http://www.c.la/
10767
10794
  c.la
10768
10795
 
10796
+ // certmgr.org : https://certmgr.org
10797
+ // Submitted by B. Blechschmidt <hostmaster@certmgr.org>
10798
+ certmgr.org
10799
+
10769
10800
  // Citrix : https://citrix.com
10770
10801
  // Submitted by Alex Stoddard <alex.stoddard@citrix.com>
10771
10802
  xenapponazure.com
10772
10803
 
10804
+ // ClearVox : http://www.clearvox.nl/
10805
+ // Submitted by Leon Rowland <leon@clearvox.nl>
10806
+ virtueeldomein.nl
10807
+
10773
10808
  // cloudControl : https://www.cloudcontrol.com/
10774
10809
  // Submitted by Tobias Wilken <tw@cloudcontrol.com>
10775
10810
  cloudcontrolled.com
@@ -10798,6 +10833,14 @@ co.no
10798
10833
  // Submitted by Damien Tournoud <damien@commerceguys.com>
10799
10834
  *.platform.sh
10800
10835
 
10836
+ // Craynic, s.r.o. : http://www.craynic.com/
10837
+ // Submitted by Ales Krajnik <ales.krajnik@craynic.com>
10838
+ realm.cz
10839
+
10840
+ // Cryptonomic : https://cryptonomic.net/
10841
+ // Submitted by Andrew Cady <public-suffix-list@cryptonomic.net>
10842
+ *.cryptonomic.net
10843
+
10801
10844
  // Cupcake : https://cupcake.io/
10802
10845
  // Submitted by Jonathan Rudenberg <jonathan@cupcake.io>
10803
10846
  cupcake.is
@@ -10835,6 +10878,11 @@ dreamhosters.com
10835
10878
  // Submitted by Ricardo Padilha <rpadilha@drobo.com>
10836
10879
  mydrobo.com
10837
10880
 
10881
+ // Drud Holdings, LLC. : https://www.drud.com/
10882
+ // Submitted by Kevin Bridges <kevin@drud.com>
10883
+ drud.io
10884
+ drud.us
10885
+
10838
10886
  // DuckDNS : http://www.duckdns.org/
10839
10887
  // Submitted by Richard Harper <richard@duckdns.org>
10840
10888
  duckdns.org
@@ -11192,6 +11240,13 @@ tr.eu.org
11192
11240
  uk.eu.org
11193
11241
  us.eu.org
11194
11242
 
11243
+ // Evennode : http://www.evennode.com/
11244
+ // Submitted by Michal Kralik <support@evennode.com>
11245
+ eu-1.evennode.com
11246
+ eu-2.evennode.com
11247
+ us-1.evennode.com
11248
+ us-2.evennode.com
11249
+
11195
11250
  // Facebook, Inc.
11196
11251
  // Submitted by Peter Ruibal <public-suffix@fb.com>
11197
11252
  apps.fbsbx.com
@@ -11204,6 +11259,10 @@ global.ssl.fastly.net
11204
11259
  a.prod.fastly.net
11205
11260
  global.prod.fastly.net
11206
11261
 
11262
+ // Featherhead : https://featherhead.xyz/
11263
+ // Submitted by Simon Menke <simon@featherhead.xyz>
11264
+ fhapp.xyz
11265
+
11207
11266
  // Firebase, Inc.
11208
11267
  // Submitted by Chris Raynor <chris@firebase.com>
11209
11268
  firebaseapp.com
@@ -11235,9 +11294,15 @@ githubcloud.com
11235
11294
  gist.githubcloud.com
11236
11295
  *.githubcloudusercontent.com
11237
11296
 
11297
+ // GitLab, Inc.
11298
+ // Submitted by Alex Hanselka <alex@gitlab.com>
11299
+ gitlab.io
11300
+
11238
11301
  // GlobeHosting, Inc.
11239
11302
  // Submitted by Zoltan Egresi <egresi@globehosting.com>
11240
11303
  ro.com
11304
+ ro.im
11305
+ shop.ro
11241
11306
 
11242
11307
  // GoIP DNS Services : http://www.goip.de
11243
11308
  // Submitted by Christian Poulter <milchstrasse@goip.de>
@@ -11332,6 +11397,14 @@ withyoutube.com
11332
11397
  // Hashbang : https://hashbang.sh
11333
11398
  hashbang.sh
11334
11399
 
11400
+ // Hasura : https://hasura.io
11401
+ // Submitted by Shahidh K Muhammed <shahidh@hasura.io>
11402
+ hasura-app.io
11403
+
11404
+ // Hepforge : https://www.hepforge.org
11405
+ // Submitted by David Grellscheid <admin@hepforge.org>
11406
+ hepforge.org
11407
+
11335
11408
  // Heroku : https://www.heroku.com/
11336
11409
  // Submitted by Tom Maher <tmaher@heroku.com>
11337
11410
  herokuapp.com
@@ -11345,6 +11418,28 @@ iki.fi
11345
11418
  biz.at
11346
11419
  info.at
11347
11420
 
11421
+ // Joyent : https://www.joyent.com/
11422
+ // Submitted by Brian Bennett <brian.bennett@joyent.com>
11423
+ *.triton.zone
11424
+ *.cns.joyent.com
11425
+
11426
+ // JS.ORG : http://dns.js.org
11427
+ // Submitted by Stefan Keim <admin@js.org>
11428
+ js.org
11429
+
11430
+ // .KRD : http://nic.krd/data/krd/Registration%20Policy.pdf
11431
+ co.krd
11432
+ edu.krd
11433
+
11434
+ // Magento Commerce
11435
+ // Submitted by Damien Tournoud <dtournoud@magento.cloud>
11436
+ *.magentosite.cloud
11437
+
11438
+ // Meteor Development Group : https://www.meteor.com/hosting
11439
+ // Submitted by Pierre Carrier <pierre@meteor.com>
11440
+ meteorapp.com
11441
+ eu.meteorapp.com
11442
+
11348
11443
  // Michau Enterprises Limited : http://www.co.pl/
11349
11444
  co.pl
11350
11445
 
@@ -11520,6 +11615,10 @@ xen.prgmr.com
11520
11615
  // Submitted by registry <lendl@nic.at>
11521
11616
  priv.at
11522
11617
 
11618
+ // Protonet GmbH : http://protonet.io
11619
+ // Submitted by Martin Meier <admin@protonet.io>
11620
+ protonet.io
11621
+
11523
11622
  // Publication Presse Communication SARL : https://ppcom.fr
11524
11623
  // Submitted by Yaacov Akiba Slama <admin@chirurgiens-dentistes-en-france.fr>
11525
11624
  chirurgiens-dentistes-en-france.fr
@@ -11528,6 +11627,12 @@ chirurgiens-dentistes-en-france.fr
11528
11627
  // Submitted by Daniel Dent (https://www.danieldent.com/)
11529
11628
  qa2.com
11530
11629
 
11630
+ // QNAP System Inc : https://www.qnap.com
11631
+ // Submitted by Nick Chang <nickchang@qnap.com>
11632
+ dev-myqnapcloud.com
11633
+ alpha-myqnapcloud.com
11634
+ myqnapcloud.com
11635
+
11531
11636
  // Rackmaze LLC : https://www.rackmaze.com
11532
11637
  // Submitted by Kirill Pertsev <kika@rackmaze.com>
11533
11638
  rackmaze.com
@@ -11545,12 +11650,21 @@ hzc.io
11545
11650
  // Submitted by Asheesh Laroia <asheesh@sandstorm.io>
11546
11651
  sandcats.io
11547
11652
 
11653
+ // SBE network solutions GmbH : https://www.sbe.de/
11654
+ // Submitted by Norman Meilick <nm@sbe.de>
11655
+ logoip.de
11656
+ logoip.com
11657
+
11548
11658
  // Service Online LLC : http://drs.ua/
11549
11659
  // Submitted by Serhii Bulakh <support@drs.ua>
11550
11660
  biz.ua
11551
11661
  co.ua
11552
11662
  pp.ua
11553
11663
 
11664
+ // Shopblocks : http://www.shopblocks.com/
11665
+ // Submitted by Alex Bowers <alex@shopblocks.com>
11666
+ myshopblocks.com
11667
+
11554
11668
  // SinaAppEngine : http://sae.sina.com.cn/
11555
11669
  // Submitted by SinaAppEngine <saesupport@sinacloud.com>
11556
11670
  sinaapp.com
@@ -11563,10 +11677,20 @@ bounty-full.com
11563
11677
  alpha.bounty-full.com
11564
11678
  beta.bounty-full.com
11565
11679
 
11680
+ // staticland : https://static.land
11681
+ // Submitted by Seth Vincent <sethvincent@gmail.com>
11682
+ static.land
11683
+ dev.static.land
11684
+ sites.static.land
11685
+
11566
11686
  // SpaceKit : https://www.spacekit.io/
11567
11687
  // Submitted by Reza Akhavan <spacekit.io@gmail.com>
11568
11688
  spacekit.io
11569
11689
 
11690
+ // Stackspace : https://www.stackspace.io/
11691
+ // Submitted by Lina He <info@stackspace.io>
11692
+ stackspace.space
11693
+
11570
11694
  // Synology, Inc. : https://www.synology.com/
11571
11695
  // Submitted by Rony Weng <ronyweng@synology.com>
11572
11696
  diskstation.me
@@ -11590,11 +11714,15 @@ gdynia.pl
11590
11714
  med.pl
11591
11715
  sopot.pl
11592
11716
 
11593
- // TownNews.com domains : http://www.townnews.com
11717
+ // TownNews.com : http://www.townnews.com
11594
11718
  // Submitted by Dustin Ward <dward@townnews.com>
11595
11719
  bloxcms.com
11596
11720
  townnews-staging.com
11597
11721
 
11722
+ // TuxFamily : http://tuxfamily.org
11723
+ // Submitted by TuxFamily administrators <adm@staff.tuxfamily.org>
11724
+ tuxfamily.org
11725
+
11598
11726
  // UDR Limited : http://www.udr.hk.com
11599
11727
  // Submitted by registry <hostmaster@udr.hk.com>
11600
11728
  hk.com
@@ -11602,10 +11730,18 @@ hk.org
11602
11730
  ltd.hk
11603
11731
  inc.hk
11604
11732
 
11733
+ // .US
11734
+ // Submitted by Ed Moore <Ed.Moore@lib.de.us>
11735
+ lib.de.us
11736
+
11605
11737
  // Viprinet Europe GmbH : http://www.viprinet.com
11606
11738
  // Submitted by Simon Kissel <hostmaster@viprinet.com>
11607
11739
  router.management
11608
11740
 
11741
+ // Wikimedia Labs : https://wikitech.wikimedia.org
11742
+ // Submitted by Yuvi Panda <yuvipanda@wikimedia.org>
11743
+ wmflabs.org
11744
+
11609
11745
  // Yola : https://www.yola.com/
11610
11746
  // Submitted by Stefano Rivera <stefano@yola.com>
11611
11747
  yolasite.com
@@ -56,7 +56,7 @@ module PublicSuffix
56
56
  # @param [Boolean] ignore_private
57
57
  # @return [PublicSuffix::Domain]
58
58
  #
59
- # @raise [PublicSuffix::Error]
59
+ # @raise [PublicSuffix::DomainInvalid]
60
60
  # If domain is not a valid domain.
61
61
  # @raise [PublicSuffix::DomainNotAllowed]
62
62
  # If a rule for +domain+ is found, but the rule doesn't allow +domain+.
@@ -66,12 +66,14 @@ module PublicSuffix
66
66
 
67
67
  rule = list.find(what, default: default_rule, ignore_private: ignore_private)
68
68
 
69
+ # rubocop:disable Style/IfUnlessModifier
69
70
  if rule.nil?
70
71
  raise DomainInvalid, "`#{what}` is not a valid domain"
71
72
  end
72
73
  if rule.decompose(what).last.nil?
73
74
  raise DomainNotAllowed, "`#{what}` is not allowed according to Registry policy"
74
75
  end
76
+ # rubocop:enable Style/IfUnlessModifier
75
77
 
76
78
  decompose(what, rule)
77
79
  end
@@ -8,5 +8,5 @@
8
8
 
9
9
  module PublicSuffix
10
10
  # The current library version.
11
- VERSION = "2.0.2".freeze
11
+ VERSION = "2.0.3".freeze
12
12
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: public_suffix 2.0.1 ruby lib
2
+ # stub: public_suffix 2.0.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "public_suffix"
6
- s.version = "2.0.1"
6
+ s.version = "2.0.2"
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 = "2016-05-22"
11
+ s.date = "2016-09-30"
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 = [".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"]
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.2
4
+ version: 2.0.3
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-06-10 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake