whois 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. data/.rspec +0 -1
  2. data/Rakefile +25 -1
  3. data/lib/whois/definitions/tlds.rb +1 -1
  4. data/lib/whois/record/parser/base.rb +1 -1
  5. data/lib/whois/record/parser/base_afilias.rb +2 -2
  6. data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +1 -1
  7. data/lib/whois/record/parser/whois.audns.net.au.rb +81 -16
  8. data/lib/whois/record/parser/whois.biz.rb +1 -1
  9. data/lib/whois/record/parser/whois.cctld.by.rb +107 -0
  10. data/lib/whois/record/parser/whois.centralnic.com.rb +1 -1
  11. data/lib/whois/record/parser/whois.cira.ca.rb +103 -51
  12. data/lib/whois/record/parser/whois.cnnic.cn.rb +1 -1
  13. data/lib/whois/record/parser/whois.crsnic.net.rb +1 -1
  14. data/lib/whois/record/parser/whois.denic.de.rb +1 -1
  15. data/lib/whois/record/parser/whois.dns.hr.rb +2 -2
  16. data/lib/whois/record/parser/whois.domainregistry.ie.rb +77 -21
  17. data/lib/whois/record/parser/whois.domainregistry.my.rb +5 -8
  18. data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
  19. data/lib/whois/record/parser/whois.enom.com.rb +124 -0
  20. data/lib/whois/record/parser/whois.fi.rb +1 -1
  21. data/lib/whois/record/parser/whois.iana.org.rb +1 -1
  22. data/lib/whois/record/parser/whois.nc.rb +2 -2
  23. data/lib/whois/record/parser/whois.nic.cc.rb +1 -1
  24. data/lib/whois/record/parser/whois.nic.hu.rb +1 -1
  25. data/lib/whois/record/parser/whois.nic.it.rb +1 -1
  26. data/lib/whois/record/parser/whois.nic.lk.rb +1 -1
  27. data/lib/whois/record/parser/whois.nic.tv.rb +1 -1
  28. data/lib/whois/record/parser/whois.registry.qa.rb +1 -1
  29. data/lib/whois/record/parser/whois.rnids.rs.rb +4 -4
  30. data/lib/whois/record/parser/whois.smallregistry.net.rb +1 -1
  31. data/lib/whois/record/parser/whois.tld.ee.rb +1 -1
  32. data/lib/whois/record/parser/whois.ua.rb +1 -1
  33. data/lib/whois/record/scanners/afilias.rb +60 -0
  34. data/lib/whois/record/scanners/ast.rb +67 -0
  35. data/lib/whois/record/scanners/base.rb +102 -0
  36. data/lib/whois/record/scanners/iana.rb +101 -0
  37. data/lib/whois/record/scanners/verisign.rb +112 -0
  38. data/lib/whois/record/scanners/whois.audns.net.au.rb +39 -0
  39. data/lib/whois/record/scanners/whois.biz.rb +47 -0
  40. data/lib/whois/record/scanners/whois.cctld.by.rb +46 -0
  41. data/lib/whois/record/scanners/whois.centralnic.com.rb +46 -0
  42. data/lib/whois/record/scanners/whois.cira.ca.rb +87 -0
  43. data/lib/whois/record/scanners/whois.cnnic.cn.rb +44 -0
  44. data/lib/whois/record/scanners/whois.denic.de.rb +122 -0
  45. data/lib/whois/record/scanners/whois.dns.hr.rb +39 -0
  46. data/lib/whois/record/scanners/whois.domainregistry.ie.rb +50 -0
  47. data/lib/whois/record/scanners/whois.nc.rb +46 -0
  48. data/lib/whois/record/scanners/whois.nic.hu.rb +178 -0
  49. data/lib/whois/record/scanners/whois.nic.it.rb +104 -0
  50. data/lib/whois/record/scanners/whois.registry.qa.rb +39 -0
  51. data/lib/whois/record/scanners/whois.rnids.rs.rb +75 -0
  52. data/lib/whois/record/scanners/whois.smallregistry.net.rb +61 -0
  53. data/lib/whois/record/scanners/whois.tld.ee.rb +50 -0
  54. data/lib/whois/version.rb +1 -1
  55. data/spec/fixtures/responses/whois.audns.net.au/status_available.expected +33 -0
  56. data/spec/fixtures/responses/whois.audns.net.au/status_registered.expected +53 -0
  57. data/spec/fixtures/responses/whois.cctld.by/status_available.expected +54 -0
  58. data/spec/fixtures/responses/whois.cctld.by/status_available.txt +1 -0
  59. data/spec/fixtures/responses/whois.cctld.by/status_registered.expected +64 -0
  60. data/spec/fixtures/responses/whois.cctld.by/status_registered.txt +11 -0
  61. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.expected → property_status_autorenew_grace.expected} +0 -0
  62. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.txt → property_status_autorenew_grace.txt} +0 -0
  63. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.expected → property_status_available.expected} +0 -0
  64. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.txt → property_status_available.txt} +0 -0
  65. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.expected → property_status_redemption.expected} +0 -0
  66. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.txt → property_status_redemption.txt} +0 -0
  67. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.expected → property_status_registered.expected} +0 -0
  68. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.txt → property_status_registered.txt} +0 -0
  69. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.expected → property_status_tobereleased.expected} +0 -0
  70. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.txt → property_status_tobereleased.txt} +0 -0
  71. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_unavailable.txt → property_status_unavailable.txt} +0 -0
  72. data/spec/fixtures/responses/whois.cira.ca/status_available.expected +64 -0
  73. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_available.txt → status_available.txt} +0 -0
  74. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.expected → status_invalid.expected} +0 -0
  75. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.txt → status_invalid.txt} +0 -0
  76. data/spec/fixtures/responses/whois.cira.ca/status_registered.expected +118 -0
  77. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_registered.txt → status_registered.txt} +11 -10
  78. data/spec/fixtures/responses/whois.domainregistry.ie/status_available.expected +34 -0
  79. data/spec/fixtures/responses/whois.domainregistry.ie/status_available.txt +2 -4
  80. data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.expected +47 -1
  81. data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.txt +5 -6
  82. data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.expected +31 -0
  83. data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.txt +61 -0
  84. data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.expected +15 -0
  85. data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.txt +67 -0
  86. data/spec/fixtures/responses/whois.enom.com/status_registered.expected +97 -0
  87. data/spec/fixtures/responses/whois.enom.com/status_registered.txt +68 -0
  88. data/spec/fixtures/responses/whois.nic.it/status_registered.expected +25 -25
  89. data/spec/whois/record/parser/responses/whois.audns.net.au/status_available_spec.rb +47 -0
  90. data/spec/whois/record/parser/responses/whois.audns.net.au/status_registered_spec.rb +67 -0
  91. data/spec/whois/record/parser/responses/whois.cctld.by/status_available_spec.rb +105 -0
  92. data/spec/whois/record/parser/responses/whois.cctld.by/status_registered_spec.rb +115 -0
  93. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace_spec.rb → property_status_autorenew_grace_spec.rb} +2 -2
  94. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_available_spec.rb → property_status_available_spec.rb} +2 -2
  95. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_redemption_spec.rb → property_status_redemption_spec.rb} +2 -2
  96. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_registered_spec.rb → property_status_registered_spec.rb} +2 -2
  97. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_tobereleased_spec.rb → property_status_tobereleased_spec.rb} +2 -2
  98. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_available_spec.rb → status_available_spec.rb} +45 -2
  99. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_invalid_spec.rb → status_invalid_spec.rb} +2 -2
  100. data/spec/whois/record/parser/responses/whois.cira.ca/status_registered_spec.rb +172 -0
  101. data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_available_spec.rb +48 -0
  102. data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_registered_spec.rb +61 -1
  103. data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_almost_empty_spec.rb +60 -0
  104. data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_long_address_spec.rb +42 -0
  105. data/spec/whois/record/parser/responses/whois.enom.com/status_registered_spec.rb +140 -0
  106. data/spec/whois/record/parser/responses/whois.nic.it/status_registered_spec.rb +25 -25
  107. data/whois.gemspec +8 -7
  108. metadata +101 -61
  109. data/lib/whois/record/parser/scanners/afilias.rb +0 -66
  110. data/lib/whois/record/parser/scanners/ast.rb +0 -69
  111. data/lib/whois/record/parser/scanners/base.rb +0 -85
  112. data/lib/whois/record/parser/scanners/iana.rb +0 -108
  113. data/lib/whois/record/parser/scanners/verisign.rb +0 -122
  114. data/lib/whois/record/parser/scanners/whois.biz.rb +0 -49
  115. data/lib/whois/record/parser/scanners/whois.centralnic.com.rb +0 -52
  116. data/lib/whois/record/parser/scanners/whois.cnnic.cn.rb +0 -46
  117. data/lib/whois/record/parser/scanners/whois.denic.de.rb +0 -124
  118. data/lib/whois/record/parser/scanners/whois.dns.hr.rb +0 -41
  119. data/lib/whois/record/parser/scanners/whois.nc.rb +0 -48
  120. data/lib/whois/record/parser/scanners/whois.nic.hu.rb +0 -180
  121. data/lib/whois/record/parser/scanners/whois.nic.it.rb +0 -111
  122. data/lib/whois/record/parser/scanners/whois.registry.qa.rb +0 -41
  123. data/lib/whois/record/parser/scanners/whois.rnids.rs.rb +0 -78
  124. data/lib/whois/record/parser/scanners/whois.smallregistry.net.rb +0 -62
  125. data/lib/whois/record/parser/scanners/whois.tld.ee.rb +0 -52
  126. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.expected +0 -27
  127. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.txt +0 -9
  128. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.expected +0 -46
  129. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.txt +0 -47
  130. data/spec/fixtures/responses/whois.cira.ca/schema-2/status_available.expected +0 -34
  131. data/spec/fixtures/responses/whois.cira.ca/schema-2/status_registered.expected +0 -48
  132. data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_available_spec.rb +0 -65
  133. data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_registered_spec.rb +0 -84
  134. data/spec/whois/record/parser/responses/whois.cira.ca/schema-2/status_registered_spec.rb +0 -89
