whois 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/CHANGELOG.rdoc +11 -0
  2. data/lib/whois/record/parser/NOTES.txt +18 -2
  3. data/lib/whois/record/parser/kero.yachay.pe.rb +6 -3
  4. data/lib/whois/record/parser/whois.dns.pt.rb +1 -1
  5. data/lib/whois/record/parser/whois.gg.rb +17 -7
  6. data/lib/whois/record/parser/whois.kenic.or.ke.rb +8 -6
  7. data/lib/whois/record/parser/whois.na-nic.com.na.rb +6 -4
  8. data/lib/whois/record/parser/whois.netcom.cm.rb +8 -6
  9. data/lib/whois/record/parser/whois.nic.cx.rb +9 -7
  10. data/lib/whois/record/parser/whois.nic.gl.rb +6 -4
  11. data/lib/whois/record/parser/whois.nic.gs.rb +5 -3
  12. data/lib/whois/record/parser/whois.nic.ki.rb +5 -3
  13. data/lib/whois/record/parser/whois.nic.mg.rb +5 -3
  14. data/lib/whois/record/parser/whois.nic.ms.rb +5 -3
  15. data/lib/whois/record/parser/whois.nic.net.nf.rb +5 -3
  16. data/lib/whois/record/parser/whois.nic.net.ng.rb +5 -3
  17. data/lib/whois/record/parser/whois.pnina.ps.rb +5 -3
  18. data/lib/whois/record/parser/whois.registry.gy.rb +5 -3
  19. data/lib/whois/record/parser/whois.sk-nic.sk.rb +9 -13
  20. data/lib/whois/record/parser/whois.srs.net.nz.rb +7 -3
  21. data/lib/whois/version.rb +1 -1
  22. data/spec/fixtures/responses/whois.dns.pt/status_reserved.expected +1 -1
  23. data/spec/fixtures/responses/whois.gg/status_available.expected +2 -2
  24. data/spec/fixtures/responses/whois.gg/status_available.txt +31 -23
  25. data/spec/fixtures/responses/whois.gg/status_registered.expected +6 -4
  26. data/spec/fixtures/responses/whois.gg/status_registered.txt +53 -31
  27. data/spec/fixtures/responses/whois.pnina.ps/property_status_active_pending_transfer.expected +8 -0
  28. data/spec/fixtures/responses/whois.pnina.ps/property_status_active_pending_transfer.txt +69 -0
  29. data/spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_ta.expected +8 -0
  30. data/spec/fixtures/responses/whois.sk-nic.sk/property_status_dom_ta.txt +25 -0
  31. data/spec/fixtures/responses/whois.srs.net.nz/property_status_pendingrelease.expected +8 -0
  32. data/spec/fixtures/responses/whois.srs.net.nz/property_status_pendingrelease.txt +68 -0
  33. data/spec/whois/record/parser/responses/whois.dns.pt/status_reserved_spec.rb +1 -1
  34. data/spec/whois/record/parser/responses/whois.gg/status_available_spec.rb +2 -2
  35. data/spec/whois/record/parser/responses/whois.gg/status_registered_spec.rb +6 -4
  36. data/spec/whois/record/parser/responses/whois.pnina.ps/property_status_active_pending_transfer_spec.rb +39 -0
  37. data/spec/whois/record/parser/responses/whois.sk-nic.sk/property_status_dom_ta_spec.rb +39 -0
  38. data/spec/whois/record/parser/responses/whois.srs.net.nz/property_status_pendingrelease_spec.rb +39 -0
  39. data/whois.gemspec +3 -3
  40. metadata +11 -2
@@ -30,8 +30,10 @@ module Whois
30
30
  property_supported :status do
31
31
  if content_for_scanner =~ /Status:\s+(.+?)\n/
32
32
  case $1.downcase
33
- when "active" then :registered
34
- when "not registered" then :available
33
+ when /^active/
34
+ :registered
35
+ when "not registered"
36
+ :available
35
37
  else
36
38
  Whois.bug!(ParserError, "Unknown status `#{$1}'.")
37
39
  end
@@ -41,7 +43,7 @@ module Whois
41
43
  end
42
44
 
43
45
  property_supported :available? do
44
- (status == :available)
46
+ status == :available
45
47
  end
46
48
 
47
49
  property_supported :registered? do
@@ -30,8 +30,10 @@ module Whois
30
30
  property_supported :status do
31
31
  if content_for_scanner =~ /Status:\s+(.+?)\n/
32
32
  case $1.downcase
33
- when "active" then :registered
34
- when "not registered" then :available
33
+ when "active"
34
+ :registered
35
+ when "not registered"
36
+ :available
35
37
  else
