whois 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.yardopts +1 -1
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +11 -13
  4. data/lib/whois.rb +2 -2
  5. data/lib/whois/errors.rb +1 -1
  6. data/lib/whois/record.rb +49 -43
  7. data/lib/whois/record/parser.rb +102 -102
  8. data/lib/whois/record/parser/base.rb +4 -4
  9. data/lib/whois/record/parser/whois.aero.rb +4 -0
  10. data/lib/whois/record/parser/whois.ati.tn.rb +1 -1
  11. data/lib/whois/record/parser/whois.audns.net.au.rb +1 -1
  12. data/lib/whois/record/parser/whois.cira.ca.rb +1 -1
  13. data/lib/whois/record/parser/whois.dns.hr.rb +1 -1
  14. data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
  15. data/lib/whois/record/parser/whois.enom.com.rb +1 -1
  16. data/lib/whois/record/parser/whois.fi.rb +1 -1
  17. data/lib/whois/record/parser/whois.nc.rb +1 -1
  18. data/lib/whois/record/parser/whois.networksolutions.com.rb +1 -1
  19. data/lib/whois/record/parser/whois.nic.lk.rb +1 -1
  20. data/lib/whois/record/parser/whois.registry.om.rb +1 -1
  21. data/lib/whois/record/parser/whois.registrypro.pro.rb +5 -50
  22. data/lib/whois/record/parser/whois.rnids.rs.rb +1 -1
  23. data/lib/whois/record/parser/whois.sx.rb +1 -1
  24. data/lib/whois/record/parser/whois.ua.rb +2 -2
  25. data/lib/whois/record/scanners/whois.ati.tn.rb +1 -1
  26. data/lib/whois/record/scanners/whois.audns.net.au.rb +1 -1
  27. data/lib/whois/record/scanners/whois.centralnic.com.rb +1 -1
  28. data/lib/whois/record/scanners/whois.cira.ca.rb +1 -1
  29. data/lib/whois/record/scanners/whois.dns.hr.rb +1 -1
  30. data/lib/whois/record/scanners/whois.nc.rb +1 -1
  31. data/lib/whois/record/scanners/whois.registry.om.rb +1 -1
  32. data/lib/whois/record/scanners/whois.rnids.rs.rb +1 -1
  33. data/lib/whois/record/scanners/whois.sx.rb +1 -1
  34. data/lib/whois/server.rb +9 -5
  35. data/lib/whois/server/adapters/base.rb +3 -3
  36. data/lib/whois/version.rb +1 -1
  37. data/spec/fixtures/responses/whois.aero/status_registered.expected +36 -36
  38. data/spec/fixtures/responses/whois.registrypro.pro/status_available.expected +34 -0
  39. data/spec/fixtures/responses/whois.registrypro.pro/status_available.txt +1 -20
  40. data/spec/fixtures/responses/whois.registrypro.pro/status_registered.expected +87 -9
  41. data/spec/fixtures/responses/whois.registrypro.pro/status_registered.txt +94 -55
  42. data/spec/fixtures/responses/whois.ua/property_created_at_outofrange.expected +2 -0
  43. data/spec/fixtures/responses/whois.ua/property_created_at_outofrange.txt +93 -0
  44. data/spec/tlds +1 -1
  45. data/spec/whois/record/parser/responses/whois.aero/status_registered_spec.rb +36 -36
  46. data/spec/whois/record/parser/responses/whois.registrypro.pro/status_available_spec.rb +48 -0
  47. data/spec/whois/record/parser/responses/whois.registrypro.pro/status_registered_spec.rb +101 -9
  48. data/spec/whois/record/parser/responses/whois.ua/property_created_at_outofrange_spec.rb +29 -0
  49. data/spec/whois/record/parser_spec.rb +4 -0
  50. data/spec/whois/server_spec.rb +11 -2
  51. data/whois.gemspec +3 -3
  52. metadata +5 -2
