whois 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,6 +1,20 @@
1
1
  = Changelog
2
2
 
3
3
 
4
+ == Release 2.0.3
5
+
6
+ * SERVER: Sync definitions with Debian whois 5.0.11:
7
+ * Added the remaining IPv4 allocations.
8
+ * Updated the .gm TLD server.
9
+
10
+ * FIXED: Whois::Record::Parser::Base#validate! should raise
11
+ a ResponseIsUnavailable error when response_unavailable?
12
+
13
+ * FIXED: whois.nic.it parser must support inactive / noRegistrar status.
14
+
15
+ * FIXED: whois.sk-nic.sk parser must support DOM_DAKT status.
16
+
17
+
4
18
  == Release 2.0.2
5
19
 
6
20
  * CHANGED: whois.ripn.net now returns an array of contacts, one for each email (#89)
@@ -8,7 +8,7 @@ Whois::Server.define :ipv4, "27.0.0.0/8", "whois.apnic.net"
8
8
  Whois::Server.define :ipv4, "31.0.0.0/8", "whois.ripe.net"
9
9
  Whois::Server.define :ipv4, "36.0.0.0/8", "whois.apnic.net"
10
10
  Whois::Server.define :ipv4, "37.0.0.0/8", "whois.ripe.net"
11
- Whois::Server.define :ipv4, "39.0.0.0/8", nil, :adapter => Whois::Server::Adapters::None
11
+ Whois::Server.define :ipv4, "39.0.0.0/8", "whois.apnic.net"
12
12
  Whois::Server.define :ipv4, "41.0.0.0/8", "whois.afrinic.net"
13
13
  Whois::Server.define :ipv4, "42.0.0.0/8", "whois.apnic.net"
14
14
  Whois::Server.define :ipv4, "43.0.0.0/8", "whois.nic.ad.jp"
@@ -28,15 +28,13 @@ Whois::Server.define :ipv4, "62.0.0.0/8", "whois.ripe.net"
28
28
  Whois::Server.define :ipv4, "77.0.0.0/8", "whois.ripe.net"
29
29
  Whois::Server.define :ipv4, "78.0.0.0/7", "whois.ripe.net"
30
30
  Whois::Server.define :ipv4, "80.0.0.0/4", "whois.ripe.net"
31
- Whois::Server.define :ipv4, "96.0.0.0/6", "whois.arin.net"
32
- Whois::Server.define :ipv4, "100.0.0.0/8", "whois.arin.net"
33
31
  Whois::Server.define :ipv4, "101.0.0.0/8", "whois.apnic.net"
32
+ Whois::Server.define :ipv4, "102.0.0.0/8", "whois.afrinic.net"
33
+ Whois::Server.define :ipv4, "103.0.0.0/8", "whois.apnic.net"
34
34
  Whois::Server.define :ipv4, "105.0.0.0/8", "whois.afrinic.net"
35
- Whois::Server.define :ipv4, "107.0.0.0/8", "whois.arin.net"
36
- Whois::Server.define :ipv4, "108.0.0.0/8", "whois.arin.net"
35
+ Whois::Server.define :ipv4, "106.0.0.0/8", "whois.apnic.net"
37
36
  Whois::Server.define :ipv4, "109.0.0.0/8", "whois.ripe.net"
38
37
  Whois::Server.define :ipv4, "110.0.0.0/7", "whois.apnic.net"
39
- Whois::Server.define :ipv4, "96.0.0.0/4", nil, :adapter => Whois::Server::Adapters::None
40
38
  Whois::Server.define :ipv4, "112.160.0.0/11", "whois.nic.or.kr"
41
39
  Whois::Server.define :ipv4, "115.0.0.0/12", "whois.nic.or.kr"
42
40
  Whois::Server.define :ipv4, "115.16.0.0/13", "whois.nic.or.kr"
@@ -107,12 +105,12 @@ Whois::Server.define :ipv4, "175.0.0.0/8", "whois.apnic.net"
107
105
  Whois::Server.define :ipv4, "176.0.0.0/8", "whois.ripe.net"
108
106
  Whois::Server.define :ipv4, "177.0.0.0/8", "whois.lacnic.net"
109
107
  Whois::Server.define :ipv4, "178.0.0.0/8", "whois.ripe.net"
110
- Whois::Server.define :ipv4, "179.0.0.0/8", nil, :adapter => Whois::Server::Adapters::None
108
+ Whois::Server.define :ipv4, "179.0.0.0/8", "whois.lacnic.net"
111
109
  Whois::Server.define :ipv4, "180.0.0.0/8", "whois.apnic.net"
112
110
  Whois::Server.define :ipv4, "181.0.0.0/8", "whois.lacnic.net"
113
111
  Whois::Server.define :ipv4, "183.96.0.0/11", "whois.nic.or.kr"
114
112
  Whois::Server.define :ipv4, "182.0.0.0/7", "whois.apnic.net"
115
- Whois::Server.define :ipv4, "185.0.0.0/8", nil, :adapter => Whois::Server::Adapters::None
113
+ Whois::Server.define :ipv4, "185.0.0.0/8", "whois.ripe.net"
116
114
  Whois::Server.define :ipv4, "186.0.0.0/7", "whois.lacnic.net"
117
115
  Whois::Server.define :ipv4, "188.0.0.0/8", "whois.ripe.net"
118
116
  Whois::Server.define :ipv4, "189.0.0.0/8", "whois.lacnic.net"
@@ -20,26 +20,26 @@ Whois::Server.define :tld, ".uk.net", "whois.centralnic.com"
20
20
  Whois::Server.define :tld, ".us.com", "whois.centralnic.com"
21
21
  Whois::Server.define :tld, ".uy.com", "whois.centralnic.com"
22
22
  Whois::Server.define :tld, ".za.com", "whois.centralnic.com"
23
- Whois::Server.define :tld, ".com", "whois.crsnic.net", {:adapter=>Whois::Server::Adapters::Verisign}
23
+ Whois::Server.define :tld, ".com", "whois.crsnic.net", { :adapter => Whois::Server::Adapters::Verisign}
24
24
  Whois::Server.define :tld, ".za.net", "whois.za.net"
25
- Whois::Server.define :tld, ".net", "whois.crsnic.net", {:adapter=>Whois::Server::Adapters::Verisign}
25
+ Whois::Server.define :tld, ".net", "whois.crsnic.net", { :adapter => Whois::Server::Adapters::Verisign}
26
26
  Whois::Server.define :tld, ".eu.org", "whois.eu.org"
27
27
  Whois::Server.define :tld, ".za.org", "whois.za.org"
28
- Whois::Server.define :tld, ".org", "whois.publicinterestregistry.net", {:adapter=>Whois::Server::Adapters::Pir}
28
+ Whois::Server.define :tld, ".org", "whois.publicinterestregistry.net", { :adapter => Whois::Server::Adapters::Pir}
29
29
  Whois::Server.define :tld, ".edu", "whois.educause.edu"
30
30
  Whois::Server.define :tld, ".gov", "whois.nic.gov"
31
31
  Whois::Server.define :tld, ".int", "whois.iana.org"
32
- Whois::Server.define :tld, ".mil", nil, {:adapter=>Whois::Server::Adapters::None}
32
+ Whois::Server.define :tld, ".mil", nil, { :adapter => Whois::Server::Adapters::None }
33
33
  Whois::Server.define :tld, ".e164.arpa", "whois.ripe.net"
34
- Whois::Server.define :tld, ".in-addr.arpa", nil, {:adapter=>Whois::Server::Adapters::Arpa}
34
+ Whois::Server.define :tld, ".in-addr.arpa", nil, { :adapter => Whois::Server::Adapters::Arpa}
35
35
  Whois::Server.define :tld, ".arpa", "whois.iana.org"
36
36
  Whois::Server.define :tld, ".aero", "whois.aero"
37
37
  Whois::Server.define :tld, ".asia", "whois.nic.asia"
38
38
  Whois::Server.define :tld, ".biz", "whois.biz"
39
- Whois::Server.define :tld, ".cat", "whois.cat", {:adapter=>Whois::Server::Adapters::Formatted, :format => "-C US-ASCII ace %s"}
39
+ Whois::Server.define :tld, ".cat", "whois.cat", { :adapter => Whois::Server::Adapters::Formatted, :format => "-C US-ASCII ace %s"}
40
40
  Whois::Server.define :tld, ".coop", "whois.nic.coop"
41
41
  Whois::Server.define :tld, ".info", "whois.afilias.info"
42
- Whois::Server.define :tld, ".jobs", "jobswhois.verisign-grs.com", {:adapter=>Whois::Server::Adapters::Verisign}
42
+ Whois::Server.define :tld, ".jobs", "jobswhois.verisign-grs.com", { :adapter => Whois::Server::Adapters::Verisign}
43
43
  Whois::Server.define :tld, ".mobi", "whois.dotmobiregistry.net"
44
44
  Whois::Server.define :tld, ".museum", "whois.museum"
45
45
  Whois::Server.define :tld, ".name", "whois.nic.name"
@@ -47,49 +47,49 @@ Whois::Server.define :tld, ".pro", "whois.registrypro.pro"
47
47
  Whois::Server.define :tld, ".tel", "whois.nic.tel"
48
48
  Whois::Server.define :tld, ".travel", "whois.nic.travel"
49
49
  Whois::Server.define :tld, ".ac", "whois.nic.ac"
50
- Whois::Server.define :tld, ".ad", nil, {:adapter=>Whois::Server::Adapters::None}
50
+ Whois::Server.define :tld, ".ad", nil, { :adapter => Whois::Server::Adapters::None }
51
51
  Whois::Server.define :tld, ".ae", "whois.aeda.net.ae"
52
52
  Whois::Server.define :tld, ".af", "whois.nic.af"
53
53
  Whois::Server.define :tld, ".ag", "whois.nic.ag"
54
54
  Whois::Server.define :tld, ".ai", "whois.ai"
55
- Whois::Server.define :tld, ".al", nil, {:adapter=>Whois::Server::Adapters::None}
55
+ Whois::Server.define :tld, ".al", nil, { :adapter => Whois::Server::Adapters::None }
56
56
  Whois::Server.define :tld, ".am", "whois.nic.am"
57
- Whois::Server.define :tld, ".an", nil, {:adapter=>Whois::Server::Adapters::None}
58
- Whois::Server.define :tld, ".ao", nil, {:adapter=>Whois::Server::Adapters::None}
59
- Whois::Server.define :tld, ".aq", nil, {:adapter=>Whois::Server::Adapters::None}
60
- Whois::Server.define :tld, ".ar", nil, {:web=>"http://www.nic.ar/", :adapter=>Whois::Server::Adapters::Web}
57
+ Whois::Server.define :tld, ".an", nil, { :adapter => Whois::Server::Adapters::None }
58
+ Whois::Server.define :tld, ".ao", nil, { :adapter => Whois::Server::Adapters::None }
59
+ Whois::Server.define :tld, ".aq", nil, { :adapter => Whois::Server::Adapters::None }
60
+ Whois::Server.define :tld, ".ar", nil, { :web => "http://www.nic.ar/", :adapter => Whois::Server::Adapters::Web }
61
61
  Whois::Server.define :tld, ".as", "whois.nic.as"
62
62
  Whois::Server.define :tld, ".priv.at", "whois.nic.priv.at"
63
63
  Whois::Server.define :tld, ".at", "whois.nic.at"
64
64
  Whois::Server.define :tld, ".au", "whois.audns.net.au"
65
- Whois::Server.define :tld, ".aw", nil, {:adapter=>Whois::Server::Adapters::None}
66
- Whois::Server.define :tld, ".ax", nil, {:adapter=>Whois::Server::Adapters::None}
67
- Whois::Server.define :tld, ".az", nil, {:web=>"http://www.nic.az/AzCheck.htm", :adapter=>Whois::Server::Adapters::Web}
68
- Whois::Server.define :tld, ".ba", nil, {:web=>"http://www.nic.ba/stream/whois/", :adapter=>Whois::Server::Adapters::Web}
69
- Whois::Server.define :tld, ".bb", nil, {:web=>"http://whois.telecoms.gov.bb/search_domain.php", :adapter=>Whois::Server::Adapters::Web}
70
- Whois::Server.define :tld, ".bd", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://whois.btcl.net.bd/"}
65
+ Whois::Server.define :tld, ".aw", nil, { :adapter => Whois::Server::Adapters::None }
66
+ Whois::Server.define :tld, ".ax", nil, { :adapter => Whois::Server::Adapters::None }
67
+ Whois::Server.define :tld, ".az", nil, { :web => "http://www.nic.az/AzCheck.htm", :adapter => Whois::Server::Adapters::Web }
68
+ Whois::Server.define :tld, ".ba", nil, { :web => "http://www.nic.ba/stream/whois/", :adapter => Whois::Server::Adapters::Web }
69
+ Whois::Server.define :tld, ".bb", nil, { :web => "http://whois.telecoms.gov.bb/search_domain.php", :adapter => Whois::Server::Adapters::Web }
70
+ Whois::Server.define :tld, ".bd", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://whois.btcl.net.bd/"}
71
71
  Whois::Server.define :tld, ".be", "whois.dns.be"
72
- Whois::Server.define :tld, ".bf", nil, {:adapter=>Whois::Server::Adapters::None}
72
+ Whois::Server.define :tld, ".bf", nil, { :adapter => Whois::Server::Adapters::None }
73
73
  Whois::Server.define :tld, ".bg", "whois.register.bg"
74
- Whois::Server.define :tld, ".bh", nil, {:adapter=>Whois::Server::Adapters::None}
75
- Whois::Server.define :tld, ".bi", nil, {:web=>"http://whois.nic.bi/register/whois.hei", :adapter=>Whois::Server::Adapters::Web}
74
+ Whois::Server.define :tld, ".bh", nil, { :adapter => Whois::Server::Adapters::None }
75
+ Whois::Server.define :tld, ".bi", nil, { :web => "http://whois.nic.bi/register/whois.hei", :adapter => Whois::Server::Adapters::Web }
76
76
  Whois::Server.define :tld, ".bj", "whois.nic.bj"
77
- Whois::Server.define :tld, ".bm", nil, {:web=>"http://207.228.133.14/cgi-bin/lansaweb?procfun+BMWHO+BMWHO2+WHO", :adapter=>Whois::Server::Adapters::Web}
78
- Whois::Server.define :tld, ".bn", nil, {:adapter=>Whois::Server::Adapters::None}
77
+ Whois::Server.define :tld, ".bm", nil, { :web => "http://207.228.133.14/cgi-bin/lansaweb?procfun+BMWHO+BMWHO2+WHO", :adapter => Whois::Server::Adapters::Web }
78
+ Whois::Server.define :tld, ".bn", nil, { :adapter => Whois::Server::Adapters::None }
79
79
  Whois::Server.define :tld, ".bo", "whois.nic.bo"
80
80
  Whois::Server.define :tld, ".br", "whois.registro.br"
81
- Whois::Server.define :tld, ".bs", nil, {:web=>"http://www.nic.bs/cgi-bin/search.pl", :adapter=>Whois::Server::Adapters::Web}
82
- Whois::Server.define :tld, ".bt", nil, {:web=>"http://www.nic.bt/", :adapter=>Whois::Server::Adapters::Web}
83
- Whois::Server.define :tld, ".bv", nil, {:adapter=>Whois::Server::Adapters::None}
84
- Whois::Server.define :tld, ".by", nil, {:web=>"http://www.tld.by/indexeng.html", :adapter=>Whois::Server::Adapters::Web}
85
- Whois::Server.define :tld, ".bw", nil, {:adapter=>Whois::Server::Adapters::None}
86
- Whois::Server.define :tld, ".bz", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
81
+ Whois::Server.define :tld, ".bs", nil, { :web => "http://www.nic.bs/cgi-bin/search.pl", :adapter => Whois::Server::Adapters::Web }
82
+ Whois::Server.define :tld, ".bt", nil, { :web => "http://www.nic.bt/", :adapter => Whois::Server::Adapters::Web }
83
+ Whois::Server.define :tld, ".bv", nil, { :adapter => Whois::Server::Adapters::None }
84
+ Whois::Server.define :tld, ".by", nil, { :web => "http://www.tld.by/indexeng.html", :adapter => Whois::Server::Adapters::Web }
85
+ Whois::Server.define :tld, ".bw", nil, { :adapter => Whois::Server::Adapters::None }
86
+ Whois::Server.define :tld, ".bz", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
87
87
  Whois::Server.define :tld, ".co.ca", "whois.co.ca"
88
88
  Whois::Server.define :tld, ".ca", "whois.cira.ca"
89
- Whois::Server.define :tld, ".cc", "whois.nic.cc", {:adapter=>Whois::Server::Adapters::Verisign}
89
+ Whois::Server.define :tld, ".cc", "whois.nic.cc", { :adapter => Whois::Server::Adapters::Verisign}
90
90
  Whois::Server.define :tld, ".cd", "whois.nic.cd"
91
- Whois::Server.define :tld, ".cf", nil, {:adapter=>Whois::Server::Adapters::None}
92
- Whois::Server.define :tld, ".cg", nil, {:web=>"http://www.nic.cg/cgi-bin/whois.pl", :adapter=>Whois::Server::Adapters::Web}
91
+ Whois::Server.define :tld, ".cf", nil, { :adapter => Whois::Server::Adapters::None }
92
+ Whois::Server.define :tld, ".cg", nil, { :web => "http://www.nic.cg/cgi-bin/whois.pl", :adapter => Whois::Server::Adapters::Web }
93
93
  Whois::Server.define :tld, ".ch", "whois.nic.ch"
94
94
  Whois::Server.define :tld, ".ci", "whois.nic.ci"
95
95
  Whois::Server.define :tld, ".ck", "whois.nic.ck"
@@ -98,54 +98,54 @@ Whois::Server.define :tld, ".cm", "whois.netcom.cm"
98
98
  Whois::Server.define :tld, ".edu.cn", "whois.edu.cn"
99
99
  Whois::Server.define :tld, ".cn", "whois.cnnic.cn"
100
100
  Whois::Server.define :tld, ".co", "whois.nic.co"
101
- Whois::Server.define :tld, ".cr", nil, {:web=>"http://www.nic.cr/niccr_publico/showRegistroDominiosScreen.do", :adapter=>Whois::Server::Adapters::Web}
102
- Whois::Server.define :tld, ".cu", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.nic.cu/"}
103
- Whois::Server.define :tld, ".cv", nil, {:adapter=>Whois::Server::Adapters::None}
101
+ Whois::Server.define :tld, ".cr", nil, { :web => "http://www.nic.cr/niccr_publico/showRegistroDominiosScreen.do", :adapter => Whois::Server::Adapters::Web }
102
+ Whois::Server.define :tld, ".cu", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.nic.cu/"}
103
+ Whois::Server.define :tld, ".cv", nil, { :adapter => Whois::Server::Adapters::None }
104
104
  Whois::Server.define :tld, ".cx", "whois.nic.cx"
105
- Whois::Server.define :tld, ".cy", nil, {:web=>"http://www.nic.cy/nslookup/online_database.php", :adapter=>Whois::Server::Adapters::Web}
105
+ Whois::Server.define :tld, ".cy", nil, { :web => "http://www.nic.cy/nslookup/online_database.php", :adapter => Whois::Server::Adapters::Web }
106
106
  Whois::Server.define :tld, ".cz", "whois.nic.cz"
107
- Whois::Server.define :tld, ".de", "whois.denic.de", {:adapter=>Whois::Server::Adapters::Formatted, :format => "-T dn,ace %s"}
108
- Whois::Server.define :tld, ".dj", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.nic.dj/whois.php"}
109
- Whois::Server.define :tld, ".dk", "whois.dk-hostmaster.dk", {:adapter=>Whois::Server::Adapters::Formatted, :format => "--show-handles %s"}
107
+ Whois::Server.define :tld, ".de", "whois.denic.de", { :adapter => Whois::Server::Adapters::Formatted, :format => "-T dn,ace %s"}
108
+ Whois::Server.define :tld, ".dj", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.nic.dj/whois.php"}
109
+ Whois::Server.define :tld, ".dk", "whois.dk-hostmaster.dk", { :adapter => Whois::Server::Adapters::Formatted, :format => "--show-handles %s"}
110
110
  Whois::Server.define :tld, ".dm", "whois.nic.dm"
111
- Whois::Server.define :tld, ".do", nil, {:web=>"http://www.nic.do/whois-h.php3", :adapter=>Whois::Server::Adapters::Web}
111
+ Whois::Server.define :tld, ".do", nil, { :web => "http://www.nic.do/whois-h.php3", :adapter => Whois::Server::Adapters::Web }
112
112
  Whois::Server.define :tld, ".dz", "whois.nic.dz"
113
113
  Whois::Server.define :tld, ".ec", "whois.nic.ec"
114
114
  Whois::Server.define :tld, ".ee", "whois.tld.ee"
115
- Whois::Server.define :tld, ".eg", nil, {:web=>"http://lookup.egregistry.eg/english.aspx", :adapter=>Whois::Server::Adapters::Web}
116
- Whois::Server.define :tld, ".er", nil, {:adapter=>Whois::Server::Adapters::None}
117
- Whois::Server.define :tld, ".es", nil, {:web=>"https://www.nic.es/", :adapter=>Whois::Server::Adapters::Web}
118
- Whois::Server.define :tld, ".et", nil, {:adapter=>Whois::Server::Adapters::None}
115
+ Whois::Server.define :tld, ".eg", nil, { :web => "http://lookup.egregistry.eg/english.aspx", :adapter => Whois::Server::Adapters::Web }
116
+ Whois::Server.define :tld, ".er", nil, { :adapter => Whois::Server::Adapters::None }
117
+ Whois::Server.define :tld, ".es", nil, { :web => "https://www.nic.es/", :adapter => Whois::Server::Adapters::Web }
118
+ Whois::Server.define :tld, ".et", nil, { :adapter => Whois::Server::Adapters::None }
119
119
  Whois::Server.define :tld, ".eu", "whois.eu"
120
120
  Whois::Server.define :tld, ".fi", "whois.ficora.fi"
121
121
  Whois::Server.define :tld, ".fj", "whois.usp.ac.fj"
122
- Whois::Server.define :tld, ".fk", nil, {:adapter=>Whois::Server::Adapters::None}
123
- Whois::Server.define :tld, ".fm", nil, {:web=>"http://www.dot.fm/whois.html", :adapter=>Whois::Server::Adapters::Web}
122
+ Whois::Server.define :tld, ".fk", nil, { :adapter => Whois::Server::Adapters::None }
123
+ Whois::Server.define :tld, ".fm", nil, { :web => "http://www.dot.fm/whois.html", :adapter => Whois::Server::Adapters::Web }
124
124
  Whois::Server.define :tld, ".fo", "whois.ripe.net"
125
125
  Whois::Server.define :tld, ".fr", "whois.nic.fr"
126
- Whois::Server.define :tld, ".ga", nil, {:adapter=>Whois::Server::Adapters::None}
127
- Whois::Server.define :tld, ".gb", nil, {:adapter=>Whois::Server::Adapters::None}
126
+ Whois::Server.define :tld, ".ga", nil, { :adapter => Whois::Server::Adapters::None }
127
+ Whois::Server.define :tld, ".gb", nil, { :adapter => Whois::Server::Adapters::None }
128
128
  Whois::Server.define :tld, ".gd", "whois.adamsnames.tc"
129
- Whois::Server.define :tld, ".ge", nil, {:web=>"http://www.registration.ge/", :adapter=>Whois::Server::Adapters::Web}
130
- Whois::Server.define :tld, ".gf", nil, {:web=>"http://www.nic.gf/?id=whois", :adapter=>Whois::Server::Adapters::Web}
129
+ Whois::Server.define :tld, ".ge", nil, { :web => "http://www.registration.ge/", :adapter => Whois::Server::Adapters::Web }
130
+ Whois::Server.define :tld, ".gf", nil, { :web => "http://www.nic.gf/?id=whois", :adapter => Whois::Server::Adapters::Web }
131
131
  Whois::Server.define :tld, ".gg", "whois.gg"
132
- Whois::Server.define :tld, ".gh", nil, {:web=>"http://www.nic.gh/customer/search_c.htm", :adapter=>Whois::Server::Adapters::Web}
133
- Whois::Server.define :tld, ".gi", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
132
+ Whois::Server.define :tld, ".gh", nil, { :web => "http://www.nic.gh/customer/search_c.htm", :adapter => Whois::Server::Adapters::Web }
133
+ Whois::Server.define :tld, ".gi", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
134
134
  Whois::Server.define :tld, ".gl", "whois.nic.gl"
135
- Whois::Server.define :tld, ".gm", "whois.ripe.net"
136
- Whois::Server.define :tld, ".gn", nil, {:adapter=>Whois::Server::Adapters::None}
135
+ Whois::Server.define :tld, ".gm", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.nic.gm/htmlpages/whois.htm"}
136
+ Whois::Server.define :tld, ".gn", nil, { :adapter => Whois::Server::Adapters::None }
137
137
  Whois::Server.define :tld, ".gp", "whois.nic.gp"
138
- Whois::Server.define :tld, ".gq", nil, {:adapter=>Whois::Server::Adapters::None}
139
- Whois::Server.define :tld, ".gr", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"https://grweb.ics.forth.gr/whois_en.jsp"}
138
+ Whois::Server.define :tld, ".gq", nil, { :adapter => Whois::Server::Adapters::None }
139
+ Whois::Server.define :tld, ".gr", nil, { :adapter => Whois::Server::Adapters::Web, :web => "https://grweb.ics.forth.gr/whois_en.jsp"}
140
140
  Whois::Server.define :tld, ".gs", "whois.nic.gs"