@@ -1,3 +1,21 @@
1
+ #disclaimer
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+
5
+ #domain
6
+ should: %s == "google.com.au"
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_url
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_whois
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
1
19
  #status
2
20
  should: %s == ["ok"]
3
21
 
@@ -19,6 +37,41 @@
19
37
  should: %s raise_error(Whois::PropertyNotSupported)
20
38
 
21
39
 
40
+ #registrar
41
+ should: %s CLASS(registrar)
42
+ should: %s.id == "TPP Internet"
43
+ should: %s.name == "TPP Internet"
44
+ should: %s.organization == nil
45
+ should: %s.url == nil
46
+
47
+ #registrant_contacts
48
+ should: %s CLASS(array)
49
+ should: %s SIZE(1)
50
+ should: %s[0] CLASS(contact)
51
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
52
+ should: %s[0].id == "TPP139202-R"
53
+ should: %s[0].name == "Domain Admin"
54
+ should: %s[0].organization == "Google INC"
55
+ should: %s[0].address == nil
56
+ should: %s[0].city == nil
57
+ should: %s[0].zip == nil
58
+ should: %s[0].state == nil
59
+ should: %s[0].country_code == nil
60
+ should: %s[0].created_on == nil
61
+ should: %s[0].updated_on == nil
62
+
63
+ #admin_contacts
64
+ should: %s raise_error(Whois::PropertyNotSupported)
65
+
66
+ #technical_contacts
67
+ should: %s CLASS(array)
68
+ should: %s SIZE(1)
69
+ should: %s[0] CLASS(contact)
70
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
71
+ should: %s[0].id == "TPP139936-C"
72
+ should: %s[0].name == "Domain Admin"
73
+
74
+
22
75
  #nameservers