@@ -1,3 +1,21 @@
1
+ #disclaimer
2
+ should: %s == nil
3
+
4
+
5
+ #domain
6
+ should: %s == nil
7
+
8
+ #domain_id
9
+ should: %s == nil
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 == []
3
21
 
@@ -18,6 +36,22 @@
18
36
  should: %s == nil
19
37
 
20
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
+
21
55
  #nameservers
22
56
  should: %s CLASS(array)
23
57
  should: %s == []
@@ -1,20 +1 @@
1
- RegistryPro Whois Terms of Use
2
-
3
- Access to RegistryPro's Whois query database and the data contained therein
4
- is strictly limited to information purposes only and RegistryPro does not
5
- guarantee the accuracy of such data. You agree that you may use this data
6
- only for lawful purposes and that under no circumstances will you use this
7
- data to: (a) allow, enable, or otherwise support the transmission by email,
8
- telephone, or facsimile of mass, unsolicited, commercial advertising or
9
- solicitations to entities other than the data recipient's own existing
10
- customer; or (b) enable high volume, automated, electronic processes that
11
- send queries or data to the systems of RegistryPro or any other Registry
12
- Operator or any ICANN-accredited Registrar, except as reasonably necessary
13
- to register domain names or modify existing registrations. RegistryPro
14
- reserves the right to modify these terms of use at any time at its sole
15
- discretion. Failure to adhere to these terms of use will be cause for
16
- restriction or termination of your access to RegistryPro's Whois database.
17
- By submitting this query, you are agreeing to abide by these terms of use.
18
- All rights reserved. RegistryPro.
19
-
20
- No match
1
+ NOT FOUND
@@ -1,5 +1,23 @@
1
+ #disclaimer
2
+ should: %s == "Access to .PRO REGISTRY WHOIS information is provided to assist persons in determining the contents of a domain name registration record in the .PRO Registry registry database. The data in this record is provided by .PRO Registry for informational purposes only, and .PRO Registry does not guarantee its accuracy. This service is intended only for query-based access. You agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to: (a) allow, enable, or otherwise support the transmission by e-mail, telephone, or facsimile of mass unsolicited, commercial advertising or solicitations to entities other than the data recipient's own existing customers; or (b) enable high volume, automated, electronic processes that send queries or data to the systems of Registry Operator, a Registrar, or Afilias except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. .PRO Registry reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy."
3
+
4
+
5
+ #domain
6
+ should: %s == "registrypro.pro"
7
+
8
+ #domain_id
9
+ should: %s == "D6394-PRO"
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
- should: %s == ["serverDeleteProhibited"]
20
+ should: %s == ["CLIENT TRANSFER PROHIBITED", "DELETE PROHIBITED"]
3
21
 
4
22
  #available?
5
23
  should: %s == false
@@ -10,25 +28,85 @@
10
28
 
11
29
  #created_on
12
30
  should: %s CLASS(time)
13
- should: %s == Time.parse("2004-08-18 06:20:14 UTC")
31
+ should: %s == Time.parse("2004-08-18 00:00:00 UTC")
14
32
 
15
33
  #updated_on
16
34
  should: %s CLASS(time)
17
- should: %s == Time.parse("2009-01-20 16:51:04 UTC")
35
+ should: %s == Time.parse("2012-06-14 21:27:09 UTC")
18
36
 
19
37
  #expires_on
20
38
  should: %s CLASS(time)
