public_suffix 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -4,7 +4,7 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - jruby-18mode
7
- - jruby-19mode
7
+ # - jruby-19mode
8
8
  - rbx-18mode
9
9
  - ree
10
10
  notifications:
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## Release 1.1.1
5
+
6
+ - CHANGED: Updated definitions.
7
+
8
+
4
9
  ## Release 1.1.0
5
10
 
6
11
  - FIXED: #valid? and #parse consider URIs as valid domains (GH-15)
data/README.md CHANGED
@@ -118,11 +118,6 @@ This library automatically recognizes Fully Qualified Domain Names. A FQDN is a
118
118
  # => "com"
119
119
 
120
120
 
121
- ## Credits
122
-
123
- * [Simone Carletti](http://www.simonecarletti.com/) <weppos@weppos.net> - The Author
124
-
125
-
126
121
  ## Feedback and bug reports
127
122
 
128
123
  If you use this library and find yourself missing any functionality, please [let me know](mailto:weppos@weppos.net).
@@ -142,7 +137,7 @@ Report issues or feature requests to [GitHub Issues](https://github.com/weppos/p
142
137
 
143
138
  ## Changelog
144
139
 
145
- See the CHANGELOG.md file for details.
140
+ See the [CHANGELOG.md](CHANGELOG.md) file for details.
146
141
 
147
142
 
148
143
  ## License
data/Rakefile CHANGED
@@ -94,10 +94,9 @@ end
94
94
 
95
95
 
96
96
  desc <<-DESC
97
- Downloads the Public Suffix List file from the repository \
98
- and stores it locally.
97
+ Downloads the Public Suffix List file from the repository and stores it locally.
99
98
  DESC
100
- task :download_definitions do
99
+ task :psl do
101
100
  require "net/http"
102
101
 
103
102
  DEFINITION_URL = "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1"
@@ -1,44 +1,6 @@
1
- // ***** BEGIN LICENSE BLOCK *****
2
- // Version: MPL 1.1/GPL 2.0/LGPL 2.1
3
- //
4
- // The contents of this file are subject to the Mozilla Public License Version
5
- // 1.1 (the "License"); you may not use this file except in compliance with
6
- // the License. You may obtain a copy of the License at
7
- // http://www.mozilla.org/MPL/
8
- //
9
- // Software distributed under the License is distributed on an "AS IS" basis,
10
- // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
- // for the specific language governing rights and limitations under the
12
- // License.
13
- //
14
- // The Original Code is the Public Suffix List.
15
- //
16
- // The Initial Developer of the Original Code is
17
- // Jo Hermans <jo.hermans@gmail.com>.
18
- // Portions created by the Initial Developer are Copyright (C) 2007
19
- // the Initial Developer. All Rights Reserved.
20
- //
21
- // Contributor(s):
22
- // Ruben Arakelyan <ruben@rubenarakelyan.com>
23
- // Gervase Markham <gerv@gerv.net>
24
- // Pamela Greene <pamg.bugs@gmail.com>
25
- // David Triendl <david@triendl.name>
26
- // Jothan Frakes <jothan@gmail.com>
27
- // The kind representatives of many TLD registries
28
- //
29
- // Alternatively, the contents of this file may be used under the terms of
30
- // either the GNU General Public License Version 2 or later (the "GPL"), or
31
- // the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
32
- // in which case the provisions of the GPL or the LGPL are applicable instead
33
- // of those above. If you wish to allow use of your version of this file only
34
- // under the terms of either the GPL or the LGPL, and not to allow others to
35
- // use your version of this file under the terms of the MPL, indicate your
36
- // decision by deleting the provisions above and replace them with the notice
37
- // and other provisions required by the GPL or the LGPL. If you do not delete
38
- // the provisions above, a recipient may use your version of this file under
39
- // the terms of any one of the MPL, the GPL or the LGPL.
40
- //
41
- // ***** END LICENSE BLOCK *****
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at http://mozilla.org/MPL/2.0/.
42
4
 
43
5
  // ===BEGIN ICANN DOMAINS===
44
6
 
@@ -252,18 +214,18 @@ or.at
252
214
  // au : http://en.wikipedia.org/wiki/.au
253
215
  // http://www.auda.org.au/
254
216
  // 2LDs
255
- com.au
256
- net.au
257
- org.au
258
- edu.au
259
- gov.au
260
- csiro.au
261
- asn.au
262
- id.au
263
- // Historic 2LDs (closed to new registration, but sites still exist)
264
- info.au
265
- conf.au
266
- oz.au
217
+ com.au
218
+ net.au
219
+ org.au
220
+ edu.au
221
+ gov.au
222
+ csiro.au
223
+ asn.au
224
+ id.au
225
+ // Historic 2LDs (closed to new registration, but sites still exist)
226
+ info.au
227
+ conf.au
228
+ oz.au
267
229
  // CGDNs - http://www.cgdn.org.au/
268
230
  act.au
269
231
  nsw.au
@@ -3703,6 +3665,9 @@ poznan.pl
3703
3665
  wroc.pl
3704
3666
  zakopane.pl
3705
3667
 
3668
+ // pm : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
3669
+ pm
3670
+
3706
3671
  // pn : http://www.government.pn/PnRegistry/policies.htm
3707
3672
  pn
3708
3673
  gov.pn
@@ -4001,6 +3966,7 @@ net.sd
4001
3966
  org.sd
4002
3967
  edu.sd
4003
3968
  med.sd
3969
+ tv.sd
4004
3970
  gov.sd
4005
3971
  info.sd
4006
3972
 
@@ -4048,7 +4014,7 @@ x.se
4048
4014
  y.se
4049
4015
  z.se
4050
4016
 
4051
- // sg : http://www.nic.net.sg/sub_policies_agreement/2ld.html
4017
+ // sg : http://www.nic.net.sg/page/registration-policies-procedures-and-guidelines
4052
4018
  sg
4053
4019
  com.sg
4054
4020
  net.sg
@@ -4057,9 +4023,13 @@ gov.sg
4057
4023
  edu.sg
4058
4024
  per.sg
4059
4025
 
4060
- // sh : http://www.nic.sh/rules.html
4061
- // list of 2nd level domains ?
4026
+ // sh : http://www.nic.sh/registrar.html
4062
4027
  sh
4028
+ com.sh
4029
+ net.sh
4030
+ gov.sh
4031
+ org.sh
4032
+ mil.sh
4063
4033
 
4064
4034
  // si : http://en.wikipedia.org/wiki/.si
4065
4035
  si
@@ -4123,6 +4093,11 @@ su
4123
4093
  // sv : http://www.svnet.org.sv/svpolicy.html
4124
4094
  *.sv
4125
4095
 
4096
+ // sx : http://en.wikipedia.org/wiki/.sx
4097
+ // Confirmed by registry <jcvignes@openregistry.com> 2012-05-31
4098
+ sx
4099
+ gov.sx
4100
+
4126
4101
  // sy : http://en.wikipedia.org/wiki/.sy
4127
4102
  // see also: http://www.gobin.info/domainname/sy.doc
4128
4103
  sy
@@ -4154,8 +4129,7 @@ tel
4154
4129
  tf
4155
4130
 
4156
4131
  // tg : http://en.wikipedia.org/wiki/.tg
4157
- // http://www.nic.tg/nictg/index.php implies no reserved 2nd-level domains,
4158
- // although this contradicts wikipedia.
4132
+ // http://www.nic.tg/
4159
4133
  tg
4160
4134
 
4161
4135
  // th : http://en.wikipedia.org/wiki/.th
@@ -4169,7 +4143,7 @@ mi.th
4169
4143
  net.th
4170
4144
  or.th
4171
4145
 
4172
- // tj : http://www.nic.tj/policy.htm
4146
+ // tj : http://www.nic.tj/policy.html
4173
4147
  tj
4174
4148
  ac.tj
4175
4149
  biz.tj
@@ -4194,9 +4168,16 @@ tk
4194
4168
  tl
4195
4169
  gov.tl
4196
4170
 
4197
- // tm : http://www.nic.tm/rules.html
4198
- // list of 2nd level tlds ?
4171
+ // tm : http://www.nic.tm/local.html
4199
4172
  tm
4173
+ com.tm
4174
+ co.tm
4175
+ org.tm
4176
+ net.tm
4177
+ nom.tm
4178
+ gov.tm
4179
+ mil.tm
4180
+ edu.tm
4200
4181
 
4201
4182
  // tn : http://en.wikipedia.org/wiki/.tn
4202
4183
  // http://whois.ati.tn/
@@ -4354,14 +4335,16 @@ zt.ua
4354
4335
  co.ua
4355
4336
  pp.ua
4356
4337
 
4357
- // ug : http://www.registry.co.ug/
4338
+ // ug : https://www.registry.co.ug/
4358
4339
  ug
4359
4340
  co.ug
4341
+ or.ug
4360
4342
  ac.ug
4361
4343
  sc.ug
4362
4344
  go.ug
4363
4345
  ne.ug
4364
- or.ug
4346
+ com.ug
4347
+ org.ug
4365
4348
 
4366
4349
  // uk : http://en.wikipedia.org/wiki/.uk
4367
4350
  *.uk
@@ -4627,11 +4610,12 @@ paroch.k12.ma.us
4627
4610
  // uy : http://www.antel.com.uy/
4628
4611
  *.uy
4629
4612
 
4630
- // uz : http://www.reg.uz/registerr.html
4631
- // are there other 2nd level tlds ?
4613
+ // uz : http://www.reg.uz/
4632
4614
  uz
4633
- com.uz
4634
4615
  co.uz
4616
+ com.uz
4617
+ net.uz
4618
+ org.uz
4635
4619
 
4636
4620
  // va : http://en.wikipedia.org/wiki/.va
4637
4621
  va
@@ -4682,6 +4666,9 @@ health.vn
4682
4666
  // list of 2nd level tlds ?
4683
4667
  vu
4684
4668
 
4669
+ // wf : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
4670
+ wf
4671
+
4685
4672
  // ws : http://en.wikipedia.org/wiki/.ws
4686
4673
  // http://samoanic.ws/index.dhtml
4687
4674
  ws
@@ -4691,6 +4678,9 @@ org.ws
4691
4678
  gov.ws
4692
4679
  edu.ws
4693
4680
 
4681
+ // yt : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
4682
+ yt
4683
+
4694
4684
  // IDN ccTLDs
4695
4685
  // Please sort by ISO 3166 ccTLD, then punicode string
4696
4686
  // when submitting patches and follow this format:
@@ -4699,7 +4689,7 @@ edu.ws
4699
4689
  // <URL>
4700
4690
 
4701
4691
  // xn--mgbaam7a8h ("Emerat" Arabic) : AE
4702
- //http://nic.ae/english/arabicdomain/rules.jsp
4692
+ // http://nic.ae/english/arabicdomain/rules.jsp
4703
4693
  امارات
4704
4694
 
4705
4695
  // xn--54b7fta0cc ("Bangla" Bangla) : BD
@@ -4763,9 +4753,9 @@ edu.ws
4763
4753
  // xn--mgba3a4fra ("Iran" Arabic) : IR
4764
4754
  ايران
4765
4755
 
4766
- //xn--mgbayh7gpa ("al-Ordon" Arabic) JO
4767
- //National Information Technology Center (NITC)
4768
- //Royal Scientific Society, Al-Jubeiha
4756
+ // xn--mgbayh7gpa ("al-Ordon" Arabic) : JO
4757
+ // National Information Technology Center (NITC)
4758
+ // Royal Scientific Society, Al-Jubeiha
4769
4759
  الاردن
4770
4760
 
4771
4761
  // xn--3e0b707e ("Republic of Korea" Hangul) : KR
@@ -188,7 +188,7 @@ module PublicSuffix
188
188
  # # => "www.google.zip"
189
189
  #
190
190
  # This method returns a FQD, not just the domain part.
191
- # To get the domain part, use <tt>#tld</tt> (aka third level domain).
191
+ # To get the subdomain part, use <tt>#trd</tt> (aka third level domain).
192
192
  #
193
193
  # PublicSuffix::Domain.new("com", "google", "www").subdomain
194
194
  # # => "www.google.com"
@@ -12,7 +12,7 @@ module PublicSuffix
12
12
  module Version
13
13
  MAJOR = 1
14
14
  MINOR = 1
15
- PATCH = 0
15
+ PATCH = 1
16
16
  BUILD = nil
17
17
 
18
18
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "public_suffix"
5
- s.version = "1.1.0"
5
+ s.version = "1.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = "2012-03-16"
9
+ s.date = "2012-06-26"
10
10
  s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
11
11
  s.email = "weppos@weppos.net"
12
12
  s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE", "README.md", "Rakefile", "lib/public_suffix.rb", "lib/public_suffix/definitions.txt", "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"]
13
13
  s.homepage = "http://www.simonecarletti.com/code/public_suffix"
14
14
  s.require_paths = ["lib"]
15
15
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
16
- s.rubygems_version = "1.8.15"
16
+ s.rubygems_version = "1.8.24"
17
17
  s.summary = "Domain name parser based in the Public Suffix List."
18
18
  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"]
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: public_suffix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70155750523420 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70155750523420
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: mocha
27
- requirement: &70155750522400 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70155750522400
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: yard
38
- requirement: &70155750521360 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70155750521360
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: PublicSuffix can parse and decompose a domain name into top level domain,
48
63
  domain and subdomains.
49
64
  email: weppos@weppos.net
@@ -95,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
110
  version: '0'
96
111
  requirements: []
97
112
  rubyforge_project:
98
- rubygems_version: 1.8.15
113
+ rubygems_version: 1.8.24
99
114
  signing_key:
100
115
  specification_version: 3
101
116
  summary: Domain name parser based in the Public Suffix List.