23
76
  should: %s CLASS(array)
24
77
  should: %s SIZE(4)
@@ -0,0 +1,54 @@
1
+ #disclaimer
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+
5
+ #domain
6
+ should: %s == nil
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
19
+ #status
20
+ should: %s == :available
21
+
22
+ #available?
23
+ should: %s == true
24
+
25
+ #registered?
26
+ should: %s == false
27
+
28
+
29
+ #created_on
30
+ should: %s == nil
31
+
32
+ #updated_on
33
+ should: %s == nil
34
+
35
+ #expires_on
36
+ should: %s == nil
37
+
38
+
39
+ #registrar
40
+ should: %s == nil
41
+
42
+ #registrant_contacts
43
+ should: %s raise_error(Whois::PropertyNotSupported)
44
+
45
+ #admin_contacts
46
+ should: %s raise_error(Whois::PropertyNotSupported)
47
+
48
+ #technical_contacts
49
+ should: %s raise_error(Whois::PropertyNotSupported)
50
+
51
+
52
+ #nameservers
53
+ should: %s CLASS(array)
54
+ should: %s == []
@@ -0,0 +1 @@
1
+ Object does not exist
@@ -0,0 +1,64 @@
1
+ #disclaimer
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+
5
+ #domain
6
+ should: %s == "active.by"
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
19
+ #status
20
+ should: %s == :registered
21
+
22
+ #available?
23
+ should: %s == false
24
+
25
+ #registered?
26
+ should: %s == true
27
+
28
+
29
+ #created_on
30
+ should: %s CLASS(time)
31
+ should: %s == Time.parse("2003-02-02 15:50:44 UTC")
32
+
33
+ #updated_on
34
+ should: %s CLASS(time)
35
+ should: %s == Time.parse("2010-12-20 08:36:13 UTC")
36
+
37
+ #expires_on
38
+ should: %s CLASS(time)
39
+ should: %s == Time.parse("2013-12-21 10:07:40 UTC")
40
+
41
+
42
+ #registrar
43
+ should: %s CLASS(registrar)
44
+ should: %s.id == "Active Technologies LLC"
45
+ should: %s.name == "Active Technologies LLC"
46
+ should: %s.organization == "Active Technologies LLC"
47
+
48
+ #registrant_contacts
49
+ should: %s raise_error(Whois::PropertyNotSupported)
50
+
51
+ #admin_contacts
52
+ should: %s raise_error(Whois::PropertyNotSupported)
53
+
54
+ #technical_contacts
55
+ should: %s raise_error(Whois::PropertyNotSupported)
56
+
57
+
58
+ #nameservers
59
+ should: %s CLASS(array)
60
+ should: %s SIZE(2)
61
+ should: %s[0] CLASS(nameserver)
62
+ should: %s[0].name == "ns1.activeby.net"
63
+ should: %s[1] CLASS(nameserver)
64
+ should: %s[1].name == "ns2.activeby.net"
@@ -0,0 +1,11 @@
1
+ Domain Name: active.by
2
+ Domain Name Administrator: HIDDEN! Details are available at http://www.cctld.by/whois
3
+ Registrar: Active Technologies LLC
4
+ Name Server: ns1.activeby.net
5
+ Name Server: ns2.activeby.net
6
+ Updated Date: 2010-12-20T08:36:13.0Z
7
+ Creation Date: 2003-02-02T15:50:44.0Z
8
+ Expiration Date: 2013-12-21T10:07:40.0Z
9
+
10
+ -------------------------------------------
11
+ Service provided by Reliable Software, Inc.
@@ -0,0 +1,64 @@
1
+ #disclaimer
2
+ should: %s == "Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal\nNotice, available at http://www.cira.ca/legal-notice/?lang=en\n\n(c) 2010 Canadian Internet Registration Authority, (http://www.cira.ca/)"
3
+
4
+
5
+ #domain
6
+ should: %s == "u34jedzcq.ca"
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
19
+ #status
20
+ should: %s == :available
21
+
22
+ #available?
23
+ should: %s == true
24
+
25
+ #registered?
26
+ should: %s == false
27
+
28
+
29
+ #created_on
30
+ should: %s == nil
31
+
32
+ #updated_on
33
+ should: %s == nil
34
+
35
+ #expires_on
36
+ should: %s == nil
37
+
38
+
39
+ #registrar
40
+ should: %s == nil
41
+
42
+ #registrant_contacts
43
+ should: %s CLASS(array)
44
+ should: %s == []
45
+
46
+ #admin_contacts
47
+ should: %s CLASS(array)
48
+ should: %s == []
49
+
50
+ #technical_contacts
51
+ should: %s CLASS(array)
52
+ should: %s == []
53
+
54
+
55
+ #nameservers
56
+ should: %s CLASS(array)
57
+ should: %s == []
58
+
59
+
60
+ #valid?
61
+ should: %s == true
62
+
63
+ #invalid?
64
+ should: %s == false
@@ -0,0 +1,118 @@
1
+ #disclaimer
2
+ should: %s == "Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal\nNotice, available at http://www.cira.ca/legal-notice/?lang=en\n\n(c) 2010 Canadian Internet Registration Authority, (http://www.cira.ca/)"
3
+
4
+
5
+ #domain
6
+ should: %s == "google.ca"
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
19
+ #status
20
+ should: %s == :registered
21
+
22
+ #available?
23
+ should: %s == false
24
+
25
+ #registered?
26
+ should: %s == true
27
+
28
+
29
+ #created_on
30
+ should: %s CLASS(time)
31
+ should: %s == Time.parse("2000-10-03 00:00:00")
32
+
33
+ #updated_on
34
+ should: %s CLASS(time)
35
+ should: %s == Time.parse("2012-03-27 00:00:00")
36
+
37
+ #expires_on
38
+ should: %s CLASS(time)
39
+ should: %s == Time.parse("2013-04-28 00:00:00")
40
+
41
+
42
+ #registrar
43
+ should: %s CLASS(registrar)
44
+ should: %s.id == "70"
45
+ should: %s.name == "Webnames.ca Inc."
46
+ should: %s.organization == "Webnames.ca Inc."
47
+ should: %s.url == nil
48
+
49
+ #registrant_contacts
50
+ should: %s CLASS(array)
51
+ should: %s SIZE(1)
52
+ should: %s[0] CLASS(contact)
53
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
54
+ should: %s[0].id == nil
55
+ should: %s[0].name == "Google Inc."
56
+ should: %s[0].organization == nil
57
+ should: %s[0].address == nil
58
+ should: %s[0].city == nil
59
+ should: %s[0].zip == nil
60
+ should: %s[0].state == nil
61
+ should: %s[0].country_code == nil
62
+ should: %s[0].phone == nil
63
+ should: %s[0].fax == nil
64
+ should: %s[0].email == nil
65
+
66
+ #admin_contacts
67
+ should: %s CLASS(array)
68
+ should: %s SIZE(1)
69
+ should: %s[0] CLASS(contact)
70
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
71
+ should: %s[0].id == nil
72
+ should: %s[0].name == "Christina Chiou"
73
+ should: %s[0].organization == nil
74
+ should: %s[0].address == "130 King St. W., Suite 1800,\nToronto ON M5X1E3 Canada"
75
+ should: %s[0].city == nil
76
+ should: %s[0].zip == nil
77
+ should: %s[0].state == nil
78
+ should: %s[0].country_code == nil
79
+ should: %s[0].phone == "+1.4168653361x"
80
+ should: %s[0].fax == "+1.4169456616"
81
+ should: %s[0].email == "dns-admin@google.com"
82
+
83
+ #technical_contacts
84
+ should: %s CLASS(array)
85
+ should: %s SIZE(1)
86
+ should: %s[0] CLASS(contact)
87
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
88
+ should: %s[0].id == nil
89
+ should: %s[0].name == "Matt Serlin"
90
+ should: %s[0].organization == nil
91
+ should: %s[0].address == "Domain Provisioning,10400 Overland Rd. PMB 155\nBoise ID 83709 United States"
92
+ should: %s[0].city == nil
93
+ should: %s[0].zip == nil
94
+ should: %s[0].state == nil
95
+ should: %s[0].country_code == nil
96
+ should: %s[0].phone == "+1.2083895740x"
97
+ should: %s[0].fax == "+1.2083895771"
98
+ should: %s[0].email == "ccops@markmonitor.com"
99
+
100
+
101
+ #nameservers
102
+ should: %s CLASS(array)
103
+ should: %s SIZE(4)
104
+ should: %s[0] CLASS(nameserver)
105
+ should: %s[0].name == "ns1.google.com"
106
+ should: %s[1] CLASS(nameserver)
107
+ should: %s[1].name == "ns2.google.com"
108
+ should: %s[2] CLASS(nameserver)
109
+ should: %s[2].name == "ns3.google.com"
110
+ should: %s[3] CLASS(nameserver)
111
+ should: %s[3].name == "ns4.google.com"
112
+
113
+
114
+ #valid?
115
+ should: %s == true
116
+
117
+ #invalid?
118
+ should: %s == false
@@ -1,7 +1,8 @@
1
1
  Domain name: google.ca
