public_suffix_service 0.8.1 → 0.8.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.
- data/.gemtest +0 -0
- data/.gitignore +7 -0
- data/.yardopts +2 -0
- data/{CHANGELOG.rdoc → CHANGELOG.md} +25 -16
- data/Gemfile +4 -0
- data/Gemfile.lock +16 -0
- data/{LICENSE.rdoc → LICENSE} +2 -5
- data/{README.rdoc → README.md} +65 -65
- data/Rakefile +25 -52
- data/lib/public_suffix_service.rb +4 -11
- data/lib/public_suffix_service/definitions.dat +11 -2
- data/lib/public_suffix_service/domain.rb +4 -11
- data/lib/public_suffix_service/errors.rb +4 -11
- data/lib/public_suffix_service/rule.rb +4 -11
- data/lib/public_suffix_service/rule_list.rb +4 -11
- data/lib/public_suffix_service/version.rb +5 -12
- data/public_suffix_service.gemspec +9 -8
- metadata +44 -39
data/.gemtest
ADDED
File without changes
|
data/.gitignore
ADDED
data/.yardopts
ADDED
@@ -1,19 +1,28 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
3
|
|
4
|
-
|
4
|
+
## Release 0.8.2
|
5
|
+
|
6
|
+
* NEW: Added support for rubygems-test.
|
7
|
+
|
8
|
+
* CHANGED: Integrated Bundler.
|
9
|
+
|
10
|
+
* CHANGED: Updated definitions.
|
11
|
+
|
12
|
+
|
13
|
+
## Release 0.8.1
|
5
14
|
|
6
15
|
* FIXED: The files in the release 0.8.0 have wrong permission 600 and can't be loaded (#10).
|
7
16
|
|
8
17
|
|
9
|
-
|
18
|
+
## Release 0.8.0
|
10
19
|
|
11
20
|
* CHANGED: Update public suffix list to d1a5599b49fa 2010-10-25 15:10 +0100 (#9)
|
12
21
|
|
13
22
|
* NEW: Add support for Fully Qualified Domain Names (#7)
|
14
23
|
|
15
24
|
|
16
|
-
|
25
|
+
## Release 0.7.0
|
17
26
|
|
18
27
|
* CHANGED: Using YARD to document the code instead of RDoc.
|
19
28
|
|
@@ -22,45 +31,45 @@
|
|
22
31
|
* FIXED: PublicSuffixService.valid? should return false if the domain is not defined or not allowed (#4, #5)
|
23
32
|
|
24
33
|
|
25
|
-
|
34
|
+
## Release 0.6.0
|
26
35
|
|
27
36
|
* NEW: PublicSuffixService.parse raises DomainNotAllowed when trying to parse a domain name
|
28
|
-
|
37
|
+
which exists, but is not allowed by the current definition list (#3)
|
29
38
|
|
30
|
-
|
31
|
-
|
39
|
+
PublicSuffixService.parse("nic.do")
|
40
|
+
# => PublicSuffixService::DomainNotAllowed
|
32
41
|
|
33
42
|
* CHANGED: Renamed PublicSuffixService::InvalidDomain to PublicSuffixService::DomainInvalid
|
34
43
|
|
35
44
|
|
36
|
-
|
45
|
+
## Release 0.5.2
|
37
46
|
|
38
47
|
* CHANGED: Update public suffix list to 248ea690d671 2010-09-16 18:02 +0100
|
39
48
|
|
40
49
|
|
41
|
-
|
50
|
+
## Release 0.5.1
|
42
51
|
|
43
52
|
* CHANGED: Update public suffix list to 14dc66dd53c1 2010-09-15 17:09 +0100
|
44
53
|
|
45
54
|
|
46
|
-
|
55
|
+
## Release 0.5.0
|
47
56
|
|
48
57
|
* CHANGED: Improve documentation for Domain#domain and Domain#subdomain (#1).
|
49
58
|
|
50
59
|
* CHANGED: Performance improvements (#2).
|
51
60
|
|
52
61
|
|
53
|
-
|
62
|
+
## Release 0.4.0
|
54
63
|
|
55
64
|
* CHANGED: Rename library from DomainName to PublicSuffixService to reduce the probability of name conflicts.
|
56
65
|
|
57
66
|
|
58
|
-
|
67
|
+
## Release 0.3.1
|
59
68
|
|
60
69
|
* Deprecated DomainName library.
|
61
70
|
|
62
71
|
|
63
|
-
|
72
|
+
## Release 0.3.0
|
64
73
|
|
65
74
|
* CHANGED: DomainName#domain and DomainName#subdomain are no longer alias of Domain#sld and Domain#tld.
|
66
75
|
|
@@ -71,7 +80,7 @@
|
|
71
80
|
* CHANGED: Refactoring the entire DomainName API. Removed the internal on-the-fly parsing. Added a bunch of new methods to check and validate the DomainName.
|
72
81
|
|
73
82
|
|
74
|
-
|
83
|
+
## Release 0.2.0
|
75
84
|
|
76
85
|
* NEW: DomainName#valid?
|
77
86
|
|
@@ -82,6 +91,6 @@
|
|
82
91
|
* CHANGED: Make sure RuleList lookup is only performed once.
|
83
92
|
|
84
93
|
|
85
|
-
|
94
|
+
## Release 0.1.0
|
86
95
|
|
87
96
|
* Initial version
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/{LICENSE.rdoc → LICENSE}
RENAMED
@@ -1,8 +1,6 @@
|
|
1
|
-
|
1
|
+
Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Copyright (c) 2009-2010 Simone Carletti <weppos@weppos.net>
|
3
|
+
MIT License
|
6
4
|
|
7
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
8
6
|
a copy of this software and associated documentation files (the
|
@@ -22,4 +20,3 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
22
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
22
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
-
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
1
|
+
# Public Suffix Service
|
2
2
|
|
3
|
-
|
3
|
+
*Public Suffix Service* is a Ruby domain name parser based on the [Public Suffix List](http://publicsuffix.org).
|
4
4
|
|
5
5
|
|
6
|
-
|
6
|
+
## What is the Public Suffix List?
|
7
7
|
|
8
|
-
The
|
8
|
+
The *Public Suffix Service* is a cross-vendor initiative to provide an accurate list of domain name suffixes.
|
9
9
|
|
10
10
|
The Public Suffix Service is an initiative of the Mozilla Project, but is maintained as a community resource. It is available for use in any software, but was originally created to meet the needs of browser manufacturers.
|
11
11
|
|
@@ -14,7 +14,7 @@ A "public suffix" is one under which Internet users can directly register names.
|
|
14
14
|
Source: http://publicsuffix.org
|
15
15
|
|
16
16
|
|
17
|
-
|
17
|
+
## Why the Public Suffix List is better than any available Regular Expression parser?
|
18
18
|
|
19
19
|
Previously, browsers used an algorithm which basically only denied setting wide-ranging cookies for top-level domains with no dots (e.g. com or org). However, this did not work for top-level domains where only third-level registrations are allowed (e.g. co.uk). In these cases, websites could set a cookie for co.uk which will be passed onto every website registered under co.uk.
|
20
20
|
|
@@ -30,7 +30,7 @@ Not convinced yet? Check out a real world example:
|
|
30
30
|
http://stackoverflow.com/questions/288810/get-the-subdomain-from-a-url
|
31
31
|
|
32
32
|
|
33
|
-
|
33
|
+
## Requirements
|
34
34
|
|
35
35
|
* Ruby >= 1.8.6 or Ruby 1.9.x
|
36
36
|
|
@@ -41,101 +41,101 @@ Successfully tested with the following interpreters
|
|
41
41
|
* Ruby Enterprise Edition
|
42
42
|
|
43
43
|
|
44
|
-
|
44
|
+
## Installation
|
45
45
|
|
46
46
|
The best way to install Public Suffix Service is via {RubyGems}[http://www.rubygems.org].
|
47
47
|
|
48
|
-
|
48
|
+
$ gem install public_suffix_service
|
49
49
|
|
50
50
|
You might need administrator privileges on your system to install the Gem.
|
51
51
|
|
52
52
|
|
53
|
-
|
53
|
+
## Basic Usage
|
54
54
|
|
55
55
|
Example domain without subdomains.
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
57
|
+
domain = PublicSuffixService.parse("google.com")
|
58
|
+
# => #<PublicSuffixService::Domain>
|
59
|
+
domain.tld
|
60
|
+
# => "com"
|
61
|
+
domain.sld
|
62
|
+
# => "google"
|
63
|
+
domain.trd
|
64
|
+
# => nil
|
65
|
+
domain.domain
|
66
|
+
# => "google.com"
|
67
|
+
domain.subdomain
|
68
|
+
# => nil
|
69
69
|
|
70
70
|
Example domain with subdomains.
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
72
|
+
domain = PublicSuffixService.parse("www.google.com")
|
73
|
+
# => #<PublicSuffixService::Domain>
|
74
|
+
domain.tld
|
75
|
+
# => "com"
|
76
|
+
domain.sld
|
77
|
+
# => "google"
|
78
|
+
domain.trd
|
79
|
+
# => "www"
|
80
|
+
domain.domain
|
81
|
+
# => "google.com"
|
82
|
+
domain.subdomain
|
83
|
+
# => "google.com"
|
84
84
|
|
85
85
|
Simple validation example.
|
86
86
|
|
87
|
-
|
88
|
-
|
87
|
+
PublicSuffixService.valid?("google.com")
|
88
|
+
# => true
|
89
89
|
|
90
|
-
|
91
|
-
|
90
|
+
PublicSuffixService.valid?("www.google.com")
|
91
|
+
# => true
|
92
92
|
|
93
|
-
|
94
|
-
|
93
|
+
PublicSuffixService.valid?("x.yz")
|
94
|
+
# => false
|
95
95
|
|
96
|
-
|
96
|
+
## Fully Qualified Domain Names
|
97
97
|
|
98
98
|
This library automatically recognizes Fully Qualified Domain Names. A FQDN is a domain name that end with a trailing dot.
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
100
|
+
# Parse a standard domain name
|
101
|
+
domain = PublicSuffixService.parse("www.google.com")
|
102
|
+
# => #<PublicSuffixService::Domain>
|
103
|
+
domain.tld
|
104
|
+
# => "com"
|
105
105
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
106
|
+
# Parse a fully qualified domain name
|
107
|
+
domain = PublicSuffixService.parse("www.google.com.")
|
108
|
+
# => #<PublicSuffixService::Domain>
|
109
|
+
domain.tld
|
110
|
+
# => "com"
|
111
111
|
|
112
112
|
|
113
|
-
|
113
|
+
## Credits
|
114
114
|
|
115
|
-
Author
|
115
|
+
* **Author:** [Simone Carletti](http://www.simonecarletti.com/)
|
116
116
|
|
117
117
|
|
118
|
-
|
118
|
+
## FeedBack and Bug reports
|
119
119
|
|
120
|
-
If you use this library and find yourself missing any functionality I have missed, please
|
120
|
+
If you use this library and find yourself missing any functionality I have missed, please [let me know](mailto:weppos@weppos.net).
|
121
121
|
|
122
|
-
Bug reports and Feature suggestions
|
122
|
+
Bug reports and Feature suggestions [are welcomed](http://github.com/weppos/public_suffix_service/issues).
|
123
123
|
|
124
124
|
|
125
|
-
|
125
|
+
## More
|
126
126
|
|
127
|
-
*
|
128
|
-
*
|
129
|
-
*
|
130
|
-
*
|
127
|
+
* [Homepage](http://www.simonecarletti.com/code/public_suffix_service)
|
128
|
+
* [Repository](http://github.com/weppos/public_suffix_service)
|
129
|
+
* [API Documentation](http://www.simonecarletti.com/code/public_suffix_service/api/) (RDoc)
|
130
|
+
* [Introducing the Public Suffix List library for Ruby](http://www.simonecarletti.com/blog/2010/06/public-suffix-list-library-for-ruby/)
|
131
131
|
|
132
132
|
|
133
|
-
|
133
|
+
## Changelog
|
134
134
|
|
135
|
-
See the CHANGELOG.
|
135
|
+
See the CHANGELOG.md file for details.
|
136
136
|
|
137
137
|
|
138
|
-
|
138
|
+
## License
|
139
139
|
|
140
|
-
Copyright (c) 2009-
|
141
|
-
Public Suffix Service is released under the MIT license.
|
140
|
+
Copyright (c) 2009-2011 Simone Carletti,
|
141
|
+
*Public Suffix Service* is released under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
require 'rake/testtask'
|
4
|
+
require 'rake/gempackagetask'
|
5
|
+
require 'yard'
|
6
|
+
require 'yard/rake/yardoc_task'
|
7
|
+
|
9
8
|
|
10
9
|
$:.unshift(File.dirname(__FILE__) + "/lib")
|
11
|
-
require
|
10
|
+
require 'public_suffix_service'
|
12
11
|
|
13
12
|
|
14
13
|
# Common package properties
|
@@ -38,7 +37,6 @@ task :default => ["test"]
|
|
38
37
|
# http://rubygems.org/read/chapter/20
|
39
38
|
#
|
40
39
|
spec = Gem::Specification.new do |s|
|
41
|
-
|
42
40
|
s.name = PKG_NAME
|
43
41
|
s.version = PKG_VERSION
|
44
42
|
s.summary = "Domain Name parser based on the Public Suffix List"
|
@@ -46,19 +44,14 @@ spec = Gem::Specification.new do |s|
|
|
46
44
|
s.email = "weppos@weppos.net"
|
47
45
|
s.homepage = "http://www.simonecarletti.com/code/public_suffix_service"
|
48
46
|
s.description = <<-EOD
|
49
|
-
Intelligent domain name parser based in the Public
|
47
|
+
Intelligent domain name parser based in the Public Suffix List. \
|
50
48
|
PublicSuffixService can parse and decompose a domain name into top level domain, \
|
51
49
|
domain and subdomains.
|
52
50
|
EOD
|
53
51
|
|
54
|
-
s.has_rdoc = true
|
55
|
-
# You should probably have a README of some kind. Change the filename
|
56
|
-
# as appropriate
|
57
|
-
s.extra_rdoc_files = Dir.glob("*.rdoc")
|
58
|
-
s.rdoc_options = %w( --main README.rdoc )
|
59
|
-
|
60
52
|
# Add any extra files to include in the gem (like your README)
|
61
|
-
s.files =
|
53
|
+
s.files = `git ls-files`.split("\n")
|
54
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
62
55
|
s.require_paths = %w( lib )
|
63
56
|
|
64
57
|
# If you want to depend on other gems, add them here, along with any
|
@@ -67,6 +60,7 @@ spec = Gem::Specification.new do |s|
|
|
67
60
|
|
68
61
|
# If your tests use any gems, include them here
|
69
62
|
s.add_development_dependency("rr")
|
63
|
+
s.add_development_dependency("yard")
|
70
64
|
end
|
71
65
|
|
72
66
|
# This task actually builds the gem. We also regenerate a static
|
@@ -89,51 +83,30 @@ task :clean => [:clobber] do
|
|
89
83
|
end
|
90
84
|
|
91
85
|
desc "Remove any generated file"
|
92
|
-
task :clobber => [:
|
86
|
+
task :clobber => [:clobber_package]
|
93
87
|
|
94
88
|
desc "Package the library and generates the gemspec"
|
95
89
|
task :package => [:gemspec]
|
96
90
|
|
97
91
|
|
98
|
-
|
99
|
-
|
100
|
-
|
92
|
+
YARD::Rake::YardocTask.new(:yardoc) do |y|
|
93
|
+
y.options = ["--output-dir", "yardoc"]
|
94
|
+
end
|
101
95
|
|
102
|
-
|
103
|
-
|
96
|
+
namespace :yardoc do
|
97
|
+
desc "Publish YARD documentation to the site"
|
98
|
+
task :publish => ["yardoc:clobber", "yardoc"] do
|
99
|
+
ENV["username"] || raise(ArgumentError, "Missing ssh username")
|
100
|
+
sh "rsync -avz --delete yardoc/ #{ENV["username"]}@code:/var/www/apps/code/#{PKG_NAME}/api"
|
104
101
|
end
|
105
102
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
ENV["username"] || raise(ArgumentError, "Missing ssh username")
|
110
|
-
sh "rsync -avz --delete yardoc/ #{ENV["username"]}@code:/var/www/apps/code/#{PKG_NAME}/api"
|
111
|
-
end
|
112
|
-
|
113
|
-
desc "Remove YARD products"
|
114
|
-
task :clobber do
|
115
|
-
rm_r "yardoc" rescue nil
|
116
|
-
end
|
103
|
+
desc "Remove YARD products"
|
104
|
+
task :clobber do
|
105
|
+
rm_r "yardoc" rescue nil
|
117
106
|
end
|
118
|
-
|
119
|
-
task :clobber => "yardoc:clobber"
|
120
|
-
rescue LoadError
|
121
|
-
puts "YARD is not available"
|
122
107
|
end
|
123
108
|
|
124
|
-
|
125
|
-
begin
|
126
|
-
require "rcov/rcovtask"
|
127
|
-
|
128
|
-
desc "Create a code coverage report"
|
129
|
-
Rcov::RcovTask.new do |t|
|
130
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
131
|
-
t.ruby_opts << "-Itest -x rr,rcov,Rakefile"
|
132
|
-
t.verbose = true
|
133
|
-
end
|
134
|
-
rescue LoadError
|
135
|
-
puts "RCov is not available"
|
136
|
-
end
|
109
|
+
task :clobber => "yardoc:clobber"
|
137
110
|
|
138
111
|
|
139
112
|
desc "Open an irb session preloaded with this library"
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -509,7 +509,12 @@ edu.bs
|
|
509
509
|
gov.bs
|
510
510
|
|
511
511
|
// bt : http://en.wikipedia.org/wiki/.bt
|
512
|
-
|
512
|
+
bt
|
513
|
+
com.bt
|
514
|
+
edu.bt
|
515
|
+
gov.bt
|
516
|
+
net.bt
|
517
|
+
org.bt
|
513
518
|
|
514
519
|
// bv : No registrations at this time.
|
515
520
|
// Submitted by registry <jarle@uninett.no> 2006-06-16
|
@@ -795,6 +800,7 @@ pro.ec
|
|
795
800
|
org.ec
|
796
801
|
edu.ec
|
797
802
|
gov.ec
|
803
|
+
gob.ec
|
798
804
|
mil.ec
|
799
805
|
|
800
806
|
// edu : http://en.wikipedia.org/wiki/.edu
|
@@ -2648,6 +2654,9 @@ org.ng
|
|
2648
2654
|
// reservations) 2008-06-08
|
2649
2655
|
nl
|
2650
2656
|
|
2657
|
+
// BV.nl will be a registry for dutch BV's (besloten vennootschap)
|
2658
|
+
bv.nl
|
2659
|
+
|
2651
2660
|
// no : http://www.norid.no/regelverk/index.en.html
|
2652
2661
|
// The Norwegian registry has declined to notify us of updates. The web pages
|
2653
2662
|
// referenced below are the official source of the data. There is also an
|
@@ -4459,7 +4468,7 @@ k12.de.us
|
|
4459
4468
|
k12.fl.us
|
4460
4469
|
k12.ga.us
|
4461
4470
|
k12.gu.us
|
4462
|
-
k12.hi.us
|
4471
|
+
// k12.hi.us Hawaii has a state-wide DOE login: bug 614565
|
4463
4472
|
k12.ia.us
|
4464
4473
|
k12.id.us
|
4465
4474
|
k12.il.us
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -1,16 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# = Public Suffix Service
|
3
|
-
#
|
4
|
-
# Domain Name parser based on the Public Suffix List
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Category:: Net
|
8
|
-
# Package:: PublicSuffixService
|
9
|
-
# Author:: Simone Carletti <weppos@weppos.net>
|
10
|
-
# License:: MIT License
|
11
|
-
#
|
12
1
|
#--
|
2
|
+
# Public Suffix Service
|
3
|
+
#
|
4
|
+
# Domain Name parser based on the Public Suffix List.
|
13
5
|
#
|
6
|
+
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
|
14
7
|
#++
|
15
8
|
|
16
9
|
|
@@ -19,7 +12,7 @@ module PublicSuffixService
|
|
19
12
|
module Version
|
20
13
|
MAJOR = 0
|
21
14
|
MINOR = 8
|
22
|
-
PATCH =
|
15
|
+
PATCH = 2
|
23
16
|
BUILD = nil
|
24
17
|
|
25
18
|
STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
|
@@ -2,32 +2,33 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{public_suffix_service}
|
5
|
-
s.version = "0.8.
|
5
|
+
s.version = "0.8.2"
|
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 = %q{
|
10
|
-
s.description = %q{ Intelligent domain name parser based in the Public
|
9
|
+
s.date = %q{2011-03-11}
|
10
|
+
s.description = %q{ Intelligent domain name parser based in the Public Suffix List. PublicSuffixService can parse and decompose a domain name into top level domain, domain and subdomains.
|
11
11
|
}
|
12
12
|
s.email = %q{weppos@weppos.net}
|
13
|
-
s.
|
14
|
-
s.files = ["Rakefile", "CHANGELOG.rdoc", "LICENSE.rdoc", "README.rdoc", "public_suffix_service.gemspec", "test/acceptance_test.rb", "test/public_suffix_service/domain_test.rb", "test/public_suffix_service/errors_test.rb", "test/public_suffix_service/rule_list_test.rb", "test/public_suffix_service/rule_test.rb", "test/public_suffix_service_test.rb", "test/test_helper.rb", "lib/public_suffix_service/definitions.dat", "lib/public_suffix_service/domain.rb", "lib/public_suffix_service/errors.rb", "lib/public_suffix_service/rule.rb", "lib/public_suffix_service/rule_list.rb", "lib/public_suffix_service/version.rb", "lib/public_suffix_service.rb"]
|
13
|
+
s.files = [".gemtest", ".gitignore", ".yardopts", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "LICENSE", "README.md", "Rakefile", "lib/public_suffix_service.rb", "lib/public_suffix_service/definitions.dat", "lib/public_suffix_service/domain.rb", "lib/public_suffix_service/errors.rb", "lib/public_suffix_service/rule.rb", "lib/public_suffix_service/rule_list.rb", "lib/public_suffix_service/version.rb", "public_suffix_service.gemspec", "test/acceptance_test.rb", "test/public_suffix_service/domain_test.rb", "test/public_suffix_service/errors_test.rb", "test/public_suffix_service/rule_list_test.rb", "test/public_suffix_service/rule_test.rb", "test/public_suffix_service_test.rb", "test/test_helper.rb"]
|
15
14
|
s.homepage = %q{http://www.simonecarletti.com/code/public_suffix_service}
|
16
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
17
15
|
s.require_paths = ["lib"]
|
18
|
-
s.rubygems_version = %q{1.
|
16
|
+
s.rubygems_version = %q{1.6.1}
|
19
17
|
s.summary = %q{Domain Name parser based on the Public Suffix List}
|
18
|
+
s.test_files = ["test/acceptance_test.rb", "test/public_suffix_service/domain_test.rb", "test/public_suffix_service/errors_test.rb", "test/public_suffix_service/rule_list_test.rb", "test/public_suffix_service/rule_test.rb", "test/public_suffix_service_test.rb", "test/test_helper.rb"]
|
20
19
|
|
21
20
|
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
21
|
s.specification_version = 3
|
24
22
|
|
25
23
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
24
|
s.add_development_dependency(%q<rr>, [">= 0"])
|
25
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
27
26
|
else
|
28
27
|
s.add_dependency(%q<rr>, [">= 0"])
|
28
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
29
29
|
end
|
30
30
|
else
|
31
31
|
s.add_dependency(%q<rr>, [">= 0"])
|
32
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
32
33
|
end
|
33
34
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: public_suffix_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 1
|
10
|
-
version: 0.8.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.8.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Simone Carletti
|
@@ -15,38 +10,56 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2011-03-11 00:00:00 +01:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
22
17
|
name: rr
|
23
|
-
prerelease: false
|
24
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
24
|
type: :development
|
25
|
+
prerelease: false
|
34
26
|
version_requirements: *id001
|
35
|
-
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: yard
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *id002
|
38
|
+
description: " Intelligent domain name parser based in the Public Suffix List. PublicSuffixService can parse and decompose a domain name into top level domain, domain and subdomains.\n"
|
36
39
|
email: weppos@weppos.net
|
37
40
|
executables: []
|
38
41
|
|
39
42
|
extensions: []
|
40
43
|
|
41
|
-
extra_rdoc_files:
|
42
|
-
|
43
|
-
- LICENSE.rdoc
|
44
|
-
- README.rdoc
|
44
|
+
extra_rdoc_files: []
|
45
|
+
|
45
46
|
files:
|
47
|
+
- .gemtest
|
48
|
+
- .gitignore
|
49
|
+
- .yardopts
|
50
|
+
- CHANGELOG.md
|
51
|
+
- Gemfile
|
52
|
+
- Gemfile.lock
|
53
|
+
- LICENSE
|
54
|
+
- README.md
|
46
55
|
- Rakefile
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
56
|
+
- lib/public_suffix_service.rb
|
57
|
+
- lib/public_suffix_service/definitions.dat
|
58
|
+
- lib/public_suffix_service/domain.rb
|
59
|
+
- lib/public_suffix_service/errors.rb
|
60
|
+
- lib/public_suffix_service/rule.rb
|
61
|
+
- lib/public_suffix_service/rule_list.rb
|
62
|
+
- lib/public_suffix_service/version.rb
|
50
63
|
- public_suffix_service.gemspec
|
51
64
|
- test/acceptance_test.rb
|
52
65
|
- test/public_suffix_service/domain_test.rb
|
@@ -55,21 +68,13 @@ files:
|
|
55
68
|
- test/public_suffix_service/rule_test.rb
|
56
69
|
- test/public_suffix_service_test.rb
|
57
70
|
- test/test_helper.rb
|
58
|
-
- lib/public_suffix_service/definitions.dat
|
59
|
-
- lib/public_suffix_service/domain.rb
|
60
|
-
- lib/public_suffix_service/errors.rb
|
61
|
-
- lib/public_suffix_service/rule.rb
|
62
|
-
- lib/public_suffix_service/rule_list.rb
|
63
|
-
- lib/public_suffix_service/version.rb
|
64
|
-
- lib/public_suffix_service.rb
|
65
71
|
has_rdoc: true
|
66
72
|
homepage: http://www.simonecarletti.com/code/public_suffix_service
|
67
73
|
licenses: []
|
68
74
|
|
69
75
|
post_install_message:
|
70
|
-
rdoc_options:
|
71
|
-
|
72
|
-
- README.rdoc
|
76
|
+
rdoc_options: []
|
77
|
+
|
73
78
|
require_paths:
|
74
79
|
- lib
|
75
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -77,25 +82,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
82
|
requirements:
|
78
83
|
- - ">="
|
79
84
|
- !ruby/object:Gem::Version
|
80
|
-
hash: 3
|
81
|
-
segments:
|
82
|
-
- 0
|
83
85
|
version: "0"
|
84
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
87
|
none: false
|
86
88
|
requirements:
|
87
89
|
- - ">="
|
88
90
|
- !ruby/object:Gem::Version
|
89
|
-
hash: 3
|
90
|
-
segments:
|
91
|
-
- 0
|
92
91
|
version: "0"
|
93
92
|
requirements: []
|
94
93
|
|
95
94
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.6.1
|
97
96
|
signing_key:
|
98
97
|
specification_version: 3
|
99
98
|
summary: Domain Name parser based on the Public Suffix List
|
100
|
-
test_files:
|
101
|
-
|
99
|
+
test_files:
|
100
|
+
- test/acceptance_test.rb
|
101
|
+
- test/public_suffix_service/domain_test.rb
|
102
|
+
- test/public_suffix_service/errors_test.rb
|
103
|
+
- test/public_suffix_service/rule_list_test.rb
|
104
|
+
- test/public_suffix_service/rule_test.rb
|
105
|
+
- test/public_suffix_service_test.rb
|
106
|
+
- test/test_helper.rb
|