36
38
  Whois.bug!(ParserError, "Unknown status `#{$1}'.")
37
39
  end
@@ -41,7 +43,7 @@ module Whois
41
43
  end
42
44
 
43
45
  property_supported :available? do
44
- (status == :available)
46
+ status == :available
45
47
  end
46
48
 
47
49
  property_supported :registered? do
@@ -32,21 +32,17 @@ module Whois
32
32
  property_supported :status do
33
33
  if content_for_scanner =~ /^Domain-status\s+(.+)\n/
34
34
  case $1.downcase
35
- # The domain is registered and paid.
36
- when "dom_ok",
37
- # Replacement 14-day period for domain payment.
38
- "dom_dakt",
39
- # 28 days before the expiration of one year's notice is sent to the first call for an extension of domains.
40
- # The domain is still fully functional (14 days).
41
- "dom_warn",
42
- # 14 days before the expiration of one year's notice is sent to the second call to the extension of domains.
43
- # The domain is still fully functional (14 days).
44
- "dom_lnot",
45
- # The domain is expired and has not been renewed (14 days).
35
+ when "dom_ok", # The domain is registered and paid.
36
+ "dom_ta", # The domain is registered and registration fee has to be payed (14 days).
37
+ # Replacement 14-day period for domain payment.
38
+ "dom_dakt", # 28 days before the expiration of one year's notice is sent to the first call for an extension of domains.
39
+ # The domain is still fully functional (14 days).
40
+ "dom_warn", # 14 days before the expiration of one year's notice is sent to the second call to the extension of domains.
41
+ # The domain is still fully functional (14 days).
42
+ "dom_lnot", # The domain is expired and has not been renewed (14 days).
46
43
  "dom_exp"
47
44
  :registered
48
- # The domain losts its registrar (28 days).
49
- when "dom_held"
45
+ when "dom_held" # The domain losts its registrar (28 days).
50
46
  :redemption
51
47
  else
52
48
  Whois.bug!(ParserError, "Unknown status `#{$1}'.")
@@ -27,14 +27,18 @@ module Whois
27
27
  #
28
28
  class WhoisSrsNetNz < Base
29
29
 
30
+ # @see http://dnc.org.nz/content/srs-whois-spec-1.0.html
30
31
  property_supported :status do
31
32
  if content_for_scanner =~ /query_status:\s(.+)\n/
32
- case $1.downcase
33
+ case s = $1.downcase
33
34
  when /active/ then :registered
34
35
  when /available/ then :available
35
36
  when /invalid characters/ then :invalid
37
+ # The domain is no longer active but is in the period prior
38
+ # to being released for general registrations
39
+ when "210 pendingrelease" then :redemption
36
40
  else
37
- Whois.bug!(ParserError, "Unknown status `#{$1}'.")
41
+ Whois.bug!(ParserError, "Unknown status `#{s}'.")
38
42
  end
39
43
  else
40
44
  Whois.bug!(ParserError, "Unable to parse status.")
@@ -46,7 +50,7 @@ module Whois
46
50
  end
47
51
 
48
52
  property_supported :registered? do
49
- (status == :registered)
53
+ (status == :registered) || (status == :redemption)
50
54
  end
51
55
 
52
56
 
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 = 5
16
+ PATCH = 6
17
17
  BUILD = nil
18
18
 
19
19
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -10,7 +10,7 @@
10
10
 
11
11
  #created_on
12
12
  should: %s be_a(Time)
13
- should: %s == Time.parse("2009-02-09 01:00:00")
13
+ should: %s == Time.parse("2009-02-09 00:00:00 UTC")
14
14
 
15
15
  #updated_on
16
16
  should: %s raise_error(Whois::PropertyNotSupported)
@@ -9,10 +9,10 @@
9
9
 
10
10
 
11
11
  #created_on
12
- should: %s raise_error(Whois::PropertyNotSupported)
12
+ should: %s == nil
13
13
 
14
14
  #updated_on
15
- should: %s raise_error(Whois::PropertyNotSupported)
15
+ should: %s == nil
16
16
 
17
17
  #expires_on
18
18
  should: %s raise_error(Whois::PropertyNotSupported)
