whois 0.5.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/CHANGELOG.rdoc +55 -0
  2. data/Manifest +43 -8
  3. data/README.rdoc +53 -20
  4. data/lib/whois.rb +69 -1
  5. data/lib/whois/answer.rb +126 -0
  6. data/lib/whois/answer/contact.rb +55 -0
  7. data/lib/whois/answer/parser.rb +110 -0
  8. data/lib/whois/answer/parser/README.rdoc +21 -0
  9. data/lib/whois/answer/parser/base.rb +144 -0
  10. data/lib/whois/answer/parser/blank.rb +45 -0
  11. data/lib/whois/answer/parser/whois.crsnic.net.rb +209 -0
  12. data/lib/whois/answer/parser/whois.denic.de.rb +202 -0
  13. data/lib/whois/answer/parser/whois.nic.it.rb +330 -0
  14. data/lib/whois/answer/parser/whois.publicinterestregistry.net.rb +232 -0
  15. data/lib/whois/answer/part.rb +35 -0
  16. data/lib/whois/answer/registrar.rb +42 -0
  17. data/lib/whois/answer/super_struct.rb +57 -0
  18. data/lib/whois/client.rb +6 -0
  19. data/lib/whois/definitions/tlds.rb +2 -2
  20. data/lib/whois/errors.rb +25 -8
  21. data/lib/whois/server.rb +0 -1
  22. data/lib/whois/server/adapters/afilias.rb +5 -5
  23. data/lib/whois/server/adapters/base.rb +31 -4
  24. data/lib/whois/server/adapters/formatted.rb +3 -1
  25. data/lib/whois/server/adapters/none.rb +20 -1
  26. data/lib/whois/server/adapters/pir.rb +5 -5
  27. data/lib/whois/server/adapters/standard.rb +13 -2
  28. data/lib/whois/server/adapters/verisign.rb +5 -5
  29. data/lib/whois/server/adapters/web.rb +15 -0
  30. data/lib/whois/version.rb +2 -2
  31. data/lib/whois/whois.rb +2 -2
  32. data/test/answer/parser/base_test.rb +27 -0
  33. data/test/answer/parser/blank_test.rb +19 -0
  34. data/test/answer/parser/whois_crsnic_net_test.rb +175 -0
  35. data/test/answer/parser/whois_denic_de_test.rb +209 -0
  36. data/test/answer/parser/whois_nic_it_test.rb +255 -0
  37. data/test/answer/parser/whois_publicinterestregistry_net_test.rb +210 -0
  38. data/test/answer/parser_test.rb +77 -0
  39. data/test/answer_test.rb +99 -0
  40. data/test/client_test.rb +3 -3
  41. data/test/integration_test.rb +31 -0
  42. data/test/{adapters → server/adapters}/afilias_test.rb +10 -5
  43. data/test/server/adapters/base_test.rb +15 -0
  44. data/test/server/adapters/formatted_test.rb +26 -0
  45. data/test/{adapters → server/adapters}/none_test.rb +0 -0
  46. data/test/{adapters → server/adapters}/not_implemented_test.rb +0 -0
  47. data/test/{adapters → server/adapters}/pir_test.rb +10 -5
  48. data/test/server/adapters/standard_test.rb +29 -0
  49. data/test/{adapters → server/adapters}/verisign_test.rb +10 -5
  50. data/test/{adapters → server/adapters}/web_test.rb +0 -0
  51. data/test/server_test.rb +5 -1
  52. data/test/testcases/responses/super_struct_test.rb +25 -0
  53. data/test/testcases/responses/whois.crsnic.net/available.txt +43 -0
  54. data/test/testcases/responses/whois.crsnic.net/registered.txt +57 -0
  55. data/test/testcases/responses/whois.denic.de/available.txt +30 -0
  56. data/test/testcases/responses/whois.denic.de/registered.txt +77 -0
  57. data/test/testcases/responses/whois.nic.it/available.txt +2 -0
  58. data/test/testcases/responses/{it.txt → whois.nic.it/registered.txt} +1 -0
  59. data/test/testcases/responses/whois.nic.it/status_active.txt +53 -0
  60. data/test/testcases/responses/whois.nic.it/status_available.txt +2 -0
  61. data/test/testcases/responses/whois.publicinterestregistry.net/available.txt +1 -0
  62. data/test/testcases/responses/whois.publicinterestregistry.net/registered.txt +85 -0
  63. data/test/whois_test.rb +23 -1
  64. data/utils/bm_delegation_vs_inheritance.rb +150 -0
  65. data/whois.gemspec +6 -6
  66. metadata +78 -18
  67. data/test/adapters/standard_test.rb +0 -23
