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
@@ -0,0 +1,61 @@
1
+ =-=-=-=
2
+ Visit AboutUs.org for more information about johnmcenroetennisacademy.com
3
+ <a href="http://www.aboutus.org/johnmcenroetennisacademy.com">AboutUs: johnmcenroetennisacademy.com</a>
4
+
5
+
6
+ Domain name: johnmcenroetennisacademy.com
7
+
8
+ Registrant Contact:
9
+
10
+ Tony Kerr ()
11
+
12
+ Fax:
13
+ ,
14
+ US
15
+
16
+ Administrative Contact:
17
+
18
+ Tony Kerr (tkerr@sportimeny.com)
19
+ +1.
20
+ Fax:
21
+ ,
22
+ US
23
+
24
+ Technical Contact:
25
+
26
+ Tony Kerr (tkerr@sportimeny.com)
27
+ +1.
28
+ Fax:
29
+ ,
30
+ US
31
+
32
+ Status: Locked
33
+
34
+ Name Servers:
35
+ ns1.saturn5.net
36
+ ns2.saturn5.net
37
+
38
+ Creation date: 29 Apr 2010 17:18:00
39
+ Expiration date: 29 Apr 2020 12:18:00
40
+
41
+
42
+
43
+ Get Noticed on the Internet! Increase visibility for this domain name by listing it at www.whoisbusinesslistings.com
44
+ =-=-=-=
45
+ The data in this whois database is provided to you for information
46
+ purposes only, that is, to assist you in obtaining information about or
47
+ related to a domain name registration record. We make this information
48
+ available "as is," and do not guarantee its accuracy. By submitting a
49
+ whois query, you agree that you will use this data only for lawful
50
+ purposes and that, under no circumstances will you use this data to: (1)
51
+ enable high volume, automated, electronic processes that stress or load
52
+ this whois database system providing you this information; or (2) allow,
53
+ enable, or otherwise support the transmission of mass unsolicited,
54
+ commercial advertising or solicitations via direct mail, electronic
55
+ mail, or by telephone. The compilation, repackaging, dissemination or
56
+ other use of this data is expressly prohibited without prior written
57
+ consent from us.
58
+
59
+ We reserve the right to modify these terms at any time. By submitting
60
+ this query, you agree to abide by these terms.
61
+ Version 6.3 4/3/2002
@@ -0,0 +1,15 @@
1
+ #technical_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_TECHNICAL
6
+ should: %s[0].name == "Matt Barrie"
7
+ should: %s[0].organization == "Freelancer Technology Pty Limited"
8
+ should: %s[0].address == "Suite 501\n35 Lime Street"
9
+ should: %s[0].city == "Sydney"
10
+ should: %s[0].zip == "2000"
11
+ should: %s[0].state == "NSW"
12
+ should: %s[0].country_code == "AU"
13
+ should: %s[0].phone == "+61.292793305"
14
+ should: %s[0].fax == "+61.292793305"
15
+ should: %s[0].email == "noc@freelancer.com"
@@ -0,0 +1,67 @@
1
+ =-=-=-=
2
+ Visit AboutUs.org for more information about freelancer.com
3
+ <a href="http://www.aboutus.org/freelancer.com">AboutUs: freelancer.com</a>
4
+
5
+
6
+ Domain name: freelancer.com
7
+
8
+ Registrant Contact:
9
+ Freelancer Technology Pty Limited
10
+ Matt Barrie ()
11
+
12
+ Fax:
13
+ Suite 501
14
+ 35 Lime Street
15
+ Sydney, NSW 2000
16
+ AU
17
+
18
+ Administrative Contact:
19
+ Freelancer Australia Pty Limited
20
+ Customer Service (customer-support@freelancer.com)
21
+ +61.292793305
22
+ Fax: +61.292793305
23
+ Suite 501
24
+ 35 Lime Street
25
+ Sydney, NSW 2000
26
+ AU
27
+
28
+ Technical Contact:
29
+ Freelancer Technology Pty Limited
30
+ Matt Barrie (noc@freelancer.com)
31
+ +61.292793305
32
+ Fax: +61.292793305
33
+ Suite 501
34
+ 35 Lime Street
35
+ Sydney, NSW 2000
36
+ AU
37
+
38
+ Status: Locked
39
+
40
+ Name Servers:
41
+ DNS1.GETAFREELANCER.COM
42
+ DNS2.GETAFREELANCER.COM
43
+
44
+ Creation date: 18 Aug 1995 04:00:00
45
+ Expiration date: 17 Aug 2015 04:00:00
46
+
47
+
48
+
49
+ Get Noticed on the Internet! Increase visibility for this domain name by listing it at www.whoisbusinesslistings.com
50
+ =-=-=-=
51
+ The data in this whois database is provided to you for information
52
+ purposes only, that is, to assist you in obtaining information about or
53
+ related to a domain name registration record. We make this information
54
+ available "as is," and do not guarantee its accuracy. By submitting a
55
+ whois query, you agree that you will use this data only for lawful
56
+ purposes and that, under no circumstances will you use this data to: (1)
57
+ enable high volume, automated, electronic processes that stress or load
58
+ this whois database system providing you this information; or (2) allow,
59
+ enable, or otherwise support the transmission of mass unsolicited,
60
+ commercial advertising or solicitations via direct mail, electronic
61
+ mail, or by telephone. The compilation, repackaging, dissemination or
62
+ other use of this data is expressly prohibited without prior written
63
+ consent from us.
64
+
65
+ We reserve the right to modify these terms at any time. By submitting
66
+ this query, you agree to abide by these terms.
67
+ Version 6.3 4/3/2002
@@ -0,0 +1,97 @@
1
+ #status
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+ #available?
5
+ should: %s == false
6
+
7
+ #registered?
8
+ should: %s == true
9
+
10
+
11
+ #created_on
12
+ should: %s CLASS(time)
13
+ should: %s == Time.parse("2004-06-16 18:07:25")
14
+
15
+ #updated_on
16
+ should: %s raise_error(Whois::PropertyNotSupported)
17
+
18
+ #expires_on
19
+ should: %s CLASS(time)
20
+ should: %s == Time.parse("2015-06-16 00:00:00")
21
+
22
+
23
+ #registrar
24
+ should: %s CLASS(registrar)
25
+ should: %s.id == nil
26
+ should: %s.name == "eNom Inc."
27
+ should: %s.url == "http://www.enom.com/"
28
+
29
+
30
+ #registrant_contacts
31
+ should: %s CLASS(array)
32
+ should: %s SIZE(1)
33
+ should: %s[0] CLASS(contact)
34
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
35
+ should: %s[0].name == "Host Master"
36
+ should: %s[0].organization == "AdBrite, Inc."
37
+ should: %s[0].address == "731 Market Street, Suite 500"
38
+ should: %s[0].city == "San Francisco"
39
+ should: %s[0].zip == "94103"
40
+ should: %s[0].state == "CA"
41
+ should: %s[0].country_code == "US"
42
+ should: %s[0].phone == ""
43
+ should: %s[0].fax == ""
44
+ should: %s[0].email == ""
45
+
46
+ #admin_contacts
47
+ should: %s CLASS(array)
48
+ should: %s SIZE(1)
49
+ should: %s[0] CLASS(contact)
50
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
51
+ should: %s[0].name == "Host Master"
52
+ should: %s[0].organization == "AdBrite, Inc."
53
+ should: %s[0].address == "731 Market Street, Suite 500"
54
+ should: %s[0].city == "San Francisco"
55
+ should: %s[0].zip == "94103"
56
+ should: %s[0].state == "CA"
57
+ should: %s[0].country_code == "US"
58
+ should: %s[0].phone == "4159750916"
59
+ should: %s[0].fax == ""
60
+ should: %s[0].email == "hostmaster@adbrite.com"
61
+
62
+ #technical_contacts
63
+ should: %s CLASS(array)
64
+ should: %s SIZE(1)
65
+ should: %s[0] CLASS(contact)
66
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
67
+ should: %s[0].name == "Host Master"
68
+ should: %s[0].organization == "AdBrite, Inc."
69
+ should: %s[0].address == "731 Market Street, Suite 500"
70
+ should: %s[0].city == "San Francisco"
71
+ should: %s[0].zip == "94103"
72
+ should: %s[0].state == "CA"
73
+ should: %s[0].country_code == "US"
74
+ should: %s[0].phone == "4159750916"
75
+ should: %s[0].fax == ""
76
+ should: %s[0].email == "hostmaster@adbrite.com"
77
+
78
+
79
+ #nameservers
80
+ should: %s CLASS(array)
81
+ should: %s SIZE(8)
82
+ should: %s[0] CLASS(nameserver)
83
+ should: %s[0].name == "asia3.akam.net"
84
+ should: %s[1] CLASS(nameserver)
85
+ should: %s[1].name == "aus1.akam.net"
86
+ should: %s[2] CLASS(nameserver)
87
+ should: %s[2].name == "eur1.akam.net"
88
+ should: %s[3] CLASS(nameserver)
89
+ should: %s[3].name == "eur2.akam.net"
90
+ should: %s[4] CLASS(nameserver)
91
+ should: %s[4].name == "ns1-105.akam.net"
92
+ should: %s[5] CLASS(nameserver)
93
+ should: %s[5].name == "ns1-232.akam.net"
94
+ should: %s[6] CLASS(nameserver)
95
+ should: %s[6].name == "usc2.akam.net"
96
+ should: %s[7] CLASS(nameserver)
97
+ should: %s[7].name == "usw6.akam.net"
@@ -0,0 +1,68 @@
1
+ =-=-=-=
2
+
3
+
4
+ Domain name: adbrite.com
5
+
6
+ Registrant Contact:
7
+ AdBrite, Inc.
8
+ Host Master ()
9
+
10
+ Fax:
11
+ 731 Market Street, Suite 500
12
+ San Francisco, CA 94103
13
+ US
14
+
15
+ Administrative Contact:
16
+ AdBrite, Inc.
17
+ Host Master (hostmaster@adbrite.com)
18
+ 4159750916
19
+ Fax:
20
+ 731 Market Street, Suite 500
21
+ San Francisco, CA 94103
22
+ US
23
+
24
+ Technical Contact:
25
+ AdBrite, Inc.
26
+ Host Master (hostmaster@adbrite.com)
27
+ 4159750916
28
+ Fax:
29
+ 731 Market Street, Suite 500
30
+ San Francisco, CA 94103
31
+ US
32
+
33
+ Status: Active
34
+
35
+ Name Servers:
36
+ asia3.akam.net
37
+ aus1.akam.net
38
+ eur1.akam.net
39
+ eur2.akam.net
40
+ ns1-105.akam.net
41
+ ns1-232.akam.net
42
+ usc2.akam.net
43
+ usw6.akam.net
44
+
45
+ Creation date: 16 Jun 2004 18:07:25
46
+ Expiration date: 16 Jun 2015 00:00:00
47
+
48
+
49
+
50
+ Get Noticed on the Internet! Increase visibility for this domain name by listing it at www.whoisbusinesslistings.com
51
+ =-=-=-=
52
+ The data in this whois database is provided to you for information
53
+ purposes only, that is, to assist you in obtaining information about or
54
+ related to a domain name registration record. We make this information
55
+ available "as is," and do not guarantee its accuracy. By submitting a
56
+ whois query, you agree that you will use this data only for lawful
57
+ purposes and that, under no circumstances will you use this data to: (1)
58
+ enable high volume, automated, electronic processes that stress or load
59
+ this whois database system providing you this information; or (2) allow,
60
+ enable, or otherwise support the transmission of mass unsolicited,
61
+ commercial advertising or solicitations via direct mail, electronic
62
+ mail, or by telephone. The compilation, repackaging, dissemination or
63
+ other use of this data is expressly prohibited without prior written
64
+ consent from us.
65
+
66
+ We reserve the right to modify these terms at any time. By submitting
67
+ this query, you agree to abide by these terms.
68
+ Version 6.3 4/3/2002
@@ -49,41 +49,41 @@
49
49
  should: %s CLASS(array)