21
- should: %s == Time.parse("2017-01-26 06:00:00 UTC")
39
+ should: %s == Time.parse("2017-01-26 00:00:00 UTC")
40
+
41
+
42
+ #registrar
43
+ should: %s CLASS(registrar)
44
+ should: %s.id == "R2338-PRO"
45
+ should: %s.name == "Corporation Service Company dba CSC Corporate Domains, Inc"
46
+ should: %s.organization == "Corporation Service Company dba CSC Corporate Domains, Inc"
47
+
48
+ #registrant_contacts
49
+ should: %s CLASS(array)
50
+ should: %s SIZE(1)
51
+ should: %s[0] CLASS(contact)
52
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
53
+ should: %s[0].id == "RSC-1"
54
+ should: %s[0].name == "Afilias Limited"
55
+ should: %s[0].organization == "Afilias Limited"
56
+ should: %s[0].address == "2 La Touche House\nIFSC"
57
+ should: %s[0].city == "Dublin"
58
+ should: %s[0].zip == "1"
59
+ should: %s[0].state == "IL"
60
+ should: %s[0].country_code == "IE"
61
+ should: %s[0].phone == "+353.14310511"
62
+ should: %s[0].fax == "+353.14310557"
63
+ should: %s[0].email == "domainadmin@afilias.info"
64
+
65
+ #admin_contacts
66
+ should: %s CLASS(array)
67
+ should: %s SIZE(1)
68
+ should: %s[0] CLASS(contact)
69
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
70
+ should: %s[0].id == "RSC-1"
71
+ should: %s[0].name == "Afilias Limited"
72
+ should: %s[0].organization == "Afilias Limited"
73
+ should: %s[0].address == "2 La Touche House\nIFSC"
74
+ should: %s[0].city == "Dublin"
75
+ should: %s[0].zip == "1"
76
+ should: %s[0].state == "IL"
77
+ should: %s[0].country_code == "IE"
78
+ should: %s[0].phone == "+353.14310511"
79
+ should: %s[0].fax == "+353.14310557"
80
+ should: %s[0].email == "domainadmin@afilias.info"
81
+
82
+ #technical_contacts
83
+ should: %s CLASS(array)
84
+ should: %s SIZE(1)
85
+ should: %s[0] CLASS(contact)
86
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
87
+ should: %s[0].id == "RSC-1"
88
+ should: %s[0].name == "Afilias Limited"
89
+ should: %s[0].organization == "Afilias Limited"
90
+ should: %s[0].address == "2 La Touche House\nIFSC"
91
+ should: %s[0].city == "Dublin"
92
+ should: %s[0].zip == "1"
93
+ should: %s[0].state == "IL"
94
+ should: %s[0].country_code == "IE"
95
+ should: %s[0].phone == "+353.14310511"
96
+ should: %s[0].fax == "+353.14310557"
97
+ should: %s[0].email == "domainadmin@afilias.info"
22
98
 
23
99
 
24
100
  #nameservers
25
101
  should: %s CLASS(array)
26
- should: %s SIZE(4)
102
+ should: %s SIZE(5)
27
103
  should: %s[0] CLASS(nameserver)
28
- should: %s[0].name == "a.gtld.pro"
104
+ should: %s[0].name == "ns1.ams1.afilias-nst.info"
29
105
  should: %s[1] CLASS(nameserver)
30
- should: %s[1].name == "b.gtld.pro"
106
+ should: %s[1].name == "ns1.mia1.afilias-nst.info"
31
107
  should: %s[2] CLASS(nameserver)
32
- should: %s[2].name == "c.gtld.pro"
108
+ should: %s[2].name == "ns1.sea1.afilias-nst.info"
33
109
  should: %s[3] CLASS(nameserver)