141
- Whois::Server.define :tld, ".gt", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.gt/whois.html"}
142
- Whois::Server.define :tld, ".gu", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://gadao.gov.gu/domainsearch.htm"}
143
- Whois::Server.define :tld, ".gw", nil, {:adapter=>Whois::Server::Adapters::None}
141
+ Whois::Server.define :tld, ".gt", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.gt/whois.html"}
142
+ Whois::Server.define :tld, ".gu", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://gadao.gov.gu/domainsearch.htm"}
143
+ Whois::Server.define :tld, ".gw", nil, { :adapter => Whois::Server::Adapters::None }
144
144
  Whois::Server.define :tld, ".gy", "whois.registry.gy"
145
145
  Whois::Server.define :tld, ".hk", "whois.hkirc.hk"
146
146
  Whois::Server.define :tld, ".hm", "whois.registry.hm"
147
- Whois::Server.define :tld, ".hn", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
148
- Whois::Server.define :tld, ".hr", nil, {:web=>"http://www.dns.hr/pretrazivanje.html", :adapter=>Whois::Server::Adapters::Web}
147
+ Whois::Server.define :tld, ".hn", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
148
+ Whois::Server.define :tld, ".hr", nil, { :web => "http://www.dns.hr/pretrazivanje.html", :adapter => Whois::Server::Adapters::Web }
149
149
  Whois::Server.define :tld, ".ht", "whois.nic.ht"
