whois 2.0.6 → 2.0.7

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 (32) hide show
  1. data/CHANGELOG.rdoc +12 -1
  2. data/lib/whois/record/parser/whois.dns.pt.rb +2 -2
  3. data/lib/whois/record/parser/whois.educause.edu.rb +1 -1
  4. data/lib/whois/record/parser/whois.markmonitor.com.rb +7 -4
  5. data/lib/whois/record/parser/whois.sgnic.sg.rb +13 -2
  6. data/lib/whois/version.rb +1 -1
  7. data/spec/fixtures/responses/whois.dns.pt/property_nameservers.expected +11 -0
  8. data/spec/fixtures/responses/whois.dns.pt/property_nameservers.txt +25 -0
  9. data/spec/fixtures/responses/whois.dns.pt/property_nameservers_without_host.expected +11 -0
  10. data/spec/fixtures/responses/whois.dns.pt/property_nameservers_without_host.txt +32 -0
  11. data/spec/fixtures/responses/whois.dns.pt/status_registered.expected +4 -4
  12. data/spec/fixtures/responses/whois.dns.pt/status_registered.txt +25 -32
  13. data/spec/fixtures/responses/whois.educause.edu/properties_updated_on_unknown.expected +2 -0
  14. data/spec/fixtures/responses/whois.educause.edu/properties_updated_on_unknown.txt +64 -0
  15. data/spec/fixtures/responses/whois.markmonitor.com/properties_empty_contacts.expected +17 -0
  16. data/spec/fixtures/responses/whois.markmonitor.com/properties_empty_contacts.txt +65 -0
  17. data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1.expected +11 -0
  18. data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1.txt +98 -0
  19. data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_2.expected +11 -0
  20. data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_2.txt +94 -0
  21. data/spec/fixtures/responses/whois.sgnic.sg/status_registered.expected +1 -1
  22. data/spec/fixtures/responses/whois.sgnic.sg/status_registered.txt +15 -19
  23. data/spec/whois/record/parser/responses/whois.dns.pt/property_nameservers_spec.rb +38 -0
  24. data/spec/whois/record/parser/responses/whois.dns.pt/property_nameservers_without_host_spec.rb +38 -0
  25. data/spec/whois/record/parser/responses/whois.dns.pt/status_registered_spec.rb +4 -4
  26. data/spec/whois/record/parser/responses/whois.educause.edu/properties_updated_on_unknown_spec.rb +29 -0
  27. data/spec/whois/record/parser/responses/whois.markmonitor.com/properties_empty_contacts_spec.rb +50 -0
  28. data/spec/whois/record/parser/responses/whois.sgnic.sg/property_nameservers_schema_1_spec.rb +38 -0
  29. data/spec/whois/record/parser/responses/whois.sgnic.sg/property_nameservers_schema_2_spec.rb +38 -0
  30. data/spec/whois/record/parser/responses/whois.sgnic.sg/status_registered_spec.rb +1 -1
  31. data/whois.gemspec +4 -4
  32. metadata +70 -57