2
2
  Domain status: registered
3
3
  Creation date: 2000/10/03
4
- Expiry date: 2011/04/28
4
+ Expiry date: 2013/04/28
5
+ Updated date: 2012/03/27
5
6
 
6
7
  Registrar:
7
8
  Name: Webnames.ca Inc.
@@ -11,19 +12,19 @@ Registrant:
11
12
  Name: Google Inc.
12
13
 
13
14
  Administrative contact:
14
- Name: Rose Hagan
15
- Postal address: 130 King St. W., Suite 1800
16
- Toronto ON M5X 1E3 Canada
17
- Phone: 1 416 8653361
18
- Fax: 1 416 9456616
15
+ Name: Christina Chiou
16
+ Postal address: 130 King St. W., Suite 1800,
17
+ Toronto ON M5X1E3 Canada
18
+ Phone: +1.4168653361x
19
+ Fax: +1.4169456616
19
20
  Email: dns-admin@google.com
20
21
 
21
22
  Technical contact:
22
23
  Name: Matt Serlin
23
- Postal address: Domain Provisioning,10400 Overland Rd. PMB 155
24
+ Postal address: Domain Provisioning,10400 Overland Rd. PMB 155
24
25
  Boise ID 83709 United States
25
- Phone: 1.2083895740
26
- Fax: 1.2083895771
26
+ Phone: +1.2083895740x
27
+ Fax: +1.2083895771
27
28
  Email: ccops@markmonitor.com