50
50
  should: %s SIZE(1)
51
51
  should: %s[0] CLASS(contact)
52
- should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
53
- should: %s[0].id == "GOOG175-ITNIC"
54
- should: %s[0].name == "Google Ireland Holdings"
55
- should: %s[0].organization == nil
56
- should: %s[0].address == "30 Herbert Street"
57
- should: %s[0].city == "Dublin"
58
- should: %s[0].zip == "2"
59
- should: %s[0].state == "IE"
60
- should: %s[0].country_code == "IE"
61
- should: %s[0].created_on == Time.parse("2008-11-27 16:47:22")
62
- should: %s[0].updated_on == Time.parse("2008-11-27 16:47:22")
52
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
53
+ should: %s[0].id == "GOOG175-ITNIC"
54
+ should: %s[0].name == "Google Ireland Holdings"
55
+ should: %s[0].organization == nil
56
+ should: %s[0].address == "30 Herbert Street"
57
+ should: %s[0].city == "Dublin"
58
+ should: %s[0].zip == "2"
59
+ should: %s[0].state == "IE"
60
+ should: %s[0].country_code == "IE"
61
+ should: %s[0].created_on == Time.parse("2008-11-27 16:47:22")
62
+ should: %s[0].updated_on == Time.parse("2008-11-27 16:47:22")
63
63
 