@@ -0,0 +1,11 @@
1
+ #nameservers
2
+ should: %s be_a(Array)
3
+ should: %s have(4).items
4
+ should: %s[0] be_a(_nameserver)
5
+ should: %s[0].name == "ns1.google.com"
6
+ should: %s[1] be_a(_nameserver)
7
+ should: %s[1].name == "ns2.google.com"
8
+ should: %s[2] be_a(_nameserver)
9
+ should: %s[2].name == "ns3.google.com"
10
+ should: %s[3] be_a(_nameserver)
11
+ should: %s[3].name == "ns4.google.com"
@@ -0,0 +1,94 @@
1
+
2
+ ----------------------------------------------------------------------
3
+ SGNIC WHOIS Server
4
+ ----------------------------------------------------------------------
5
+
6
+ The following data is provided for information purposes only.
7
+
8
+ Registrar: MARKMONITOR INC
9
+ Registrant: GOOGLE INC.
10
+
11
+ Domain Name: GOOGLE.SG
12
+ Creation Date: 03-Jan-2005 12:00:00
13
+ Expiration Date: 03-Jan-2012 00:00:00
14
+ Domain Status: OK
15
+ Domain Status: CLIENT UPDATE PROHIBITED
16
+ Domain Status: CLIENT TRANSFER PROHIBITED
17
+ Domain Status: CLIENT DELETE PROHIBITED
18
+
19
+
20
+ Owner/Main Contact:
21
+
22
+ Name: GOOGLE INC. (SGNIC-ORG1113988)
23
+ Registered Address(line1): 1600 AMPHITHEATRE PARKWAY
24
+ Registered Address(line2):
25
+ Registered Address(line3):
26
+ Registered State: CA
27
+ Registered Country: US
28
+ Registered Postalcode: 94043
29
+
30
+
31
+
32
+ Administrative Contact:
33
+
34
+ Name: GOOGLE ASIA PACIFIC PTE LTD (SGNIC-ORG1100431)
35
+ Registered Address(line1): 8 SHENTON WAY
36
+ Registered Address(line2): 38-01/01A
37
+ Registered Address(line3):
38
+ Registered State:
39
+ Registered Country: SG
40
+ Registered Postalcode: 068811
41
+
42
+
43
+
44
+ Technical Contact:
45
+
46
+ Name: GOOGLE INC. (SGNIC-ORG1113988)
47
+ Registered Address(line1): 1600 AMPHITHEATRE PARKWAY
48
+ Registered Address(line2):
49
+ Registered Address(line3):
50
+ Registered State: CA
51
+ Registered Country: US
52
+ Registered Postalcode: 94043
53
+
54
+ Telephone: +1.6502530000
55
+ Facsimile: +1.6502530001
56
+ EMAIL: dns-admin@google.com
57
+
58
+
59
+
60
+ Billing Contact:
61
+
62
+ Name: MARKMONITOR (SGNIC-ORG1082334)
63
+ Registered Address(line1): 10400 OVERLAND RD PMB 155
64
+ Registered Address(line2):
65
+ Registered Address(line3):
66
+ Registered State: ID
67
+ Registered Country: US
68
+ Registered Postalcode: 83709
69
+
70
+
71
+
72
+ Name Servers:
73
+ NS1.GOOGLE.COM NS2.GOOGLE.COM NS3.GOOGLE.COM NS4.GOOGLE.COM
74
+
75
+
76
+
77
+ Note: With immediate effect from 1 Jun 2005 email address and phone numbers for Registrant,
78
+ Administrative Contact and Billing Contact will not be shown in the above WHOIS results.
79
+ This move is in-line with national and global efforts to curb SPAM.
80
+
81
+ Technical Contact details will still be available for troubleshooting of technical problems
82
+ which may be time-sensitive.
83
+
84
+ Any party who has legitimate reason to obtain email address or phone numbers of the domain
85
+ name contacts can either (1) obtain the contacts from the domain name's website (usually by
86
+ prepending 'www.' in front of the domain name or perform an Internet search using the
87
+ organization name or; (2) Request the information from SGNIC via email (dnq@sgnic.sg),
88
+ stating the reasons.
89
+
90
+
91
+
92
+
93
+
94
+
@@ -17,7 +17,7 @@
17
17
 
18
18
  #expires_on
19
19
  should: %s be_a(Time)
20
- should: %s == Time.parse("2011-01-03 00:00:00")
20
+ should: %s == Time.parse("2012-01-03 00:00:00")
21
21
 
22
22
 
23
23
  #nameservers
@@ -10,7 +10,7 @@ Registrant: GOOGLE INC.
10
10
 
11
11
  Domain Name: GOOGLE.SG
12
12
  Creation Date: 03-Jan-2005 12:00:00
13
- Expiration Date: 03-Jan-2011 00:00:00
13
+ Expiration Date: 03-Jan-2012 00:00:00
14
14
  Domain Status: OK
15
15
  Domain Status: CLIENT UPDATE PROHIBITED
16
16
  Domain Status: CLIENT TRANSFER PROHIBITED
@@ -19,7 +19,7 @@ Registrant: GOOGLE INC.
19
19
 
20
20
  Owner/Main Contact:
21
21
 
22
- Name: GOOGLE INC. (SGNIC-ORG1076986)
22
+ Name: GOOGLE INC. (SGNIC-ORG1113988)
23
23
  Registered Address(line1): 1600 AMPHITHEATRE PARKWAY
24
24
  Registered Address(line2):
25
25
  Registered Address(line3):
@@ -31,19 +31,19 @@ Registrant: GOOGLE INC.
31
31
 
32
32
  Administrative Contact:
33
33
 
