public_suffix 1.0.0.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -6
- data/Rakefile +1 -1
- data/lib/public_suffix/definitions.txt +8 -1
- data/lib/public_suffix/version.rb +1 -1
- data/public_suffix.gemspec +4 -4
- metadata +12 -12
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -36,7 +36,7 @@ http://stackoverflow.com/questions/288810/get-the-subdomain-from-a-url
|
|
36
36
|
|
37
37
|
* Ruby >= 1.8.7
|
38
38
|
|
39
|
-
*Public Suffix*
|
39
|
+
*Public Suffix* (as of 0.9.0) requires Ruby 1.8.7 or greater.
|
40
40
|
For older versions of Ruby, see the CHANGELOG.md file.
|
41
41
|
|
42
42
|
Successfully tested against the following interpreters:
|
@@ -51,9 +51,9 @@ Successfully tested against the following interpreters:
|
|
51
51
|
|
52
52
|
## Installation
|
53
53
|
|
54
|
-
The best way to install *Public Suffix* is via [RubyGems](
|
54
|
+
The best way to install *Public Suffix* is via [RubyGems](https://rubygems.org/).
|
55
55
|
|
56
|
-
$ gem install
|
56
|
+
$ gem install public_suffix
|
57
57
|
|
58
58
|
You might need administrator privileges on your system to install the gem.
|
59
59
|
|
@@ -127,16 +127,16 @@ This library automatically recognizes Fully Qualified Domain Names. A FQDN is a
|
|
127
127
|
|
128
128
|
If you use this library and find yourself missing any functionality, please [let me know](mailto:weppos@weppos.net).
|
129
129
|
|
130
|
-
Pull requests are very welcome! Please include
|
130
|
+
Pull requests are very welcome! Please include tests and/or feature coverage for every patch, and create a topic branch for every separate change you make.
|
131
131
|
|
132
132
|
Report issues or feature requests to [GitHub Issues](https://github.com/weppos/public_suffix_service/issues).
|
133
133
|
|
134
134
|
|
135
135
|
## More
|
136
136
|
|
137
|
-
* [Homepage](http://www.simonecarletti.com/code/
|
137
|
+
* [Homepage](http://www.simonecarletti.com/code/public_suffix)
|
138
138
|
* [Repository](https://github.com/weppos/public_suffix_service)
|
139
|
-
* [API Documentation](http://rubydoc.info/gems/
|
139
|
+
* [API Documentation](http://rubydoc.info/gems/public_suffix)
|
140
140
|
* [Introducing the Public Suffix List library for Ruby](http://www.simonecarletti.com/blog/2010/06/public-suffix-list-library-for-ruby/)
|
141
141
|
|
142
142
|
|
data/Rakefile
CHANGED
@@ -27,7 +27,7 @@ spec = Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
s.author = "Simone Carletti"
|
29
29
|
s.email = "weppos@weppos.net"
|
30
|
-
s.homepage = "http://www.simonecarletti.com/code/
|
30
|
+
s.homepage = "http://www.simonecarletti.com/code/public_suffix"
|
31
31
|
|
32
32
|
# Add any extra files to include in the gem (like your README)
|
33
33
|
s.files = `git ls-files`.split("\n")
|
@@ -696,12 +696,14 @@ com
|
|
696
696
|
|
697
697
|
// CentralNic names : http://www.centralnic.com/names/domains
|
698
698
|
// Confirmed by registry <gavin.brown@centralnic.com> 2008-06-09
|
699
|
+
// Updated by registry <gavin.brown@centralnic.com> 2011-05-27
|
699
700
|
ar.com
|
700
701
|
br.com
|
701
702
|
cn.com
|
702
703
|
de.com
|
703
704
|
eu.com
|
704
705
|
gb.com
|
706
|
+
gr.com
|
705
707
|
hu.com
|
706
708
|
jpn.com
|
707
709
|
kr.com
|
@@ -762,6 +764,10 @@ cz
|
|
762
764
|
// reservations) 2008-07-01
|
763
765
|
de
|
764
766
|
|
767
|
+
// CentralNic names : http://www.centralnic.com/names/domains
|
768
|
+
// Submitted by registry <gavin.brown@centralnic.com> 2011-05-27
|
769
|
+
com.de
|
770
|
+
|
765
771
|
// dj : http://en.wikipedia.org/wiki/.dj
|
766
772
|
dj
|
767
773
|
|
@@ -3491,7 +3497,9 @@ org
|
|
3491
3497
|
|
3492
3498
|
// CentralNic names : http://www.centralnic.com/names/domains
|
3493
3499
|
// Submitted by registry <gavin.brown@centralnic.com> 2008-06-17
|
3500
|
+
// Updated by registry <gavin.brown@centralnic.com> 2011-05-27
|
3494
3501
|
ae.org
|
3502
|
+
us.org
|
3495
3503
|
|
3496
3504
|
// ZaNiC names : http://www.za.net/
|
3497
3505
|
// Confirmed by registry <hostmaster@nic.za.net> 2009-10-03
|
@@ -4407,7 +4415,6 @@ or.ug
|
|
4407
4415
|
!bl.uk
|
4408
4416
|
!british-library.uk
|
4409
4417
|
!icnet.uk
|
4410
|
-
!gov.uk
|
4411
4418
|
!jet.uk
|
4412
4419
|
!mod.uk
|
4413
4420
|
!nel.uk
|
data/public_suffix.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "public_suffix"
|
5
|
-
s.version = "1.0.0
|
5
|
+
s.version = "1.0.0"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
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 = "2011-12-
|
9
|
+
s.date = "2011-12-24"
|
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", "Gemfile.lock", "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/rule_list.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
|
-
s.homepage = "http://www.simonecarletti.com/code/
|
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
16
|
s.rubygems_version = "1.8.11"
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: public_suffix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Simone Carletti
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-24 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70114624505340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70114624505340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mocha
|
27
|
-
requirement: &
|
27
|
+
requirement: &70114624504860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70114624504860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yard
|
38
|
-
requirement: &
|
38
|
+
requirement: &70114624504400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70114624504400
|
47
47
|
description: PublicSuffix can parse and decompose a domain name into top level domain,
|
48
48
|
domain and subdomains.
|
49
49
|
email: weppos@weppos.net
|
@@ -77,7 +77,7 @@ files:
|
|
77
77
|
- test/unit/list_test.rb
|
78
78
|
- test/unit/public_suffix_test.rb
|
79
79
|
- test/unit/rule_test.rb
|
80
|
-
homepage: http://www.simonecarletti.com/code/
|
80
|
+
homepage: http://www.simonecarletti.com/code/public_suffix
|
81
81
|
licenses: []
|
82
82
|
post_install_message:
|
83
83
|
rdoc_options: []
|
@@ -92,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
none: false
|
94
94
|
requirements:
|
95
|
-
- - ! '
|
95
|
+
- - ! '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
100
|
rubygems_version: 1.8.11
|