150
150
  Whois::Server.define :tld, ".hu", "whois.nic.hu"
151
151
  Whois::Server.define :tld, ".id", "whois.pandi.or.id"
@@ -154,32 +154,32 @@ Whois::Server.define :tld, ".il", "whois.isoc.org.il"
154
154
  Whois::Server.define :tld, ".im", "whois.nic.im"
155
155
  Whois::Server.define :tld, ".in", "whois.registry.in"
156
156
  Whois::Server.define :tld, ".io", "whois.nic.io"
157
- Whois::Server.define :tld, ".iq", nil, {:adapter=>Whois::Server::Adapters::None}
157
+ Whois::Server.define :tld, ".iq", nil, { :adapter => Whois::Server::Adapters::None }
158
158
  Whois::Server.define :tld, ".ir", "whois.nic.ir"
159
159
  Whois::Server.define :tld, ".is", "whois.isnic.is"
160
160
  Whois::Server.define :tld, ".it", "whois.nic.it"
161
161
  Whois::Server.define :tld, ".je", "whois.je"
162
- Whois::Server.define :tld, ".jm", nil, {:adapter=>Whois::Server::Adapters::None}
163
- Whois::Server.define :tld, ".jo", nil, {:web=>"http://www.dns.jo/Whois.aspx", :adapter=>Whois::Server::Adapters::Web}
164
- Whois::Server.define :tld, ".jp", "whois.jprs.jp", {:adapter=>Whois::Server::Adapters::Formatted, :format => "%s/e"}
162
+ Whois::Server.define :tld, ".jm", nil, { :adapter => Whois::Server::Adapters::None }
163
+ Whois::Server.define :tld, ".jo", nil, { :web => "http://www.dns.jo/Whois.aspx", :adapter => Whois::Server::Adapters::Web }
164
+ Whois::Server.define :tld, ".jp", "whois.jprs.jp", { :adapter => Whois::Server::Adapters::Formatted, :format => "%s/e"}
165
165
  Whois::Server.define :tld, ".ke", "whois.kenic.or.ke"