34
- should: %s[3].name == "d.gtld.pro"
110
+ should: %s[3].name == "ns1.yyz1.afilias-nst.info"
111
+ should: %s[4] CLASS(nameserver)
112
+ should: %s[4].name == "ns1.hkg1.afilias-nst.info"
@@ -1,62 +1,101 @@
1
- RegistryPro Whois Terms of Use
2
-
3
- Access to RegistryPro's Whois query database and the data contained therein
4
- is strictly limited to information purposes only and RegistryPro does not
5
- guarantee the accuracy of such data. You agree that you may use this data
6
- only for lawful purposes and that under no circumstances will you use this
7
- data to: (a) allow, enable, or otherwise support the transmission by email,
8
- telephone, or facsimile of mass, unsolicited, commercial advertising or
9
- solicitations to entities other than the data recipient's own existing
10
- customer; or (b) enable high volume, automated, electronic processes that
11
- send queries or data to the systems of RegistryPro or any other Registry
12
- Operator or any ICANN-accredited Registrar, except as reasonably necessary
13
- to register domain names or modify existing registrations. RegistryPro
14
- reserves the right to modify these terms of use at any time at its sole
15
- discretion. Failure to adhere to these terms of use will be cause for
16
- restriction or termination of your access to RegistryPro's Whois database.
17
- By submitting this query, you are agreeing to abide by these terms of use.
18
- All rights reserved. RegistryPro.
19
-
20
- Domain ID:DN2191-RSC
21
- Domain Name:REGISTRY.PRO
22
- Created On:18-Aug-2004 06:20:14 UTC
23
- Last Updated On:20-Jan-2009 16:51:04 UTC
24
- Expiration Date:26-Jan-2017 06:00:00 UTC
25
- Sponsoring Registrar:internal
26
- Registration Type:SecondLevelResolving
27
- Status:serverDeleteProhibited
1
+ Access to .PRO REGISTRY WHOIS information is provided to assist persons in
2
+ determining the contents of a domain name registration record in the
3
+ .PRO Registry registry database. The data in this record is provided by
4
+ .PRO Registry for informational purposes only, and .PRO Registry does not
5
+ guarantee its accuracy. This service is intended only for query-based
6
+ access. You agree that you will use this data only for lawful purposes
7
+ and that, under no circumstances will you use this data to: (a) allow,
8
+ enable, or otherwise support the transmission by e-mail, telephone, or
9
+ facsimile of mass unsolicited, commercial advertising or solicitations
10
+ to entities other than the data recipient's own existing customers; or
11
+ (b) enable high volume, automated, electronic processes that send
12
+ queries or data to the systems of Registry Operator, a Registrar, or
13
+ Afilias except as reasonably necessary to register domain names or
14
+ modify existing registrations. All rights reserved. .PRO Registry reserves
15
+ the right to modify these terms at any time. By submitting this query,
16
+ you agree to abide by this policy.
17
+
18
+ Domain ID:D6394-PRO
19
+ Domain Name:REGISTRYPRO.PRO
20
+ Created On:18-Aug-2004 00:00:00 UTC
21
+ Last Updated On:14-Jun-2012 21:27:09 UTC
22
+ Expiration Date:26-Jan-2017 00:00:00 UTC
23
+ Sponsoring Registrar:Corporation Service Company dba CSC Corporate Domains, Inc (R2338-PRO)
24
+ Status:CLIENT TRANSFER PROHIBITED
25
+ Status:DELETE PROHIBITED
28
26
  Registrant ID:RSC-1
29
- Registrant Name:RegistryPro
30
- Registrant Organization:RegistryPro
31
- Registrant Street1:425 West Randolph, 8th Floor
32
- Registrant City:Chicago
27
+ Registrant Name:Afilias Limited
28
+ Registrant Organization:Afilias Limited
29
+ Registrant Street1:2 La Touche House
30
+ Registrant Street2:IFSC
31
+ Registrant Street3:
32
+ Registrant City:Dublin
33
33
  Registrant State/Province:IL
34
- Registrant Postal Code:60606
35
- Registrant Country:US
36
- Registrant Phone:+1.3129947652
37
- Registrant Email:support@registrypro.pro
34
+ Registrant Postal Code:1
35
+ Registrant Country:IE
36
+ Registrant Phone:+353.14310511
37
+ Registrant Phone Ext.:
38
+ Registrant FAX:+353.14310557
39
+ Registrant FAX Ext.:
40
+ Registrant Email:domainadmin@afilias.info
38
41
  Admin ID:RSC-1
