whois 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/CHANGELOG.md +11 -0
  2. data/lib/whois/definitions/tlds.rb +1 -0
  3. data/lib/whois/record/parser/whois.ati.tn.rb +1 -1
  4. data/lib/whois/record/parser/whois.godaddy.com.rb +0 -4
  5. data/lib/whois/record/parser/whois.markmonitor.com.rb +0 -4
  6. data/lib/whois/record/parser/whois.networksolutions.com.rb +146 -0
  7. data/lib/whois/record/parser/whois.registry.om.rb +1 -1
  8. data/lib/whois/record/parser/whois.sx.rb +124 -0
  9. data/lib/whois/record/parser/whois.ua.rb +70 -10
  10. data/lib/whois/record/scanners/base.rb +19 -6
  11. data/lib/whois/record/scanners/whois.ati.tn.rb +1 -1
  12. data/lib/whois/record/scanners/whois.registry.om.rb +1 -1
  13. data/lib/whois/record/scanners/whois.rnids.rs.rb +11 -11
  14. data/lib/whois/record/scanners/whois.sx.rb +81 -0
  15. data/lib/whois/version.rb +1 -1
  16. data/spec/fixtures/responses/whois.networksolutions.com/property_contacts_short.expected +47 -0
  17. data/spec/fixtures/responses/whois.networksolutions.com/property_contacts_short.txt +61 -0
  18. data/spec/fixtures/responses/whois.networksolutions.com/status_registered.expected +89 -0
  19. data/spec/fixtures/responses/whois.networksolutions.com/status_registered.txt +65 -0
  20. data/spec/fixtures/responses/whois.sx/status_available.expected +55 -0
  21. data/spec/fixtures/responses/whois.sx/status_available.txt +9 -0
  22. data/spec/fixtures/responses/whois.sx/status_registered.expected +85 -0
  23. data/spec/fixtures/responses/whois.sx/status_registered.txt +21 -0
  24. data/spec/fixtures/responses/whois.ua/property_contacts_multiple.expected +107 -0
  25. data/spec/fixtures/responses/whois.ua/property_contacts_multiple.txt +84 -0
  26. data/spec/fixtures/responses/whois.ua/status_available.expected +30 -1
  27. data/spec/fixtures/responses/whois.ua/status_registered.expected +65 -3
  28. data/spec/fixtures/responses/whois.ua/status_registered.txt +10 -9
  29. data/spec/tlds +1 -0
  30. data/spec/whois/record/parser/responses/whois.net.ua/property_contacts_multiple_spec.rb +157 -0
  31. data/spec/whois/record/parser/responses/whois.net.ua/property_nameservers_uppercase_spec.rb +4 -4
  32. data/spec/whois/record/parser/responses/whois.net.ua/status_available_spec.rb +47 -5
  33. data/spec/whois/record/parser/responses/whois.net.ua/status_registered_spec.rb +82 -7
  34. data/spec/whois/record/parser/responses/whois.networksolutions.com/property_contacts_short_spec.rb +77 -0
  35. data/spec/whois/record/parser/responses/whois.networksolutions.com/status_registered_spec.rb +133 -0
  36. data/spec/whois/record/parser/responses/whois.sx/status_available_spec.rb +106 -0
  37. data/spec/whois/record/parser/responses/whois.sx/status_registered_spec.rb +136 -0
  38. data/spec/whois/record/parser/responses/whois.ua/property_contacts_multiple_spec.rb +157 -0
  39. data/spec/whois/record/parser/responses/whois.ua/status_available_spec.rb +43 -1
  40. data/spec/whois/record/parser/responses/whois.ua/status_registered_spec.rb +78 -3
  41. data/whois.gemspec +4 -4
  42. metadata +22 -3