166
166
  Whois::Server.define :tld, ".kg", "whois.domain.kg"
167
- Whois::Server.define :tld, ".kh", nil, {:adapter=>Whois::Server::Adapters::None}
167
+ Whois::Server.define :tld, ".kh", nil, { :adapter => Whois::Server::Adapters::None }
168
168
  Whois::Server.define :tld, ".ki", "whois.nic.ki"
169
- Whois::Server.define :tld, ".km", nil, {:adapter=>Whois::Server::Adapters::None}
170
- Whois::Server.define :tld, ".kn", nil, {:web=>"http://www.nic.kn/", :adapter=>Whois::Server::Adapters::Web}
169
+ Whois::Server.define :tld, ".km", nil, { :adapter => Whois::Server::Adapters::None }
170
+ Whois::Server.define :tld, ".kn", nil, { :web => "http://www.nic.kn/", :adapter => Whois::Server::Adapters::Web }
171
171
  Whois::Server.define :tld, ".kp", "whois.kcce.kp"
172
172
  Whois::Server.define :tld, ".kr", "whois.nic.or.kr"
173
- Whois::Server.define :tld, ".kw", nil, {:web=>"http://www.kw/", :adapter=>Whois::Server::Adapters::Web}
174
- Whois::Server.define :tld, ".ky", nil, {:web=>"http://kynseweb.messagesecure.com/kywebadmin/", :adapter=>Whois::Server::Adapters::Web}
173
+ Whois::Server.define :tld, ".kw", nil, { :web => "http://www.kw/", :adapter => Whois::Server::Adapters::Web }
174
+ Whois::Server.define :tld, ".ky", nil, { :web => "http://kynseweb.messagesecure.com/kywebadmin/", :adapter => Whois::Server::Adapters::Web }
175
175
  Whois::Server.define :tld, ".kz", "whois.nic.kz"
176
176
  Whois::Server.define :tld, ".la", "whois.nic.la"
177
- Whois::Server.define :tld, ".lb", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.aub.edu.lb/lbdr/"}
178
- Whois::Server.define :tld, ".lc", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
177
+ Whois::Server.define :tld, ".lb", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.aub.edu.lb/lbdr/"}
178
+ Whois::Server.define :tld, ".lc", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
179
179
  Whois::Server.define :tld, ".li", "whois.nic.li"
180
- Whois::Server.define :tld, ".lk", nil, {:adapter=>Whois::Server::Adapters::None}
181
- Whois::Server.define :tld, ".lr", nil, {:adapter=>Whois::Server::Adapters::None}
182
- Whois::Server.define :tld, ".ls", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.co.ls/co.asp"}
180
+ Whois::Server.define :tld, ".lk", nil, { :adapter => Whois::Server::Adapters::None }
181
+ Whois::Server.define :tld, ".lr", nil, { :adapter => Whois::Server::Adapters::None }
182
+ Whois::Server.define :tld, ".ls", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.co.ls/co.asp"}
183
183
  Whois::Server.define :tld, ".lt", "whois.domreg.lt"
184
184
  Whois::Server.define :tld, ".lu", "whois.dns.lu"
185
185
  Whois::Server.define :tld, ".lv", "whois.nic.lv"
@@ -189,156 +189,156 @@ Whois::Server.define :tld, ".mc", "whois.ripe.net"
189
189
  Whois::Server.define :tld, ".md", "whois.nic.md"
190
190
  Whois::Server.define :tld, ".me", "whois.meregistry.net"
191
191
  Whois::Server.define :tld, ".mg", "whois.nic.mg"
192
- Whois::Server.define :tld, ".mh", nil, {:adapter=>Whois::Server::Adapters::None}
193
- Whois::Server.define :tld, ".mk", nil, {:web=>"http://dns.marnet.net.mk/registar.php", :adapter=>Whois::Server::Adapters::Web}
194
- Whois::Server.define :tld, ".ml", nil, {:adapter=>Whois::Server::Adapters::None}
195
- Whois::Server.define :tld, ".mm", nil, {:adapter=>Whois::Server::Adapters::None}
196
- Whois::Server.define :tld, ".mn", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
197
- Whois::Server.define :tld, ".mo", nil, {:web=>"http://www.monic.net.mo/", :adapter=>Whois::Server::Adapters::Web}
198
- Whois::Server.define :tld, ".mp", nil, {:adapter=>Whois::Server::Adapters::None}
199
- Whois::Server.define :tld, ".mq", nil, {:adapter=>Whois::Server::Adapters::None}
200
- Whois::Server.define :tld, ".mr", nil, {:adapter=>Whois::Server::Adapters::None}
192
+ Whois::Server.define :tld, ".mh", nil, { :adapter => Whois::Server::Adapters::None }
193
+ Whois::Server.define :tld, ".mk", nil, { :web => "http://dns.marnet.net.mk/registar.php", :adapter => Whois::Server::Adapters::Web }
194
+ Whois::Server.define :tld, ".ml", nil, { :adapter => Whois::Server::Adapters::None }
195
+ Whois::Server.define :tld, ".mm", nil, { :adapter => Whois::Server::Adapters::None }
196
+ Whois::Server.define :tld, ".mn", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
197
+ Whois::Server.define :tld, ".mo", nil, { :web => "http://www.monic.net.mo/", :adapter => Whois::Server::Adapters::Web }
198
+ Whois::Server.define :tld, ".mp", nil, { :adapter => Whois::Server::Adapters::None }
199
+ Whois::Server.define :tld, ".mq", nil, { :adapter => Whois::Server::Adapters::None }
200
+ Whois::Server.define :tld, ".mr", nil, { :adapter => Whois::Server::Adapters::None }
201
201
  Whois::Server.define :tld, ".ms", "whois.nic.ms"
202
- Whois::Server.define :tld, ".mt", nil, {:web=>"https://www.nic.org.mt/dotmt/", :adapter=>Whois::Server::Adapters::Web}
202
+ Whois::Server.define :tld, ".mt", nil, { :web => "https://www.nic.org.mt/dotmt/", :adapter => Whois::Server::Adapters::Web }
203
203
  Whois::Server.define :tld, ".mu", "whois.nic.mu"
204
- Whois::Server.define :tld, ".mv", nil, {:adapter=>Whois::Server::Adapters::None}
205
- Whois::Server.define :tld, ".mw", nil, {:web=>"http://www.registrar.mw/", :adapter=>Whois::Server::Adapters::Web}
204
+ Whois::Server.define :tld, ".mv", nil, { :adapter => Whois::Server::Adapters::None }
205
+ Whois::Server.define :tld, ".mw", nil, { :web => "http://www.registrar.mw/", :adapter => Whois::Server::Adapters::Web }
206
206
  Whois::Server.define :tld, ".mx", "whois.nic.mx"
207
207
  Whois::Server.define :tld, ".my", "whois.domainregistry.my"
208
- Whois::Server.define :tld, ".mz", nil, {:adapter=>Whois::Server::Adapters::None}
208
+ Whois::Server.define :tld, ".mz", nil, { :adapter => Whois::Server::Adapters::None }
209
209
  Whois::Server.define :tld, ".na", "whois.na-nic.com.na"
210
- Whois::Server.define :tld, ".nc", nil, {:web=>"http://www.domaine.nc/en/whois.html", :adapter=>Whois::Server::Adapters::Web}
211
- Whois::Server.define :tld, ".ne", nil, {:adapter=>Whois::Server::Adapters::None}
210
+ Whois::Server.define :tld, ".nc", nil, { :web => "http://www.domaine.nc/en/whois.html", :adapter => Whois::Server::Adapters::Web }
211
+ Whois::Server.define :tld, ".ne", nil, { :adapter => Whois::Server::Adapters::None }
212
212
  Whois::Server.define :tld, ".nf", "whois.nic.net.nf"
213
213
  Whois::Server.define :tld, ".ng", "whois.nic.net.ng"
214
- Whois::Server.define :tld, ".ni", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.nic.ni/"}
214
+ Whois::Server.define :tld, ".ni", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.nic.ni/"}
215
215
  Whois::Server.define :tld, ".nl", "whois.domain-registry.nl"
216
216
  Whois::Server.define :tld, ".no", "whois.norid.no"
217
- Whois::Server.define :tld, ".np", nil, {:web=>"http://register.mos.com.np/userSearchInc.asp", :adapter=>Whois::Server::Adapters::Web}
218
- Whois::Server.define :tld, ".nr", nil, {:web=>"http://www.cenpac.net.nr/dns/whois.html", :adapter=>Whois::Server::Adapters::Web}
217
+ Whois::Server.define :tld, ".np", nil, { :web => "http://register.mos.com.np/userSearchInc.asp", :adapter => Whois::Server::Adapters::Web }
218
+ Whois::Server.define :tld, ".nr", nil, { :web => "http://www.cenpac.net.nr/dns/whois.html", :adapter => Whois::Server::Adapters::Web }
219
219
  Whois::Server.define :tld, ".nu", "whois.nic.nu"