28
29
 
29
30
  Name servers:
@@ -32,7 +33,7 @@ Name servers:
32
33
  ns3.google.com
33
34
  ns4.google.com
34
35
 
35
- % WHOIS look-up made at 2010-10-13 18:32:42 (GMT)
36
+ % WHOIS look-up made at 2012-03-28 14:44:21 (GMT)
36
37
  %
37
38
  % Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal
38
39
  % Notice, available at http://www.cira.ca/legal-notice/?lang=en
@@ -1,3 +1,21 @@
1
+ #disclaimer
2
+ should: %s == "Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96\nDo not remove this notice"
3
+
4
+
5
+ #domain
6
+ should: %s == nil
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
1
19
  #status
2
20
  should: %s == :available
3
21
 
@@ -18,6 +36,22 @@
18
36
  should: %s == nil
19
37
 
20
38
 
39
+ #registrar
40
+ should: %s raise_error(Whois::PropertyNotSupported)
41
+
42
+ #registrant_contacts
43
+ should: %s CLASS(array)
44
+ should: %s == []
45
+
46
+ #admin_contacts
47
+ should: %s CLASS(array)
48
+ should: %s == []
49
+
50
+ #technical_contacts
51
+ should: %s CLASS(array)
52
+ should: %s == []
53
+
54
+
21
55
  #nameservers