34
- Name: IP MIRROR PTE. LTD. - SGNIC ORGIP60218 (SGNIC-ORG1076985)
35
- Registered Address(line1): 47 DUXTON ROAD
36
- Registered Address(line2): IP MIRROR TECHHAUS
34
+ Name: GOOGLE ASIA PACIFIC PTE LTD (SGNIC-ORG1100431)
35
+ Registered Address(line1): 8 SHENTON WAY
36
+ Registered Address(line2): 38-01/01A
37
37
  Registered Address(line3):
38
38
  Registered State:
39
39
  Registered Country: SG
40
- Registered Postalcode: 089511
40
+ Registered Postalcode: 068811
41
41
 
42
42
 
43
43
 
44
44
  Technical Contact:
45
45
 
46
- Name: GOOGLE INC. (SGNIC-ORG1076986)
46
+ Name: GOOGLE INC. (SGNIC-ORG1113988)
47
47
  Registered Address(line1): 1600 AMPHITHEATRE PARKWAY
48
48
  Registered Address(line2):
49
49
  Registered Address(line3):
@@ -51,30 +51,26 @@ Registrant: GOOGLE INC.
51
51
  Registered Country: US
52
52
  Registered Postalcode: 94043
53
53
 
54
- Telephone: +1.6503300100
55
- Facsimile: +1.6506181434
54
+ Telephone: +1.6502530000
55
+ Facsimile: +1.6502530001
56
56
  EMAIL: dns-admin@google.com
57
57
 
58
58
 
59
59
 
60
60
  Billing Contact:
61
61
 
62
- Name: MARKMONITOR (SGNIC-ORG1076984)
63
- Registered Address(line1): 391 N. ANCESTOR PLACE
64
- Registered Address(line2): SUITE 150
62
+ Name: MARKMONITOR (SGNIC-ORG1082334)
63
+ Registered Address(line1): 10400 OVERLAND RD PMB 155
64
+ Registered Address(line2):
65
65
  Registered Address(line3):
66
- Registered State: CA
66
+ Registered State: ID
67
67
  Registered Country: US
68
- Registered Postalcode: 83704
68
+ Registered Postalcode: 83709
69
69
 
70
70
 
71
71
 
72
72
  Name Servers:
73
- NS1.GOOGLE.COM
74
- NS2.GOOGLE.COM
75
- NS3.GOOGLE.COM
76
- NS4.GOOGLE.COM
77
-
73
+ NS1.GOOGLE.COM NS2.GOOGLE.COM NS3.GOOGLE.COM NS4.GOOGLE.COM
78
74
 
79
75
 
80
76
 
@@ -0,0 +1,38 @@
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.dns.pt/property_nameservers.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.dns.pt.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisDnsPt, "property_nameservers.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.dns.pt/property_nameservers.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#nameservers" do
25
+ it do
26
+ @parser.nameservers.should be_a(Array)
27
+ @parser.nameservers.should have(4).items
28
+ @parser.nameservers[0].should be_a(_nameserver)
29
+ @parser.nameservers[0].name.should == "ns4.google.com"
30
+ @parser.nameservers[1].should be_a(_nameserver)
31
+ @parser.nameservers[1].name.should == "ns2.google.com"
32
+ @parser.nameservers[2].should be_a(_nameserver)
33
+ @parser.nameservers[2].name.should == "ns1.google.com"
34
+ @parser.nameservers[3].should be_a(_nameserver)
35
+ @parser.nameservers[3].name.should == "ns3.google.com"
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,38 @@
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.dns.pt/property_nameservers_without_host.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.dns.pt.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisDnsPt, "property_nameservers_without_host.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.dns.pt/property_nameservers_without_host.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#nameservers" do
25
+ it do
26
+ @parser.nameservers.should be_a(Array)
27
+ @parser.nameservers.should have(4).items
28
+ @parser.nameservers[0].should be_a(_nameserver)
29
+ @parser.nameservers[0].name.should == "ns2.google.com"
30
+ @parser.nameservers[1].should be_a(_nameserver)
31
+ @parser.nameservers[1].name.should == "ns4.google.com"
32
+ @parser.nameservers[2].should be_a(_nameserver)
33
+ @parser.nameservers[2].name.should == "ns3.google.com"
34
+ @parser.nameservers[3].should be_a(_nameserver)
35
+ @parser.nameservers[3].name.should == "ns1.google.com"
36
+ end
37
+ end
38
+ end
@@ -57,13 +57,13 @@ describe Whois::Record::Parser::WhoisDnsPt, "status_registered.expected" do
57
57
  @parser.nameservers.should be_a(Array)
