mlightner-universal_ruby_whois 1.2.1 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
*License*: MIT[link:files/LICENSE.html]
|
|
6
6
|
|
|
7
|
+
*RDoc*: http://universalwhois.rubyforge.org/
|
|
8
|
+
|
|
9
|
+
|
|
7
10
|
This library attempts to interpret WHOIS output from a variety of different registrars.
|
|
8
11
|
The ultimate goal is to have a complete "dictionary" of all of the TLD registrars (including
|
|
9
12
|
double domain TLDs such as .co.uk) on the Internet, and corresponding regular expressions
|
|
@@ -46,8 +49,10 @@ Here is the output from a sample IRB session using this library:
|
|
|
46
49
|
=> false
|
|
47
50
|
domain.registered?
|
|
48
51
|
=> true
|
|
49
|
-
domain.
|
|
52
|
+
domain.creation_date
|
|
50
53
|
=> Mon Aug 28 00:00:00 EDT 2006
|
|
54
|
+
domain.expiration_date
|
|
55
|
+
=> Fri Aug 28 00:00:00 EDT 2009
|
|
51
56
|
domain = Whois.find("9384jf398ejf9832ej.com")
|
|
52
57
|
=> #<Whois::Domain:0xb7a1ab34 @domain="9384jf398ejf9832ej.com", @server_tld_key="com">
|
|
53
58
|
domain.status
|
|
@@ -240,11 +240,17 @@ Whois::Server.define(
|
|
|
240
240
|
|
|
241
241
|
)
|
|
242
242
|
Whois::Server.define(
|
|
243
|
-
%w(travel jobs aero
|
|
243
|
+
%w(travel jobs aero pw tw),
|
|
244
244
|
'whois.encirca.com',
|
|
245
245
|
:registered => /Domain Registrar Status:/im,
|
|
246
246
|
:free => /Not found:/im
|
|
247
247
|
)
|
|
248
|
+
Whois::Server.define(
|
|
249
|
+
'mobi',
|
|
250
|
+
'whois.corenic.net',
|
|
251
|
+
:registered => /Domain ID:/im,
|
|
252
|
+
:free => /NOT FOUND/m
|
|
253
|
+
)
|
|
248
254
|
Whois::Server.define(
|
|
249
255
|
'ca',
|
|
250
256
|
'whois.cira.ca',
|