@@ -0,0 +1,55 @@
1
+ #disclaimer
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+
5
+ #domain
6
+ should: %s == "u34jedzcq.sx"
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
+
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 raise_error(Whois::PropertyNotSupported)
31
+
32
+ #updated_on
33
+ should: %s raise_error(Whois::PropertyNotSupported)
34
+
35
+ #expires_on
36
+ should: %s raise_error(Whois::PropertyNotSupported)
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 raise_error(Whois::PropertyNotSupported)
48
+
49
+ #technical_contacts
50
+ should: %s raise_error(Whois::PropertyNotSupported)
51
+
52
+
53
+ #nameservers
54
+ should: %s CLASS(array)
55
+ should: %s == []
@@ -0,0 +1,9 @@
1
+ [whois.sx]
2
+ %
3
+ % Copyright 2011 SX Registry S.A.
4
+ %
5
+ % WHOIS u34jedzcq
6
+ Domain: u34jedzcq
7
+
8
+ Status: reserved/free (policy pending)
9
+
@@ -0,0 +1,85 @@
1
+ #disclaimer
2
+ should: %s raise_error(Whois::PropertyNotSupported)
3
+
4
+
5
+ #domain
6
+ should: %s == "whois.sx"
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
+
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 raise_error(Whois::PropertyNotSupported)
31
+
32
+ #updated_on
33
+ should: %s raise_error(Whois::PropertyNotSupported)
34
+
35
+ #expires_on
36
+ should: %s raise_error(Whois::PropertyNotSupported)
37
+
38
+
39
+ #registrar
40
+ should: %s CLASS(registrar)
41
+ should: %s.id == nil
42
+ should: %s.name == "SX Registry S.A."
43
+ should: %s.organization == nil
44
+ should: %s.url == "http://registry.sx"
45
+
46
+ #registrant_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_REGISTRANT
51
+ should: %s[0].id == nil
52
+ should: %s[0].name == "SX Registry S.A."
53
+ should: %s[0].organization == nil
54
+ should: %s[0].address == nil
55
+ should: %s[0].city == nil
56
+ should: %s[0].zip == nil
57
+ should: %s[0].state == nil
58
+ should: %s[0].country == nil
59
+ should: %s[0].country_code == nil
60
+ should: %s[0].phone == nil
61
+ should: %s[0].fax == nil
62
+ should: %s[0].email == nil
63
+
64
+ #admin_contacts
65
+ should: %s raise_error(Whois::PropertyNotSupported)
66
+
67
+ #technical_contacts
68
+ should: %s raise_error(Whois::PropertyNotSupported)
69
+
70
+
71
+ #nameservers
72
+ should: %s CLASS(array)
73
+ should: %s SIZE(3)
74
+ should: %s[0] CLASS(nameserver)
75
+ should: %s[0].name == "a.ns.sx"
76
+ should: %s[0].ipv4 == nil
77
+ should: %s[0].ipv6 == nil
78
+ should: %s[1] CLASS(nameserver)
79
+ should: %s[1].name == "b.ns.sx"
80
+ should: %s[1].ipv4 == nil
81
+ should: %s[1].ipv6 == nil
82
+ should: %s[2] CLASS(nameserver)
83
+ should: %s[2].name == "c.ns.sx"
84
+ should: %s[2].ipv4 == nil
85
+ should: %s[2].ipv6 == nil
@@ -0,0 +1,21 @@
1
+ [whois.sx]
2
+ %
3
+ % Copyright 2011 SX Registry S.A.
4
+ %
5
+ % WHOIS whois
6
+ Domain: whois
7
+
8
+ Status: active
9
+
10
+ Registrant:
11
+ SX Registry S.A.
12
+
13
+ Registrar:
14
+ Name: SX Registry S.A.
15
+ Website: http://registry.sx
16
+
17
+ Name servers:
18
+ a.ns.sx
19
+ b.ns.sx
20
+ c.ns.sx
21
+
@@ -0,0 +1,107 @@
1
+ #domain
2
+ should: %s == "kyivstar.ua"
3
+
4
+ #domain_id
5
+ should: %s raise_error(Whois::PropertyNotSupported)
6
+
7
+
8
+ #referral_whois
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+ #referral_url
12
+ should: %s raise_error(Whois::PropertyNotSupported)
13
+
14
+
15
+ #status
16
+ should: %s == :registered
17
+
18
+ #available?
19
+ should: %s == false
20
+
21
+ #registered?
22
+ should: %s == true
23
+
24
+
25
+ #created_on
26
+ should: %s CLASS(time)
27
+ should: %s == Time.parse("2002-09-03 00:00:00")
28
+
29
+ #updated_on
30
+ should: %s CLASS(time)
31
+ should: %s == Time.parse("2010-08-11 15:34:01")
32
+
33
+ #expires_on
34
+ should: %s CLASS(time)
35
+ should: %s == Time.parse("2012-09-03 12:18:52")
36
+
37
+
38
+ #registrar
39
+ should: %s raise_error(Whois::PropertyNotSupported)
40
+
41
+ #registrant_contacts
42
+ should: %s raise_error(Whois::PropertyNotSupported)
43
+
44
+ #admin_contacts
45
+ should: %s CLASS(array)
46
+ should: %s SIZE(1)
47
+ should: %s[0] CLASS(contact)
48
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
49
+ should: %s[0].id == "N/A"
50
+ should: %s[0].name == nil
51
+ should: %s[0].organization == "Kyivstar GSM"
52
+ should: %s[0].address == "Chervonozoryanyi Av., 51"
53
+ should: %s[0].city == "KYIV"
54
+ should: %s[0].zip == "03110"
55
+ should: %s[0].state == nil
56
+ should: %s[0].country == "UA"
57
+ should: %s[0].country_code == nil
58
+ should: %s[0].phone == "+380 (44) 2473939"
59
+ should: %s[0].fax == "+380 (44) 2473954"
60
+ should: %s[0].email == "dnsmaster@kyivstar.net"
61
+ should: %s[0].created_on == nil
62
+ should: %s[0].updated_on == Time.parse("2008-09-02 12:52:47")
63
+
64
+ #technical_contacts
65
+ should: %s CLASS(array)
66
+ should: %s SIZE(2)
67
+ should: %s[0] CLASS(contact)
68
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
69
+ should: %s[0].id == "N/A"
70
+ should: %s[0].name == nil
71
+ should: %s[0].organization == "Kyivstar GSM"
72
+ should: %s[0].address == "Chervonozoryanyi Av., 51"
73
+ should: %s[0].city == "KYIV"
74
+ should: %s[0].zip == "03110"
75
+ should: %s[0].state == nil
76
+ should: %s[0].country == "UA"
77
+ should: %s[0].country_code == nil
78
+ should: %s[0].phone == "+380 (44) 2473939"
79
+ should: %s[0].fax == "+380 (44) 2473954"
80
+ should: %s[0].email == "dnsmaster@kyivstar.net"
81
+ should: %s[0].created_on == nil
82
+ should: %s[0].updated_on == Time.parse("2008-09-02 12:52:47")
83
+ should: %s[1] CLASS(contact)
84
+ should: %s[1].type == Whois::Record::Contact::TYPE_TECHNICAL
85
+ should: %s[1].id == "24361346"
86
+ should: %s[1].name == nil
87
+ should: %s[1].organization == "\"ElVisti Information Center\", LLC\nООО \"Информационный центр \"Электронные вести\"\nТОВ \"ІЦ ЕЛВІСТІ\""
88
+ should: %s[1].address == "а/с, 151"
89
+ should: %s[1].city == "КИЇВ"
90
+ should: %s[1].zip == "03037"
91
+ should: %s[1].state == nil
92
+ should: %s[1].country == "UA"
93
+ should: %s[1].country_code == nil
94
+ should: %s[1].phone == "+38044 239-90-91"
95
+ should: %s[1].fax == nil
96
+ should: %s[1].email == "hostmaster@visti.net"
97
+ should: %s[1].created_on == nil
98
+ should: %s[1].updated_on == Time.parse("2011-12-15 11:33:14")
99
+
100
+
101
+ #nameservers
102
+ should: %s CLASS(array)
103
+ should: %s SIZE(2)
104
+ should: %s[0] CLASS(nameserver)
105
+ should: %s[0].name == "ns2.elvisti.kiev.ua"
106
+ should: %s[1] CLASS(nameserver)
107
+ should: %s[1].name == "ns.kyivstar.net"
@@ -0,0 +1,84 @@
1
+ % request from 194.44.214.138
2
+ % This is the Ukrainian Whois query server #I.
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: kyivstar.ua
12
+ admin-c: KG780-UANIC
13
+ tech-c: KG780-UANIC
14
+ tech-c: EIC-UANIC
15
+ status: OK-UNTIL 20120903121852
16
+ dom-public: NO
17
+ license: 85310
18
+ nserver: ns2.elvisti.kiev.ua
19
+ nserver: ns.kyivstar.net
20
+ mnt-by: EIC-UANIC (ua.visti)
21
+ remark: notify: domain-reg@visti.net
22
+ created: 0-UANIC 20020903000000
23
+ changed: EIC-UANIC 20100811153401
24
+ source: UANIC
25
+
26
+
27
+ % Administrative Contact:
28
+ % ======================
29
+ nic-handle: KG780-UANIC
30
+ organization: Kyivstar GSM
31
+ address: Chervonozoryanyi Av., 51
32
+ address: 03110 KYIV
33
+ address: UA
34
+ fax-no: +380 (44) 2473954
35
+ phone: +380 (44) 2473939
36
+ phone: +380 (67) 2372213
37
+ e-mail: dnsmaster@kyivstar.net
38
+ org-id: N/A
39
+ mnt-by: NONE
40
+ remark: hostmaster@kyivstar.net
41
+ changed: KG780-UANIC 20080902125247
42
+ source: UANIC
43
+
44
+ % Technical Contact:
45
+ % =================
46
+ nic-handle: KG780-UANIC
47
+ organization: Kyivstar GSM
48
+ address: Chervonozoryanyi Av., 51
49
+ address: 03110 KYIV
50
+ address: UA
51
+ fax-no: +380 (44) 2473954
52
+ phone: +380 (44) 2473939
53
+ phone: +380 (67) 2372213
54
+ e-mail: dnsmaster@kyivstar.net
55
+ org-id: N/A
56
+ mnt-by: NONE
57
+ remark: hostmaster@kyivstar.net
58
+ changed: KG780-UANIC 20080902125247
59
+ source: UANIC
60
+
61
+ % Technical Contact:
62
+ % =================
63
+ nic-handle: EIC-UANIC
64
+ organization: "ElVisti Information Center", LLC
65
+ organization: ООО "Информационный центр "Электронные вести"
66
+ organization: ТОВ "ІЦ ЕЛВІСТІ"
67
+ address: а/с, 151
68
+ address: 03037 КИЇВ
69
+ address: UA
70
+ phone: +38044 239-90-91
71
+ e-mail: hostmaster@visti.net
72
+ url: http://www.visti.net/
73
+ org-id: 24361346
74
+ mnt-by: NONE
75
+ changed: EIC-UANIC 20111215113314
76
+ source: UANIC
77
+
78
+
79
+ % % .UA whois
80
+
81
+ % Last update of whois database: 31 May 2012 11:44:08 +0300 (EEST)
82
+
83
+ % Query time: 10 msec
84
+
@@ -1,3 +1,17 @@
1
+ #domain
2
+ should: %s == nil
3
+
4
+ #domain_id
5
+ should: %s raise_error(Whois::PropertyNotSupported)
6
+
7
+
8
+ #referral_whois
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+ #referral_url
12
+ should: %s raise_error(Whois::PropertyNotSupported)
13
+
14
+
1
15
  #status