64
64
  #admin_contacts
65
65
  should: %s CLASS(array)
66
66
  should: %s SIZE(1)
67
67
  should: %s[0] CLASS(contact)
68
- should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
69
- should: %s[0].id == "TT4277-ITNIC"
70
- should: %s[0].name == "Tsao Tu"
71
- should: %s[0].organization == "Tu Tsao"
72
- should: %s[0].address == "30 Herbert Street"
73
- should: %s[0].city == "Dublin"
74
- should: %s[0].zip == "2"
75
- should: %s[0].state == "IE"
76
- should: %s[0].country_code == "IE"
77
- should: %s[0].created_on == Time.parse("2008-11-27 16:47:22")
78
- should: %s[0].updated_on == Time.parse("2008-11-27 16:47:22")
68
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
69
+ should: %s[0].id == "TT4277-ITNIC"
70
+ should: %s[0].name == "Tsao Tu"
71
+ should: %s[0].organization == "Tu Tsao"
72
+ should: %s[0].address == "30 Herbert Street"
73
+ should: %s[0].city == "Dublin"
74
+ should: %s[0].zip == "2"
75
+ should: %s[0].state == "IE"
76
+ should: %s[0].country_code == "IE"
77
+ should: %s[0].created_on == Time.parse("2008-11-27 16:47:22")
78
+ should: %s[0].updated_on == Time.parse("2008-11-27 16:47:22")
79
79
 