22
56
  should: %s CLASS(array)
23
57
  should: %s == []
@@ -1,7 +1,5 @@
1
1
 
2
- % Rights restricted by copyright; http://www.domainregistry.ie/copyright.html
2
+ % Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96
3
3
  % Do not remove this notice
4
4
 
5
- % Not Registered - The domain you have requested is not a registered .ie domain name.
6
-
7
-
5
+ % Not Registered - The domain you have requested (u34jedzcq.ie) is not a registered .ie domain name.
@@ -1,3 +1,21 @@
1
+ #disclaimer
2
+ should: %s == "Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96\nDo not remove this notice"
3
+
4
+
5
+ #domain
6
+ should: %s == "google.ie"
7
+
8
+ #domain_id
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+
12
+ #referral_whois
13
+ should: %s raise_error(Whois::PropertyNotSupported)
14
+
15
+ #referral_url
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+
1
19
  #status
2
20
  should: %s == :registered
3
21
 
@@ -16,7 +34,35 @@
16
34
 
17
35
  #expires_on
18
36
  should: %s CLASS(time)
19
- should: %s == Time.parse("2010-03-21")
37
+ should: %s == Time.parse("2013-03-21")
38
+
39
+
40
+ #registrar
41
+ should: %s raise_error(Whois::PropertyNotSupported)
42
+
43
+ #registrant_contacts
44
+ should: %s CLASS(array)
45
+ should: %s SIZE(1)
46
+ should: %s[0] CLASS(contact)
47
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
48
+ should: %s[0].id == nil
49
+ should: %s[0].name == "Google, Inc"
50
+
51
+ #admin_contacts
52
+ should: %s CLASS(array)
53
+ should: %s SIZE(1)
54
+ should: %s[0] CLASS(contact)
55
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
56
+ should: %s[0].id == "KR59-IEDR"
57
+ should: %s[0].name == "Kulpreet Rana"
58
+
59
+ #technical_contacts
60
+ should: %s CLASS(array)
61
+ should: %s SIZE(1)
62
+ should: %s[0] CLASS(contact)
63
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
64
+ should: %s[0].id == "CCA7-IEDR"
65
+ should: %s[0].name == "eMarkmonitor Inc"
20
66
 