220
220
  Whois::Server.define :tld, ".nz", "whois.srs.net.nz"
221
- Whois::Server.define :tld, ".om", nil, {:web=>"http://www.omnic.om/onlineUser/WHOISLookup.jsp", :adapter=>Whois::Server::Adapters::Web}
222
- Whois::Server.define :tld, ".pa", nil, {:web=>"http://www.nic.pa/", :adapter=>Whois::Server::Adapters::Web}
221
+ Whois::Server.define :tld, ".om", nil, { :web => "http://www.omnic.om/onlineUser/WHOISLookup.jsp", :adapter => Whois::Server::Adapters::Web }
222
+ Whois::Server.define :tld, ".pa", nil, { :web => "http://www.nic.pa/", :adapter => Whois::Server::Adapters::Web }
223
223
  Whois::Server.define :tld, ".pe", "kero.yachay.pe"
224
- Whois::Server.define :tld, ".pf", nil, {:adapter=>Whois::Server::Adapters::None}
225
- Whois::Server.define :tld, ".pg", nil, {:adapter=>Whois::Server::Adapters::None}
226
- Whois::Server.define :tld, ".ph", nil, {:web=>"http://www.dot.ph/", :adapter=>Whois::Server::Adapters::Web}
227
- Whois::Server.define :tld, ".pk", nil, {:web=>"http://www.pknic.net.pk/", :adapter=>Whois::Server::Adapters::Web}
224
+ Whois::Server.define :tld, ".pf", nil, { :adapter => Whois::Server::Adapters::None }
225
+ Whois::Server.define :tld, ".pg", nil, { :adapter => Whois::Server::Adapters::None }
226
+ Whois::Server.define :tld, ".ph", nil, { :web => "http://www.dot.ph/", :adapter => Whois::Server::Adapters::Web }
227
+ Whois::Server.define :tld, ".pk", nil, { :web => "http://www.pknic.net.pk/", :adapter => Whois::Server::Adapters::Web }
228
228
  Whois::Server.define :tld, ".co.pl", "whois.co.pl"
229
229
  Whois::Server.define :tld, ".pl", "whois.dns.pl"
230
230
  Whois::Server.define :tld, ".pm", "whois.nic.fr"
231
- Whois::Server.define :tld, ".pn", nil, {:web=>"http://www.pitcairn.pn/PnRegistry/", :adapter=>Whois::Server::Adapters::Web}
231
+ Whois::Server.define :tld, ".pn", nil, { :web => "http://www.pitcairn.pn/PnRegistry/", :adapter => Whois::Server::Adapters::Web }
232
232
  Whois::Server.define :tld, ".pr", "whois.nic.pr"
233
233
  Whois::Server.define :tld, ".ps", "whois.pnina.ps"
234
234
  Whois::Server.define :tld, ".pt", "whois.dns.pt"
235
- Whois::Server.define :tld, ".pw", nil, {:adapter=>Whois::Server::Adapters::None}
236
- Whois::Server.define :tld, ".py", nil, {:web=>"http://www.nic.py/consultas.html", :adapter=>Whois::Server::Adapters::Web}
237
- Whois::Server.define :tld, ".qa", nil, {:adapter=>Whois::Server::Adapters::None}
235
+ Whois::Server.define :tld, ".pw", nil, { :adapter => Whois::Server::Adapters::None }
236
+ Whois::Server.define :tld, ".py", nil, { :web => "http://www.nic.py/consultas.html", :adapter => Whois::Server::Adapters::Web }
237
+ Whois::Server.define :tld, ".qa", nil, { :adapter => Whois::Server::Adapters::None }
238
238
  Whois::Server.define :tld, ".re", "whois.nic.fr"
239
239
  Whois::Server.define :tld, ".ro", "whois.rotld.ro"
240
- Whois::Server.define :tld, ".rs", nil, {:web=>"http://www.nic.rs/en/whois", :adapter=>Whois::Server::Adapters::Web}
240
+ Whois::Server.define :tld, ".rs", nil, { :web => "http://www.nic.rs/en/whois", :adapter => Whois::Server::Adapters::Web }
241
241
  Whois::Server.define :tld, ".edu.ru", "whois.informika.ru"
242
242
  Whois::Server.define :tld, ".ru", "whois.ripn.net"
243
- Whois::Server.define :tld, ".rw", nil, {:adapter=>Whois::Server::Adapters::Web, :web=>"http://www.nic.rw/cgi-bin/whois.pl"}
243
+ Whois::Server.define :tld, ".rw", nil, { :adapter => Whois::Server::Adapters::Web, :web => "http://www.nic.rw/cgi-bin/whois.pl"}
244
244
  Whois::Server.define :tld, ".sa", "saudinic.net.sa"
245
245
  Whois::Server.define :tld, ".sb", "whois.nic.net.sb"
246
- Whois::Server.define :tld, ".sc", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
247
- Whois::Server.define :tld, ".sd", nil, {:adapter=>Whois::Server::Adapters::None}
246
+ Whois::Server.define :tld, ".sc", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
247
+ Whois::Server.define :tld, ".sd", nil, { :adapter => Whois::Server::Adapters::None }
248
248
  Whois::Server.define :tld, ".se", "whois.nic-se.se"
249
249
  Whois::Server.define :tld, ".sg", "whois.sgnic.sg"
250
250
  Whois::Server.define :tld, ".sh", "whois.nic.sh"
251
251
  Whois::Server.define :tld, ".si", "whois.arnes.si"
252
- Whois::Server.define :tld, ".sj", nil, {:adapter=>Whois::Server::Adapters::None}
252
+ Whois::Server.define :tld, ".sj", nil, { :adapter => Whois::Server::Adapters::None }
253
253
  Whois::Server.define :tld, ".sk", "whois.sk-nic.sk"
254
254
  Whois::Server.define :tld, ".sl", "whois.nic.sl"
255
255
  Whois::Server.define :tld, ".sm", "whois.ripe.net"
256
256
  Whois::Server.define :tld, ".sn", "whois.nic.sn"
257
257
  Whois::Server.define :tld, ".so", "whois.nic.so"
258
- Whois::Server.define :tld, ".sr", nil, {:adapter=>Whois::Server::Adapters::None}
258
+ Whois::Server.define :tld, ".sr", nil, { :adapter => Whois::Server::Adapters::None }
259
259
  Whois::Server.define :tld, ".st", "whois.nic.st"
260
260
  Whois::Server.define :tld, ".su", "whois.ripn.net"
261
- Whois::Server.define :tld, ".sv", nil, {:web=>"http://www.uca.edu.sv/dns/", :adapter=>Whois::Server::Adapters::Web}
262
- Whois::Server.define :tld, ".sy", nil, {:adapter=>Whois::Server::Adapters::None}
263
- Whois::Server.define :tld, ".sz", nil, {:adapter=>Whois::Server::Adapters::None}
261
+ Whois::Server.define :tld, ".sv", nil, { :web => "http://www.uca.edu.sv/dns/", :adapter => Whois::Server::Adapters::Web }
262
+ Whois::Server.define :tld, ".sy", nil, { :adapter => Whois::Server::Adapters::None }
263
+ Whois::Server.define :tld, ".sz", nil, { :adapter => Whois::Server::Adapters::None }
264
264
  Whois::Server.define :tld, ".tc", "whois.adamsnames.tc"
265
- Whois::Server.define :tld, ".td", nil, {:adapter=>Whois::Server::Adapters::None}
265
+ Whois::Server.define :tld, ".td", nil, { :adapter => Whois::Server::Adapters::None }
266
266
  Whois::Server.define :tld, ".tf", "whois.nic.fr"
267
- Whois::Server.define :tld, ".tg", nil, {:web=>"http://www.nic.tg/", :adapter=>Whois::Server::Adapters::Web}
267
+ Whois::Server.define :tld, ".tg", nil, { :web => "http://www.nic.tg/", :adapter => Whois::Server::Adapters::Web }
268
268
  Whois::Server.define :tld, ".th", "whois.thnic.co.th"
269
- Whois::Server.define :tld, ".tj", nil, {:web=>"http://www.nic.tj/whois.html", :adapter=>Whois::Server::Adapters::Web}
269
+ Whois::Server.define :tld, ".tj", nil, { :web => "http://www.nic.tj/whois.html", :adapter => Whois::Server::Adapters::Web }
270
270
  Whois::Server.define :tld, ".tk", "whois.dot.tk"
271
271
  Whois::Server.define :tld, ".tl", "whois.nic.tl"
272
272
  Whois::Server.define :tld, ".tm", "whois.nic.tm"
273
- Whois::Server.define :tld, ".tn", nil, {:web=>"http://whois.ati.tn/", :adapter=>Whois::Server::Adapters::Web}
273
+ Whois::Server.define :tld, ".tn", nil, { :web => "http://whois.ati.tn/", :adapter => Whois::Server::Adapters::Web }
274
274
  Whois::Server.define :tld, ".to", "whois.tonic.to"
275
- Whois::Server.define :tld, ".tp", nil, {:adapter=>Whois::Server::Adapters::None}
275
+ Whois::Server.define :tld, ".tp", nil, { :adapter => Whois::Server::Adapters::None }
276
276
  Whois::Server.define :tld, ".tr", "whois.nic.tr"
277
- Whois::Server.define :tld, ".tt", nil, {:web=>"http://www.nic.tt/cgi-bin/search.pl", :adapter=>Whois::Server::Adapters::Web}
278
- Whois::Server.define :tld, ".tv", "whois.nic.tv", {:adapter=>Whois::Server::Adapters::Verisign}
277
+ Whois::Server.define :tld, ".tt", nil, { :web => "http://www.nic.tt/cgi-bin/search.pl", :adapter => Whois::Server::Adapters::Web }
278
+ Whois::Server.define :tld, ".tv", "whois.nic.tv", { :adapter => Whois::Server::Adapters::Verisign}
279
279
  Whois::Server.define :tld, ".tw", "whois.twnic.net.tw"