80
80
  #technical_contacts
81
81
  should: %s CLASS(array)
82
82
  should: %s SIZE(1)
83
83
  should: %s[0] CLASS(contact)
84
- should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
85
- should: %s[0].id == "TS7016-ITNIC"
86
- should: %s[0].name == "Technical Services"
84
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
85
+ should: %s[0].id == "TS7016-ITNIC"
86
+ should: %s[0].name == "Technical Services"
87
87
 
88
88
 
89
89
  #nameservers
@@ -21,6 +21,31 @@ describe Whois::Record::Parser::WhoisAudnsNetAu, "status_available.expected" do
21
21
  @parser = klass.new(part)
22
22
  end
23
23
 
24
+ describe "#disclaimer" do
25
+ it do
26
+ lambda { @parser.disclaimer }.should raise_error(Whois::PropertyNotSupported)
27
+ end
28
+ end
29
+ describe "#domain" do
30
+ it do
31
+ @parser.domain.should == nil
32
+ end
33
+ end
34
+ describe "#domain_id" do
35
+ it do
36
+ lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
37
+ end
38
+ end
39
+ describe "#referral_url" do
40
+ it do
41
+ lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
42
+ end
43
+ end
44
+ describe "#referral_whois" do
45
+ it do
46
+ lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
47
+ end
48
+ end
24
49
  describe "#status" do
25
50
  it do
26
51
  @parser.status.should == []
@@ -51,6 +76,28 @@ describe Whois::Record::Parser::WhoisAudnsNetAu, "status_available.expected" do
51
76
  lambda { @parser.expires_on }.should raise_error(Whois::PropertyNotSupported)
52
77
  end
53
78
  end