58
58
  @parser.nameservers.should have(4).items
59
59
  @parser.nameservers[0].should be_a(_nameserver)
60
- @parser.nameservers[0].name.should == "ns2.google.com"
60
+ @parser.nameservers[0].name.should == "ns4.google.com"
61
61
  @parser.nameservers[1].should be_a(_nameserver)
62
- @parser.nameservers[1].name.should == "ns4.google.com"
62
+ @parser.nameservers[1].name.should == "ns2.google.com"
63
63
  @parser.nameservers[2].should be_a(_nameserver)
64
- @parser.nameservers[2].name.should == "ns3.google.com"
64
+ @parser.nameservers[2].name.should == "ns1.google.com"
65
65
  @parser.nameservers[3].should be_a(_nameserver)
66
- @parser.nameservers[3].name.should == "ns1.google.com"
66
+ @parser.nameservers[3].name.should == "ns3.google.com"
67
67
  end
68
68
  end
69
69
  end
@@ -0,0 +1,29 @@
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.educause.edu/properties_updated_on_unknown.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.educause.edu.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisEducauseEdu, "properties_updated_on_unknown.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.educause.edu/properties_updated_on_unknown.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#updated_on" do
25
+ it do
26
+ @parser.updated_on.should == nil
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,50 @@
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.markmonitor.com/properties_empty_contacts.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.markmonitor.com.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisMarkmonitorCom, "properties_empty_contacts.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.markmonitor.com/properties_empty_contacts.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#registrar" do
25
+ it do
26
+ @parser.registrar.should be_a(_registrar)
27
+ @parser.registrar.id.should == nil
28
+ @parser.registrar.name.should == "Markmonitor.com"
29
+ @parser.registrar.url.should == "http://www.markmonitor.com"
30
+ end
31
+ end
32
+ describe "#registrant_contacts" do
33
+ it do
34
+ @parser.registrant_contacts.should be_a(Array)
35
+ @parser.registrant_contacts.should have(0).items
36
+ end
37
+ end
38
+ describe "#admin_contacts" do
39
+ it do
40
+ @parser.admin_contacts.should be_a(Array)
41
+ @parser.admin_contacts.should have(0).items
42
+ end
43
+ end
44
+ describe "#technical_contacts" do
45
+ it do
46
+ @parser.technical_contacts.should be_a(Array)
47
+ @parser.technical_contacts.should have(0).items
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,38 @@
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.sgnic.sg/property_nameservers_schema_1.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.sgnic.sg.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisSgnicSg, "property_nameservers_schema_1.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.sgnic.sg/property_nameservers_schema_1.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#nameservers" do
25
+ it do
26
+ @parser.nameservers.should be_a(Array)
27
+ @parser.nameservers.should have(4).items
28
+ @parser.nameservers[0].should be_a(_nameserver)
29
+ @parser.nameservers[0].name.should == "ns1.google.com"
30
+ @parser.nameservers[1].should be_a(_nameserver)
31
+ @parser.nameservers[1].name.should == "ns2.google.com"
32
+ @parser.nameservers[2].should be_a(_nameserver)
33
+ @parser.nameservers[2].name.should == "ns3.google.com"
34
+ @parser.nameservers[3].should be_a(_nameserver)
35
+ @parser.nameservers[3].name.should == "ns4.google.com"
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,38 @@
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.sgnic.sg/property_nameservers_schema_2.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake genspec:parsers
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.sgnic.sg.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisSgnicSg, "property_nameservers_schema_2.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.sgnic.sg/property_nameservers_schema_2.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#nameservers" do
25
+ it do
26
+ @parser.nameservers.should be_a(Array)
27
+ @parser.nameservers.should have(4).items
28
+ @parser.nameservers[0].should be_a(_nameserver)
29
+ @parser.nameservers[0].name.should == "ns1.google.com"
30
+ @parser.nameservers[1].should be_a(_nameserver)
31
+ @parser.nameservers[1].name.should == "ns2.google.com"
32
+ @parser.nameservers[2].should be_a(_nameserver)
33
+ @parser.nameservers[2].name.should == "ns3.google.com"
34
+ @parser.nameservers[3].should be_a(_nameserver)
35
+ @parser.nameservers[3].name.should == "ns4.google.com"
36
+ end
37
+ end
38
+ end