whois 2.0.7 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +84 -10
- data/Rakefile +0 -7
- data/lib/core_ext.rb +9 -45
- data/lib/core_ext/array/extract_options.rb +29 -0
- data/lib/core_ext/array/wrap.rb +48 -0
- data/lib/core_ext/class/attribute.rb +115 -0
- data/lib/core_ext/date_time/conversions.rb +15 -0
- data/lib/core_ext/kernel/singleton_class.rb +13 -0
- data/lib/core_ext/module/remove_method.rb +16 -0
- data/lib/whois.rb +0 -4
- data/lib/whois/definitions/tlds.rb +10 -5
- data/lib/whois/record.rb +0 -3
- data/lib/whois/record/parser.rb +3 -3
- data/lib/whois/record/parser/NOTES.txt +15 -8
- data/lib/whois/record/parser/base.rb +12 -35
- data/lib/whois/record/parser/base_afilias.rb +156 -0
- data/lib/whois/record/parser/example.rb +8 -4
- data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +2 -2
- data/lib/whois/record/parser/scanners/afilias.rb +13 -4
- data/lib/whois/record/parser/{features → scanners}/ast.rb +1 -1
- data/lib/whois/record/parser/scanners/base.rb +9 -0
- data/lib/whois/record/parser/scanners/cnnic.rb +2 -2
- data/lib/whois/record/parser/scanners/{whoisbiz.rb → whois.biz.rb} +2 -8
- data/lib/whois/record/parser/scanners/whois.denic.de.rb +117 -0
- data/lib/whois/record/parser/scanners/whois.nic.hu.rb +187 -0
- data/lib/whois/record/parser/scanners/{whoisit.rb → whois.nic.it.rb} +2 -2
- data/lib/whois/record/parser/scanners/whois.registry.qa.rb +54 -0
- data/lib/whois/record/parser/scanners/whois.tld.ee.rb +41 -0
- data/lib/whois/record/parser/whois.aero.rb +8 -46
- data/lib/whois/record/parser/whois.afilias-grs.info.rb +2 -51
- data/lib/whois/record/parser/whois.afilias.info.rb +2 -126
- data/lib/whois/record/parser/whois.biz.rb +6 -6
- data/lib/whois/record/parser/whois.cnnic.cn.rb +5 -5
- data/lib/whois/record/parser/whois.crsnic.net.rb +2 -2
- data/lib/whois/record/parser/whois.denic.de.rb +8 -105
- data/lib/whois/record/parser/whois.dotmobiregistry.net.rb +2 -51
- data/lib/whois/record/parser/whois.godaddy.com.rb +138 -0
- data/lib/whois/record/parser/whois.iana.org.rb +2 -2
- data/lib/whois/record/parser/whois.markmonitor.com.rb +13 -12
- data/lib/whois/record/parser/whois.meregistry.net.rb +45 -30
- data/lib/whois/record/parser/whois.nic.af.rb +6 -2
- data/lib/whois/record/parser/whois.nic.ag.rb +2 -51
- data/lib/whois/record/parser/whois.nic.asia.rb +47 -38
- data/lib/whois/record/parser/whois.nic.cc.rb +2 -2
- data/lib/whois/record/parser/whois.nic.hu.rb +7 -174
- data/lib/whois/record/parser/whois.nic.it.rb +6 -6
- data/lib/whois/record/parser/whois.nic.name.rb +1 -5
- data/lib/whois/record/parser/whois.nic.travel.rb +4 -12
- data/lib/whois/record/parser/whois.nic.tv.rb +2 -2
- data/lib/whois/record/parser/whois.nic.us.rb +4 -4
- data/lib/whois/record/parser/whois.nic.xxx.rb +5 -112
- data/lib/whois/record/parser/whois.publicinterestregistry.net.rb +8 -168
- data/lib/whois/record/parser/whois.registry.in.rb +2 -60
- data/lib/whois/record/parser/whois.registry.qa.rb +117 -0
- data/lib/whois/record/parser/whois.ripn.net.rb +4 -84
- data/lib/whois/record/parser/whois.sgnic.sg.rb +13 -5
- data/lib/whois/record/parser/whois.tcinet.ru.rb +102 -0
- data/lib/whois/record/parser/whois.tld.ee.rb +5 -26
- data/lib/whois/record/parser/whois.tonic.to.rb +0 -8
- data/lib/whois/server/adapters/base.rb +23 -10
- data/lib/whois/version.rb +2 -2
- data/spec/fixtures/responses/FIND.txt +1 -0
- data/spec/fixtures/responses/whois.aero/status_available.expected +35 -1
- data/spec/fixtures/responses/whois.aero/status_registered.expected +77 -1
- data/spec/fixtures/responses/whois.afilias-grs.info/bz/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/bz/status_registered.expected +39 -2
- data/spec/fixtures/responses/whois.afilias-grs.info/bz/status_registered.txt +2 -82
- data/spec/fixtures/responses/whois.afilias-grs.info/gi/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/gi/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/hn/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/hn/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/lc/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/lc/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/mn/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/mn/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/sc/status_available.expected +57 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/sc/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/vc/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.afilias-grs.info/vc/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.dotmobiregistry.net/status_available.expected +35 -0
- data/spec/fixtures/responses/whois.dotmobiregistry.net/status_available.txt +1 -25
- data/spec/fixtures/responses/whois.dotmobiregistry.net/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.educause.edu/{properties_updated_on_unknown.expected → property_updated_on_unknown.expected} +0 -0
- data/spec/fixtures/responses/whois.educause.edu/{properties_updated_on_unknown.txt → property_updated_on_unknown.txt} +0 -0
- data/spec/fixtures/responses/whois.godaddy.com/status_registered.expected +87 -0
- data/spec/fixtures/responses/whois.godaddy.com/status_registered.txt +60 -0
- data/spec/fixtures/responses/whois.markmonitor.com/{properties_empty_contacts.expected → property_contacts_are_blank.expected} +0 -0
- data/spec/fixtures/responses/whois.markmonitor.com/{properties_empty_contacts.txt → property_contacts_are_blank.txt} +0 -0
- data/spec/fixtures/responses/whois.meregistry.net/{property_nameservers_is_missing.expected → property_nameservers_is_blank.expected} +0 -0
- data/spec/fixtures/responses/whois.meregistry.net/{property_nameservers_is_missing.txt → property_nameservers_is_blank.txt} +0 -0
- data/spec/fixtures/responses/whois.meregistry.net/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.meregistry.net/status_registered.expected +77 -0
- data/spec/fixtures/responses/whois.meregistry.net/status_registered.txt +1 -1
- data/spec/fixtures/responses/{whois.nic.asia/property_status_client_delete_prohibited.expected → whois.nic.af/property_status_active.expected} +0 -0
- data/spec/fixtures/responses/whois.nic.af/property_status_active.txt +56 -0
- data/spec/fixtures/responses/{whois.nic.asia/property_status_client_transfer_prohibited.expected → whois.nic.af/property_status_delegated.expected} +0 -0
- data/spec/fixtures/responses/whois.nic.af/property_status_delegated.txt +46 -0
- data/spec/fixtures/responses/whois.nic.af/property_status_not_registered.expected +8 -0
- data/spec/fixtures/responses/whois.nic.af/property_status_not_registered.txt +13 -0
- data/spec/fixtures/responses/whois.nic.ag/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.nic.ag/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.nic.asia/property_status_multiple.expected +8 -0
- data/spec/fixtures/responses/whois.nic.asia/{property_status_client_delete_prohibited.txt → property_status_multiple.txt} +0 -0
- data/spec/fixtures/responses/whois.nic.asia/property_status_single.expected +8 -0
- data/spec/fixtures/responses/whois.nic.asia/{property_status_client_transfer_prohibited.txt → property_status_single.txt} +76 -76
- data/spec/fixtures/responses/whois.nic.asia/status_available.expected +35 -1
- data/spec/fixtures/responses/whois.nic.asia/status_registered.expected +78 -1
- data/spec/fixtures/responses/whois.nic.dz/{status_available.expected → dz/status_available.expected} +0 -0
- data/spec/fixtures/responses/whois.nic.dz/{status_available.txt → dz/status_available.txt} +0 -0
- data/spec/fixtures/responses/whois.nic.dz/{status_registered.expected → dz/status_registered.expected} +0 -0
- data/spec/fixtures/responses/whois.nic.dz/{status_registered.txt → dz/status_registered.txt} +0 -0
- data/spec/fixtures/responses/whois.nic.name/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.name/status_registered.expected +1 -1
- data/spec/fixtures/responses/whois.nic.travel/property_status_multiple.expected +2 -0
- data/spec/fixtures/responses/whois.nic.travel/property_status_multiple.txt +83 -0
- data/spec/fixtures/responses/whois.nic.travel/property_status_single.expected +2 -0
- data/spec/fixtures/responses/whois.nic.travel/property_status_single.txt +75 -0
- data/spec/fixtures/responses/whois.nic.travel/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.travel/status_registered.expected +1 -1
- data/spec/fixtures/responses/whois.nic.xxx/property_updated_on_blank.expected +2 -0
- data/spec/fixtures/responses/whois.nic.xxx/property_updated_on_blank.txt +98 -0
- data/spec/fixtures/responses/whois.nic.xxx/status_registered.expected +45 -46
- data/spec/fixtures/responses/whois.nic.xxx/status_registered.txt +61 -61
- data/spec/fixtures/responses/whois.publicinterestregistry.net/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.publicinterestregistry.net/status_registered.expected +8 -1
- data/spec/fixtures/responses/whois.registry.in/property_status_missing.expected +1 -1
- data/spec/fixtures/responses/whois.registry.in/property_status_multiple.expected +1 -1
- data/spec/fixtures/responses/whois.registry.in/property_status_ok.expected +1 -1
- data/spec/fixtures/responses/whois.registry.in/status_available.expected +31 -1
- data/spec/fixtures/responses/whois.registry.in/status_registered.expected +70 -1
- data/spec/fixtures/responses/whois.registry.qa/qa/status_available.expected +56 -0
- data/spec/fixtures/responses/whois.registry.qa/qa/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.registry.qa/qa/status_registered.expected +91 -0
- data/spec/fixtures/responses/whois.registry.qa/qa/status_registered.txt +23 -0
- data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1_with_ip.expected +12 -0
- data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1_with_ip.txt +94 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/property_nameservers_with_ip.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/property_nameservers_with_ip.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/status_available.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/status_available.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/status_registered.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/ru/status_registered.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/su/status_available.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/su/status_available.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/su/status_registered.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/su/status_registered.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_available.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_available.txt +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_registered.expected +0 -0
- data/spec/fixtures/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_registered.txt +0 -0
- data/spec/integration_spec.rb +29 -12
- data/spec/support/helpers/spec_helper.rb +0 -10
- data/spec/tlds +1 -1
- data/spec/whois/record/parser/base_spec.rb +23 -51
- data/spec/whois/record/parser/responses/whois.aero/status_available_spec.rb +49 -1
- data/spec/whois/record/parser/responses/whois.aero/status_registered_spec.rb +91 -1
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/bz/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/bz/status_registered_spec.rb +53 -2
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/gi/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/gi/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/hn/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/hn/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/lc/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/lc/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/mn/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/mn/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/sc/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/sc/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/vc/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.afilias-grs.info/vc/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.dotmobiregistry.net/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.dotmobiregistry.net/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/{properties_updated_on_unknown_spec.rb → property_updated_on_unknown_spec.rb} +3 -3
- data/spec/whois/record/parser/responses/whois.godaddy.com/status_registered_spec.rb +131 -0
- data/spec/whois/record/parser/responses/whois.markmonitor.com/{properties_empty_contacts_spec.rb → property_contacts_are_blank_spec.rb} +3 -3
- data/spec/whois/record/parser/responses/whois.meregistry.net/{property_nameservers_is_missing_spec.rb → property_nameservers_is_blank_spec.rb} +3 -3
- data/spec/whois/record/parser/responses/whois.meregistry.net/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.meregistry.net/status_registered_spec.rb +91 -0
- data/spec/whois/record/parser/responses/whois.nic.af/property_status_active_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.af/property_status_delegated_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.af/property_status_not_registered_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.ag/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.nic.ag/status_registered_spec.rb +90 -0
- data/spec/whois/record/parser/responses/whois.nic.asia/{property_status_client_delete_prohibited_spec.rb → property_status_multiple_spec.rb} +4 -4
- data/spec/whois/record/parser/responses/whois.nic.asia/{property_status_client_transfer_prohibited_spec.rb → property_status_single_spec.rb} +4 -4
- data/spec/whois/record/parser/responses/whois.nic.asia/status_available_spec.rb +49 -1
- data/spec/whois/record/parser/responses/whois.nic.asia/status_registered_spec.rb +92 -1
- data/spec/whois/record/parser/responses/whois.nic.dz/{status_available_spec.rb → dz/status_available_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.nic.dz/{status_registered_spec.rb → dz/status_registered_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.nic.name/status_available_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.nic.name/status_registered_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.nic.travel/property_status_multiple_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.nic.travel/property_status_single_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.nic.travel/status_available_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.nic.travel/status_registered_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.nic.xxx/property_updated_on_blank_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.nic.xxx/status_registered_spec.rb +45 -46
- data/spec/whois/record/parser/responses/whois.publicinterestregistry.net/status_available_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.publicinterestregistry.net/status_registered_spec.rb +11 -1
- data/spec/whois/record/parser/responses/whois.registry.in/property_status_missing_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.registry.in/property_status_multiple_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.registry.in/property_status_ok_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.registry.in/status_available_spec.rb +44 -1
- data/spec/whois/record/parser/responses/whois.registry.in/status_registered_spec.rb +83 -1
- data/spec/whois/record/parser/responses/whois.registry.qa/qa/status_available_spec.rb +107 -0
- data/spec/whois/record/parser/responses/whois.registry.qa/qa/status_registered_spec.rb +142 -0
- data/spec/whois/record/parser/responses/whois.sgnic.sg/property_nameservers_schema_1_with_ip_spec.rb +39 -0
- data/spec/whois/record/parser/responses/{whois.ripn.net → whois.tcinet.ru}/ru/property_nameservers_with_ip_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net/su → whois.tcinet.ru/ru}/status_available_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net → whois.tcinet.ru}/ru/status_registered_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net/ru → whois.tcinet.ru/su}/status_available_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net → whois.tcinet.ru}/su/status_registered_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_available_spec.rb +4 -4
- data/spec/whois/record/parser/responses/{whois.ripn.net → whois.tcinet.ru}/xn--p1ai/status_registered_spec.rb +4 -4
- data/spec/whois/record_spec.rb +4 -4
- data/spec/whois/server/adapters/afilias_spec.rb +3 -3
- data/spec/whois/server/adapters/base_spec.rb +50 -10
- data/spec/whois/server/adapters/formatted_spec.rb +4 -4
- data/spec/whois/server/adapters/pir_spec.rb +3 -3
- data/spec/whois/server/adapters/standard_spec.rb +4 -4
- data/spec/whois/server/adapters/verisign_spec.rb +7 -7
- data/whois.gemspec +4 -4
- metadata +101 -57
- data/lib/whois/answer.rb +0 -14
@@ -3,7 +3,7 @@
|
|
3
3
|
# This file is autogenerated. Do not edit it manually.
|
4
4
|
# If you want change the content of this file, edit
|
5
5
|
#
|
6
|
-
# /spec/fixtures/responses/whois.nic.asia/
|
6
|
+
# /spec/fixtures/responses/whois.nic.asia/property_status_multiple.expected
|
7
7
|
#
|
8
8
|
# and regenerate the tests with the following rake task
|
9
9
|
#
|
@@ -13,17 +13,17 @@
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'whois/record/parser/whois.nic.asia.rb'
|
15
15
|
|
16
|
-
describe Whois::Record::Parser::WhoisNicAsia, "
|
16
|
+
describe Whois::Record::Parser::WhoisNicAsia, "property_status_multiple.expected" do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
file = fixture("responses", "whois.nic.asia/
|
19
|
+
file = fixture("responses", "whois.nic.asia/property_status_multiple.txt")
|
20
20
|
part = Whois::Record::Part.new(:body => File.read(file))
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
24
|
describe "#status" do
|
25
25
|
it do
|
26
|
-
@parser.status.should ==
|
26
|
+
@parser.status.should == ["CLIENT DELETE PROHIBITED", "CLIENT TRANSFER PROHIBITED"]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
describe "#available?" do
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# This file is autogenerated. Do not edit it manually.
|
4
4
|
# If you want change the content of this file, edit
|
5
5
|
#
|
6
|
-
# /spec/fixtures/responses/whois.nic.asia/
|
6
|
+
# /spec/fixtures/responses/whois.nic.asia/property_status_single.expected
|
7
7
|
#
|
8
8
|
# and regenerate the tests with the following rake task
|
9
9
|
#
|
@@ -13,17 +13,17 @@
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'whois/record/parser/whois.nic.asia.rb'
|
15
15
|
|
16
|
-
describe Whois::Record::Parser::WhoisNicAsia, "
|
16
|
+
describe Whois::Record::Parser::WhoisNicAsia, "property_status_single.expected" do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
file = fixture("responses", "whois.nic.asia/
|
19
|
+
file = fixture("responses", "whois.nic.asia/property_status_single.txt")
|
20
20
|
part = Whois::Record::Part.new(:body => File.read(file))
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
24
|
describe "#status" do
|
25
25
|
it do
|
26
|
-
@parser.status.should ==
|
26
|
+
@parser.status.should == ["OK"]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
describe "#available?" do
|
@@ -21,9 +21,34 @@ describe Whois::Record::Parser::WhoisNicAsia, "status_available.expected" do
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
@parser.disclaimer.should == nil
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain" do
|
30
|
+
it do
|
31
|
+
@parser.domain.should == nil
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe "#domain_id" do
|
35
|
+
it do
|
36
|
+
@parser.domain_id.should == nil
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe "#referral_whois" do
|
40
|
+
it do
|
41
|
+
lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe "#referral_url" do
|
45
|
+
it do
|
46
|
+
lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
|
47
|
+
end
|
48
|
+
end
|
24
49
|
describe "#status" do
|
25
50
|
it do
|
26
|
-
@parser.status.should ==
|
51
|
+
@parser.status.should == []
|
27
52
|
end
|
28
53
|
end
|
29
54
|
describe "#available?" do
|
@@ -51,6 +76,29 @@ describe Whois::Record::Parser::WhoisNicAsia, "status_available.expected" do
|
|
51
76
|
@parser.expires_on.should == nil
|
52
77
|
end
|
53
78
|
end
|
79
|
+
describe "#registrar" do
|
80
|
+
it do
|
81
|
+
@parser.registrar.should == nil
|
82
|
+
end
|
83
|
+
end
|
84
|
+
describe "#registrant_contacts" do
|
85
|
+
it do
|
86
|
+
@parser.registrant_contacts.should be_a(Array)
|
87
|
+
@parser.registrant_contacts.should == []
|
88
|
+
end
|
89
|
+
end
|
90
|
+
describe "#admin_contacts" do
|
91
|
+
it do
|
92
|
+
@parser.admin_contacts.should be_a(Array)
|
93
|
+
@parser.admin_contacts.should == []
|
94
|
+
end
|
95
|
+
end
|
96
|
+
describe "#technical_contacts" do
|
97
|
+
it do
|
98
|
+
@parser.technical_contacts.should be_a(Array)
|
99
|
+
@parser.technical_contacts.should == []
|
100
|
+
end
|
101
|
+
end
|
54
102
|
describe "#nameservers" do
|
55
103
|
it do
|
56
104
|
@parser.nameservers.should be_a(Array)
|
@@ -21,9 +21,34 @@ describe Whois::Record::Parser::WhoisNicAsia, "status_registered.expected" do
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
@parser.disclaimer.should == "DotAsia WHOIS LEGAL STATEMENT AND TERMS & CONDITIONS: The WHOIS service offered by DotAsia and the access to the records in the DotAsia WHOIS database are provided for information purposes only. It allows persons to check whether a specific domain name is still available or not and to obtain information related to the registration records of existing domain names. DotAsia cannot, under any circumstances, be held liable in case the stored information would prove to be wrong, incomplete, or not accurate in any sense. By submitting a query you agree not to use the information made available to: allow, enable or otherwise support the transmission of unsolicited, commercial advertising or other solicitations whether via email or otherwise; target advertising in any possible way; or to cause nuisance in any possible way to the registrants by sending (whether by automated, electronic processes capable of enabling high volumes or other possible means) messages to them. Without prejudice to the above, it is explicitly forbidden to extract, copy and/or use or re-utilise in any form and by any means (electronically or not) the whole or a quantitatively or qualitatively substantial part of the contents of the WHOIS database without prior and explicit permission by DotAsia, nor in any attempt hereof, or to apply automated, electronic processes to DotAsia (or its systems). You agree that any reproduction and/or transmission of data for commercial purposes will always be considered as the extraction of a substantial part of the content of the WHOIS database. By submitting the query you agree to abide by this policy and accept that DotAsia can take measures to limit the use of its WHOIS services in order to protect the privacy of its registrants or the integrity of the database."
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain" do
|
30
|
+
it do
|
31
|
+
@parser.domain.should == "cj7.asia"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe "#domain_id" do
|
35
|
+
it do
|
36
|
+
@parser.domain_id.should == "D93126-ASIA"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe "#referral_whois" do
|
40
|
+
it do
|
41
|
+
lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe "#referral_url" do
|
45
|
+
it do
|
46
|
+
lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
|
47
|
+
end
|
48
|
+
end
|
24
49
|
describe "#status" do
|
25
50
|
it do
|
26
|
-
@parser.status.should ==
|
51
|
+
@parser.status.should == ["OK"]
|
27
52
|
end
|
28
53
|
end
|
29
54
|
describe "#available?" do
|
@@ -54,6 +79,72 @@ describe Whois::Record::Parser::WhoisNicAsia, "status_registered.expected" do
|
|
54
79
|
@parser.expires_on.should == Time.parse("2010-01-15 11:28:02 UTC")
|
55
80
|
end
|
56
81
|
end
|
82
|
+
describe "#registrar" do
|
83
|
+
it do
|
84
|
+
@parser.registrar.should be_a(_registrar)
|
85
|
+
@parser.registrar.id.should == "9998"
|
86
|
+
@parser.registrar.name.should == "dotASIA R4-ASIA"
|
87
|
+
@parser.registrar.organization.should == "dotASIA R4-ASIA"
|
88
|
+
@parser.registrar.url.should == nil
|
89
|
+
end
|
90
|
+
end
|
91
|
+
describe "#registrant_contacts" do
|
92
|
+
it do
|
93
|
+
@parser.registrant_contacts.should be_a(Array)
|
94
|
+
@parser.registrant_contacts.should have(1).items
|
95
|
+
@parser.registrant_contacts[0].should be_a(_contact)
|
96
|
+
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
97
|
+
@parser.registrant_contacts[0].id.should == "FR-1158300cc88a"
|
98
|
+
@parser.registrant_contacts[0].name.should == "Pioneer Domain (Temporary Delegation)"
|
99
|
+
@parser.registrant_contacts[0].organization.should == "DotAsia Organisation"
|
100
|
+
@parser.registrant_contacts[0].address.should == "Unit 617, Miramar Tower\n132 Nathan Road"
|
101
|
+
@parser.registrant_contacts[0].city.should == "Tsim Sha Tsui"
|
102
|
+
@parser.registrant_contacts[0].zip.should == "HK"
|
103
|
+
@parser.registrant_contacts[0].state.should == "Kowloon"
|
104
|
+
@parser.registrant_contacts[0].country_code.should == "HK"
|
105
|
+
@parser.registrant_contacts[0].phone.should == "+852.35202635"
|
106
|
+
@parser.registrant_contacts[0].fax.should == ""
|
107
|
+
@parser.registrant_contacts[0].email.should == "domains@registry.asia"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
describe "#admin_contacts" do
|
111
|
+
it do
|
112
|
+
@parser.admin_contacts.should be_a(Array)
|
113
|
+
@parser.admin_contacts.should have(1).items
|
114
|
+
@parser.admin_contacts[0].should be_a(_contact)
|
115
|
+
@parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
|
116
|
+
@parser.admin_contacts[0].id.should == "FR-11582fd1b4a9"
|
117
|
+
@parser.admin_contacts[0].name.should == "DotAsia Organisation"
|
118
|
+
@parser.admin_contacts[0].organization.should == "DotAsia Organisation"
|
119
|
+
@parser.admin_contacts[0].address.should == "Unit 617, Miramar Tower\n132 Nathan Road"
|
120
|
+
@parser.admin_contacts[0].city.should == "Tsim Sha Tsui"
|
121
|
+
@parser.admin_contacts[0].zip.should == "HK"
|
122
|
+
@parser.admin_contacts[0].state.should == "Kowloon"
|
123
|
+
@parser.admin_contacts[0].country_code.should == "HK"
|
124
|
+
@parser.admin_contacts[0].phone.should == "+852.35202635"
|
125
|
+
@parser.admin_contacts[0].fax.should == ""
|
126
|
+
@parser.admin_contacts[0].email.should == "domains@registry.asia"
|
127
|
+
end
|
128
|
+
end
|
129
|
+
describe "#technical_contacts" do
|
130
|
+
it do
|
131
|
+
@parser.technical_contacts.should be_a(Array)
|
132
|
+
@parser.technical_contacts.should have(1).items
|
133
|
+
@parser.technical_contacts[0].should be_a(_contact)
|
134
|
+
@parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
|
135
|
+
@parser.technical_contacts[0].id.should == "FR-11582fd1b4a9"
|
136
|
+
@parser.technical_contacts[0].name.should == "DotAsia Organisation"
|
137
|
+
@parser.technical_contacts[0].organization.should == "DotAsia Organisation"
|
138
|
+
@parser.technical_contacts[0].address.should == "Unit 617, Miramar Tower\n132 Nathan Road"
|
139
|
+
@parser.technical_contacts[0].city.should == "Tsim Sha Tsui"
|
140
|
+
@parser.technical_contacts[0].zip.should == "HK"
|
141
|
+
@parser.technical_contacts[0].state.should == "Kowloon"
|
142
|
+
@parser.technical_contacts[0].country_code.should == "HK"
|
143
|
+
@parser.technical_contacts[0].phone.should == "+852.35202635"
|
144
|
+
@parser.technical_contacts[0].fax.should == ""
|
145
|
+
@parser.technical_contacts[0].email.should == "domains@registry.asia"
|
146
|
+
end
|
147
|
+
end
|
57
148
|
describe "#nameservers" do
|
58
149
|
it do
|
59
150
|
@parser.nameservers.should be_a(Array)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# This file is autogenerated. Do not edit it manually.
|
4
4
|
# If you want change the content of this file, edit
|
5
5
|
#
|
6
|
-
# /spec/fixtures/responses/whois.nic.dz/status_available.expected
|
6
|
+
# /spec/fixtures/responses/whois.nic.dz/dz/status_available.expected
|
7
7
|
#
|
8
8
|
# and regenerate the tests with the following rake task
|
9
9
|
#
|
@@ -16,7 +16,7 @@ require 'whois/record/parser/whois.nic.dz.rb'
|
|
16
16
|
describe Whois::Record::Parser::WhoisNicDz, "status_available.expected" do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
file = fixture("responses", "whois.nic.dz/status_available.txt")
|
19
|
+
file = fixture("responses", "whois.nic.dz/dz/status_available.txt")
|
20
20
|
part = Whois::Record::Part.new(:body => File.read(file))
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# This file is autogenerated. Do not edit it manually.
|
4
4
|
# If you want change the content of this file, edit
|
5
5
|
#
|
6
|
-
# /spec/fixtures/responses/whois.nic.dz/status_registered.expected
|
6
|
+
# /spec/fixtures/responses/whois.nic.dz/dz/status_registered.expected
|
7
7
|
#
|
8
8
|
# and regenerate the tests with the following rake task
|
9
9
|
#
|
@@ -16,7 +16,7 @@ require 'whois/record/parser/whois.nic.dz.rb'
|
|
16
16
|
describe Whois::Record::Parser::WhoisNicDz, "status_registered.expected" do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
file = fixture("responses", "whois.nic.dz/status_registered.txt")
|
19
|
+
file = fixture("responses", "whois.nic.dz/dz/status_registered.txt")
|
20
20
|
part = Whois::Record::Part.new(:body => File.read(file))
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
@@ -23,7 +23,7 @@ describe Whois::Record::Parser::WhoisNicName, "status_registered.expected" do
|
|
23
23
|
|
24
24
|
describe "#status" do
|
25
25
|
it do
|
26
|
-
@parser.status.should ==
|
26
|
+
@parser.status.should == ["clientDeleteProhibited", "clientRenewProhibited", "clientTransferProhibited", "clientUpdateProhibited"]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
describe "#available?" do
|
@@ -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.nic.travel/property_status_multiple.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.nic.travel.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisNicTravel, "property_status_multiple.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.nic.travel/property_status_multiple.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#status" do
|
25
|
+
it do
|
26
|
+
@parser.status.should == ["clientDeleteProhibited", "clientTransferProhibited"]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
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.nic.travel/property_status_single.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.nic.travel.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisNicTravel, "property_status_single.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.nic.travel/property_status_single.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#status" do
|
25
|
+
it do
|
26
|
+
@parser.status.should == ["ok"]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
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.nic.xxx/property_updated_on_blank.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.nic.xxx.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisNicXxx, "property_updated_on_blank.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.nic.xxx/property_updated_on_blank.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
|
@@ -23,17 +23,17 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
23
23
|
|
24
24
|
describe "#disclaimer" do
|
25
25
|
it do
|
26
|
-
@parser.disclaimer.should == "Access to
|
26
|
+
@parser.disclaimer.should == "Access to the .XXX WHOIS information is provided to assist persons in determining the contents of a domain name registration record in the ICM Registry database. The data in this record is provided by ICM Registry for informational purposes only, and ICM 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 ICM except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. ICM reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy."
|
27
27
|
end
|
28
28
|
end
|
29
29
|
describe "#domain" do
|
30
30
|
it do
|
31
|
-
@parser.domain.should == "
|
31
|
+
@parser.domain.should == "masala.xxx"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
describe "#domain_id" do
|
35
35
|
it do
|
36
|
-
@parser.domain_id.should == "
|
36
|
+
@parser.domain_id.should == "D372-ICM"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
describe "#referral_whois" do
|
@@ -48,7 +48,7 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
48
48
|
end
|
49
49
|
describe "#status" do
|
50
50
|
it do
|
51
|
-
@parser.status.should == "OK"
|
51
|
+
@parser.status.should == ["OK"]
|
52
52
|
end
|
53
53
|
end
|
54
54
|
describe "#available?" do
|
@@ -64,27 +64,26 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
64
64
|
describe "#created_on" do
|
65
65
|
it do
|
66
66
|
@parser.created_on.should be_a(Time)
|
67
|
-
@parser.created_on.should == Time.parse("2011-
|
67
|
+
@parser.created_on.should == Time.parse("2011-08-09 17:48:52.556689 UTC")
|
68
68
|
end
|
69
69
|
end
|
70
70
|
describe "#updated_on" do
|
71
71
|
it do
|
72
|
-
@parser.updated_on.should
|
73
|
-
@parser.updated_on.should == Time.parse("2011-05-03 21:00:00 UTC")
|
72
|
+
@parser.updated_on.should == nil
|
74
73
|
end
|
75
74
|
end
|
76
75
|
describe "#expires_on" do
|
77
76
|
it do
|
78
77
|
@parser.expires_on.should be_a(Time)
|
79
|
-
@parser.expires_on.should == Time.parse("2012-
|
78
|
+
@parser.expires_on.should == Time.parse("2012-08-09 17:48:52.556689")
|
80
79
|
end
|
81
80
|
end
|
82
81
|
describe "#registrar" do
|
83
82
|
it do
|
84
83
|
@parser.registrar.should be_a(_registrar)
|
85
|
-
@parser.registrar.id.should == "
|
86
|
-
@parser.registrar.name.should == "
|
87
|
-
@parser.registrar.organization.should == "
|
84
|
+
@parser.registrar.id.should == "R2-ICM"
|
85
|
+
@parser.registrar.name.should == "Domainmonster.com"
|
86
|
+
@parser.registrar.organization.should == "Domainmonster.com"
|
88
87
|
end
|
89
88
|
end
|
90
89
|
describe "#registrant_contacts" do
|
@@ -93,17 +92,17 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
93
92
|
@parser.registrant_contacts.should have(1).items
|
94
93
|
@parser.registrant_contacts[0].should be_a(_contact)
|
95
94
|
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
96
|
-
@parser.registrant_contacts[0].id.should == "
|
97
|
-
@parser.registrant_contacts[0].name.should == "
|
98
|
-
@parser.registrant_contacts[0].organization.should == "
|
99
|
-
@parser.registrant_contacts[0].address.should == "PO Box
|
100
|
-
@parser.registrant_contacts[0].city.should == "
|
101
|
-
@parser.registrant_contacts[0].zip.should == "
|
102
|
-
@parser.registrant_contacts[0].state.should == "
|
103
|
-
@parser.registrant_contacts[0].country_code.should == "
|
104
|
-
@parser.registrant_contacts[0].phone.should == "
|
105
|
-
@parser.registrant_contacts[0].fax.should == "+
|
106
|
-
@parser.registrant_contacts[0].email.should == "
|
95
|
+
@parser.registrant_contacts[0].id.should == "C7-ICM"
|
96
|
+
@parser.registrant_contacts[0].name.should == "Domainmonster.com Privacy Service"
|
97
|
+
@parser.registrant_contacts[0].organization.should == "Mesh Digital Ltd (Domainmonster.com)"
|
98
|
+
@parser.registrant_contacts[0].address.should == "PO Box 795"
|
99
|
+
@parser.registrant_contacts[0].city.should == "Godalming"
|
100
|
+
@parser.registrant_contacts[0].zip.should == "GU7 9GA"
|
101
|
+
@parser.registrant_contacts[0].state.should == "Surrey"
|
102
|
+
@parser.registrant_contacts[0].country_code.should == "UB"
|
103
|
+
@parser.registrant_contacts[0].phone.should == "44.14833075"
|
104
|
+
@parser.registrant_contacts[0].fax.should == "+44.148330403"
|
105
|
+
@parser.registrant_contacts[0].email.should == "support@domainmonster.com"
|
107
106
|
end
|
108
107
|
end
|
109
108
|
describe "#admin_contacts" do
|
@@ -112,17 +111,17 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
112
111
|
@parser.admin_contacts.should have(1).items
|
113
112
|
@parser.admin_contacts[0].should be_a(_contact)
|
114
113
|
@parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
|
115
|
-
@parser.admin_contacts[0].id.should == "
|
116
|
-
@parser.admin_contacts[0].name.should == "
|
117
|
-
@parser.admin_contacts[0].organization.should == "
|
118
|
-
@parser.admin_contacts[0].address.should == "PO Box
|
119
|
-
@parser.admin_contacts[0].city.should == "
|
120
|
-
@parser.admin_contacts[0].zip.should == "
|
121
|
-
@parser.admin_contacts[0].state.should == "
|
122
|
-
@parser.admin_contacts[0].country_code.should == "
|
123
|
-
@parser.admin_contacts[0].phone.should == "
|
124
|
-
@parser.admin_contacts[0].fax.should == "+
|
125
|
-
@parser.admin_contacts[0].email.should == "
|
114
|
+
@parser.admin_contacts[0].id.should == "C7-ICM"
|
115
|
+
@parser.admin_contacts[0].name.should == "Domainmonster.com Privacy Service"
|
116
|
+
@parser.admin_contacts[0].organization.should == "Mesh Digital Ltd (Domainmonster.com)"
|
117
|
+
@parser.admin_contacts[0].address.should == "PO Box 795"
|
118
|
+
@parser.admin_contacts[0].city.should == "Godalming"
|
119
|
+
@parser.admin_contacts[0].zip.should == "GU7 9GA"
|
120
|
+
@parser.admin_contacts[0].state.should == "Surrey"
|
121
|
+
@parser.admin_contacts[0].country_code.should == "UB"
|
122
|
+
@parser.admin_contacts[0].phone.should == "44.14833075"
|
123
|
+
@parser.admin_contacts[0].fax.should == "+44.148330403"
|
124
|
+
@parser.admin_contacts[0].email.should == "support@domainmonster.com"
|
126
125
|
end
|
127
126
|
end
|
128
127
|
describe "#technical_contacts" do
|
@@ -131,17 +130,17 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
131
130
|
@parser.technical_contacts.should have(1).items
|
132
131
|
@parser.technical_contacts[0].should be_a(_contact)
|
133
132
|
@parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
|
134
|
-
@parser.technical_contacts[0].id.should == "
|
135
|
-
@parser.technical_contacts[0].name.should == "
|
136
|
-
@parser.technical_contacts[0].organization.should == "
|
137
|
-
@parser.technical_contacts[0].address.should == "PO Box
|
138
|
-
@parser.technical_contacts[0].city.should == "
|
139
|
-
@parser.technical_contacts[0].zip.should == "
|
140
|
-
@parser.technical_contacts[0].state.should == "
|
141
|
-
@parser.technical_contacts[0].country_code.should == "
|
142
|
-
@parser.technical_contacts[0].phone.should == "
|
143
|
-
@parser.technical_contacts[0].fax.should == "+
|
144
|
-
@parser.technical_contacts[0].email.should == "
|
133
|
+
@parser.technical_contacts[0].id.should == "C7-ICM"
|
134
|
+
@parser.technical_contacts[0].name.should == "Domainmonster.com Privacy Service"
|
135
|
+
@parser.technical_contacts[0].organization.should == "Mesh Digital Ltd (Domainmonster.com)"
|
136
|
+
@parser.technical_contacts[0].address.should == "PO Box 795"
|
137
|
+
@parser.technical_contacts[0].city.should == "Godalming"
|
138
|
+
@parser.technical_contacts[0].zip.should == "GU7 9GA"
|
139
|
+
@parser.technical_contacts[0].state.should == "Surrey"
|
140
|
+
@parser.technical_contacts[0].country_code.should == "UB"
|
141
|
+
@parser.technical_contacts[0].phone.should == "44.14833075"
|
142
|
+
@parser.technical_contacts[0].fax.should == "+44.148330403"
|
143
|
+
@parser.technical_contacts[0].email.should == "support@domainmonster.com"
|
145
144
|
end
|
146
145
|
end
|
147
146
|
describe "#nameservers" do
|
@@ -149,9 +148,9 @@ describe Whois::Record::Parser::WhoisNicXxx, "status_registered.expected" do
|
|
149
148
|
@parser.nameservers.should be_a(Array)
|
150
149
|
@parser.nameservers.should have(2).items
|
151
150
|
@parser.nameservers[0].should be_a(_nameserver)
|
152
|
-
@parser.nameservers[0].name.should == "
|
151
|
+
@parser.nameservers[0].name.should == "ns33.domaincontrol.com"
|
153
152
|
@parser.nameservers[1].should be_a(_nameserver)
|
154
|
-
@parser.nameservers[1].name.should == "
|
153
|
+
@parser.nameservers[1].name.should == "ns34.domaincontrol.com"
|
155
154
|
end
|
156
155
|
end
|
157
156
|
end
|