@@ -0,0 +1,2 @@
1
+ Domain: google.it
2
+ Status: AVAILABLE
@@ -0,0 +1,85 @@
1
+ NOTICE: Access to .ORG WHOIS information is provided to assist persons in
2
+ determining the contents of a domain name registration record in the Public Interest Registry
3
+ registry database. The data in this record is provided by Public Interest Registry
4
+ for informational purposes only, and Public Interest Registry does not guarantee its
5
+ accuracy. This service is intended only for query-based access. You agree
6
+ that you will use this data only for lawful purposes and that, under no
7
+ circumstances will you use this data to: (a) allow, enable, or otherwise
8
+ support the transmission by e-mail, telephone, or facsimile of mass
9
+ unsolicited, commercial advertising or solicitations to entities other than
10
+ the data recipient's own existing customers; or (b) enable high volume,
11
+ automated, electronic processes that send queries or data to the systems of
12
+ Registry Operator or any ICANN-Accredited Registrar, except as reasonably
13
+ necessary to register domain names or modify existing registrations. All
14
+ rights reserved. Public Interest Registry reserves the right to modify these terms at any
15
+ time. By submitting this query, you agree to abide by this policy.
16
+
17
+ Domain ID:D2244233-LROR
18
+ Domain Name:GOOGLE.ORG
19
+ Created On:21-Oct-1998 04:00:00 UTC
20
+ Last Updated On:04-Mar-2009 12:07:19 UTC
21
+ Expiration Date:20-Oct-2012 04:00:00 UTC
22
+ Sponsoring Registrar:MarkMonitor Inc. (R37-LROR)
23
+ Status:CLIENT DELETE PROHIBITED
24
+ Status:CLIENT TRANSFER PROHIBITED
25
+ Status:CLIENT UPDATE PROHIBITED
26
+ Registrant ID:mmr-32097
27
+ Registrant Name:DNS Admin
28
+ Registrant Organization:Google Inc.
29
+ Registrant Street1:1600 Amphitheatre Parkway
30
+ Registrant Street2:
31
+ Registrant Street3:
32
+ Registrant City:Mountain View
33
+ Registrant State/Province:CA
34
+ Registrant Postal Code:94043
35
+ Registrant Country:US
36
+ Registrant Phone:+1.6506234000
37
+ Registrant Phone Ext.:
38
+ Registrant FAX:+1.6506188571
39
+ Registrant FAX Ext.:
40
+ Registrant Email:dns-admin@google.com
41
+ Admin ID:mmr-32097
42
+ Admin Name:DNS Admin
43
+ Admin Organization:Google Inc.
44
+ Admin Street1:1600 Amphitheatre Parkway
45
+ Admin Street2:
46
+ Admin Street3:
47
+ Admin City:Mountain View
48
+ Admin State/Province:CA
49
+ Admin Postal Code:94043
50
+ Admin Country:US
51
+ Admin Phone:+1.6506234000
52
+ Admin Phone Ext.:
53
+ Admin FAX:+1.6506188571
54
+ Admin FAX Ext.:
55
+ Admin Email:dns-admin@google.com
56
+ Tech ID:mmr-32097
57
+ Tech Name:DNS Admin
58
+ Tech Organization:Google Inc.
59
+ Tech Street1:1600 Amphitheatre Parkway
60
+ Tech Street2:
61
+ Tech Street3:
62
+ Tech City:Mountain View
63
+ Tech State/Province:CA
64
+ Tech Postal Code:94043
65
+ Tech Country:US
66
+ Tech Phone:+1.6506234000
67
+ Tech Phone Ext.:
68
+ Tech FAX:+1.6506188571
69
+ Tech FAX Ext.:
70
+ Tech Email:dns-admin@google.com
71
+ Name Server:NS2.GOOGLE.COM
72
+ Name Server:NS1.GOOGLE.COM
73
+ Name Server:NS3.GOOGLE.COM
74
+ Name Server:NS4.GOOGLE.COM
75
+ Name Server:
76
+ Name Server:
77
+ Name Server:
78
+ Name Server:
79
+ Name Server:
80
+ Name Server:
81
+ Name Server:
82
+ Name Server:
83
+ Name Server:
84
+
85
+
@@ -2,9 +2,31 @@ require 'test_helper'
2
2
 
