whois 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +0 -1
- data/Rakefile +25 -1
- data/lib/whois/definitions/tlds.rb +1 -1
- data/lib/whois/record/parser/base.rb +1 -1
- data/lib/whois/record/parser/base_afilias.rb +2 -2
- data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +1 -1
- data/lib/whois/record/parser/whois.audns.net.au.rb +81 -16
- data/lib/whois/record/parser/whois.biz.rb +1 -1
- data/lib/whois/record/parser/whois.cctld.by.rb +107 -0
- data/lib/whois/record/parser/whois.centralnic.com.rb +1 -1
- data/lib/whois/record/parser/whois.cira.ca.rb +103 -51
- data/lib/whois/record/parser/whois.cnnic.cn.rb +1 -1
- data/lib/whois/record/parser/whois.crsnic.net.rb +1 -1
- data/lib/whois/record/parser/whois.denic.de.rb +1 -1
- data/lib/whois/record/parser/whois.dns.hr.rb +2 -2
- data/lib/whois/record/parser/whois.domainregistry.ie.rb +77 -21
- data/lib/whois/record/parser/whois.domainregistry.my.rb +5 -8
- data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
- data/lib/whois/record/parser/whois.enom.com.rb +124 -0
- data/lib/whois/record/parser/whois.fi.rb +1 -1
- data/lib/whois/record/parser/whois.iana.org.rb +1 -1
- data/lib/whois/record/parser/whois.nc.rb +2 -2
- data/lib/whois/record/parser/whois.nic.cc.rb +1 -1
- data/lib/whois/record/parser/whois.nic.hu.rb +1 -1
- data/lib/whois/record/parser/whois.nic.it.rb +1 -1
- data/lib/whois/record/parser/whois.nic.lk.rb +1 -1
- data/lib/whois/record/parser/whois.nic.tv.rb +1 -1
- data/lib/whois/record/parser/whois.registry.qa.rb +1 -1
- data/lib/whois/record/parser/whois.rnids.rs.rb +4 -4
- data/lib/whois/record/parser/whois.smallregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.tld.ee.rb +1 -1
- data/lib/whois/record/parser/whois.ua.rb +1 -1
- data/lib/whois/record/scanners/afilias.rb +60 -0
- data/lib/whois/record/scanners/ast.rb +67 -0
- data/lib/whois/record/scanners/base.rb +102 -0
- data/lib/whois/record/scanners/iana.rb +101 -0
- data/lib/whois/record/scanners/verisign.rb +112 -0
- data/lib/whois/record/scanners/whois.audns.net.au.rb +39 -0
- data/lib/whois/record/scanners/whois.biz.rb +47 -0
- data/lib/whois/record/scanners/whois.cctld.by.rb +46 -0
- data/lib/whois/record/scanners/whois.centralnic.com.rb +46 -0
- data/lib/whois/record/scanners/whois.cira.ca.rb +87 -0
- data/lib/whois/record/scanners/whois.cnnic.cn.rb +44 -0
- data/lib/whois/record/scanners/whois.denic.de.rb +122 -0
- data/lib/whois/record/scanners/whois.dns.hr.rb +39 -0
- data/lib/whois/record/scanners/whois.domainregistry.ie.rb +50 -0
- data/lib/whois/record/scanners/whois.nc.rb +46 -0
- data/lib/whois/record/scanners/whois.nic.hu.rb +178 -0
- data/lib/whois/record/scanners/whois.nic.it.rb +104 -0
- data/lib/whois/record/scanners/whois.registry.qa.rb +39 -0
- data/lib/whois/record/scanners/whois.rnids.rs.rb +75 -0
- data/lib/whois/record/scanners/whois.smallregistry.net.rb +61 -0
- data/lib/whois/record/scanners/whois.tld.ee.rb +50 -0
- data/lib/whois/version.rb +1 -1
- data/spec/fixtures/responses/whois.audns.net.au/status_available.expected +33 -0
- data/spec/fixtures/responses/whois.audns.net.au/status_registered.expected +53 -0
- data/spec/fixtures/responses/whois.cctld.by/status_available.expected +54 -0
- data/spec/fixtures/responses/whois.cctld.by/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.cctld.by/status_registered.expected +64 -0
- data/spec/fixtures/responses/whois.cctld.by/status_registered.txt +11 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.expected → property_status_autorenew_grace.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.txt → property_status_autorenew_grace.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.expected → property_status_available.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.txt → property_status_available.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.expected → property_status_redemption.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.txt → property_status_redemption.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.expected → property_status_registered.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.txt → property_status_registered.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.expected → property_status_tobereleased.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.txt → property_status_tobereleased.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_unavailable.txt → property_status_unavailable.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/status_available.expected +64 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_available.txt → status_available.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.expected → status_invalid.expected} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.txt → status_invalid.txt} +0 -0
- data/spec/fixtures/responses/whois.cira.ca/status_registered.expected +118 -0
- data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_registered.txt → status_registered.txt} +11 -10
- data/spec/fixtures/responses/whois.domainregistry.ie/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.domainregistry.ie/status_available.txt +2 -4
- data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.expected +47 -1
- data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.txt +5 -6
- data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.expected +31 -0
- data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.txt +61 -0
- data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.expected +15 -0
- data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.txt +67 -0
- data/spec/fixtures/responses/whois.enom.com/status_registered.expected +97 -0
- data/spec/fixtures/responses/whois.enom.com/status_registered.txt +68 -0
- data/spec/fixtures/responses/whois.nic.it/status_registered.expected +25 -25
- data/spec/whois/record/parser/responses/whois.audns.net.au/status_available_spec.rb +47 -0
- data/spec/whois/record/parser/responses/whois.audns.net.au/status_registered_spec.rb +67 -0
- data/spec/whois/record/parser/responses/whois.cctld.by/status_available_spec.rb +105 -0
- data/spec/whois/record/parser/responses/whois.cctld.by/status_registered_spec.rb +115 -0
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace_spec.rb → property_status_autorenew_grace_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_available_spec.rb → property_status_available_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_redemption_spec.rb → property_status_redemption_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_registered_spec.rb → property_status_registered_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_tobereleased_spec.rb → property_status_tobereleased_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_available_spec.rb → status_available_spec.rb} +45 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_invalid_spec.rb → status_invalid_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.cira.ca/status_registered_spec.rb +172 -0
- data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_registered_spec.rb +61 -1
- data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_almost_empty_spec.rb +60 -0
- data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_long_address_spec.rb +42 -0
- data/spec/whois/record/parser/responses/whois.enom.com/status_registered_spec.rb +140 -0
- data/spec/whois/record/parser/responses/whois.nic.it/status_registered_spec.rb +25 -25
- data/whois.gemspec +8 -7
- metadata +101 -61
- data/lib/whois/record/parser/scanners/afilias.rb +0 -66
- data/lib/whois/record/parser/scanners/ast.rb +0 -69
- data/lib/whois/record/parser/scanners/base.rb +0 -85
- data/lib/whois/record/parser/scanners/iana.rb +0 -108
- data/lib/whois/record/parser/scanners/verisign.rb +0 -122
- data/lib/whois/record/parser/scanners/whois.biz.rb +0 -49
- data/lib/whois/record/parser/scanners/whois.centralnic.com.rb +0 -52
- data/lib/whois/record/parser/scanners/whois.cnnic.cn.rb +0 -46
- data/lib/whois/record/parser/scanners/whois.denic.de.rb +0 -124
- data/lib/whois/record/parser/scanners/whois.dns.hr.rb +0 -41
- data/lib/whois/record/parser/scanners/whois.nc.rb +0 -48
- data/lib/whois/record/parser/scanners/whois.nic.hu.rb +0 -180
- data/lib/whois/record/parser/scanners/whois.nic.it.rb +0 -111
- data/lib/whois/record/parser/scanners/whois.registry.qa.rb +0 -41
- data/lib/whois/record/parser/scanners/whois.rnids.rs.rb +0 -78
- data/lib/whois/record/parser/scanners/whois.smallregistry.net.rb +0 -62
- data/lib/whois/record/parser/scanners/whois.tld.ee.rb +0 -52
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.expected +0 -27
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.txt +0 -9
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.expected +0 -46
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.txt +0 -47
- data/spec/fixtures/responses/whois.cira.ca/schema-2/status_available.expected +0 -34
- data/spec/fixtures/responses/whois.cira.ca/schema-2/status_registered.expected +0 -48
- data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_available_spec.rb +0 -65
- data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_registered_spec.rb +0 -84
- data/spec/whois/record/parser/responses/whois.cira.ca/schema-2/status_registered_spec.rb +0 -89
@@ -1,84 +0,0 @@
|
|
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.cira.ca/schema-1/status_registered.expected
|
7
|
-
#
|
8
|
-
# and regenerate the tests with the following rake task
|
9
|
-
#
|
10
|
-
# $ rake spec:generate
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'whois/record/parser/whois.cira.ca.rb'
|
15
|
-
|
16
|
-
describe Whois::Record::Parser::WhoisCiraCa, "status_registered.expected" do
|
17
|
-
|
18
|
-
before(:each) do
|
19
|
-
file = fixture("responses", "whois.cira.ca/schema-1/status_registered.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 == :registered
|
27
|
-
end
|
28
|
-
end
|
29
|
-
describe "#available?" do
|
30
|
-
it do
|
31
|
-
@parser.available?.should == false
|
32
|
-
end
|
33
|
-
end
|
34
|
-
describe "#registered?" do
|
35
|
-
it do
|
36
|
-
@parser.registered?.should == true
|
37
|
-
end
|
38
|
-
end
|
39
|
-
describe "#created_on" do
|
40
|
-
it do
|
41
|
-
@parser.created_on.should be_a(Time)
|
42
|
-
@parser.created_on.should == Time.parse("2000-10-03 00:00:00")
|
43
|
-
end
|
44
|
-
end
|
45
|
-
describe "#updated_on" do
|
46
|
-
it do
|
47
|
-
@parser.updated_on.should be_a(Time)
|
48
|
-
@parser.updated_on.should == Time.parse("2009-05-27 00:00:00")
|
49
|
-
end
|
50
|
-
end
|
51
|
-
describe "#expires_on" do
|
52
|
-
it do
|
53
|
-
@parser.expires_on.should be_a(Time)
|
54
|
-
@parser.expires_on.should == Time.parse("2011-04-28 00:00:00")
|
55
|
-
end
|
56
|
-
end
|
57
|
-
describe "#registrar" do
|
58
|
-
it do
|
59
|
-
@parser.registrar.should be_a(Whois::Record::Registrar)
|
60
|
-
@parser.registrar.id.should == "70"
|
61
|
-
@parser.registrar.name.should == "Webnames.ca Inc."
|
62
|
-
@parser.registrar.organization.should == "Webnames.ca Inc."
|
63
|
-
@parser.registrar.url.should == nil
|
64
|
-
end
|
65
|
-
end
|
66
|
-
describe "#nameservers" do
|
67
|
-
it do
|
68
|
-
@parser.nameservers.should be_a(Array)
|
69
|
-
@parser.nameservers.should have(4).items
|
70
|
-
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
|
71
|
-
@parser.nameservers[0].name.should == "ns1.google.com"
|
72
|
-
@parser.nameservers[0].ipv4.should == "216.239.32.10"
|
73
|
-
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
|
74
|
-
@parser.nameservers[1].name.should == "ns2.google.com"
|
75
|
-
@parser.nameservers[1].ipv4.should == "216.239.34.10"
|
76
|
-
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
|
77
|
-
@parser.nameservers[2].name.should == "ns3.google.com"
|
78
|
-
@parser.nameservers[2].ipv4.should == "216.239.36.10"
|
79
|
-
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
|
80
|
-
@parser.nameservers[3].name.should == "ns4.google.com"
|
81
|
-
@parser.nameservers[3].ipv4.should == "216.239.38.10"
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
@@ -1,89 +0,0 @@
|
|
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.cira.ca/schema-2/status_registered.expected
|
7
|
-
#
|
8
|
-
# and regenerate the tests with the following rake task
|
9
|
-
#
|
10
|
-
# $ rake spec:generate
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'whois/record/parser/whois.cira.ca.rb'
|
15
|
-
|
16
|
-
describe Whois::Record::Parser::WhoisCiraCa, "status_registered.expected" do
|
17
|
-
|
18
|
-
before(:each) do
|
19
|
-
file = fixture("responses", "whois.cira.ca/schema-2/status_registered.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 == :registered
|
27
|
-
end
|
28
|
-
end
|
29
|
-
describe "#available?" do
|
30
|
-
it do
|
31
|
-
@parser.available?.should == false
|
32
|
-
end
|
33
|
-
end
|
34
|
-
describe "#registered?" do
|
35
|
-
it do
|
36
|
-
@parser.registered?.should == true
|
37
|
-
end
|
38
|
-
end
|
39
|
-
describe "#created_on" do
|
40
|
-
it do
|
41
|
-
@parser.created_on.should be_a(Time)
|
42
|
-
@parser.created_on.should == Time.parse("2000-10-03 00:00:00")
|
43
|
-
end
|
44
|
-
end
|
45
|
-
describe "#updated_on" do
|
46
|
-
it do
|
47
|
-
@parser.updated_on.should == nil
|
48
|
-
end
|
49
|
-
end
|
50
|
-
describe "#expires_on" do
|
51
|
-
it do
|
52
|
-
@parser.expires_on.should be_a(Time)
|
53
|
-
@parser.expires_on.should == Time.parse("2011-04-28 00:00:00")
|
54
|
-
end
|
55
|
-
end
|
56
|
-
describe "#registrar" do
|
57
|
-
it do
|
58
|
-
@parser.registrar.should be_a(Whois::Record::Registrar)
|
59
|
-
@parser.registrar.id.should == "70"
|
60
|
-
@parser.registrar.name.should == "Webnames.ca Inc."
|
61
|
-
@parser.registrar.organization.should == "Webnames.ca Inc."
|
62
|
-
@parser.registrar.url.should == nil
|
63
|
-
end
|
64
|
-
end
|
65
|
-
describe "#nameservers" do
|
66
|
-
it do
|
67
|
-
@parser.nameservers.should be_a(Array)
|
68
|
-
@parser.nameservers.should have(4).items
|
69
|
-
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
|
70
|
-
@parser.nameservers[0].name.should == "ns1.google.com"
|
71
|
-
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
|
72
|
-
@parser.nameservers[1].name.should == "ns2.google.com"
|
73
|
-
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
|
74
|
-
@parser.nameservers[2].name.should == "ns3.google.com"
|
75
|
-
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
|
76
|
-
@parser.nameservers[3].name.should == "ns4.google.com"
|
77
|
-
end
|
78
|
-
end
|
79
|
-
describe "#valid?" do
|
80
|
-
it do
|
81
|
-
@parser.valid?.should == true
|
82
|
-
end
|
83
|
-
end
|
84
|
-
describe "#invalid?" do
|
85
|
-
it do
|
86
|
-
@parser.invalid?.should == false
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|