39
- Admin Name:RegistryPro
40
- Admin Organization:RegistryPro
41
- Admin Street1:425 West Randolph, 8th Floor
42
- Admin City:Chicago
42
+ Admin Name:Afilias Limited
43
+ Admin Organization:Afilias Limited
44
+ Admin Street1:2 La Touche House
45
+ Admin Street2:IFSC
46
+ Admin Street3:
47
+ Admin City:Dublin
43
48
  Admin State/Province:IL
44
- Admin Postal Code:60606
45
- Admin Country:US
46
- Admin Phone:+1.3129947652
47
- Admin Email:support@registrypro.pro
49
+ Admin Postal Code:1
50
+ Admin Country:IE
51
+ Admin Phone:+353.14310511
52
+ Admin Phone Ext.:
53
+ Admin FAX:+353.14310557
54
+ Admin FAX Ext.:
55
+ Admin Email:domainadmin@afilias.info
56
+ Billing ID:RSC-1
57
+ Billing Name:Afilias Limited
58
+ Billing Organization:Afilias Limited
59
+ Billing Street1:2 La Touche House
60
+ Billing Street2:IFSC
61
+ Billing Street3:
62
+ Billing City:Dublin
63
+ Billing State/Province:IL
64
+ Billing Postal Code:1
65
+ Billing Country:IE
66
+ Billing Phone:+353.14310511
67
+ Billing Phone Ext.:
68
+ Billing FAX:+353.14310557
69
+ Billing FAX Ext.:
70
+ Billing Email:domainadmin@afilias.info
48
71
  Tech ID:RSC-1
49
- Tech Name:RegistryPro
50
- Tech Organization:RegistryPro
51
- Tech Street1:425 West Randolph, 8th Floor
52
- Tech City:Chicago
72
+ Tech Name:Afilias Limited
73
+ Tech Organization:Afilias Limited
74
+ Tech Street1:2 La Touche House
75
+ Tech Street2:IFSC
76
+ Tech Street3:
77
+ Tech City:Dublin
53
78
  Tech State/Province:IL
54
- Tech Postal Code:60606
55
- Tech Country:US
56
- Tech Phone:+1.3129947652
57
- Tech Email:support@registrypro.pro
58
- Name Server:A.GTLD.PRO
59
- Name Server:B.GTLD.PRO
60
- Name Server:C.GTLD.PRO
61
- Name Server:D.GTLD.PRO
79
+ Tech Postal Code:1
80
+ Tech Country:IE
81
+ Tech Phone:+353.14310511
82
+ Tech Phone Ext.:
83
+ Tech FAX:+353.14310557
84
+ Tech FAX Ext.:
85
+ Tech Email:domainadmin@afilias.info
86
+ Right to Use:
87
+ Name Server:NS1.AMS1.AFILIAS-NST.INFO
88
+ Name Server:NS1.MIA1.AFILIAS-NST.INFO
89
+ Name Server:NS1.SEA1.AFILIAS-NST.INFO
90
+ Name Server:NS1.YYZ1.AFILIAS-NST.INFO
91
+ Name Server:NS1.HKG1.AFILIAS-NST.INFO
92
+ Name Server:
93
+ Name Server:
94
+ Name Server:
95
+ Name Server:
96
+ Name Server:
97
+ Name Server:
98
+ Name Server:
99
+ Name Server:
62
100
 