280
280
  Whois::Server.define :tld, ".tz", "whois.tznic.or.tz"
281
281
  Whois::Server.define :tld, ".in.ua", "whois.in.ua"
282
282
  Whois::Server.define :tld, ".ua", "whois.net.ua"
283
283
  Whois::Server.define :tld, ".ug", "whois.co.ug"
284
284
  Whois::Server.define :tld, ".ac.uk", "whois.ja.net"
285
- Whois::Server.define :tld, ".bl.uk", nil, {:adapter=>Whois::Server::Adapters::None}
286
- Whois::Server.define :tld, ".british-library.uk", nil, {:adapter=>Whois::Server::Adapters::None}
285
+ Whois::Server.define :tld, ".bl.uk", nil, { :adapter => Whois::Server::Adapters::None }
286
+ Whois::Server.define :tld, ".british-library.uk", nil, { :adapter => Whois::Server::Adapters::None }
287
287
  Whois::Server.define :tld, ".gov.uk", "whois.ja.net"
288
- Whois::Server.define :tld, ".icnet.uk", nil, {:adapter=>Whois::Server::Adapters::None}
289
- Whois::Server.define :tld, ".jet.uk", nil, {:adapter=>Whois::Server::Adapters::None}
290
- Whois::Server.define :tld, ".mod.uk", nil, {:adapter=>Whois::Server::Adapters::None}
291
- Whois::Server.define :tld, ".nhs.uk", nil, {:adapter=>Whois::Server::Adapters::None}
292
- Whois::Server.define :tld, ".nls.uk", nil, {:adapter=>Whois::Server::Adapters::None}
293
- Whois::Server.define :tld, ".parliament.uk", nil, {:adapter=>Whois::Server::Adapters::None}
294
- Whois::Server.define :tld, ".police.uk", nil, {:adapter=>Whois::Server::Adapters::None}
288
+ Whois::Server.define :tld, ".icnet.uk", nil, { :adapter => Whois::Server::Adapters::None }
289
+ Whois::Server.define :tld, ".jet.uk", nil, { :adapter => Whois::Server::Adapters::None }
290
+ Whois::Server.define :tld, ".mod.uk", nil, { :adapter => Whois::Server::Adapters::None }
291
+ Whois::Server.define :tld, ".nhs.uk", nil, { :adapter => Whois::Server::Adapters::None }
292
+ Whois::Server.define :tld, ".nls.uk", nil, { :adapter => Whois::Server::Adapters::None }
293
+ Whois::Server.define :tld, ".parliament.uk", nil, { :adapter => Whois::Server::Adapters::None }
294
+ Whois::Server.define :tld, ".police.uk", nil, { :adapter => Whois::Server::Adapters::None }
295
295
  Whois::Server.define :tld, ".uk", "whois.nic.uk"
296
296
  Whois::Server.define :tld, ".us", "whois.nic.us"
297
- Whois::Server.define :tld, ".com.uy", nil, {:web=>"https://nic.anteldata.com.uy/dns/", :adapter=>Whois::Server::Adapters::Web}
297
+ Whois::Server.define :tld, ".com.uy", nil, { :web => "https://nic.anteldata.com.uy/dns/", :adapter => Whois::Server::Adapters::Web }
298
298
  Whois::Server.define :tld, ".uy", "whois.nic.org.uy"
299
299
  Whois::Server.define :tld, ".uz", "whois.cctld.uz"
300
300
  Whois::Server.define :tld, ".va", "whois.ripe.net"
301
- Whois::Server.define :tld, ".vc", "whois.afilias-grs.info", {:adapter=>Whois::Server::Adapters::Afilias}
301
+ Whois::Server.define :tld, ".vc", "whois.afilias-grs.info", { :adapter => Whois::Server::Adapters::Afilias }
302
302
  Whois::Server.define :tld, ".ve", "whois.nic.ve"
303
303
  Whois::Server.define :tld, ".vg", "whois.adamsnames.tc"
304
- Whois::Server.define :tld, ".vi", nil, {:web=>"http://www.nic.vi/whoisform.htm", :adapter=>Whois::Server::Adapters::Web}
305
- Whois::Server.define :tld, ".vn", nil, {:web=>"http://www.vnnic.vn/english/", :adapter=>Whois::Server::Adapters::Web}
306
- Whois::Server.define :tld, ".vu", nil, {:web=>"http://www.vunic.vu/whois.html", :adapter=>Whois::Server::Adapters::Web}
304
+ Whois::Server.define :tld, ".vi", nil, { :web => "http://www.nic.vi/whoisform.htm", :adapter => Whois::Server::Adapters::Web }
305
+ Whois::Server.define :tld, ".vn", nil, { :web => "http://www.vnnic.vn/english/", :adapter => Whois::Server::Adapters::Web }
306
+ Whois::Server.define :tld, ".vu", nil, { :web => "http://www.vunic.vu/whois.html", :adapter => Whois::Server::Adapters::Web }
307
307
  Whois::Server.define :tld, ".wf", "whois.nic.fr"
308
308
  Whois::Server.define :tld, ".ws", "whois.samoanic.ws"
309
- Whois::Server.define :tld, ".ye", nil, {:adapter=>Whois::Server::Adapters::None}
309
+ Whois::Server.define :tld, ".ye", nil, { :adapter => Whois::Server::Adapters::None }
310
310
  Whois::Server.define :tld, ".yt", "whois.nic.fr"
311
311
  Whois::Server.define :tld, ".ac.za", "whois.ac.za"
312
312
  Whois::Server.define :tld, ".co.za", "whois.coza.net.za"
313
313
  Whois::Server.define :tld, ".gov.za", "whois.gov.za"
314
314
  Whois::Server.define :tld, ".org.za", "whois.org.za"
315
- Whois::Server.define :tld, ".za", nil, {:adapter=>Whois::Server::Adapters::None}
316
- Whois::Server.define :tld, ".zm", nil, {:adapter=>Whois::Server::Adapters::None}
317
- Whois::Server.define :tld, ".zw", nil, {:adapter=>Whois::Server::Adapters::None}
315
+ Whois::Server.define :tld, ".za", nil, { :adapter => Whois::Server::Adapters::None }
316
+ Whois::Server.define :tld, ".zm", nil, { :adapter => Whois::Server::Adapters::None }
317
+ Whois::Server.define :tld, ".zw", nil, { :adapter => Whois::Server::Adapters::None }
318
318
  Whois::Server.define :tld, ".xn--3e0b707e", "whois.kr"
319
- Whois::Server.define :tld, ".xn--45brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
319
+ Whois::Server.define :tld, ".xn--45brj9c", nil, { :adapter => Whois::Server::Adapters::None }
320
320
  Whois::Server.define :tld, ".xn--clchc0ea0b2g2a9gcd", "whois.sgnic.sg"
321
321
  Whois::Server.define :tld, ".xn--fiqs8s", "cwhois.cnnic.cn"
322
322
  Whois::Server.define :tld, ".xn--fiqz9s", "cwhois.cnnic.cn"
323
- Whois::Server.define :tld, ".xn--fpcrj9c3d", nil, {:adapter=>Whois::Server::Adapters::None}
324
- Whois::Server.define :tld, ".xn--fzc2c9e2c", nil, {:adapter=>Whois::Server::Adapters::None}
325
- Whois::Server.define :tld, ".xn--gecrj9c", nil, {:adapter=>Whois::Server::Adapters::None}
326
- Whois::Server.define :tld, ".xn--h2brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
323
+ Whois::Server.define :tld, ".xn--fpcrj9c3d", nil, { :adapter => Whois::Server::Adapters::None }
324
+ Whois::Server.define :tld, ".xn--fzc2c9e2c", nil, { :adapter => Whois::Server::Adapters::None }
325
+ Whois::Server.define :tld, ".xn--gecrj9c", nil, { :adapter => Whois::Server::Adapters::None }
326
+ Whois::Server.define :tld, ".xn--h2brj9c", nil, { :adapter => Whois::Server::Adapters::None }
327
327
  Whois::Server.define :tld, ".xn--j6w193g", "whois.hkirc.hk"
328
328
  Whois::Server.define :tld, ".xn--kprw13d", "whois.twnic.net.tw"
329
329
  Whois::Server.define :tld, ".xn--kpry57d", "whois.twnic.net.tw"
330
330
  Whois::Server.define :tld, ".xn--mgbaam7a8h", "whois.aeda.net.ae"
331
- Whois::Server.define :tld, ".xn--mgbayh7gpa", nil, {:adapter=>Whois::Server::Adapters::None}
332
- Whois::Server.define :tld, ".xn--mgbbh1a71e", nil, {:adapter=>Whois::Server::Adapters::None}
331
+ Whois::Server.define :tld, ".xn--mgbayh7gpa", nil, { :adapter => Whois::Server::Adapters::None }
332
+ Whois::Server.define :tld, ".xn--mgbbh1a71e", nil, { :adapter => Whois::Server::Adapters::None }
333
333
  Whois::Server.define :tld, ".xn--mgberp4a5d4ar", "whois.nic.net.sa"
334
334
  Whois::Server.define :tld, ".xn--o3cw4h", "whois.thnic.co.th"