21
67
 
22
68
  #nameservers
@@ -1,5 +1,5 @@
1
1
 
2
- % Rights restricted by copyright; http://www.domainregistry.ie/copyright.html
2
+ % Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96
3
3
  % Do not remove this notice
4
4
 
5
5
  domain: google.ie
@@ -8,11 +8,11 @@ descr: Body Corporate (Ltd,PLC,Company)
8
8
  descr: Registered Trade Mark Name
9
9
  admin-c: KR59-IEDR
10
10
  tech-c: CCA7-IEDR
11
- renewal: 21-March-2010
11
+ renewal: 21-March-2013
12
12
  status: Active
13
- nserver: ns1.google.com
14
- nserver: ns2.google.com
15
- nserver: ns3.google.com
13
+ nserver: ns1.google.com
14
+ nserver: ns2.google.com
15
+ nserver: ns3.google.com
16
16
  source: IEDR
17
17
 
18
18
  person: Kulpreet Rana
@@ -23,4 +23,3 @@ person: eMarkmonitor Inc
23
23
  nic-hdl: CCA7-IEDR
24
24
  source: IEDR
25
25
 
26
-
@@ -0,0 +1,31 @@
1
+ #registrant_contacts
2
+ should: %s CLASS(array)
3
+ should: %s SIZE(1)
4
+ should: %s[0] CLASS(contact)
5
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
6
+ should: %s[0].name == "Tony Kerr"
7
+ should: %s[0].organization == ""
8
+ should: %s[0].address == ""
9
+ should: %s[0].city == ""
10
+ should: %s[0].zip == ""
11
+ should: %s[0].state == ""
12
+ should: %s[0].country_code == "US"
13
+ should: %s[0].phone == ""
14
+ should: %s[0].fax == ""
15
+ should: %s[0].email == ""
16
+
17
+ #technical_contacts
18
+ should: %s CLASS(array)
19
+ should: %s SIZE(1)
20
+ should: %s[0] CLASS(contact)
21
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
22
+ should: %s[0].name == "Tony Kerr"
23
+ should: %s[0].organization == ""
24
+ should: %s[0].address == ""
25
+ should: %s[0].city == ""
26
+ should: %s[0].zip == ""
27
+ should: %s[0].state == ""
28
+ should: %s[0].country_code == "US"
29
+ should: %s[0].phone == "+1."
30
+ should: %s[0].fax == ""
31
+ should: %s[0].email == "tkerr@sportimeny.com"