101
+
@@ -0,0 +1,2 @@
1
+ #created_on
2
+ should: %s == nil
@@ -0,0 +1,93 @@
1
+ % request from 81.253.42.89
2
+ % This is the Ukrainian Whois query server #F.
3
+ % The Whois is subject to Terms of use
4
+ % See https://hostmaster.ua/services/
5
+ %
6
+
7
+
8
+ % % .UA whois
9
+ % Domain Record:
10
+ % =============
11
+ domain: ukraine.com.ua
12
+ admin-c: UKRA-UANIC
13
+ tech-c: UKRA-UANIC
14
+ tech-c: DELTA-UANIC
15
+ status: OK-UNTIL 20130906000000
16
+ dom-public: NO
17
+ nserver: ns1.ukraine.com.ua
18
+ nserver: ns3.ukraine.com.ua
19
+ nserver: ns2.ukraine.com.ua
20
+ mnt-by: DELTA-UANIC (ua.delta)
21
+ remark: Ukraine Hosting Provider
22
+ remark: Kiev, UA
23
+ created: 0-UANIC 00000000000000
24
+ changed: DELTA-UANIC 20120421101933
25
+ source: UANIC
26
+
27
+
28
+ % Glue Record:
29
+ % ===========
30
+ nserver: ns2.ukraine.com.ua
31
+ ip-addr: 31.28.161.37
32
+ ipv6-addr: 2001:67C:2070::2
33
+
34
+ % Glue Record:
35
+ % ===========
36
+ nserver: ns3.ukraine.com.ua
37
+ ip-addr: 46.4.47.124
38
+ ipv6-addr: 2001:67C:2070::3
39
+
40
+ % Glue Record:
41
+ % ===========
42
+ nserver: ns1.ukraine.com.ua
43
+ ip-addr: 195.64.184.67
44
+
45
+ % Administrative Contact:
46
+ % ======================
47
+ nic-handle: UKRA-UANIC
48
+ remark: Whois privacy protection service
49
+ remark: http://hostmaster.ua/priv.html
50
+ e-mail: ukra-uanic@priv.uanic.ua
51
+ mnt-by: NONE
52
+ source: UANIC
53
+
54
+ % Technical Contact:
55
+ % =================
56
+ nic-handle: UKRA-UANIC
57
+ remark: Whois privacy protection service
58
+ remark: http://hostmaster.ua/priv.html
59
+ e-mail: ukra-uanic@priv.uanic.ua
60
+ mnt-by: NONE
61
+ source: UANIC
62
+
63
+ % Technical Contact:
64
+ % =================
65
+ nic-handle: DELTA-UANIC
66
+ organization: Delta-X ltd.
67
+ organization: ООО "Дельта-Х"
68
+ organization: ТОВ "Дельта-Х"
69
+ address: PO Box, 65
70
+ address: 03065 KIEV
71
+ address: UA
72
+ address: а/я, 65
73
+ address: 03065 Киев КИЕВ
74
+ address: UA
75
+ address: А/С, 65
76
+ address: 03065 КИЇВ
77
+ address: UA
78
+ fax-no: +380 (44) 3927433
79
+ phone: +380 (44) 3927433
80
+ e-mail: hostmaster@deltahosting.com.ua
81
+ url: http://www.ukraine.com.ua
82
+ org-id: 21460160
83
+ mnt-by: NONE
84
+ changed: DELTA-UANIC 20111227124117
85
+ source: UANIC
86
+
87
+
88
+ % % .UA whois
89
+
90
+ % Last update of whois database: 22 Jun 2012 23:05:03 +0300 (EEST)
91
+
92
+ % Query time: 9 msec
93
+
data/spec/tlds CHANGED
@@ -232,7 +232,7 @@ pn;;;
232
232
  police.uk;;;
233
233
  pr;whois.nic.pr;google.pr;u34jedzcq.pr
234
234
  priv.at;whois.nic.priv.at;nic.priv.at;u34jedzcq.priv.at
235
- pro;whois.registrypro.pro;registry.pro;u34jedzcq.pro
235
+ pro;whois.registrypro.pro;google.pro;u34jedzcq.pro
236
236
  ps;whois.pnina.ps;google.ps;u34jedzcq.ps
237
237
  pt;whois.dns.pt;google.pt;u34jedzcq.pt
238
238
  pw;;;