@@ -1,26 +1,34 @@
1
- status:0
1
+ This information is provided free of charge from the Channel Islands'
2
+ Register of Internet Names. The copyright and database rights in this
3
+ information and in the contents are owned by Island Networks Ltd
4
+ whose Registered Office is at 12 Victoria St, St Anne's GY9 3UF
5
+
6
+ WHOIS query results shown may lag behind the Register.
7
+
8
+ You may not access this server or use any data obtained from it
9
+ without written licence except for private, non-commercial use for the
10
+ purpose(s) of determining availability of, or confirming the registration of
11
+ a domain name on the Register.
12
+
13
+ Any other use constitutes unauthorised access to a computer,
14
+ which is a statutory offence under the Computer Misuse
15
+ (Bailiwick of Guernsey) Law 1991, and/or similar legislation
16
+ in other parts of the British Islands and elsewhere.
17
+
18
+ Furthermore, you may never do any of the following
19
+
20
+ (a) use data obtained from this server for advertising;
21
+ (b) repackage, reuse or redistribute the data;
22
+ (c) obscure, remove or hide any or all of this notice; or
23
+ (d) make excessive queries.
24
+
25
+ Access may be withdrawn or restricted at any time
26
+ without notice.
27
+
28
+
29
+ Domain Information
30
+ Query: u34jedzcq.gg
31
+ Status: Not Registered
2
32
 
3
- ** No information found in WHOIS **
4
33
 
5
34
 
6
-
7
-
8
- This information is provided free of charge from the Channel Islands' Register
9
- of Internet Names. This information and the contents of the Register are:
10
-
11
- Copyright (c) & database right
12
- Island Networks & Island Networks (Jersey), 1996-2010
13
-
14
- You may not access this server or use any data from it except for
15
- private, non-commercial use in order to determine availability of, or
16
- confirm registration of a domain name on the Register. Any other use will
17
- constitute unauthorised access to a computer system, which is an offence
18
- under the Computer Misuse (Bailiwick of Guernsey) Law 1991, and/or
19
- similar legislation in other jurisdictions.
20
-
21
- In particular, you may not (a) use the data for advertising, (b) repackage,
22
- reuse or redistribute the data, (c) obscure, remove or hide any or all of
23
- this notice or (d) make excessive queries.
24
-
25
- The data is provided on an 'as-is' basis and results given may lag behind
26
- the Register. Access may be withdrawn or restricted at any time without notice.
@@ -9,10 +9,12 @@
9
9
 
10
10
 
11
11
  #created_on
12
- should: %s raise_error(Whois::PropertyNotSupported)
12
+ should: %s be_a(Time)
13
+ should: %s == Time.parse("2003-04-30 00:00:00")
13
14
 
14
15
  #updated_on
15
- should: %s raise_error(Whois::PropertyNotSupported)
16
+ should: %s be_a(Time)
17
+ should: %s == Time.parse("2011-03-31 00:00:00")
16
18
 
17
19
  #expires_on
18
20
  should: %s raise_error(Whois::PropertyNotSupported)
@@ -24,8 +26,8 @@
24
26
  should: %s[0] be_a(_nameserver)
25
27
  should: %s[0].name == "ns1.google.com"
26
28
  should: %s[1] be_a(_nameserver)
27
- should: %s[1].name == "ns4.google.com"
29
+ should: %s[1].name == "ns2.google.com"
28
30
  should: %s[2] be_a(_nameserver)
29
- should: %s[2].name == "ns2.google.com"
31
+ should: %s[2].name == "ns4.google.com"
30
32
  should: %s[3] be_a(_nameserver)
31
33
  should: %s[3].name == "ns3.google.com"
@@ -1,32 +1,54 @@
1
- status:1
1
+ This information is provided free of charge from the Channel Islands'
2
+ Register of Internet Names. The copyright and database rights in this
3
+ information and in the contents are owned by Island Networks Ltd
4
+ whose Registered Office is at 12 Victoria St, St Anne's GY9 3UF
5
+
6
+ WHOIS query results shown may lag behind the Register.
7
+
8
+ You may not access this server or use any data obtained from it
9
+ without written licence except for private, non-commercial use for the
10
+ purpose(s) of determining availability of, or confirming the registration of
11
+ a domain name on the Register.
12
+
13
+ Any other use constitutes unauthorised access to a computer,
14
+ which is a statutory offence under the Computer Misuse
15
+ (Bailiwick of Guernsey) Law 1991, and/or similar legislation
16
+ in other parts of the British Islands and elsewhere.
17
+
18
+ Furthermore, you may never do any of the following
19
+
20
+ (a) use data obtained from this server for advertising;
21
+ (b) repackage, reuse or redistribute the data;
22
+ (c) obscure, remove or hide any or all of this notice; or
23
+ (d) make excessive queries.
24
+
25
+ Access may be withdrawn or restricted at any time
26
+ without notice.
27
+
28
+
29
+ Domain Information
30
+ Query: google.gg
31
+ Status: Active
32
+ Created: 30 Apr 2003
33
+ Modified: 31 Mar 2011
34
+ Name Servers:
35
+ ns1.google.com
36
+ ns2.google.com
37
+ ns4.google.com
38
+ ns3.google.com
39
+
40
+ Registrar Information
41
+ Registrar Name: Markmonitor
42
+ Registration URL: http://www.markmonitor.com
43
+
44
+
45
+
46
+
47
+ Registrant:
48
+ Name: Google Inc.
49
+ Organisation: Google Inc.
50
+ Address:
51
+ 1600 Amphitheatre Parkway
52
+ Mountain View, CA 94043
53
+ US
2
54
 