3
3
  class WhoisTest < Test::Unit::TestCase
4
4
 
5
+ def setup
6
+ @server = Whois::Server.factory(:tld, ".it", "whois.nic.it")
7
+ @answer = Whois::Answer.new("", @server)
8
+ end
9
+
10
+ def test_query
11
+ Whois::Client.any_instance.expects(:query).with("foo.com")
12
+ Whois.query("foo.com")
13
+ end
14
+
5
15
  def test_whois
6
16
  Whois::Client.any_instance.expects(:query).with("foo.com")
7
17
  Whois.whois("foo.com")
8
18
  end
9
-
19
+
20
+ def test_available_question
21
+ @answer.expects(:available?).returns(true)
22
+ Whois::Client.any_instance.expects(:query).with("foo.com").returns(@answer)
23
+ assert Whois.available?("foo.com")
24
+ end
25
+
26
+ def test_registered_question
27
+ @answer.expects(:registered?).returns(true)
28
+ Whois::Client.any_instance.expects(:query).with("foo.com").returns(@answer)
29
+ assert Whois.registered?("foo.com")
30
+ end
31
+
10
32
  end
@@ -0,0 +1,150 @@
1
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
2
+ require 'benchmark'
3
+ require 'delegate'
4
+
5
+ class Foo < DelegateClass(String)
6
+ attr_reader :optional
7
+ def initialize(mandatory, optional = nil)
8
+ super(String.new(mandatory))
9
+ @optional = optional
10
+ end
11
+ end
12
+
13
+ class Bar < String
14
+ attr_reader :optional
15
+ def initialize(mandatory, optional = nil)
16
+ super(mandatory)
17
+ @optional = optional
18
+ end
19
+ end
20
+
21
+ class Baz
22
+ attr_reader :optional
23
+ def initialize(mandatory, optional = nil)
24
+ @string = mandatory.to_s
25
+ @optional = optional
26
+ end
27
+
28
+ def match(*args)
29
+ @string.match(*args)
30
+ end
31
+
32
+ def gsub(*args)
33
+ @string.gsub(*args)
34
+ end
35
+
36
+ def gsub!(*args)
37
+ @string.gsub!(*args)
38
+ end
39
+ end
40
+
41
+ class Option < Struct.new(:qui, :quo, :qua)
42
+ def to_s
43
+ "-" * 100
44
+ end
45
+ end
46
+
47
+
48
+ TIMES = 100_000
49
+ CONTENT = <<-LOREM
50
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit,
51
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
52
+ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
53
+ nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
54
+ reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
55
+ Excepteur sint occaecat cupidatat non proident,
56
+ sunt in culpa qui officia deserunt mollit anim id est laborum.
57
+ LOREM
58
+
59
+ Benchmark.bmbm do |x|
60
+ x.report("inheritance =~") do
61
+ TIMES.times do
62
+ s = Foo.new(CONTENT, Option.new)
63
+ s =~ /Duis/
64
+ end
65
+ end
66
+ x.report("delegation =~") do
67
+ TIMES.times do
68
+ s = Bar.new(CONTENT, Option.new)
69
+ s =~ /Duis/
70
+ end
71
+ end
72
+ x.report("composition =~") do
73
+ # TIMES.times do
74
+ # s = Baz.new(CONTENT, Option.new)
75
+ # s =~ /Duis/
76
+ # end
77
+ end
78
+ x.report("inheritance match") do
79
+ TIMES.times do
80
+ s = Foo.new(CONTENT, Option.new)
81
+ s.match(/Status:/)
82
+ end
83
+ end
84
+ x.report("delegation match") do
85
+ TIMES.times do
86
+ s = Bar.new(CONTENT, Option.new)
87
+ s.match(/Status:/)
88
+ end
89
+ end
90
+ x.report("composition match") do
91
+ TIMES.times do
92
+ s = Baz.new(CONTENT, Option.new)
93
+ s.match(/Status:/)
94
+ end
95
+ end
96
+ x.report("inheritance gsub") do
97
+ TIMES.times do
98
+ s = Foo.new(CONTENT, Option.new)
99
+ s.gsub(/ /, '_')
100
+ end
101
+ end
102
+ x.report("delegation gsub") do
103
+ TIMES.times do
104
+ s = Bar.new(CONTENT, Option.new)
105
+ s.gsub(/ /, '_')
106
+ end
107
+ end
108
+ x.report("composition gsub") do
109
+ TIMES.times do
110
+ s = Baz.new(CONTENT, Option.new)
111
+ s.gsub(/ /, '_')
112
+ end
113
+ end
114
+ x.report("inheritance gsub!") do
115
+ TIMES.times do
116
+ s = Foo.new(CONTENT, Option.new)
117
+ s.gsub!(/ /, '_')
118
+ end
119
+ end
120
+ x.report("delegation gsub!") do
121
+ TIMES.times do
122
+ s = Bar.new(CONTENT, Option.new)
123
+ s.gsub!(/ /, '_')
124
+ end
125
+ end
126
+ x.report("composition gsub!") do
127
+ TIMES.times do
128
+ s = Baz.new(CONTENT, Option.new)
129
+ s.gsub!(/ /, '_')
130
+ end
131
+ end
132
+ x.report("inheritance option") do
133
+ TIMES.times do
134
+ s = Foo.new(CONTENT, Option.new)
135
+ s.optional.to_s
136
+ end
137
+ end
138
+ x.report("delegation option") do
139
+ TIMES.times do
140
+ s = Bar.new(CONTENT, Option.new)
141
+ s.optional.to_s
142
+ end
143
+ end
144
+ x.report("composition option") do
145
+ TIMES.times do
146
+ s = Baz.new(CONTENT, Option.new)
147
+ s.optional.to_s
148
+ end
149
+ end
150
+ end
@@ -2,25 +2,25 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{whois}
5
- s.version = "0.5.3"
5
+ s.version = "0.8.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = %q{2009-09-18}
9
+ s.date = %q{2009-09-30}
10
10
  s.default_executable = %q{ruby-whois}