335
- Whois::Server.define :tld, ".xn--ogbpf8fl", nil, {:adapter=>Whois::Server::Adapters::None}
335
+ Whois::Server.define :tld, ".xn--ogbpf8fl", nil, { :adapter => Whois::Server::Adapters::None }
336
336
  Whois::Server.define :tld, ".xn--p1ai", "whois.ripn.net"
337
- Whois::Server.define :tld, ".xn--pgbs0dh", nil, {:adapter=>Whois::Server::Adapters::None}
338
- Whois::Server.define :tld, ".xn--s9brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
337
+ Whois::Server.define :tld, ".xn--pgbs0dh", nil, { :adapter => Whois::Server::Adapters::None }
338
+ Whois::Server.define :tld, ".xn--s9brj9c", nil, { :adapter => Whois::Server::Adapters::None }
339
339
  Whois::Server.define :tld, ".xn--wgbh1c", "whois.dotmasr.eg"
340
- Whois::Server.define :tld, ".xn--wgbl6a", nil, {:adapter=>Whois::Server::Adapters::None}
341
- Whois::Server.define :tld, ".xn--xkc2al3hye2a", nil, {:adapter=>Whois::Server::Adapters::None}
342
- Whois::Server.define :tld, ".xn--xkc2dl3a5ee0h", nil, {:adapter=>Whois::Server::Adapters::None}
340
+ Whois::Server.define :tld, ".xn--wgbl6a", nil, { :adapter => Whois::Server::Adapters::None }
341
+ Whois::Server.define :tld, ".xn--xkc2al3hye2a", nil, { :adapter => Whois::Server::Adapters::None }
342
+ Whois::Server.define :tld, ".xn--xkc2dl3a5ee0h", nil, { :adapter => Whois::Server::Adapters::None }
343
343
  Whois::Server.define :tld, ".xn--yfro4i67o", "whois.sgnic.sg"
344
344
  Whois::Server.define :tld, ".xn--ygbi2ammx", "whois.pnina.ps"
data/lib/whois/errors.rb CHANGED
@@ -130,6 +130,12 @@ module Whois
130
130
  class ResponseIsThrottled < ResponseError
131
131
  end
132
132
 
133
+ # Raised when attempting to access a property when the response is unavailable.
134
+ #
135
+ # @see Whois::Record::Parser::Base#response_unavailable?
136
+ class ResponseIsUnavailable < ResponseError
137
+ end
138
+
133
139
  # @endgroup
134
140
 
135
141
  end
@@ -225,7 +225,7 @@ module Whois
225
225
  # Check if the parser respond to +symbol+
226
226
  # and calls the method if defined.
227
227
  # The method referenced by the +symbol+
228
- # is supposed to be a question? method and to return a boolean.
228
+ # is supposed to be a question? method and to return a boolean.
229
229
  #
230
230
  # @param [Symbol] symbol
231
231
  # @return [Boolean]
@@ -241,7 +241,8 @@ module Whois
241
241
 
242
242
  # @api internal
243
243
  def validate!
244
- raise ResponseIsThrottled if is(:response_throttled?)
244
+ raise ResponseIsThrottled if is(:response_throttled?)
245
+ raise ResponseIsUnavailable if is(:response_unavailable?)
245
246
  end
246
247
 
247
248
 
@@ -27,6 +27,8 @@ module Whois
27
27
  #
28
28
  class WhoisAudnsNetAu < Base
29
29
 
30
+ # @see http://www.auda.org.au/policies/auda-2002-28/
31
+ # @see http://www.auda.org.au/policies/auda-2006-07/
30
32
  property_supported :status do
31
33
  content_for_scanner.scan(/Status:\s+(.+?)\n/).flatten
32
34
  end
@@ -100,7 +100,7 @@ module Whois
100
100
  contact("Admin-C", Whois::Record::Contact::TYPE_ADMIN)
101
101
  end
102
102
 
103
- # FIXME: check against different schema
103
+ # FIXME: check against different schema
104
104
 
105
105
  property_supported :technical_contacts do
106
106
  contact("Tech-C", Whois::Record::Contact::TYPE_TECHNICAL)
@@ -53,6 +53,8 @@ module Whois
53
53
  :reserved
54
54
  when "available"
55
55
  :available
56
+ when /^inactive/
57
+ :inactive
56
58
  else
57
59
  Whois.bug!(ParserError, "Unknown status `#{node("Status")}'.")
58
60
  end
@@ -29,6 +29,8 @@ module Whois
29
29
  #
30
30
  class WhoisNicUk < Base
31
31
 
32
+ # @see http://www.nominet.org.uk/registrars/systems/data/regstatus/
33
+ # @see http://www.nominet.org.uk/registrants/maintain/renew/status/
32
34
  property_supported :status do
33
35
  if content_for_scanner =~ /\s+Registration status:\s+(.+?)\n/
34
36
  case $1.downcase
@@ -27,11 +27,13 @@ module Whois
27
27
  #
28
28
  class WhoisSkNicSk < Base
29
29
 
30
+ # @see https://www.sk-nic.sk/documents/stavy_domen.html
30
31
  property_supported :status do
31
32
  if content_for_scanner =~ /^Domain-status\s+(.+)\n/
32
33
  case $1.downcase
33
34
  when "dom_ok" then :registered
34
35
  when "dom_held" then :registered
36
+ when "dom_dakt" then :registered
35
37
  else
36
38
  Whois.bug!(ParserError, "Unknown status `#{$1}'.")
37
39
  end
data/lib/whois/version.rb CHANGED
@@ -13,7 +13,7 @@ module Whois
13
13
  module Version
14
14
  MAJOR = 2
15
15
  MINOR = 0
16
- PATCH = 2
16
+ PATCH = 3
17
17
  BUILD = nil
18
18
 
19
19
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -0,0 +1,8 @@
1
+ #status
2
+ should: %s == :inactive
3
+
4
+ #available?
5
+ should: %s == false
6
+
7
+ #registered?
8
+ should: %s == true
@@ -0,0 +1,60 @@
1
+
2
+ *********************************************************************
3
+ * Please note that the following result could be a subgroup of *
4
+ * the data contained in the database. *
5
+ * *
6
+ * Additional information can be visualized at: *
7
+ * http://www.nic.it/cgi-bin/Whois/whois.cgi *
8
+ *********************************************************************
9
+
10
+ Domain: tipassasubito.it
11
+ Status: inactive / noRegistrar
12
+ Created: 2008-04-02 16:20:50
13
+ Last Update: 2011-04-13 15:41:49
14
+ Expire Date: 2011-04-02
15
+
16
+ Registrant
17
+ Name: SIRIS MEDIA FACTORY SRL
18
+ Organization: SIRIS MEDIA FACTORY SRL
19
+ ContactID: SIRI412
20
+ Address: Foro Buonaparte, 69
21
+ Milano
22
+ 20121
23
+ MI
24
+ IT
25
+ Created: 2008-04-02 16:20:50
26
+ Last Update: 2011-04-13 15:24:54
27
+
28
+ Admin Contact
29
+ Name: CLAUDIO SPADA
30
+ Organization: SIRIS MEDIA FACTORY SRL
31
+ ContactID: CS31121
32
+ Address: Foro Buonaparte, 69
33
+ Milano
34
+ 20121
35
+ MI
36
+ IT
37
+ Created: 2008-04-02 16:20:50
38
+ Last Update: 2011-04-13 15:26:01
39
+
40
+ Technical Contacts
41
+ Name: CLAUDIO SPADA
42
+ Organization: SIRIS MEDIA FACTORY SRL
43
+ ContactID: CS31122
44
+ Address: Foro Buonaparte, 69
45
+ Milano
46
+ 20121
47
+ MI
48
+ IT
49
+ Created: 2008-04-02 16:20:50
50
+ Last Update: 2011-04-13 15:26:17
51
+
52
+ Registrar
53
+ Organization: 9NET s.r.l.
54
+ Name: 9NET-REG
55
+ Web: http://www.9net.it
56
+
57
+ Nameservers
58
+ ns1.websolutions.it
59
+ ns2.websolutions.it
60
+
@@ -0,0 +1,8 @@
1
+ #status
2
+ should: %s == :registered
3
+
4
+ #available?
5
+ should: %s == false
6
+
7
+ #registered?
8
+ should: %s == true
@@ -0,0 +1,25 @@
1
+ %
2
+ % whois.sk-nic.sk - whois server for TLD .sk
3
+ %
4
+
5
+
6
+ Domain-name plac.sk
7
+ Admin-id TOMH-0091
8
+ Admin-name Ing. Tomas Hanko
9
+ Admin-legal-form zivnost
10
+ Admin-org.-ID 44805080
11
+ Admin-address L. Novomeskeho 2672/5, Trencin 91108
12
+ Admin-telephone 0000000000
13
+ Admin-email TOMH0091@gmail.com
14
+ Tech-id TOMH-0091
15
+ Tech-name Ing. Tomas Hanko
16
+ Tech-org.-ID 44805080
17
+ Tech-address L. Novomeskeho 2672/5, Trencin 91108
18
+ Tech-telephone 0000000000
19
+ Tech-email TOMH0091@gmail.com
20
+ dns_name ns1.dnparking.sk
21
+ dns_name ns2.dnparking.sk
22
+ Last-update 2011-04-20
23
+ Valid-date 2011-05-04
24
+ Domain-status DOM_DAKT
25
+
data/spec/tlds CHANGED
@@ -315,28 +315,28 @@ za;;;
315
315
  zm;;;
316
316
  zw;;;
317
317
  Whois::Server.define :tld, ".xn--3e0b707e", "whois.kr"