3
- Domain is Registered.
4
-
5
- Registered Nameservers
6
- ----------------------
7
- ns1.google.com.
8
- ns4.google.com.
9
- ns2.google.com.
10
- ns3.google.com.
11
-
12
-
13
-
14
- This information is provided free of charge from the Channel Islands' Register
15
- of Internet Names. This information and the contents of the Register are:
16
-
17
- Copyright (c) & database right
18
- Island Networks & Island Networks (Jersey), 1996-2010
19
-
20
- You may not access this server or use any data from it except for
21
- private, non-commercial use in order to determine availability of, or
22
- confirm registration of a domain name on the Register. Any other use will
23
- constitute unauthorised access to a computer system, which is an offence
24
- under the Computer Misuse (Bailiwick of Guernsey) Law 1991, and/or
25
- similar legislation in other jurisdictions.
26
-
27
- In particular, you may not (a) use the data for advertising, (b) repackage,
28
- reuse or redistribute the data, (c) obscure, remove or hide any or all of
29
- this notice or (d) make excessive queries.
30
-
31
- The data is provided on an 'as-is' basis and results given may lag behind
32
- the Register. Access may be withdrawn or restricted at any time without notice.
@@ -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,69 @@
1
+ TERMS OF USE: You are not authorized to access or query our Whois
2
+ database through the use of electronic processes that are high-volume and
3
+ automated. Whois database is provided by PNINA as a service to the internet
4
+ community on behalf of PNINA and Its Certified Registrars (CR). (http://www.pnina.ps/registrars/registrars-list/)
5
+
6
+ The data is for information purposes only. PNINA does not
7
+ guarantee its accuracy. By submitting a Whois query, you agree to abide
8
+ by the following terms of use: You agree that you may use this Data only
9
+ for lawful purposes and that under no circumstances will you use this Data
10
+ to: (1) allow, enable, or otherwise support the transmission of mass
11
+ unsolicited, commercial advertising or solicitations via e-mail, telephone,
12
+ or facsimile; or (2) enable high volume, automated, electronic processes
13
+ that apply to PNINA and it's Certified Registrar's (or PNINA or CR computer systems). The
14
+ compilation, repackaging, dissemination or other use of this Data is
15
+ expressly prohibited.
16
+
17
+ Domain Information
18
+ Query: zumba.ps
19
+ Status: Active - Pending Transfer
20
+ Created: 27 Oct 2010
21
+ Expires: 27 Oct 2011
22
+ Name Servers:
23
+ c.ns.zerigo.net
24
+ b.ns.zerigo.net
25
+ a.ns.zerigo.net
26
+
27
+ Registrar Information
28
+ Registrar Name: INSTRA
29
+ Address: Level2, 222-225 Beach Road,Mordialloc,Victoria 3195,Australi
30
+ Phone: +61 3 997831800
31
+ Fax: +61 3 97836844
32
+
33
+
34
+
35
+
36
+ Registrant:
37
+ Name: Rodrigo Faerman
38
+ Address:
39
+ 3801 N 29th Ave
40
+ Hollywood US
41
+ Phone Number: 1-95-492-53755
42
+
43
+
44
+ Admin Contact:
45
+ Name: Antonio Lentino
46
+ Address:
47
+ Lot 5 -38 Hartnett Dirve-Seaford- Victoria 3198
48
+ Melbourne AU
49
+ Phone Number: 61-39-7831800
50
+ Fax Number: 61-39-7836844
51
+
52
+
53
+ Technical Contact:
54
+ Name: Phillip Parker
55
+ Address:
56
+ Level2- 222-225 Beach Road-Mordialloc-Victoria 319
57
+ Melbourne AU
58
+ Phone Number: 61-3-997831800
59
+ Fax Number: 61-3-97836844
60
+
61
+
62
+ Billing Contact:
63
+ Name: Antonio Lentino
64
+ Address:
65
+ Lot 5 -38 Hartnett Dirve-Seaford- Victoria 3198
66
+ Melbourne AU
67
+ Phone Number: 61-39-7831800
68
+ Fax Number: 61-39-7836844
69
+
@@ -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 KATA-0423
8
+ Admin-name Katarina Majercakova
9
+ Admin-legal-form zivnost
10
+ Admin-org.-ID 44304862
11
+ Admin-address Pradiaren 765/10, Kezmarok 060 01
12
+ Admin-telephone 0907 555 883
13
+ Admin-email majercakova.katarina@gmail.com
14
+ Tech-id KATA-0423
15
+ Tech-name Katarina Majercakova
16
+ Tech-org.-ID 44304862
17
+ Tech-address Pradiaren 765/10, Kezmarok 060 01
18
+ Tech-telephone 0907 555 883
19
+ Tech-email majercakova.katarina@gmail.com
20
+ dns_name ns1.dnparking.sk
21
+ dns_name ns2.dnparking.sk
22
+ Last-update 2011-08-02
23
+ Valid-date 2011-08-16
24
+ Domain-status DOM_TA
25
+
@@ -0,0 +1,8 @@
1
+ #status
2
+ should: %s == :redemption
3
+
4
+ #available?
5
+ should: %s == false
6
+
7
+ #registered?
8
+ should: %s == true
@@ -0,0 +1,68 @@
1
+ % New Zealand Domain Name Registry Limited
2
+ % Users confirm on submission their agreement to all published Terms
3
+ %
4
+ version: 5.00
5
+ query_datetime: 2011-08-07T05:56:36+12:00
6
+ domain_name: zumbafitness.co.nz
7
+ query_status: 210 PendingRelease
8
+ domain_dateregistered: 2009-07-14T12:11:36+12:00
9
+ domain_datebilleduntil: 2011-07-14T12:11:36+12:00
10
+ domain_datelastmodified: 2011-07-14T03:13:49+12:00
11
+ domain_datecancelled: 2011-07-14T03:13:49+12:00
12
+ domain_delegaterequested: yes
13
+ domain_signed: no
14
+ %
15
+ registrar_name: NETREGISTRY PTY LTD
16
+ registrar_address1: PO Box 270
17
+ registrar_city: Broadway
18
+ registrar_postalcode: 2007
19
+ registrar_country: AU (AUSTRALIA)
20
+ registrar_phone: +61 2 9699 6099
21
+ registrar_fax: +61 2 9699 6088
22
+ registrar_email: dnsadmin@netregistry.com.au
23
+ %
24
+ registrant_contact_name: Zumba Fitness, Rodrigo, Faerman
25
+ registrant_contact_address1: 3801 North 29th Avenue
26
+ registrant_contact_address2: fl, 33020
27
+ registrant_contact_city: Hollywood
28
+ registrant_contact_country: GB (UNITED KINGDOM)
29
+ registrant_contact_phone: +1 9 549253755
30
+ registrant_contact_email: rodrigo@zumba.com
31
+ %
32
+ admin_contact_name: NetRegistry
33
+ admin_contact_address1: PO BOX 270
34
+ admin_contact_address2: NSW 2007
35
+ admin_contact_city: Broadway
36
+ admin_contact_country: AU (AUSTRALIA)
37
+ admin_contact_phone: +61 2 96996099
38
+ admin_contact_fax: +61 2 96996088
39
+ admin_contact_email: dmain@netregistry.com.au
40
+ %
41
+ technical_contact_name: NETREGISTRY PTY LTD
42
+ technical_contact_address1: PO Box 270
43
+ technical_contact_city: Broadway
44
+ technical_contact_postalcode: 2007
45
+ technical_contact_country: AU (AUSTRALIA)
46
+ technical_contact_phone: +61 2 9699 6099
47
+ technical_contact_fax: +61 2 9699 6088
48
+ technical_contact_email: dnsadmin@netregistry.com.au
49
+ %
50
+ ns_name_01: ns1.netregistry.net
51
+ ns_name_02: ns2.netregistry.net
52
+ ns_name_03: ns3.netregistry.net
53
+ %
54
+ % Users are advised that the following activities are strictly forbidden.
55
+ %
56
+ % Using multiple WHOIS queries, or using the output of multiple WHOIS
57
+ % queries in conjunction with any other facility or service, to enable
58
+ % or effect a download of part or all of the .nz Register.
59
+ %
60
+ % Using any information contained in the WHOIS query output to attempt a
61
+ % targeted contact campaign with any person, or any organisation, using any
62
+ % medium.
63
+ %
64
+ % A breach of these conditions will be treated as a breach of the .nz Policies
65
+ % and Procedures. Sanctions in line with those specified in the policies and
66
+ % procedures at www.dnc.org.nz may result from any breach.
67
+ %
68
+ % Copyright InternetNZ