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.
Files changed (46) hide show
  1. data/.gitignore +10 -0
  2. data/LICENSE +1020 -1020
  3. data/README.md +0 -0
  4. data/Rakefile +2 -0
  5. data/{ruby-whois.gemspec → jm81-whois.gemspec} +34 -27
  6. data/lib/whois/domain/aero.rb +16 -16
  7. data/lib/whois/domain/afilias.rb +15 -15
  8. data/lib/whois/domain/base.rb +21 -1
  9. data/lib/whois/domain/cat.rb +19 -19
  10. data/lib/whois/domain/coop.rb +1 -1
  11. data/lib/whois/domain/cz.rb +31 -0
  12. data/lib/whois/domain/educause.rb +42 -42
  13. data/lib/whois/domain/gov.rb +26 -26
  14. data/lib/whois/domain/int.rb +23 -32
  15. data/lib/whois/domain/mobi.rb +15 -15
  16. data/lib/whois/domain/museum.rb +19 -19
  17. data/lib/whois/domain/name.rb +22 -22
  18. data/lib/whois/domain/neustar.rb +0 -0
  19. data/lib/whois/domain/pro.rb +23 -23
  20. data/lib/whois/domain/public_interest.rb +14 -14
  21. data/lib/whois/domain/ru.rb +17 -0
  22. data/lib/whois/domain/su.rb +17 -0
  23. data/lib/whois/domain/verisign_grs.rb +63 -29
  24. data/lib/whois/domain/ws.rb +34 -30
  25. data/lib/whois/domain.rb +18 -18
  26. data/lib/whois/version.rb +3 -0
  27. data/lib/whois.rb +11 -9
  28. data/test/test_helper.rb +0 -0
  29. data/test/whois/domain/aero_test.rb +24 -24
  30. data/test/whois/domain/afilias_test.rb +24 -24
  31. data/test/whois/domain/cat_test.rb +28 -28
  32. data/test/whois/domain/coop_test.rb +28 -28
  33. data/test/whois/domain/educause_test.rb +24 -24
  34. data/test/whois/domain/gov_test.rb +28 -28
  35. data/test/whois/domain/int_test.rb +24 -24
  36. data/test/whois/domain/mobi_test.rb +24 -24
  37. data/test/whois/domain/museum_test.rb +28 -28
  38. data/test/whois/domain/name_test.rb +24 -24
  39. data/test/whois/domain/neustar_test.rb +135 -134
  40. data/test/whois/domain/pro_test.rb +27 -27
  41. data/test/whois/domain/public_interest_test.rb +88 -75
  42. data/test/whois/domain/verisign_grs_test.rb +90 -90
  43. data/test/whois/domain/ws_test.rb +24 -24
  44. data/test/whois/domain_test.rb +0 -0
  45. metadata +35 -19
  46. 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 => "un.int",
12
- :kind => "Int",
13
- :created_on => "1997-04-23",
14
- :updated_on => "2006-08-14",
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 => ['unhqint1.un.org', 'ns.uu.net']
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 => "2006-05-11",
14
- :updated_on => "2008-12-04",
15
- :expires_on => "2010-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
+ 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 => "joe.smith.name",
12
- :kind => "Name",
13
- :created_on => "2007-08-08",
14
- :updated_on => "2009-08-20",
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
+ 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 => "2001-11-07",
24
- :updated_on => "2008-12-22",
25
- :expires_on => "2009-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 => "2009-06-02",
38
- :expires_on => "2010-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
- Domain Status: clientDeleteProhibited
65
- Domain Status: clientTransferProhibited
66
- Domain Status: clientUpdateProhibited
67
- Domain Status: serverDeleteProhibited
68
- Domain Status: serverTransferProhibited
69
- Domain Status: serverUpdateProhibited
70
- Registrant ID: NEULEVEL1
71
- Registrant Name: NeuStar, Inc.
72
- Registrant Organization: NeuStar, Inc.
73
- Registrant Address1: Loudoun Tech Center
74
- Registrant Address2: 45980 Center Oak Plaza
75
- Registrant City: Sterling
76
- Registrant State/Province: Virginia
77
- Registrant Postal Code: 20166
78
- Registrant Country: United States
79
- Registrant Country Code: US
80
- Registrant Phone Number: +1.5714345757
81
- Registrant Facsimile Number: +1.5714345758
82
- Registrant Email: support@NeuStar.biz
83
- Administrative Contact ID: NEULEVEL1
84
- Administrative Contact Name: NeuStar, Inc.
85
- Administrative Contact Organization: NeuStar, Inc.
86
- Administrative Contact Address1: Loudoun Tech Center
87
- Administrative Contact Address2: 45980 Center Oak Plaza
88
- Administrative Contact City: Sterling
89
- Administrative Contact State/Province: Virginia
90
- Administrative Contact Postal Code: 20166
91
- Administrative Contact Country: United States
92
- Administrative Contact Country Code: US
93
- Administrative Contact Phone Number: +1.5714345757
94
- Administrative Contact Facsimile Number: +1.5714345758
95
- Administrative Contact Email: support@NeuStar.biz
96
- Billing Contact ID: NEULEVEL1
97
- Billing Contact Name: NeuStar, Inc.
98
- Billing Contact Organization: NeuStar, Inc.
99
- Billing Contact Address1: Loudoun Tech Center
100
- Billing Contact Address2: 45980 Center Oak Plaza
101
- Billing Contact City: Sterling
102
- Billing Contact State/Province: Virginia
103
- Billing Contact Postal Code: 20166
104
- Billing Contact Country: United States
105
- Billing Contact Country Code: US
106
- Billing Contact Phone Number: +1.5714345757
107
- Billing Contact Facsimile Number: +1.5714345758
108
- Billing Contact Email: support@NeuStar.biz
109
- Technical Contact ID: NEULEVEL1
110
- Technical Contact Name: NeuStar, Inc.
111
- Technical Contact Organization: NeuStar, Inc.
112
- Technical Contact Address1: Loudoun Tech Center
113
- Technical Contact Address2: 45980 Center Oak Plaza
114
- Technical Contact City: Sterling
115
- Technical Contact State/Province: Virginia
116
- Technical Contact Postal Code: 20166
117
- Technical Contact Country: United States
118
- Technical Contact Country Code: US
119
- Technical Contact Phone Number: +1.5714345757
120
- Technical Contact Facsimile Number: +1.5714345758
121
- Technical Contact Email: support@NeuStar.biz
122
- Name Server: PDNS1.ULTRADNS.NET
123
- Name Server: PDNS2.ULTRADNS.NET
124
- Name Server: PDNS3.ULTRADNS.ORG
125
- Name Server: PDNS4.ULTRADNS.ORG
126
- Name Server: PDNS5.ULTRADNS.INFO
127
- Name Server: PDNS6.ULTRADNS.CO.UK
128
- Created by Registrar: REGISTRY REGISTRAR
129
- Last Updated by Registrar: BATCHCSR
130
- Domain Registration Date: Wed Nov 07 00:01:00 GMT 2001
131
- Domain Expiration Date: Fri Nov 06 23:59:00 GMT 2009
132
- Domain Last Updated Date: Mon Dec 22 01:40:11 GMT 2008
133
- EOF
134
- end
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 => "2004-08-18",
17
- :updated_on => nil,
18
- :expires_on => "2016-01-26",
19
- :database_updated_at => false,
20
- :registrar_name => "internal",
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