79
+ describe "#registrar" do
80
+ it do
81
+ @parser.registrar.should == nil
82
+ end
83
+ end
84
+ describe "#registrant_contacts" do
85
+ it do
86
+ @parser.registrant_contacts.should be_a(Array)
87
+ @parser.registrant_contacts.should == []
88
+ end
89
+ end
90
+ describe "#admin_contacts" do
91
+ it do
92
+ lambda { @parser.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
93
+ end
94
+ end
95
+ describe "#technical_contacts" do
96
+ it do
97
+ @parser.technical_contacts.should be_a(Array)
98
+ @parser.technical_contacts.should == []
99
+ end
100
+ end
54
101
  describe "#nameservers" do
55
102
  it do
56
103
  @parser.nameservers.should be_a(Array)
@@ -21,6 +21,31 @@ describe Whois::Record::Parser::WhoisAudnsNetAu, "status_registered.expected" do
21
21
  @parser = klass.new(part)
22
22
  end
23
23
 
24
+ describe "#disclaimer" do
25
+ it do
26
+ lambda { @parser.disclaimer }.should raise_error(Whois::PropertyNotSupported)
27
+ end
28
+ end
29
+ describe "#domain" do
30
+ it do
31
+ @parser.domain.should == "google.com.au"
32
+ end
33
+ end
34
+ describe "#domain_id" do
35
+ it do
36
+ lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
37
+ end
38
+ end
39
+ describe "#referral_url" do
40
+ it do
41
+ lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
42
+ end
43
+ end
44
+ describe "#referral_whois" do
45
+ it do
46
+ lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
47
+ end
48
+ end
24
49
  describe "#status" do
25
50
  it do
26
51
  @parser.status.should == ["ok"]
@@ -52,6 +77,48 @@ describe Whois::Record::Parser::WhoisAudnsNetAu, "status_registered.expected" do
52
77
  lambda { @parser.expires_on }.should raise_error(Whois::PropertyNotSupported)
53
78
  end
54
79
  end
80
+ describe "#registrar" do
81
+ it do
82
+ @parser.registrar.should be_a(Whois::Record::Registrar)
83
+ @parser.registrar.id.should == "TPP Internet"
84
+ @parser.registrar.name.should == "TPP Internet"
85
+ @parser.registrar.organization.should == nil
86
+ @parser.registrar.url.should == nil
87
+ end
88
+ end
89
+ describe "#registrant_contacts" do
90
+ it do
91
+ @parser.registrant_contacts.should be_a(Array)
92
+ @parser.registrant_contacts.should have(1).items
93
+ @parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
94
+ @parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
95
+ @parser.registrant_contacts[0].id.should == "TPP139202-R"
96
+ @parser.registrant_contacts[0].name.should == "Domain Admin"
97
+ @parser.registrant_contacts[0].organization.should == "Google INC"
98
+ @parser.registrant_contacts[0].address.should == nil
99
+ @parser.registrant_contacts[0].city.should == nil
100
+ @parser.registrant_contacts[0].zip.should == nil
101
+ @parser.registrant_contacts[0].state.should == nil
102
+ @parser.registrant_contacts[0].country_code.should == nil
103
+ @parser.registrant_contacts[0].created_on.should == nil
104
+ @parser.registrant_contacts[0].updated_on.should == nil
105
+ end
106
+ end
107
+ describe "#admin_contacts" do
108
+ it do
109
+ lambda { @parser.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
110
+ end
111
+ end
112
+ describe "#technical_contacts" do
113
+ it do
114
+ @parser.technical_contacts.should be_a(Array)
115
+ @parser.technical_contacts.should have(1).items
116
+ @parser.technical_contacts[0].should be_a(Whois::Record::Contact)
117
+ @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
118
+ @parser.technical_contacts[0].id.should == "TPP139936-C"
119
+ @parser.technical_contacts[0].name.should == "Domain Admin"
120
+ end
121
+ end
55
122
  describe "#nameservers" do
56
123
  it do
57
124
  @parser.nameservers.should be_a(Array)
@@ -0,0 +1,105 @@
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.cctld.by/status_available.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.cctld.by.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisCctldBy, "status_available.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.cctld.by/status_available.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#disclaimer" do
25
+ it do
26
+ lambda { @parser.disclaimer }.should raise_error(Whois::PropertyNotSupported)
27
+ end
28
+ end
29
+ describe "#domain" do
30
+ it do
31
+ @parser.domain.should == nil
32
+ end
33
+ end
34
+ describe "#domain_id" do
35
+ it do
36
+ lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
37
+ end
38
+ end
39
+ describe "#referral_whois" do
40
+ it do
41
+ lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
42
+ end
43
+ end
44
+ describe "#referral_url" do
45
+ it do
46
+ lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
47
+ end
48
+ end
49
+ describe "#status" do
50
+ it do
51
+ @parser.status.should == :available
52
+ end
53
+ end
54
+ describe "#available?" do
55
+ it do
56
+ @parser.available?.should == true
57
+ end
58
+ end
59
+ describe "#registered?" do
60
+ it do
61
+ @parser.registered?.should == false
62
+ end
63
+ end
64
+ describe "#created_on" do
65
+ it do
66
+ @parser.created_on.should == nil
67
+ end
68
+ end
69
+ describe "#updated_on" do
70
+ it do
71
+ @parser.updated_on.should == nil
72
+ end
73
+ end
74
+ describe "#expires_on" do
75
+ it do
76
+ @parser.expires_on.should == nil
77
+ end
78
+ end
79
+ describe "#registrar" do
80
+ it do
81
+ @parser.registrar.should == nil
82
+ end
83
+ end
84
+ describe "#registrant_contacts" do
85
+ it do
86
+ lambda { @parser.registrant_contacts }.should raise_error(Whois::PropertyNotSupported)
87
+ end
88
+ end
89
+ describe "#admin_contacts" do
90
+ it do
91
+ lambda { @parser.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
92
+ end
93
+ end
94
+ describe "#technical_contacts" do
95
+ it do
96
+ lambda { @parser.technical_contacts }.should raise_error(Whois::PropertyNotSupported)
97
+ end
98
+ end
99
+ describe "#nameservers" do
100
+ it do
101
+ @parser.nameservers.should be_a(Array)
102
+ @parser.nameservers.should == []
103
+ end
104
+ end
105
+ end