jm81-whois 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/LICENSE +1020 -1020
- data/README.md +0 -0
- data/Rakefile +2 -0
- data/{ruby-whois.gemspec → jm81-whois.gemspec} +34 -27
- data/lib/whois/domain/aero.rb +16 -16
- data/lib/whois/domain/afilias.rb +15 -15
- data/lib/whois/domain/base.rb +21 -1
- data/lib/whois/domain/cat.rb +19 -19
- data/lib/whois/domain/coop.rb +1 -1
- data/lib/whois/domain/cz.rb +31 -0
- data/lib/whois/domain/educause.rb +42 -42
- data/lib/whois/domain/gov.rb +26 -26
- data/lib/whois/domain/int.rb +23 -32
- data/lib/whois/domain/mobi.rb +15 -15
- data/lib/whois/domain/museum.rb +19 -19
- data/lib/whois/domain/name.rb +22 -22
- data/lib/whois/domain/neustar.rb +0 -0
- data/lib/whois/domain/pro.rb +23 -23
- data/lib/whois/domain/public_interest.rb +14 -14
- data/lib/whois/domain/ru.rb +17 -0
- data/lib/whois/domain/su.rb +17 -0
- data/lib/whois/domain/verisign_grs.rb +63 -29
- data/lib/whois/domain/ws.rb +34 -30
- data/lib/whois/domain.rb +18 -18
- data/lib/whois/version.rb +3 -0
- data/lib/whois.rb +11 -9
- data/test/test_helper.rb +0 -0
- data/test/whois/domain/aero_test.rb +24 -24
- data/test/whois/domain/afilias_test.rb +24 -24
- data/test/whois/domain/cat_test.rb +28 -28
- data/test/whois/domain/coop_test.rb +28 -28
- data/test/whois/domain/educause_test.rb +24 -24
- data/test/whois/domain/gov_test.rb +28 -28
- data/test/whois/domain/int_test.rb +24 -24
- data/test/whois/domain/mobi_test.rb +24 -24
- data/test/whois/domain/museum_test.rb +28 -28
- data/test/whois/domain/name_test.rb +24 -24
- data/test/whois/domain/neustar_test.rb +135 -134
- data/test/whois/domain/pro_test.rb +27 -27
- data/test/whois/domain/public_interest_test.rb +88 -75
- data/test/whois/domain/verisign_grs_test.rb +90 -90
- data/test/whois/domain/ws_test.rb +24 -24
- data/test/whois/domain_test.rb +0 -0
- metadata +35 -19
- data/VERSION +0 -1
@@ -1,24 +1,24 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::IntTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_whois
|
6
|
-
assert_whois_data(EXP_DATA)
|
7
|
-
assert Whois::Domain.new("not-reg-1234.int").available?
|
8
|
-
end
|
9
|
-
|
10
|
-
EXP_DATA = {
|
11
|
-
:name =>
|
12
|
-
:kind =>
|
13
|
-
:created_on =>
|
14
|
-
:updated_on =>
|
15
|
-
:expires_on => nil,
|
16
|
-
:database_updated_at => false,
|
17
|
-
:registrar_name => ".int Domain Registry (IANA)",
|
18
|
-
:whois_server => "whois.iana.org",
|
19
|
-
:raw_match => "
|
20
|
-
:status => [],
|
21
|
-
:name_servers => ['
|
22
|
-
}
|
23
|
-
|
24
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::IntTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_whois
|
6
|
+
assert_whois_data(EXP_DATA)
|
7
|
+
assert Whois::Domain.new("not-reg-1234.int").available?
|
8
|
+
end
|
9
|
+
|
10
|
+
EXP_DATA = {
|
11
|
+
:name => 'un.int',
|
12
|
+
:kind => 'Int',
|
13
|
+
:created_on => '1997-04-23',
|
14
|
+
:updated_on => '2010-08-26',
|
15
|
+
:expires_on => nil,
|
16
|
+
:database_updated_at => false,
|
17
|
+
:registrar_name => ".int Domain Registry (IANA)",
|
18
|
+
:whois_server => "whois.iana.org",
|
19
|
+
:raw_match => "domain: UN.INT",
|
20
|
+
:status => [],
|
21
|
+
:name_servers => ['NS1.UN.ORG', 'NS2.UN.ORG', 'NS3.UN.ORG']
|
22
|
+
}
|
23
|
+
|
24
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::MobiTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_whois
|
6
|
-
assert_whois_data(EXP_DATA)
|
7
|
-
assert Whois::Domain.new("not-reg-1234.mobi").available?
|
8
|
-
end
|
9
|
-
|
10
|
-
EXP_DATA = {
|
11
|
-
:name => "mtld.mobi",
|
12
|
-
:kind => "Mobi",
|
13
|
-
:created_on =>
|
14
|
-
:updated_on =>
|
15
|
-
:expires_on =>
|
16
|
-
:database_updated_at => false,
|
17
|
-
:registrar_name => "MarkMonitor Inc (292)",
|
18
|
-
:whois_server => "whois.dotmobiregistry.net",
|
19
|
-
:raw_match => "Domain Name:MTLD.MOBI",
|
20
|
-
:status => ['CLIENT DELETE PROHIBITED', 'CLIENT TRANSFER PROHIBITED', 'CLIENT UPDATE PROHIBITED'],
|
21
|
-
:name_servers => ['NS7.ZONEEDIT.COM', 'NS3.ZONEEDIT.COM']
|
22
|
-
}
|
23
|
-
|
24
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::MobiTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_whois
|
6
|
+
assert_whois_data(EXP_DATA)
|
7
|
+
assert Whois::Domain.new("not-reg-1234.mobi").available?
|
8
|
+
end
|
9
|
+
|
10
|
+
EXP_DATA = {
|
11
|
+
:name => "mtld.mobi",
|
12
|
+
:kind => "Mobi",
|
13
|
+
:created_on => '2006-05-11',
|
14
|
+
:updated_on => '2010-04-09',
|
15
|
+
:expires_on => '2012-05-11',
|
16
|
+
:database_updated_at => false,
|
17
|
+
:registrar_name => "MarkMonitor Inc (292)",
|
18
|
+
:whois_server => "whois.dotmobiregistry.net",
|
19
|
+
:raw_match => "Domain Name:MTLD.MOBI",
|
20
|
+
:status => ['CLIENT DELETE PROHIBITED', 'CLIENT TRANSFER PROHIBITED', 'CLIENT UPDATE PROHIBITED'],
|
21
|
+
:name_servers => ['NS7.ZONEEDIT.COM', 'NS3.ZONEEDIT.COM']
|
22
|
+
}
|
23
|
+
|
24
|
+
end
|
@@ -1,28 +1,28 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::MuseumTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_whois
|
6
|
-
assert_whois_data(EXP_DATA)
|
7
|
-
assert Whois::Domain.new("not-reg-1234.museum").available?
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_register_url
|
11
|
-
assert_equal "http://about.museum/register/", Whois::Domain.new("nic.museum").register_url
|
12
|
-
end
|
13
|
-
|
14
|
-
EXP_DATA = {
|
15
|
-
:name => "nic.museum",
|
16
|
-
:kind => "Museum",
|
17
|
-
:created_on => "2005-02-04",
|
18
|
-
:updated_on => nil, # Doesn't have an updated at AFAIK
|
19
|
-
:expires_on => "2015-02-04",
|
20
|
-
:database_updated_at => false,
|
21
|
-
:registrar_name => "CORE-904 (Musedoma)",
|
22
|
-
:whois_server => "whois.museum",
|
23
|
-
:raw_match => "Domain Name: nic.museum",
|
24
|
-
:status => ['ok'],
|
25
|
-
:name_servers => nil # Similar problem as Domain::Cat
|
26
|
-
}
|
27
|
-
|
28
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::MuseumTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_whois
|
6
|
+
assert_whois_data(EXP_DATA)
|
7
|
+
assert Whois::Domain.new("not-reg-1234.museum").available?
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_register_url
|
11
|
+
assert_equal "http://about.museum/register/", Whois::Domain.new("nic.museum").register_url
|
12
|
+
end
|
13
|
+
|
14
|
+
EXP_DATA = {
|
15
|
+
:name => "nic.museum",
|
16
|
+
:kind => "Museum",
|
17
|
+
:created_on => "2005-02-04",
|
18
|
+
:updated_on => nil, # Doesn't have an updated at AFAIK
|
19
|
+
:expires_on => "2015-02-04",
|
20
|
+
:database_updated_at => false,
|
21
|
+
:registrar_name => "CORE-904 (Musedoma)",
|
22
|
+
:whois_server => "whois.museum",
|
23
|
+
:raw_match => "Domain Name: nic.museum",
|
24
|
+
:status => ['ok'],
|
25
|
+
:name_servers => nil # Similar problem as Domain::Cat
|
26
|
+
}
|
27
|
+
|
28
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::NameTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_whois
|
6
|
-
assert_whois_data(EXP_DATA)
|
7
|
-
assert Whois::Domain.new("notreg123.smith.name").available?
|
8
|
-
end
|
9
|
-
|
10
|
-
EXP_DATA = {
|
11
|
-
:name =>
|
12
|
-
:kind =>
|
13
|
-
:created_on =>
|
14
|
-
:updated_on =>
|
15
|
-
:expires_on =>
|
16
|
-
:database_updated_at => false,
|
17
|
-
:registrar_name => "Tucows Inc.",
|
18
|
-
:whois_server => "whois.nic.name",
|
19
|
-
:raw_match => "Domain Name: JOE.SMITH.NAME",
|
20
|
-
:status => ["clientTransferProhibited", "clientUpdateProhibited"],
|
21
|
-
:name_servers => ['NS.123-REG.CO.UK', 'NS2.123-REG.CO.UK']
|
22
|
-
}
|
23
|
-
|
24
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::NameTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_whois
|
6
|
+
assert_whois_data(EXP_DATA)
|
7
|
+
assert Whois::Domain.new("notreg123.smith.name").available?
|
8
|
+
end
|
9
|
+
|
10
|
+
EXP_DATA = {
|
11
|
+
:name => 'joe.smith.name',
|
12
|
+
:kind => 'Name',
|
13
|
+
:created_on => '2007-08-08',
|
14
|
+
:updated_on => '2009-12-19',
|
15
|
+
:expires_on => '2011-08-08',
|
16
|
+
:database_updated_at => false,
|
17
|
+
:registrar_name => "Tucows Inc.",
|
18
|
+
:whois_server => "whois.nic.name",
|
19
|
+
:raw_match => "Domain Name: JOE.SMITH.NAME",
|
20
|
+
:status => ["clientTransferProhibited", "clientUpdateProhibited"],
|
21
|
+
:name_servers => ['NS.123-REG.CO.UK', 'NS2.123-REG.CO.UK']
|
22
|
+
}
|
23
|
+
|
24
|
+
end
|
@@ -1,134 +1,135 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::NeustarTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_biz
|
6
|
-
assert_whois_data(EXP_BIZ.merge({:to_s => EXP_TO_S}))
|
7
|
-
assert Whois::Domain.new("not-reg-1234.biz").available?
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_us
|
11
|
-
assert_whois_data(EXP_US)
|
12
|
-
assert Whois::Domain.new("not-reg-1234.us").available?
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_travel
|
16
|
-
assert_whois_data(EXP_TRAVEL)
|
17
|
-
assert Whois::Domain.new("not-reg-1234.travel").available?
|
18
|
-
end
|
19
|
-
|
20
|
-
EXP_BIZ = {
|
21
|
-
:name => "neulevel.biz",
|
22
|
-
:kind => "Neustar",
|
23
|
-
:created_on =>
|
24
|
-
:updated_on =>
|
25
|
-
:expires_on =>
|
26
|
-
:registrar_name => "REGISTRY REGISTRAR",
|
27
|
-
:whois_server => "whois.biz",
|
28
|
-
:raw_match => "Domain Name: NEULEVEL.BIZ",
|
29
|
-
:status => ['clientDeleteProhibited', 'clientTransferProhibited', 'clientUpdateProhibited', 'serverDeleteProhibited', 'serverTransferProhibited', 'serverUpdateProhibited'],
|
30
|
-
:name_servers => ['PDNS1.ULTRADNS.NET', 'PDNS2.ULTRADNS.NET', 'PDNS3.ULTRADNS.ORG', 'PDNS4.ULTRADNS.ORG', 'PDNS5.ULTRADNS.INFO', 'PDNS6.ULTRADNS.CO.UK']
|
31
|
-
}
|
32
|
-
|
33
|
-
EXP_US = {
|
34
|
-
:name => "neustar.us",
|
35
|
-
:kind => "Neustar",
|
36
|
-
:created_on =>
|
37
|
-
:updated_on =>
|
38
|
-
:expires_on =>
|
39
|
-
:registrar_name => "REGISTRY REGISTRAR",
|
40
|
-
:whois_server => "whois.nic.us",
|
41
|
-
:raw_match => "Domain Name: NEUSTAR.US",
|
42
|
-
:status => ['clientDeleteProhibited', 'clientTransferProhibited', 'serverDeleteProhibited', 'serverTransferProhibited', 'serverUpdateProhibited'],
|
43
|
-
:name_servers => ['GDNS1.ULTRADNS.NET', 'GDNS2.ULTRADNS.NET']
|
44
|
-
}
|
45
|
-
|
46
|
-
EXP_TRAVEL = {
|
47
|
-
:name => "travel.travel",
|
48
|
-
:kind => "Neustar",
|
49
|
-
:created_on => "2005-10-04",
|
50
|
-
:updated_on => "2006-07-23",
|
51
|
-
:expires_on => "2010-10-03",
|
52
|
-
:database_updated_at => true,
|
53
|
-
:registrar_name => "NEUSTAR GATEWAY",
|
54
|
-
:whois_server => "whois.nic.travel",
|
55
|
-
:raw_match => "Domain Name: TRAVEL.TRAVEL",
|
56
|
-
:status => ['ok'],
|
57
|
-
:name_servers => ['NETSYS.COM', 'NS01-MIA.THEGLOBE.COM']
|
58
|
-
}
|
59
|
-
|
60
|
-
EXP_TO_S = <<EOF
|
61
|
-
Domain Name: NEULEVEL.BIZ
|
62
|
-
Domain ID: D592-BIZ
|
63
|
-
Sponsoring Registrar: REGISTRY REGISTRAR
|
64
|
-
|
65
|
-
Domain Status:
|
66
|
-
Domain Status:
|
67
|
-
Domain Status:
|
68
|
-
Domain Status:
|
69
|
-
Domain Status:
|
70
|
-
|
71
|
-
Registrant
|
72
|
-
Registrant
|
73
|
-
Registrant
|
74
|
-
Registrant
|
75
|
-
Registrant
|
76
|
-
Registrant
|
77
|
-
Registrant
|
78
|
-
Registrant
|
79
|
-
Registrant Country
|
80
|
-
Registrant
|
81
|
-
Registrant
|
82
|
-
Registrant
|
83
|
-
|
84
|
-
Administrative Contact
|
85
|
-
Administrative Contact
|
86
|
-
Administrative Contact
|
87
|
-
Administrative Contact
|
88
|
-
Administrative Contact
|
89
|
-
Administrative Contact
|
90
|
-
Administrative Contact
|
91
|
-
Administrative Contact
|
92
|
-
Administrative Contact Country
|
93
|
-
Administrative Contact
|
94
|
-
Administrative Contact
|
95
|
-
Administrative Contact
|
96
|
-
|
97
|
-
Billing Contact
|
98
|
-
Billing Contact
|
99
|
-
Billing Contact
|
100
|
-
Billing Contact
|
101
|
-
Billing Contact
|
102
|
-
Billing Contact
|
103
|
-
Billing Contact
|
104
|
-
Billing Contact
|
105
|
-
Billing Contact Country
|
106
|
-
Billing Contact
|
107
|
-
Billing Contact
|
108
|
-
Billing Contact
|
109
|
-
|
110
|
-
Technical Contact
|
111
|
-
Technical Contact
|
112
|
-
Technical Contact
|
113
|
-
Technical Contact
|
114
|
-
Technical Contact
|
115
|
-
Technical Contact
|
116
|
-
Technical Contact
|
117
|
-
Technical Contact
|
118
|
-
Technical Contact Country
|
119
|
-
Technical Contact
|
120
|
-
Technical Contact
|
121
|
-
Technical Contact
|
122
|
-
|
123
|
-
Name Server:
|
124
|
-
Name Server:
|
125
|
-
Name Server:
|
126
|
-
Name Server:
|
127
|
-
Name Server:
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
Domain
|
132
|
-
Domain
|
133
|
-
|
134
|
-
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::NeustarTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_biz
|
6
|
+
assert_whois_data(EXP_BIZ.merge({:to_s => EXP_TO_S}))
|
7
|
+
assert Whois::Domain.new("not-reg-1234.biz").available?
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_us
|
11
|
+
assert_whois_data(EXP_US)
|
12
|
+
assert Whois::Domain.new("not-reg-1234.us").available?
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_travel
|
16
|
+
assert_whois_data(EXP_TRAVEL)
|
17
|
+
assert Whois::Domain.new("not-reg-1234.travel").available?
|
18
|
+
end
|
19
|
+
|
20
|
+
EXP_BIZ = {
|
21
|
+
:name => "neulevel.biz",
|
22
|
+
:kind => "Neustar",
|
23
|
+
:created_on => '2001-11-07',
|
24
|
+
:updated_on => '2010-07-16',
|
25
|
+
:expires_on => '2010-11-06',
|
26
|
+
:registrar_name => "REGISTRY REGISTRAR",
|
27
|
+
:whois_server => "whois.biz",
|
28
|
+
:raw_match => "Domain Name: NEULEVEL.BIZ",
|
29
|
+
:status => ['clientDeleteProhibited', 'clientTransferProhibited', 'clientUpdateProhibited', 'serverDeleteProhibited', 'serverTransferProhibited', 'serverUpdateProhibited'],
|
30
|
+
:name_servers => ['PDNS1.ULTRADNS.NET', 'PDNS2.ULTRADNS.NET', 'PDNS3.ULTRADNS.ORG', 'PDNS4.ULTRADNS.ORG', 'PDNS5.ULTRADNS.INFO', 'PDNS6.ULTRADNS.CO.UK']
|
31
|
+
}
|
32
|
+
|
33
|
+
EXP_US = {
|
34
|
+
:name => "neustar.us",
|
35
|
+
:kind => "Neustar",
|
36
|
+
:created_on => '2002-04-18',
|
37
|
+
:updated_on => '2010-06-02',
|
38
|
+
:expires_on => '2011-04-17',
|
39
|
+
:registrar_name => "REGISTRY REGISTRAR",
|
40
|
+
:whois_server => "whois.nic.us",
|
41
|
+
:raw_match => "Domain Name: NEUSTAR.US",
|
42
|
+
:status => ['clientDeleteProhibited', 'clientTransferProhibited', 'serverDeleteProhibited', 'serverTransferProhibited', 'serverUpdateProhibited'],
|
43
|
+
:name_servers => ['GDNS1.ULTRADNS.NET', 'GDNS2.ULTRADNS.NET']
|
44
|
+
}
|
45
|
+
|
46
|
+
EXP_TRAVEL = {
|
47
|
+
:name => "travel.travel",
|
48
|
+
:kind => "Neustar",
|
49
|
+
:created_on => "2005-10-04",
|
50
|
+
:updated_on => "2006-07-23",
|
51
|
+
:expires_on => "2010-10-03",
|
52
|
+
:database_updated_at => true,
|
53
|
+
:registrar_name => "NEUSTAR GATEWAY",
|
54
|
+
:whois_server => "whois.nic.travel",
|
55
|
+
:raw_match => "Domain Name: TRAVEL.TRAVEL",
|
56
|
+
:status => ['ok'],
|
57
|
+
:name_servers => ['NETSYS.COM', 'NS01-MIA.THEGLOBE.COM']
|
58
|
+
}
|
59
|
+
|
60
|
+
EXP_TO_S = <<EOF
|
61
|
+
Domain Name: NEULEVEL.BIZ
|
62
|
+
Domain ID: D592-BIZ
|
63
|
+
Sponsoring Registrar: REGISTRY REGISTRAR
|
64
|
+
Registrar URL (registration services): WWW.NEULEVEL.BIZ
|
65
|
+
Domain Status: clientDeleteProhibited
|
66
|
+
Domain Status: clientTransferProhibited
|
67
|
+
Domain Status: clientUpdateProhibited
|
68
|
+
Domain Status: serverDeleteProhibited
|
69
|
+
Domain Status: serverTransferProhibited
|
70
|
+
Domain Status: serverUpdateProhibited
|
71
|
+
Registrant ID: NEULEVEL1
|
72
|
+
Registrant Name: NeuStar, Inc.
|
73
|
+
Registrant Organization: NeuStar, Inc.
|
74
|
+
Registrant Address1: Loudoun Tech Center
|
75
|
+
Registrant Address2: 45980 Center Oak Plaza
|
76
|
+
Registrant City: Sterling
|
77
|
+
Registrant State/Province: Virginia
|
78
|
+
Registrant Postal Code: 20166
|
79
|
+
Registrant Country: United States
|
80
|
+
Registrant Country Code: US
|
81
|
+
Registrant Phone Number: +1.5714345757
|
82
|
+
Registrant Facsimile Number: +1.5714345758
|
83
|
+
Registrant Email: support@NeuStar.biz
|
84
|
+
Administrative Contact ID: NEULEVEL1
|
85
|
+
Administrative Contact Name: NeuStar, Inc.
|
86
|
+
Administrative Contact Organization: NeuStar, Inc.
|
87
|
+
Administrative Contact Address1: Loudoun Tech Center
|
88
|
+
Administrative Contact Address2: 45980 Center Oak Plaza
|
89
|
+
Administrative Contact City: Sterling
|
90
|
+
Administrative Contact State/Province: Virginia
|
91
|
+
Administrative Contact Postal Code: 20166
|
92
|
+
Administrative Contact Country: United States
|
93
|
+
Administrative Contact Country Code: US
|
94
|
+
Administrative Contact Phone Number: +1.5714345757
|
95
|
+
Administrative Contact Facsimile Number: +1.5714345758
|
96
|
+
Administrative Contact Email: support@NeuStar.biz
|
97
|
+
Billing Contact ID: NEULEVEL1
|
98
|
+
Billing Contact Name: NeuStar, Inc.
|
99
|
+
Billing Contact Organization: NeuStar, Inc.
|
100
|
+
Billing Contact Address1: Loudoun Tech Center
|
101
|
+
Billing Contact Address2: 45980 Center Oak Plaza
|
102
|
+
Billing Contact City: Sterling
|
103
|
+
Billing Contact State/Province: Virginia
|
104
|
+
Billing Contact Postal Code: 20166
|
105
|
+
Billing Contact Country: United States
|
106
|
+
Billing Contact Country Code: US
|
107
|
+
Billing Contact Phone Number: +1.5714345757
|
108
|
+
Billing Contact Facsimile Number: +1.5714345758
|
109
|
+
Billing Contact Email: support@NeuStar.biz
|
110
|
+
Technical Contact ID: NEULEVEL1
|
111
|
+
Technical Contact Name: NeuStar, Inc.
|
112
|
+
Technical Contact Organization: NeuStar, Inc.
|
113
|
+
Technical Contact Address1: Loudoun Tech Center
|
114
|
+
Technical Contact Address2: 45980 Center Oak Plaza
|
115
|
+
Technical Contact City: Sterling
|
116
|
+
Technical Contact State/Province: Virginia
|
117
|
+
Technical Contact Postal Code: 20166
|
118
|
+
Technical Contact Country: United States
|
119
|
+
Technical Contact Country Code: US
|
120
|
+
Technical Contact Phone Number: +1.5714345757
|
121
|
+
Technical Contact Facsimile Number: +1.5714345758
|
122
|
+
Technical Contact Email: support@NeuStar.biz
|
123
|
+
Name Server: PDNS1.ULTRADNS.NET
|
124
|
+
Name Server: PDNS2.ULTRADNS.NET
|
125
|
+
Name Server: PDNS3.ULTRADNS.ORG
|
126
|
+
Name Server: PDNS4.ULTRADNS.ORG
|
127
|
+
Name Server: PDNS5.ULTRADNS.INFO
|
128
|
+
Name Server: PDNS6.ULTRADNS.CO.UK
|
129
|
+
Created by Registrar: REGISTRY REGISTRAR
|
130
|
+
Last Updated by Registrar: NEULEVELCSR
|
131
|
+
Domain Registration Date: Wed Nov 07 00:01:00 GMT 2001
|
132
|
+
Domain Expiration Date: Sat Nov 06 23:59:00 GMT 2010
|
133
|
+
Domain Last Updated Date: Fri Jul 16 22:16:57 GMT 2010
|
134
|
+
EOF
|
135
|
+
end
|
@@ -1,27 +1,27 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class Whois::Domain::ProTest < Test::Unit::TestCase
|
4
|
-
def test_pro
|
5
|
-
assert_whois_data(EXP_PRO)
|
6
|
-
assert Whois::Domain.new("not-reg-1234.pro").available?
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_register_url
|
10
|
-
assert_equal "http://www.registrypro.pro/partners_findaregistrar.htm", Whois::Domain.new("not-reg-1234.pro").register_url
|
11
|
-
end
|
12
|
-
|
13
|
-
EXP_PRO = {
|
14
|
-
:name => "registrypro.pro",
|
15
|
-
:kind => "Pro",
|
16
|
-
:created_on =>
|
17
|
-
:updated_on =>
|
18
|
-
:expires_on =>
|
19
|
-
:database_updated_at => false,
|
20
|
-
:registrar_name =>
|
21
|
-
:whois_server => "whois.registrypro.pro",
|
22
|
-
:raw_match => "Domain Name:REGISTRYPRO.PRO",
|
23
|
-
:status => ['serverDeleteProhibited'],
|
24
|
-
:name_servers => ['A.GTLD.PRO', 'B.GTLD.PRO', 'C.GTLD.PRO', 'D.GTLD.PRO']
|
25
|
-
}
|
26
|
-
|
27
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Whois::Domain::ProTest < Test::Unit::TestCase
|
4
|
+
def test_pro
|
5
|
+
assert_whois_data(EXP_PRO)
|
6
|
+
assert Whois::Domain.new("not-reg-1234.pro").available?
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_register_url
|
10
|
+
assert_equal "http://www.registrypro.pro/partners_findaregistrar.htm", Whois::Domain.new("not-reg-1234.pro").register_url
|
11
|
+
end
|
12
|
+
|
13
|
+
EXP_PRO = {
|
14
|
+
:name => "registrypro.pro",
|
15
|
+
:kind => "Pro",
|
16
|
+
:created_on => '2004-08-18',
|
17
|
+
:updated_on => '2009-01-16',
|
18
|
+
:expires_on => '2016-01-26',
|
19
|
+
:database_updated_at => false,
|
20
|
+
:registrar_name => 'Registry Services Corporation, d.b.a. RegistryPro',
|
21
|
+
:whois_server => "whois.registrypro.pro",
|
22
|
+
:raw_match => "Domain Name:REGISTRYPRO.PRO",
|
23
|
+
:status => ['serverDeleteProhibited'],
|
24
|
+
:name_servers => ['A.GTLD.PRO', 'B.GTLD.PRO', 'C.GTLD.PRO', 'D.GTLD.PRO']
|
25
|
+
}
|
26
|
+
|
27
|
+
end
|