318
- Whois::Server.define :tld, ".xn--45brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
318
+ Whois::Server.define :tld, ".xn--45brj9c", nil, { :adapter => Whois::Server::Adapters::None }
319
319
  Whois::Server.define :tld, ".xn--fiqs8s", "cwhois.cnnic.cn"
320
320
  Whois::Server.define :tld, ".xn--fiqz9s", "cwhois.cnnic.cn"
321
- Whois::Server.define :tld, ".xn--fpcrj9c3d", nil, {:adapter=>Whois::Server::Adapters::None}
322
- Whois::Server.define :tld, ".xn--fzc2c9e2c", nil, {:adapter=>Whois::Server::Adapters::None}
323
- Whois::Server.define :tld, ".xn--gecrj9c", nil, {:adapter=>Whois::Server::Adapters::None}
321
+ Whois::Server.define :tld, ".xn--fpcrj9c3d", nil, { :adapter => Whois::Server::Adapters::None }
322
+ Whois::Server.define :tld, ".xn--fzc2c9e2c", nil, { :adapter => Whois::Server::Adapters::None }
323
+ Whois::Server.define :tld, ".xn--gecrj9c", nil, { :adapter => Whois::Server::Adapters::None }
324
324
  Whois::Server.define :tld, ".xn--j6w193g", "whois.hkirc.hk"
325
325
  Whois::Server.define :tld, ".xn--kprw13d", "whois.twnic.net.tw"
326
326
  Whois::Server.define :tld, ".xn--kpry57d", "whois.twnic.net.tw"
327
327
  Whois::Server.define :tld, ".xn--mgbaam7a8h", "whois.aeda.net.ae"
328
- Whois::Server.define :tld, ".xn--mgbayh7gpa", nil, {:adapter=>Whois::Server::Adapters::None}
328
+ Whois::Server.define :tld, ".xn--mgbayh7gpa", nil, { :adapter => Whois::Server::Adapters::None }
329
329
  Whois::Server.define :tld, ".xn--mgberp4a5d4ar", "whois.nic.net.sa"
330
330
  Whois::Server.define :tld, ".xn--o3cw4h", "whois.thnic.co.th"
331
331
  xn--p1ai;whois.ripn.net;xn----8sbc3ahklcs4adf.xn--p1ai;u34jedzcq.xn--p1ai
332
- Whois::Server.define :tld, ".xn--pgbs0dh", nil, {:adapter=>Whois::Server::Adapters::None}
332
+ Whois::Server.define :tld, ".xn--pgbs0dh", nil, { :adapter => Whois::Server::Adapters::None }
333
333
  Whois::Server.define :tld, ".xn--wgbh1c", "whois.dotmasr.eg"
334
- Whois::Server.define :tld, ".xn--wgbl6a", nil, {:adapter=>Whois::Server::Adapters::None}
335
- Whois::Server.define :tld, ".xn--xkc2al3hye2a", nil, {:adapter=>Whois::Server::Adapters::None}
334
+ Whois::Server.define :tld, ".xn--wgbl6a", nil, { :adapter => Whois::Server::Adapters::None }
335
+ Whois::Server.define :tld, ".xn--xkc2al3hye2a", nil, { :adapter => Whois::Server::Adapters::None }
336
336
  Whois::Server.define :tld, ".xn--ygbi2ammx", "whois.pnina.ps"
337
- Whois::Server.define :tld, ".xn--h2brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
338
- Whois::Server.define :tld, ".xn--mgbbh1a71e", nil, {:adapter=>Whois::Server::Adapters::None}
339
- Whois::Server.define :tld, ".xn--ogbpf8fl", nil, {:adapter=>Whois::Server::Adapters::None}
340
- Whois::Server.define :tld, ".xn--s9brj9c", nil, {:adapter=>Whois::Server::Adapters::None}
341
- Whois::Server.define :tld, ".xn--xkc2dl3a5ee0h", nil, {:adapter=>Whois::Server::Adapters::None}
337
+ Whois::Server.define :tld, ".xn--h2brj9c", nil, { :adapter => Whois::Server::Adapters::None }
338
+ Whois::Server.define :tld, ".xn--mgbbh1a71e", nil, { :adapter => Whois::Server::Adapters::None }
339
+ Whois::Server.define :tld, ".xn--ogbpf8fl", nil, { :adapter => Whois::Server::Adapters::None }
340
+ Whois::Server.define :tld, ".xn--s9brj9c", nil, { :adapter => Whois::Server::Adapters::None }
341
+ Whois::Server.define :tld, ".xn--xkc2dl3a5ee0h", nil, { :adapter => Whois::Server::Adapters::None }
342
342
  Whois::Server.define :tld, ".xn--yfro4i67o", "whois.sgnic.sg"
@@ -113,6 +113,14 @@ describe Whois::Record::Parser::Base do
113
113
  i = Class.new(klass) { def response_throttled?; false; end }.new(Whois::Record::Part.new)
114
114
  lambda { i.validate! }.should_not raise_error
115
115
  end
116
+
117
+ it "raises Whois::ResponseIsUnavailable when the response is unavailable" do
118
+ i = Class.new(klass) { def response_unavailable?; true; end }.new(Whois::Record::Part.new)
119
+ lambda { i.validate! }.should raise_error(Whois::ResponseIsUnavailable)
120
+
121
+ i = Class.new(klass) { def response_unavailable?; false; end }.new(Whois::Record::Part.new)
122
+ lambda { i.validate! }.should_not raise_error
123
+ end
116
124
  end
117
125
 
118
126
 
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.nic.it/property_status_inactive_noregistrar.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.nic.it.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisNicIt, "property_status_inactive_noregistrar.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.nic.it/property_status_inactive_noregistrar.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ context "#status" do
25
+ it do
26
+ @parser.status.should == :inactive
27
+ end
28
+ end
29
+ context "#available?" do
30
+ it do
31
+ @parser.available?.should == false
32
+ end
33
+ end
34
+ context "#registered?" do
35
+ it do
36
+ @parser.registered?.should == true
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_dakt.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.sk-nic.sk.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisSkNicSk, "property_status_dom_dakt.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.sk-nic.sk/property_status_dom_dakt.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ context "#status" do
25
+ it do
26
+ @parser.status.should == :registered
27
+ end
28
+ end
29
+ context "#available?" do
30
+ it do
31
+ @parser.available?.should == false
32
+ end
33
+ end
34
+ context "#registered?" do
35
+ it do
36
+ @parser.registered?.should == true
37
+ end
38
+ end
39
+ end
data/whois.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{whois}
5
- s.version = "2.0.1"
5
+ s.version = "2.0.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"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: whois
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.2
5
+ version: 2.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Simone Carletti
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-11 00:00:00 Z
13
+ date: 2011-05-01 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -935,6 +935,8 @@ files:
935
935
  - spec/fixtures/responses/whois.nic.it/property_status_client.txt
936
936
  - spec/fixtures/responses/whois.nic.it/property_status_graceperiod.expected
937
937
  - spec/fixtures/responses/whois.nic.it/property_status_graceperiod.txt
938
+ - spec/fixtures/responses/whois.nic.it/property_status_inactive_noregistrar.expected
939
+ - spec/fixtures/responses/whois.nic.it/property_status_inactive_noregistrar.txt
938
940
  - spec/fixtures/responses/whois.nic.it/property_status_ok.expected
939
941
  - spec/fixtures/responses/whois.nic.it/property_status_ok.txt
940
942
  - spec/fixtures/responses/whois.nic.it/property_status_ok_autorenew.expected
@@ -1241,6 +1243,8 @@ files:
1241
1243
  - spec/fixtures/responses/whois.sgnic.sg/status_available.txt
1242
1244
  - spec/fixtures/responses/whois.sgnic.sg/status_registered.expected
1243
1245
  - spec/fixtures/responses/whois.sgnic.sg/status_registered.txt
1246
+ - spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_dakt.expected
1247
+ - spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_dakt.txt
1244
1248
  - spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_held.expected
1245
1249
  - spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_held.txt
1246
1250
  - spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_ok.expected
@@ -1639,6 +1643,7 @@ files:
1639
1643
  - spec/whois/record/parser/responses/whois.nic.it/property_status_available_spec.rb
1640
1644
  - spec/whois/record/parser/responses/whois.nic.it/property_status_client_spec.rb
1641
1645
  - spec/whois/record/parser/responses/whois.nic.it/property_status_graceperiod_spec.rb
1646
+ - spec/whois/record/parser/responses/whois.nic.it/property_status_inactive_noregistrar_spec.rb
1642
1647
  - spec/whois/record/parser/responses/whois.nic.it/property_status_ok_autorenew_spec.rb
1643
1648
  - spec/whois/record/parser/responses/whois.nic.it/property_status_ok_spec.rb
1644
1649
  - spec/whois/record/parser/responses/whois.nic.it/property_status_pendingdelete_spec.rb
@@ -1791,6 +1796,7 @@ files:
1791
1796
  - spec/whois/record/parser/responses/whois.samoanic.ws/status_registered_spec.rb
1792
1797
  - spec/whois/record/parser/responses/whois.sgnic.sg/status_available_spec.rb
1793
1798
  - spec/whois/record/parser/responses/whois.sgnic.sg/status_registered_spec.rb
1799
+ - spec/whois/record/parser/responses/whois.sk-nic.sk/property_status_dom_dakt_spec.rb
1794
1800
  - spec/whois/record/parser/responses/whois.sk-nic.sk/property_status_dom_held_spec.rb
1795
1801
  - spec/whois/record/parser/responses/whois.sk-nic.sk/property_status_dom_ok_spec.rb
1796
1802
  - spec/whois/record/parser/responses/whois.sk-nic.sk/status_available_spec.rb