2
16
  should: %s == :available
3
17
 
@@ -9,7 +23,7 @@
9
23
 
10
24
 
11
25
  #created_on
12
- should: %s raise_error(Whois::PropertyNotSupported)
26
+ should: %s == nil
13
27
 
14
28
  #updated_on
15
29
  should: %s == nil
@@ -18,6 +32,21 @@
18
32
  should: %s == nil
19
33
 
20
34
 
35
+ #registrar
36
+ should: %s raise_error(Whois::PropertyNotSupported)
37
+
38
+ #registrant_contacts
39
+ should: %s raise_error(Whois::PropertyNotSupported)
40
+
41
+ #admin_contacts
42
+ should: %s CLASS(array)
43
+ should: %s == []
44
+
45
+ #technical_contacts
46
+ should: %s CLASS(array)
47
+ should: %s == []
48
+
49
+
21
50
  #nameservers
22
51
  should: %s CLASS(array)
23
52
  should: %s == []
@@ -1,3 +1,17 @@
1
+ #domain
2
+ should: %s == "google.com.ua"
3
+
4
+ #domain_id
5
+ should: %s raise_error(Whois::PropertyNotSupported)
6
+
7
+
8
+ #referral_whois
9
+ should: %s raise_error(Whois::PropertyNotSupported)
10
+
11
+ #referral_url
12
+ should: %s raise_error(Whois::PropertyNotSupported)
13
+
14
+
1
15
  #status
