whois 4.0.0.pre.beta2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/4.0-Upgrade.md +143 -0
- data/CHANGELOG.md +103 -89
- data/LICENSE.txt +1 -1
- data/README.md +72 -38
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/whoisrb +2 -2
- data/data/tld.json +5330 -2748
- data/lib/whois.rb +1 -1
- data/lib/whois/client.rb +1 -1
- data/lib/whois/errors.rb +1 -1
- data/lib/whois/record.rb +1 -1
- data/lib/whois/record/part.rb +1 -1
- data/lib/whois/server.rb +303 -250
- data/lib/whois/server/adapters/afilias.rb +1 -1
- data/lib/whois/server/adapters/arin.rb +1 -1
- data/lib/whois/server/adapters/arpa.rb +1 -1
- data/lib/whois/server/adapters/base.rb +7 -14
- data/lib/whois/server/adapters/formatted.rb +1 -1
- data/lib/whois/server/adapters/none.rb +1 -1
- data/lib/whois/server/adapters/not_implemented.rb +1 -1
- data/lib/whois/server/adapters/standard.rb +1 -1
- data/lib/whois/server/adapters/verisign.rb +1 -1
- data/lib/whois/server/adapters/web.rb +1 -1
- data/lib/whois/server/socket_handler.rb +1 -1
- data/lib/whois/version.rb +2 -2
- data/whois.gemspec +25 -26
- metadata +12 -20
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2016 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -111,7 +111,7 @@ module Whois
|
|
111
111
|
def lookup(string)
|
112
112
|
buffer_start do |buffer|
|
113
113
|
request(string)
|
114
|
-
Whois::Record.new(self, buffer)
|
114
|
+
Whois::Record.new(self, buffer.dup)
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -142,22 +142,15 @@ module Whois
|
|
142
142
|
|
143
143
|
private
|
144
144
|
|
145
|
-
# Store a record part in {#buffer}.
|
146
|
-
#
|
147
|
-
# @param [String] body
|
148
|
-
# @param [String] host
|
149
|
-
# @return [void]
|
150
|
-
#
|
151
145
|
def buffer_append(body, host)
|
152
|
-
@buffer << Whois::Record::Part.new(:
|
146
|
+
@buffer << Whois::Record::Part.new(body: body, host: host)
|
153
147
|
end
|
154
148
|
|
155
|
-
# @api private
|
156
149
|
def buffer_start
|
157
|
-
@buffer
|
158
|
-
|
159
|
-
|
160
|
-
|
150
|
+
@buffer ||= []
|
151
|
+
yield(@buffer)
|
152
|
+
ensure
|
153
|
+
@buffer.clear
|
161
154
|
end
|
162
155
|
|
163
156
|
# Prepares and passes the query to the {#query_handler}.
|
data/lib/whois/version.rb
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2016 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
10
|
module Whois
|
11
11
|
# The current library version.
|
12
|
-
VERSION = "4.0.0
|
12
|
+
VERSION = "4.0.0".freeze
|
13
13
|
end
|
data/whois.gemspec
CHANGED
@@ -1,40 +1,39 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: whois 4.0.0
|
2
|
+
# stub: whois 4.0.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
-
s.name = "whois"
|
6
|
-
s.version = "4.0.0
|
5
|
+
s.name = "whois".freeze
|
6
|
+
s.version = "4.0.0"
|
7
7
|
|
8
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
9
|
-
s.require_paths = ["lib"]
|
10
|
-
s.authors = ["Simone Carletti"]
|
11
|
-
s.date = "2016-
|
12
|
-
s.description = "Whois is an intelligent WHOIS client and parser written in pure Ruby. It can query registry data for IPv4, IPv6 and top level domains, parse
|
13
|
-
s.email = ["weppos@weppos.net"]
|
14
|
-
s.executables = ["whoisrb"]
|
15
|
-
s.files = [".yardopts", "CHANGELOG.md", "CONTRIBUTING.md", "LICENSE.txt", "README.md", "bin/whoisrb", "data/asn16.json", "data/asn32.json", "data/ipv4.json", "data/ipv6.json", "data/tld.json", "lib/whois.rb", "lib/whois/client.rb", "lib/whois/errors.rb", "lib/whois/record.rb", "lib/whois/record/part.rb", "lib/whois/server.rb", "lib/whois/server/adapters/afilias.rb", "lib/whois/server/adapters/arin.rb", "lib/whois/server/adapters/arpa.rb", "lib/whois/server/adapters/base.rb", "lib/whois/server/adapters/formatted.rb", "lib/whois/server/adapters/none.rb", "lib/whois/server/adapters/not_implemented.rb", "lib/whois/server/adapters/standard.rb", "lib/whois/server/adapters/verisign.rb", "lib/whois/server/adapters/web.rb", "lib/whois/server/socket_handler.rb", "lib/whois/version.rb", "whois.gemspec"]
|
16
|
-
s.homepage = "
|
17
|
-
s.licenses = ["MIT"]
|
18
|
-
s.
|
19
|
-
s.
|
20
|
-
s.
|
21
|
-
s.summary = "An intelligent pure Ruby WHOIS client and parser."
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
|
+
s.require_paths = ["lib".freeze]
|
10
|
+
s.authors = ["Simone Carletti".freeze]
|
11
|
+
s.date = "2016-11-06"
|
12
|
+
s.description = "Whois is an intelligent WHOIS client and parser written in pure Ruby. It can query registry data for IPv4, IPv6 and top level domains, and parse the responses into easy-to-use Ruby objects via the whois-parser library.".freeze
|
13
|
+
s.email = ["weppos@weppos.net".freeze]
|
14
|
+
s.executables = ["whoisrb".freeze]
|
15
|
+
s.files = [".yardopts".freeze, "4.0-Upgrade.md".freeze, "CHANGELOG.md".freeze, "CONTRIBUTING.md".freeze, "LICENSE.txt".freeze, "README.md".freeze, "bin/console".freeze, "bin/setup".freeze, "bin/whoisrb".freeze, "data/asn16.json".freeze, "data/asn32.json".freeze, "data/ipv4.json".freeze, "data/ipv6.json".freeze, "data/tld.json".freeze, "lib/whois".freeze, "lib/whois.rb".freeze, "lib/whois/client.rb".freeze, "lib/whois/errors.rb".freeze, "lib/whois/record".freeze, "lib/whois/record.rb".freeze, "lib/whois/record/part.rb".freeze, "lib/whois/server".freeze, "lib/whois/server.rb".freeze, "lib/whois/server/adapters".freeze, "lib/whois/server/adapters/afilias.rb".freeze, "lib/whois/server/adapters/arin.rb".freeze, "lib/whois/server/adapters/arpa.rb".freeze, "lib/whois/server/adapters/base.rb".freeze, "lib/whois/server/adapters/formatted.rb".freeze, "lib/whois/server/adapters/none.rb".freeze, "lib/whois/server/adapters/not_implemented.rb".freeze, "lib/whois/server/adapters/standard.rb".freeze, "lib/whois/server/adapters/verisign.rb".freeze, "lib/whois/server/adapters/web.rb".freeze, "lib/whois/server/socket_handler.rb".freeze, "lib/whois/version.rb".freeze, "whois.gemspec".freeze]
|
16
|
+
s.homepage = "https://whoisrb.org/".freeze
|
17
|
+
s.licenses = ["MIT".freeze]
|
18
|
+
s.required_ruby_version = Gem::Requirement.new(">= 2.0.0".freeze)
|
19
|
+
s.rubygems_version = "2.6.8".freeze
|
20
|
+
s.summary = "An intelligent pure Ruby WHOIS client and parser.".freeze
|
22
21
|
|
23
22
|
if s.respond_to? :specification_version then
|
24
23
|
s.specification_version = 4
|
25
24
|
|
26
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
|
-
s.add_development_dependency(%q<rake
|
28
|
-
s.add_development_dependency(%q<rspec
|
29
|
-
s.add_development_dependency(%q<yard
|
26
|
+
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
|
27
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
28
|
+
s.add_development_dependency(%q<yard>.freeze, [">= 0"])
|
30
29
|
else
|
31
|
-
s.add_dependency(%q<rake
|
32
|
-
s.add_dependency(%q<rspec
|
33
|
-
s.add_dependency(%q<yard
|
30
|
+
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
31
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
32
|
+
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
34
33
|
end
|
35
34
|
else
|
36
|
-
s.add_dependency(%q<rake
|
37
|
-
s.add_dependency(%q<rspec
|
38
|
-
s.add_dependency(%q<yard
|
35
|
+
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
36
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
37
|
+
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
39
38
|
end
|
40
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whois
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.0
|
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
|
11
|
+
date: 2016-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -53,8 +53,8 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Whois is an intelligent WHOIS client and parser written in pure Ruby.
|
56
|
-
It can query registry data for IPv4, IPv6 and top level domains, parse
|
57
|
-
|
56
|
+
It can query registry data for IPv4, IPv6 and top level domains, and parse the responses
|
57
|
+
into easy-to-use Ruby objects via the whois-parser library.
|
58
58
|
email:
|
59
59
|
- weppos@weppos.net
|
60
60
|
executables:
|
@@ -63,10 +63,13 @@ extensions: []
|
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
65
65
|
- ".yardopts"
|
66
|
+
- 4.0-Upgrade.md
|
66
67
|
- CHANGELOG.md
|
67
68
|
- CONTRIBUTING.md
|
68
69
|
- LICENSE.txt
|
69
70
|
- README.md
|
71
|
+
- bin/console
|
72
|
+
- bin/setup
|
70
73
|
- bin/whoisrb
|
71
74
|
- data/asn16.json
|
72
75
|
- data/asn32.json
|
@@ -92,22 +95,11 @@ files:
|
|
92
95
|
- lib/whois/server/socket_handler.rb
|
93
96
|
- lib/whois/version.rb
|
94
97
|
- whois.gemspec
|
95
|
-
homepage:
|
98
|
+
homepage: https://whoisrb.org/
|
96
99
|
licenses:
|
97
100
|
- MIT
|
98
101
|
metadata: {}
|
99
|
-
post_install_message:
|
100
|
-
********************************************************************************
|
101
|
-
|
102
|
-
Thank you for installing the whois gem!
|
103
|
-
|
104
|
-
If you like this gem, please support the project.
|
105
|
-
http://pledgie.com/campaigns/11383
|
106
|
-
|
107
|
-
Does your project or organization use this gem? Add it to the apps wiki.
|
108
|
-
https://github.com/weppos/whois/wiki/apps
|
109
|
-
|
110
|
-
********************************************************************************
|
102
|
+
post_install_message:
|
111
103
|
rdoc_options: []
|
112
104
|
require_paths:
|
113
105
|
- lib
|
@@ -118,12 +110,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
110
|
version: 2.0.0
|
119
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
112
|
requirements:
|
121
|
-
- - "
|
113
|
+
- - ">="
|
122
114
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
115
|
+
version: '0'
|
124
116
|
requirements: []
|
125
117
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.6.8
|
127
119
|
signing_key:
|
128
120
|
specification_version: 4
|
129
121
|
summary: An intelligent pure Ruby WHOIS client and parser.
|