11
11
  s.description = %q{ Whois is an intelligent WHOIS client written in pure Ruby. It enables you to query registry data for ipv4, ipv6 and top level domains.
12
12
  }
13
13
  s.email = %q{weppos@weppos.net}
14
14
  s.executables = ["ruby-whois"]
15
- s.extra_rdoc_files = ["bin/ruby-whois", "CHANGELOG.rdoc", "lib/whois/client.rb", "lib/whois/definitions/ipv4.rb", "lib/whois/definitions/ipv4.txt", "lib/whois/definitions/ipv6.rb", "lib/whois/definitions/ipv6.txt", "lib/whois/definitions/tlds.rb", "lib/whois/definitions/tlds.txt", "lib/whois/errors.rb", "lib/whois/server/adapters/afilias.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/pir.rb", "lib/whois/server/adapters/standard.rb", "lib/whois/server/adapters/verisign.rb", "lib/whois/server/adapters/web.rb", "lib/whois/server.rb", "lib/whois/version.rb", "lib/whois/whois.rb", "lib/whois.rb", "LICENSE.rdoc", "README.rdoc", "tasks/server.rake"]
16
- s.files = ["bin/ruby-whois", "CHANGELOG.rdoc", "data/ip6_del_list", "data/ip_del_list", "data/make_ip6_del.pl", "data/make_ip_del.pl", "data/make_tld_serv.pl", "data/tld_serv_list", "lib/whois/client.rb", "lib/whois/definitions/ipv4.rb", "lib/whois/definitions/ipv4.txt", "lib/whois/definitions/ipv6.rb", "lib/whois/definitions/ipv6.txt", "lib/whois/definitions/tlds.rb", "lib/whois/definitions/tlds.txt", "lib/whois/errors.rb", "lib/whois/server/adapters/afilias.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/pir.rb", "lib/whois/server/adapters/standard.rb", "lib/whois/server/adapters/verisign.rb", "lib/whois/server/adapters/web.rb", "lib/whois/server.rb", "lib/whois/version.rb", "lib/whois/whois.rb", "lib/whois.rb", "LICENSE.rdoc", "Manifest", "Rakefile", "README.rdoc", "tasks/server.rake", "test/adapters/afilias_test.rb", "test/adapters/none_test.rb", "test/adapters/not_implemented_test.rb", "test/adapters/pir_test.rb", "test/adapters/standard_test.rb", "test/adapters/verisign_test.rb", "test/adapters/web_test.rb", "test/client_test.rb", "test/deprecated_test.rb", "test/server_test.rb", "test/test_helper.rb", "test/testcases/referrals/afilias.bz.txt", "test/testcases/referrals/crsnic.com.txt", "test/testcases/referrals/niccc.cc.txt", "test/testcases/referrals/pir.org.txt", "test/testcases/responses/it.txt", "test/whois_test.rb", "utils/bm_shell_vs_pure.rb", "utils/tlds.txt", "whois.gemspec"]
15
+ s.extra_rdoc_files = ["bin/ruby-whois", "CHANGELOG.rdoc", "lib/whois/answer/contact.rb", "lib/whois/answer/parser/base.rb", "lib/whois/answer/parser/blank.rb", "lib/whois/answer/parser/README.rdoc", "lib/whois/answer/parser/whois.crsnic.net.rb", "lib/whois/answer/parser/whois.denic.de.rb", "lib/whois/answer/parser/whois.nic.it.rb", "lib/whois/answer/parser/whois.publicinterestregistry.net.rb", "lib/whois/answer/parser.rb", "lib/whois/answer/part.rb", "lib/whois/answer/registrar.rb", "lib/whois/answer/super_struct.rb", "lib/whois/answer.rb", "lib/whois/client.rb", "lib/whois/definitions/ipv4.rb", "lib/whois/definitions/ipv4.txt", "lib/whois/definitions/ipv6.rb", "lib/whois/definitions/ipv6.txt", "lib/whois/definitions/tlds.rb", "lib/whois/definitions/tlds.txt", "lib/whois/errors.rb", "lib/whois/server/adapters/afilias.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/pir.rb", "lib/whois/server/adapters/standard.rb", "lib/whois/server/adapters/verisign.rb", "lib/whois/server/adapters/web.rb", "lib/whois/server.rb", "lib/whois/version.rb", "lib/whois/whois.rb", "lib/whois.rb", "LICENSE.rdoc", "README.rdoc", "tasks/server.rake"]
16
+ s.files = ["bin/ruby-whois", "CHANGELOG.rdoc", "data/ip6_del_list", "data/ip_del_list", "data/make_ip6_del.pl", "data/make_ip_del.pl", "data/make_tld_serv.pl", "data/tld_serv_list", "lib/whois/answer/contact.rb", "lib/whois/answer/parser/base.rb", "lib/whois/answer/parser/blank.rb", "lib/whois/answer/parser/README.rdoc", "lib/whois/answer/parser/whois.crsnic.net.rb", "lib/whois/answer/parser/whois.denic.de.rb", "lib/whois/answer/parser/whois.nic.it.rb", "lib/whois/answer/parser/whois.publicinterestregistry.net.rb", "lib/whois/answer/parser.rb", "lib/whois/answer/part.rb", "lib/whois/answer/registrar.rb", "lib/whois/answer/super_struct.rb", "lib/whois/answer.rb", "lib/whois/client.rb", "lib/whois/definitions/ipv4.rb", "lib/whois/definitions/ipv4.txt", "lib/whois/definitions/ipv6.rb", "lib/whois/definitions/ipv6.txt", "lib/whois/definitions/tlds.rb", "lib/whois/definitions/tlds.txt", "lib/whois/errors.rb", "lib/whois/server/adapters/afilias.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/pir.rb", "lib/whois/server/adapters/standard.rb", "lib/whois/server/adapters/verisign.rb", "lib/whois/server/adapters/web.rb", "lib/whois/server.rb", "lib/whois/version.rb", "lib/whois/whois.rb", "lib/whois.rb", "LICENSE.rdoc", "Manifest", "Rakefile", "README.rdoc", "tasks/server.rake", "test/answer/parser/base_test.rb", "test/answer/parser/blank_test.rb", "test/answer/parser/whois_crsnic_net_test.rb", "test/answer/parser/whois_denic_de_test.rb", "test/answer/parser/whois_nic_it_test.rb", "test/answer/parser/whois_publicinterestregistry_net_test.rb", "test/answer/parser_test.rb", "test/answer_test.rb", "test/client_test.rb", "test/deprecated_test.rb", "test/integration_test.rb", "test/server/adapters/afilias_test.rb", "test/server/adapters/base_test.rb", "test/server/adapters/formatted_test.rb", "test/server/adapters/none_test.rb", "test/server/adapters/not_implemented_test.rb", "test/server/adapters/pir_test.rb", "test/server/adapters/standard_test.rb", "test/server/adapters/verisign_test.rb", "test/server/adapters/web_test.rb", "test/server_test.rb", "test/test_helper.rb", "test/testcases/referrals/afilias.bz.txt", "test/testcases/referrals/crsnic.com.txt", "test/testcases/referrals/niccc.cc.txt", "test/testcases/referrals/pir.org.txt", "test/testcases/responses/super_struct_test.rb", "test/testcases/responses/whois.crsnic.net/available.txt", "test/testcases/responses/whois.crsnic.net/registered.txt", "test/testcases/responses/whois.denic.de/available.txt", "test/testcases/responses/whois.denic.de/registered.txt", "test/testcases/responses/whois.nic.it/available.txt", "test/testcases/responses/whois.nic.it/registered.txt", "test/testcases/responses/whois.nic.it/status_active.txt", "test/testcases/responses/whois.nic.it/status_available.txt", "test/testcases/responses/whois.publicinterestregistry.net/available.txt", "test/testcases/responses/whois.publicinterestregistry.net/registered.txt", "test/whois_test.rb", "utils/bm_delegation_vs_inheritance.rb", "utils/bm_shell_vs_pure.rb", "utils/tlds.txt", "whois.gemspec"]
17
17
  s.homepage = %q{http://code.simonecarletti.com/whois}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Whois", "--main", "README.rdoc"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{whois}
21
- s.rubygems_version = %q{1.3.4}
21
+ s.rubygems_version = %q{1.3.5}
22
22
  s.summary = %q{An intelligent pure Ruby WHOIS client.}
23
- s.test_files = ["test/adapters/afilias_test.rb", "test/adapters/none_test.rb", "test/adapters/not_implemented_test.rb", "test/adapters/pir_test.rb", "test/adapters/standard_test.rb", "test/adapters/verisign_test.rb", "test/adapters/web_test.rb", "test/client_test.rb", "test/deprecated_test.rb", "test/server_test.rb", "test/test_helper.rb", "test/whois_test.rb"]
23
+ s.test_files = ["test/answer/parser/base_test.rb", "test/answer/parser/blank_test.rb", "test/answer/parser/whois_crsnic_net_test.rb", "test/answer/parser/whois_denic_de_test.rb", "test/answer/parser/whois_nic_it_test.rb", "test/answer/parser/whois_publicinterestregistry_net_test.rb", "test/answer/parser_test.rb", "test/answer_test.rb", "test/client_test.rb", "test/deprecated_test.rb", "test/integration_test.rb", "test/server/adapters/afilias_test.rb", "test/server/adapters/base_test.rb", "test/server/adapters/formatted_test.rb", "test/server/adapters/none_test.rb", "test/server/adapters/not_implemented_test.rb", "test/server/adapters/pir_test.rb", "test/server/adapters/standard_test.rb", "test/server/adapters/verisign_test.rb", "test/server/adapters/web_test.rb", "test/server_test.rb", "test/test_helper.rb", "test/testcases/responses/super_struct_test.rb", "test/whois_test.rb"]
24
24
 
25
25
  if s.respond_to? :specification_version then
26
26
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Carletti
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-18 00:00:00 +02:00
12
+ date: 2009-09-30 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -51,6 +51,19 @@ extensions: []
51
51
  extra_rdoc_files:
52
52
  - bin/ruby-whois
53
53
  - CHANGELOG.rdoc
54
+ - lib/whois/answer/contact.rb
55
+ - lib/whois/answer/parser/base.rb
56
+ - lib/whois/answer/parser/blank.rb
57
+ - lib/whois/answer/parser/README.rdoc
58
+ - lib/whois/answer/parser/whois.crsnic.net.rb
59
+ - lib/whois/answer/parser/whois.denic.de.rb
60
+ - lib/whois/answer/parser/whois.nic.it.rb
61
+ - lib/whois/answer/parser/whois.publicinterestregistry.net.rb
62
+ - lib/whois/answer/parser.rb
63
+ - lib/whois/answer/part.rb
64
+ - lib/whois/answer/registrar.rb
65
+ - lib/whois/answer/super_struct.rb
66
+ - lib/whois/answer.rb
54
67
  - lib/whois/client.rb
55
68
  - lib/whois/definitions/ipv4.rb
56
69
  - lib/whois/definitions/ipv4.txt
@@ -85,6 +98,19 @@ files:
85
98
  - data/make_ip_del.pl
86
99
  - data/make_tld_serv.pl
87
100
  - data/tld_serv_list
101
+ - lib/whois/answer/contact.rb
102
+ - lib/whois/answer/parser/base.rb
103
+ - lib/whois/answer/parser/blank.rb
104
+ - lib/whois/answer/parser/README.rdoc
105
+ - lib/whois/answer/parser/whois.crsnic.net.rb
106
+ - lib/whois/answer/parser/whois.denic.de.rb
107
+ - lib/whois/answer/parser/whois.nic.it.rb
108
+ - lib/whois/answer/parser/whois.publicinterestregistry.net.rb
109
+ - lib/whois/answer/parser.rb
110
+ - lib/whois/answer/part.rb
111
+ - lib/whois/answer/registrar.rb
112
+ - lib/whois/answer/super_struct.rb
113
+ - lib/whois/answer.rb
88
114
  - lib/whois/client.rb
89
115
  - lib/whois/definitions/ipv4.rb
90
116
  - lib/whois/definitions/ipv4.txt
@@ -112,23 +138,45 @@ files:
112
138
  - Rakefile
113
139
  - README.rdoc
114
140
  - tasks/server.rake
115
- - test/adapters/afilias_test.rb
116
- - test/adapters/none_test.rb
117
- - test/adapters/not_implemented_test.rb
118
- - test/adapters/pir_test.rb
119
- - test/adapters/standard_test.rb
120
- - test/adapters/verisign_test.rb
121
- - test/adapters/web_test.rb
141
+ - test/answer/parser/base_test.rb
142
+ - test/answer/parser/blank_test.rb
143
+ - test/answer/parser/whois_crsnic_net_test.rb
144
+ - test/answer/parser/whois_denic_de_test.rb
145
+ - test/answer/parser/whois_nic_it_test.rb
146
+ - test/answer/parser/whois_publicinterestregistry_net_test.rb
147
+ - test/answer/parser_test.rb
148
+ - test/answer_test.rb
122
149
  - test/client_test.rb
123
150
  - test/deprecated_test.rb
151
+ - test/integration_test.rb
152
+ - test/server/adapters/afilias_test.rb
153
+ - test/server/adapters/base_test.rb
154
+ - test/server/adapters/formatted_test.rb
155
+ - test/server/adapters/none_test.rb
156
+ - test/server/adapters/not_implemented_test.rb
157
+ - test/server/adapters/pir_test.rb
158
+ - test/server/adapters/standard_test.rb
159
+ - test/server/adapters/verisign_test.rb
160
+ - test/server/adapters/web_test.rb
124
161
  - test/server_test.rb
125
162
  - test/test_helper.rb
126
163
  - test/testcases/referrals/afilias.bz.txt
127
164
  - test/testcases/referrals/crsnic.com.txt
128
165
  - test/testcases/referrals/niccc.cc.txt
129
166
  - test/testcases/referrals/pir.org.txt
130
- - test/testcases/responses/it.txt
167
+ - test/testcases/responses/super_struct_test.rb
168
+ - test/testcases/responses/whois.crsnic.net/available.txt
169
+ - test/testcases/responses/whois.crsnic.net/registered.txt
170
+ - test/testcases/responses/whois.denic.de/available.txt
171
+ - test/testcases/responses/whois.denic.de/registered.txt
172
+ - test/testcases/responses/whois.nic.it/available.txt
173
+ - test/testcases/responses/whois.nic.it/registered.txt
174
+ - test/testcases/responses/whois.nic.it/status_active.txt
175
+ - test/testcases/responses/whois.nic.it/status_available.txt
176
+ - test/testcases/responses/whois.publicinterestregistry.net/available.txt
177
+ - test/testcases/responses/whois.publicinterestregistry.net/registered.txt
131
178
  - test/whois_test.rb
179
+ - utils/bm_delegation_vs_inheritance.rb
132
180
  - utils/bm_shell_vs_pure.rb
133
181
  - utils/tlds.txt
134
182
  - whois.gemspec
@@ -161,20 +209,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
209
  requirements: []
162
210
 
163
211
  rubyforge_project: whois
164
- rubygems_version: 1.3.4
212
+ rubygems_version: 1.3.5
165
213
  signing_key:
166
214
  specification_version: 3
167
215
  summary: An intelligent pure Ruby WHOIS client.
168
216
  test_files:
169
- - test/adapters/afilias_test.rb
170
- - test/adapters/none_test.rb
171
- - test/adapters/not_implemented_test.rb
172
- - test/adapters/pir_test.rb
173
- - test/adapters/standard_test.rb
174
- - test/adapters/verisign_test.rb
175
- - test/adapters/web_test.rb
217
+ - test/answer/parser/base_test.rb
218
+ - test/answer/parser/blank_test.rb
219
+ - test/answer/parser/whois_crsnic_net_test.rb
220
+ - test/answer/parser/whois_denic_de_test.rb
221
+ - test/answer/parser/whois_nic_it_test.rb
222
+ - test/answer/parser/whois_publicinterestregistry_net_test.rb
223
+ - test/answer/parser_test.rb
224
+ - test/answer_test.rb
176
225
  - test/client_test.rb
177
226
  - test/deprecated_test.rb
227
+ - test/integration_test.rb
228
+ - test/server/adapters/afilias_test.rb
229
+ - test/server/adapters/base_test.rb
230
+ - test/server/adapters/formatted_test.rb
231
+ - test/server/adapters/none_test.rb
232
+ - test/server/adapters/not_implemented_test.rb
233
+ - test/server/adapters/pir_test.rb
234
+ - test/server/adapters/standard_test.rb
235
+ - test/server/adapters/verisign_test.rb
236
+ - test/server/adapters/web_test.rb
178
237
  - test/server_test.rb
179
238
  - test/test_helper.rb
239
+ - test/testcases/responses/super_struct_test.rb
180
240
  - test/whois_test.rb