2
16
  should: %s == :registered
3
17
 
@@ -9,15 +23,63 @@
9
23
 
10
24
 
11
25
  #created_on
12
- should: %s raise_error(Whois::PropertyNotSupported)
26
+ should: %s CLASS(time)
27
+ should: %s == Time.parse("2002-12-04 00:00:00")
13
28
 
14
29
  #updated_on
15
30
  should: %s CLASS(time)
16
- should: %s == Time.parse("2010-11-01 17:35:34")
31
+ should: %s == Time.parse("2011-11-04 18:58:42")
17
32
 
18
33
  #expires_on
19
34
  should: %s CLASS(time)
20
- should: %s == Time.parse("2011-12-04 00:00:00")
35
+ should: %s == Time.parse("2012-12-04 00:00:00")
36
+
37
+
38
+ #registrar
39
+ should: %s raise_error(Whois::PropertyNotSupported)
40
+
41
+ #registrant_contacts
42
+ should: %s raise_error(Whois::PropertyNotSupported)
43
+
44
+ #admin_contacts
45
+ should: %s CLASS(array)
46
+ should: %s SIZE(1)
47
+ should: %s[0] CLASS(contact)
48
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
49
+ should: %s[0].id == "N/A"
50
+ should: %s[0].name == nil
51
+ should: %s[0].organization == "Google Inc."
52
+ should: %s[0].address == "1600 Amphitheatre Parkway"
53
+ should: %s[0].city == "Mountain View"
54
+ should: %s[0].zip == "94043"
55
+ should: %s[0].state == "CA"
56
+ should: %s[0].country == "US"
57
+ should: %s[0].country_code == nil
58
+ should: %s[0].phone == "+1 6503300100"
59
+ should: %s[0].fax == "+1 6506188571"
60
+ should: %s[0].email == "dns-admin@google.com"
61
+ should: %s[0].created_on == nil
62
+ should: %s[0].updated_on == Time.parse("2012-02-01 21:09:42")
63
+
64
+ #technical_contacts
65
+ should: %s CLASS(array)
66
+ should: %s SIZE(1)
67
+ should: %s[0] CLASS(contact)
68
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
69
+ should: %s[0].id == "N/A"
70
+ should: %s[0].name == nil
71
+ should: %s[0].organization == "Google Inc."
72
+ should: %s[0].address == "1600 Amphitheatre Parkway"
73
+ should: %s[0].city == "Mountain View"
74
+ should: %s[0].zip == "94043"
75
+ should: %s[0].state == "CA"
76
+ should: %s[0].country == "US"
77
+ should: %s[0].country_code == nil
78
+ should: %s[0].phone == "+1 6503300100"
79
+ should: %s[0].fax == "+1 6506188571"
80
+ should: %s[0].email == "dns-admin@google.com"
81
+ should: %s[0].created_on == nil
82
+ should: %s[0].updated_on == Time.parse("2012-02-01 21:09:42")
21
83
 
22
84
 
23
85
  #nameservers