whois 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -17
- data/lib/whois.rb +1 -1
- data/lib/whois/client.rb +1 -1
- data/lib/{core_ext.rb → whois/core_ext.rb} +4 -4
- data/lib/{core_ext → whois/core_ext}/array/extract_options.rb +0 -0
- data/lib/{core_ext → whois/core_ext}/array/wrap.rb +0 -0
- data/lib/{core_ext → whois/core_ext}/class/attribute.rb +3 -3
- data/lib/{core_ext → whois/core_ext}/date_time/conversions.rb +0 -0
- data/lib/{core_ext → whois/core_ext}/kernel/singleton_class.rb +0 -0
- data/lib/{core_ext → whois/core_ext}/module/remove_method.rb +0 -0
- data/lib/whois/definitions/ipv4.rb +4 -0
- data/lib/whois/definitions/tlds.rb +29 -29
- data/lib/whois/record.rb +14 -4
- data/lib/whois/record/parser.rb +17 -5
- data/lib/whois/record/parser/base.rb +11 -8
- data/lib/whois/record/parser/scanners/whois.centralnic.com.rb +1 -1
- data/lib/whois/record/parser/scanners/whois.dns.hr.rb +41 -0
- data/lib/whois/record/parser/scanners/whois.nc.rb +48 -0
- data/lib/whois/record/parser/scanners/whois.nic.hu.rb +2 -2
- data/lib/whois/record/parser/scanners/whois.rnids.rs.rb +78 -0
- data/lib/whois/record/parser/whois.biz.rb +2 -2
- data/lib/whois/record/parser/whois.dns.hr.rb +112 -0
- data/lib/whois/record/parser/whois.dreamhost.com.rb +120 -0
- data/lib/whois/record/parser/whois.fi.rb +76 -0
- data/lib/whois/record/parser/whois.ficora.fi.rb +3 -55
- data/lib/whois/record/parser/whois.godaddy.com.rb +3 -3
- data/lib/whois/record/parser/whois.markmonitor.com.rb +6 -9
- data/lib/whois/record/parser/whois.nc.rb +135 -0
- data/lib/whois/record/parser/whois.net.ua.rb +3 -57
- data/lib/whois/record/parser/whois.nic.gl.rb +5 -6
- data/lib/whois/record/parser/whois.nic.it.rb +12 -9
- data/lib/whois/record/parser/whois.nic.lk.rb +118 -0
- data/lib/whois/record/parser/whois.nic.mg.rb +2 -0
- data/lib/whois/record/parser/whois.nic.uk.rb +32 -12
- data/lib/whois/record/parser/whois.registry.qa.rb +2 -1
- data/lib/whois/record/parser/whois.rnids.rs.rb +143 -0
- data/lib/whois/record/parser/whois.ua.rb +75 -0
- data/lib/whois/version.rb +1 -1
- data/spec/fixtures/responses/jobswhois.verisign-grs.com/property_nameserver_no_nameserver.expected +1 -1
- data/spec/fixtures/responses/jobswhois.verisign-grs.com/status_available.expected +1 -1
- data/spec/fixtures/responses/jobswhois.verisign-grs.com/status_registered.expected +8 -8
- data/spec/fixtures/responses/kero.yachay.pe/status_available.expected +1 -1
- data/spec/fixtures/responses/kero.yachay.pe/status_inactive.expected +2 -2
- data/spec/fixtures/responses/kero.yachay.pe/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.adamsnames.tc/gd/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.adamsnames.tc/gd/status_registered.expected +4 -4
- data/spec/fixtures/responses/whois.adamsnames.tc/tc/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.adamsnames.tc/tc/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.adamsnames.tc/vg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.adamsnames.tc/vg/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.aeda.net.ae/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.aeda.net.ae/status_registered.expected +4 -4
- data/spec/fixtures/responses/whois.aero/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.aero/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.afilias-grs.info/bz/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/bz/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.afilias-grs.info/gi/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/gi/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.afilias-grs.info/hn/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/hn/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.afilias-grs.info/lc/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/lc/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.afilias-grs.info/mn/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/mn/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.afilias-grs.info/sc/status_available.expected +5 -5
- data/spec/fixtures/responses/whois.afilias-grs.info/sc/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.afilias-grs.info/vc/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias-grs.info/vc/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.afilias.info/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.afilias.info/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.ai/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ai/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.arnes.si/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.arnes.si/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.audns.net.au/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.audns.net.au/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.biz/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.biz/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.cat/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.cat/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.cctld.uz/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.cctld.uz/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.centralnic.com/ae.org/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/ae.org/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/ar.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/ar.com/status_registered.expected +21 -21
- data/spec/fixtures/responses/whois.centralnic.com/br.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/br.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/cn.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/cn.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/de.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/de.com/status_registered.expected +18 -18
- data/spec/fixtures/responses/whois.centralnic.com/eu.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/eu.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/gb.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/gb.com/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.centralnic.com/gb.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/gb.net/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.centralnic.com/gr.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/gr.com/status_registered.expected +20 -20
- data/spec/fixtures/responses/whois.centralnic.com/hu.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/hu.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/jpn.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/jpn.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/kr.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/kr.com/status_registered.expected +20 -20
- data/spec/fixtures/responses/whois.centralnic.com/no.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/no.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/qc.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/qc.com/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.centralnic.com/ru.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/ru.com/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.centralnic.com/sa.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/sa.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/se.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/se.com/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.centralnic.com/se.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/se.net/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/uk.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/uk.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/uk.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/uk.net/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/us.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/us.com/status_registered.expected +18 -18
- data/spec/fixtures/responses/whois.centralnic.com/us.org/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/uy.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/uy.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.centralnic.com/za.com/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.centralnic.com/za.com/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.expected +10 -10
- data/spec/fixtures/responses/whois.cira.ca/schema-2/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.cira.ca/schema-2/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.cnnic.cn/status_available.expected +3 -3
- data/spec/fixtures/responses/whois.cnnic.cn/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.co.ca/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.co.ca/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.co.pl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.co.pl/status_registered.expected +5 -5
- data/spec/fixtures/responses/whois.co.ug/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.co.ug/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.crsnic.net/property_nameserver_no_nameserver.expected +1 -1
- data/spec/fixtures/responses/whois.crsnic.net/property_registrar_with_multiple_entries.expected +1 -1
- data/spec/fixtures/responses/whois.crsnic.net/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.crsnic.net/status_registered.expected +10 -10
- data/spec/fixtures/responses/whois.denic.de/schema-1.10.0/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.denic.de/schema-1.10.0/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.denic.de/schema-1.11.0/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.denic.de/schema-1.11.0/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.denic.de/schema-1.11.0/status_invalid.expected +4 -4
- data/spec/fixtures/responses/whois.denic.de/schema-1.11.0/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.denic.de/schema-2.0/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.denic.de/schema-2.0/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.denic.de/schema-2.0/status_invalid.expected +4 -4
- data/spec/fixtures/responses/whois.denic.de/schema-2.0/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.dk-hostmaster.dk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dk-hostmaster.dk/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.dns.be/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.dns.be/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dns.be/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.dns.hr/status_available.expected +54 -0
- data/spec/fixtures/responses/whois.dns.hr/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.dns.hr/status_registered.expected +67 -0
- data/spec/fixtures/responses/whois.dns.hr/status_registered.txt +7 -0
- data/spec/fixtures/responses/whois.dns.lu/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.dns.lu/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dns.lu/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.dns.pl/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.dns.pl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dns.pl/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.dns.pt/property_nameservers.expected +6 -6
- data/spec/fixtures/responses/whois.dns.pt/property_nameservers_without_host.expected +6 -6
- data/spec/fixtures/responses/whois.dns.pt/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dns.pt/status_inactive.expected +4 -4
- data/spec/fixtures/responses/whois.dns.pt/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.dns.pt/status_reserved.expected +2 -2
- data/spec/fixtures/responses/whois.domain-registry.nl/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.domain-registry.nl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.domain-registry.nl/status_redemption.expected +1 -1
- data/spec/fixtures/responses/whois.domain-registry.nl/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.domain.kg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.domain.kg/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.domainregistry.ie/property_nameservers_with_ip.expected +8 -8
- data/spec/fixtures/responses/whois.domainregistry.ie/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.domainregistry.my/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.domainregistry.my/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.domreg.lt/property_nameservers_with_ip.expected +6 -6
- data/spec/fixtures/responses/whois.domreg.lt/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.domreg.lt/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.dot.tk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.dot.tk/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.dotmobiregistry.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.dotmobiregistry.net/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.dreamhost.com/property_contact_private.expected +47 -0
- data/spec/fixtures/responses/whois.dreamhost.com/property_contact_private.txt +75 -0
- data/spec/fixtures/responses/whois.dreamhost.com/status_registered.expected +87 -0
- data/spec/fixtures/responses/whois.dreamhost.com/status_registered.txt +79 -0
- data/spec/fixtures/responses/whois.educause.edu/property_registrant_without_address.expected +3 -3
- data/spec/fixtures/responses/whois.educause.edu/property_registrant_without_zip.expected +3 -3
- data/spec/fixtures/responses/whois.educause.edu/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.educause.edu/status_registered.expected +11 -11
- data/spec/fixtures/responses/whois.eenet.ee/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.eenet.ee/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.eu/property_nameservers.expected +7 -7
- data/spec/fixtures/responses/whois.eu/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.eu/status_registered.expected +6 -6
- data/spec/fixtures/responses/{whois.net.ua → whois.fi}/status_available.expected +3 -3
- data/spec/fixtures/responses/{whois.ficora.fi → whois.fi}/status_available.txt +0 -0
- data/spec/fixtures/responses/{whois.ficora.fi → whois.fi}/status_registered.expected +8 -8
- data/spec/fixtures/responses/{whois.ficora.fi → whois.fi}/status_registered.txt +0 -0
- data/spec/fixtures/responses/whois.gg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.gg/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.godaddy.com/status_registered.expected +22 -22
- data/spec/fixtures/responses/whois.godaddy.com/status_registered.txt +11 -11
- data/spec/fixtures/responses/whois.gov.za/status_registered.expected +1 -1
- data/spec/fixtures/responses/whois.hkirc.hk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.hkirc.hk/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.iam.net.ma/status_registered.expected +2 -2
- data/spec/fixtures/responses/whois.iana.org/int/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.iana.org/int/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.iana.org/tld/status_not_assigned.expected +5 -5
- data/spec/fixtures/responses/whois.in.ua/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.in.ua/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.isnic.is/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.isnic.is/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.isoc.org.il/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.isoc.org.il/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.ja.net/ac.uk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ja.net/ac.uk/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.ja.net/gov.uk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ja.net/gov.uk/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.je/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.je/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.jprs.jp/jp/property_updates_on_error_out-of-range.expected +1 -1
- data/spec/fixtures/responses/whois.jprs.jp/jp/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.jprs.jp/jp/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.jprs.jp/jp/status_reserved.expected +2 -2
- data/spec/fixtures/responses/whois.jprs.jp/ne.jp/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.jprs.jp/ne.jp/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.kenic.or.ke/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.kenic.or.ke/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.kr/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.kr/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.kr/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.markmonitor.com/property_contacts_are_blank.expected +7 -7
- data/spec/fixtures/responses/whois.markmonitor.com/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.meregistry.net/property_nameservers_is_blank.expected +1 -1
- data/spec/fixtures/responses/whois.meregistry.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.meregistry.net/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.museum/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.museum/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.na-nic.com.na/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.na-nic.com.na/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nc/status_available.expected +55 -0
- data/spec/fixtures/responses/whois.nc/status_available.txt +6 -0
- data/spec/fixtures/responses/whois.nc/status_registered.expected +76 -0
- data/spec/fixtures/responses/whois.nc/status_registered.txt +24 -0
- data/spec/fixtures/responses/whois.netcom.cm/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.netcom.cm/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic-se.se/property_datetime_is_dash.expected +2 -2
- data/spec/fixtures/responses/whois.nic-se.se/property_nameservers_with_ip.expected +6 -6
- data/spec/fixtures/responses/whois.nic-se.se/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic-se.se/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.af/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.af/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.ag/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.ag/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.nic.am/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.am/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.as/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.as/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.asia/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.asia/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.nic.at/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.at/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.bo/status_registered.expected +2 -2
- data/spec/fixtures/responses/whois.nic.cc/property_nameserver_no_nameserver.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cc/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cc/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.cd/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cd/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.ch/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.nic.ch/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ch/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.ci/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ci/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.ck/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ck/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.cl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cl/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.co/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.co/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.coop/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.coop/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.cx/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cx/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.cz/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.nic.cz/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.cz/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.ec/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ec/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.fr/fr/property_contact_without_address.expected +2 -2
- data/spec/fixtures/responses/whois.nic.fr/fr/property_nameservers.expected +6 -6
- data/spec/fixtures/responses/whois.nic.fr/fr/property_nameservers_multiple_ipv4.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/fr/property_nameservers_with_ipv4_and_some_ipv6.expected +8 -8
- data/spec/fixtures/responses/whois.nic.fr/fr/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/fr/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.nic.fr/pm/property_nameservers_with_ipv4_and_ipv6.expected +5 -5
- data/spec/fixtures/responses/whois.nic.fr/pm/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/pm/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.nic.fr/re/property_nameservers_with_ipv4_and_ipv6.expected +5 -5
- data/spec/fixtures/responses/whois.nic.fr/re/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/re/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.nic.fr/tf/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/tf/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.nic.fr/wf/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/wf/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.nic.fr/yt/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.fr/yt/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.nic.gl/property_status_active.expected +8 -0
- data/spec/fixtures/responses/whois.nic.gl/property_status_active.txt +47 -0
- data/spec/fixtures/responses/whois.nic.gl/property_status_delegated.expected +8 -0
- data/spec/fixtures/responses/whois.nic.gl/property_status_delegated.txt +48 -0
- data/spec/fixtures/responses/whois.nic.gl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.gl/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.gl/status_registered.txt +9 -5
- data/spec/fixtures/responses/whois.nic.gs/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.gs/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.ht/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ht/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_company.expected +3 -3
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_company.txt +2 -2
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_private_person.expected +2 -2
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_private_person.txt +1 -1
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_without_address.expected +3 -3
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_without_address.txt +1 -1
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/status_in_progress.expected +3 -3
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/status_registered.expected +23 -23
- data/spec/fixtures/responses/whois.nic.hu/schema-1.99/status_registered.txt +2 -2
- data/spec/fixtures/responses/whois.nic.hu/schema-current/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.hu/schema-current/status_registered.expected +4 -4
- data/spec/fixtures/responses/whois.nic.im/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.im/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.ir/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ir/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.it/property_contact_province.expected +3 -3
- data/spec/fixtures/responses/whois.nic.it/property_contact_with_company_in_address.expected +3 -3
- data/spec/fixtures/responses/whois.nic.it/property_contact_with_organization.expected +3 -3
- data/spec/fixtures/responses/whois.nic.it/property_status_pending-delete.expected +8 -0
- data/spec/fixtures/responses/whois.nic.it/property_status_pending-delete.txt +54 -0
- data/spec/fixtures/responses/whois.nic.it/property_status_pendingupdate_autorenewperiod.expected +8 -0
- data/spec/fixtures/responses/whois.nic.it/property_status_pendingupdate_autorenewperiod.txt +62 -0
- data/spec/fixtures/responses/whois.nic.it/property_technical_contact.expected +3 -3
- data/spec/fixtures/responses/whois.nic.it/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.it/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.nic.ki/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ki/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.kz/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.kz/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.la/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.la/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.nic.li/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.li/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.lk/lk/status_available.expected +55 -0
- data/spec/fixtures/responses/whois.nic.lk/lk/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.nic.lk/lk/status_registered.expected +70 -0
- data/spec/fixtures/responses/whois.nic.lk/lk/status_registered.txt +24 -0
- data/spec/fixtures/responses/whois.nic.lk/xn--fzc2c9e2c/status_available.txt +0 -0
- data/spec/fixtures/responses/whois.nic.lk/xn--fzc2c9e2c/status_registered.txt +18 -0
- data/spec/fixtures/responses/whois.nic.lk/xn--xkc2al3hye2a/status_available.txt +0 -0
- data/spec/fixtures/responses/whois.nic.lk/xn--xkc2al3hye2a/status_registered.txt +18 -0
- data/spec/fixtures/responses/whois.nic.lv/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.lv/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.ly/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ly/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.md/status_available.expected +2 -2
- data/spec/fixtures/responses/whois.nic.md/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.mg/property_status_active.expected +8 -0
- data/spec/fixtures/responses/whois.nic.mg/property_status_active.txt +65 -0
- data/spec/fixtures/responses/whois.nic.mg/property_status_delegated.expected +8 -0
- data/spec/fixtures/responses/whois.nic.mg/property_status_delegated.txt +78 -0
- data/spec/fixtures/responses/whois.nic.mg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.mg/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.ms/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ms/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.mu/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.mu/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.mx/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.nic.mx/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.mx/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.net.nf/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.net.nf/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.net.ng/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.net.ng/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.net.sa/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.net.sa/status_registered.expected +5 -5
- data/spec/fixtures/responses/whois.nic.net.sb/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.net.sb/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.nu/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.nu/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.org.uy/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.org.uy/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.pr/status_registered.expected +2 -2
- data/spec/fixtures/responses/whois.nic.priv.at/status_registered.expected +1 -1
- data/spec/fixtures/responses/whois.nic.sl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.sl/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.sm/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.sm/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.sn/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.sn/status_registered.expected +17 -17
- data/spec/fixtures/responses/whois.nic.so/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.so/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.st/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.st/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.nic.tel/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.tel/status_registered.expected +10 -10
- data/spec/fixtures/responses/whois.nic.tl/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.tl/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.tr/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.nic.tr/property_nameservers_with_trailing_space.expected +4 -4
- data/spec/fixtures/responses/whois.nic.tr/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.tr/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.nic.travel/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.travel/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.tv/property_nameserver_no_nameserver.expected +1 -1
- data/spec/fixtures/responses/whois.nic.tv/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.tv/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.nic.uk/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.nic.uk/property_registrar_without_trading_name.expected +1 -1
- data/spec/fixtures/responses/whois.nic.uk/property_status_no_status_listed.expected +8 -0
- data/spec/fixtures/responses/whois.nic.uk/property_status_no_status_listed.txt +48 -0
- data/spec/fixtures/responses/whois.nic.uk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.uk/status_registered.expected +13 -13
- data/spec/fixtures/responses/whois.nic.uk/status_reserved.expected +71 -0
- data/spec/fixtures/responses/whois.nic.uk/status_reserved.txt +48 -0
- data/spec/fixtures/responses/whois.nic.uk/status_suspended.expected +5 -5
- data/spec/fixtures/responses/whois.nic.us/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.us/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.nic.ve/property_nameservers.expected +4 -4
- data/spec/fixtures/responses/whois.nic.ve/property_nameservers_missing.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ve/property_updated_on.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ve/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.nic.ve/status_inactive.expected +7 -7
- data/spec/fixtures/responses/whois.nic.ve/status_registered.expected +3 -3
- data/spec/fixtures/responses/whois.nic.xxx/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.nic.xxx/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.norid.no/status_registered.expected +2 -2
- data/spec/fixtures/responses/whois.pandi.or.id/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.pandi.or.id/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.pnina.ps/property_nameservers_with_nodns.expected +3 -3
- data/spec/fixtures/responses/whois.pnina.ps/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.pnina.ps/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.publicinterestregistry.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.publicinterestregistry.net/status_registered.expected +19 -19
- data/spec/fixtures/responses/whois.register.bg/property_nameservers_with_ip.expected +4 -4
- data/spec/fixtures/responses/whois.register.bg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.register.bg/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.registro.br/property_nameservers_with_ip.expected +6 -6
- data/spec/fixtures/responses/whois.registro.br/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.registro.br/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.registry.gy/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.registry.gy/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.registry.hm/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.registry.hm/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.registry.in/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.registry.in/status_registered.expected +15 -15
- data/spec/fixtures/responses/whois.registry.qa/property_nameservers_without_ips.expected +12 -0
- data/spec/fixtures/responses/whois.registry.qa/property_nameservers_without_ips.txt +22 -0
- data/spec/fixtures/responses/whois.registry.qa/{qa/status_available.expected → status_available.expected} +3 -3
- data/spec/fixtures/responses/whois.registry.qa/{qa/status_available.txt → status_available.txt} +0 -0
- data/spec/fixtures/responses/whois.registry.qa/{qa/status_registered.expected → status_registered.expected} +11 -11
- data/spec/fixtures/responses/whois.registry.qa/{qa/status_registered.txt → status_registered.txt} +0 -0
- data/spec/fixtures/responses/whois.registrypro.pro/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.registrypro.pro/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.ripe.net/fo/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ripe.net/fo/status_registered.expected +4 -4
- data/spec/fixtures/responses/whois.ripe.net/gm/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ripe.net/gm/status_registered.expected +4 -4
- data/spec/fixtures/responses/whois.ripe.net/mc/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ripe.net/mc/status_registered.expected +5 -5
- data/spec/fixtures/responses/whois.ripe.net/va/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.ripe.net/va/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.rnids.rs/status_available.expected +57 -0
- data/spec/fixtures/responses/whois.rnids.rs/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.rnids.rs/status_registered.expected +94 -0
- data/spec/fixtures/responses/whois.rnids.rs/status_registered.txt +44 -0
- data/spec/fixtures/responses/whois.rotld.ro/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.rotld.ro/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.samoanic.ws/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.samoanic.ws/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1.expected +6 -6
- data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_1_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_2.expected +6 -6
- data/spec/fixtures/responses/whois.sgnic.sg/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.sgnic.sg/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.sk-nic.sk/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.sk-nic.sk/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.smallregistry.net/status_available.expected +4 -4
- data/spec/fixtures/responses/whois.smallregistry.net/status_registered.expected +16 -16
- data/spec/fixtures/responses/whois.srs.net.nz/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.srs.net.nz/status_invalid.expected +1 -1
- data/spec/fixtures/responses/whois.srs.net.nz/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.tcinet.ru/ru/property_nameservers_with_ip.expected +5 -5
- data/spec/fixtures/responses/whois.tcinet.ru/ru/status_available.expected +2 -2
- data/spec/fixtures/responses/whois.tcinet.ru/ru/status_registered.expected +12 -12
- data/spec/fixtures/responses/whois.tcinet.ru/su/status_available.expected +2 -2
- data/spec/fixtures/responses/whois.tcinet.ru/su/status_registered.expected +10 -10
- data/spec/fixtures/responses/whois.tcinet.ru/xn--p1ai/status_available.expected +2 -2
- data/spec/fixtures/responses/whois.tcinet.ru/xn--p1ai/status_registered.expected +11 -11
- data/spec/fixtures/responses/whois.thnic.co.th/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.thnic.co.th/status_registered.expected +9 -9
- data/spec/fixtures/responses/whois.tld.ee/status_available.expected +3 -3
- data/spec/fixtures/responses/whois.tld.ee/status_expired.expected +6 -6
- data/spec/fixtures/responses/whois.tld.ee/status_registered.expected +14 -14
- data/spec/fixtures/responses/whois.twnic.net.tw/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.twnic.net.tw/status_registered.expected +8 -8
- data/spec/fixtures/responses/whois.tznic.or.tz/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.tznic.or.tz/status_registered.expected +7 -7
- data/spec/fixtures/responses/whois.ua/property_nameservers_uppercase.expected +9 -0
- data/spec/fixtures/responses/{whois.net.ua → whois.ua}/property_nameservers_uppercase.txt +0 -0
- data/spec/fixtures/responses/{whois.net.ua → whois.ua}/redirect_to_whois.in.ua.txt +0 -0
- data/spec/fixtures/responses/{whois.ficora.fi → whois.ua}/status_available.expected +3 -3
- data/spec/fixtures/responses/{whois.net.ua → whois.ua}/status_available.txt +0 -0
- data/spec/fixtures/responses/{whois.net.ua → whois.ua}/status_registered.expected +8 -8
- data/spec/fixtures/responses/{whois.net.ua → whois.ua}/status_registered.txt +0 -0
- data/spec/fixtures/responses/whois.usp.ac.fj/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.usp.ac.fj/status_registered.expected +5 -5
- data/spec/fixtures/responses/whois.za.net/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.za.net/status_registered.expected +6 -6
- data/spec/fixtures/responses/whois.za.org/status_available.expected +1 -1
- data/spec/fixtures/responses/whois.za.org/status_registered.expected +7 -7
- data/spec/spec_helper.rb +1 -1
- data/spec/support/helpers/connectivity_helper.rb +2 -2
- data/spec/support/helpers/spec_helper.rb +20 -25
- data/spec/tlds +22 -18
- data/spec/whois/client_spec.rb +16 -9
- data/spec/whois/record/parser/base_spec.rb +8 -8
- data/spec/whois/record/parser/responses/whois.dns.hr/status_available_spec.rb +105 -0
- data/spec/whois/record/parser/responses/whois.dns.hr/status_registered_spec.rb +118 -0
- data/spec/whois/record/parser/responses/whois.dreamhost.com/property_contact_private_spec.rb +78 -0
- data/spec/whois/record/parser/responses/whois.dreamhost.com/status_registered_spec.rb +131 -0
- data/spec/whois/record/parser/responses/whois.fi/status_available_spec.rb +60 -0
- data/spec/whois/record/parser/responses/whois.fi/status_registered_spec.rb +70 -0
- data/spec/whois/record/parser/responses/whois.godaddy.com/status_registered_spec.rb +7 -7
- data/spec/whois/record/parser/responses/whois.nc/status_available_spec.rb +106 -0
- data/spec/whois/record/parser/responses/whois.nc/status_registered_spec.rb +127 -0
- data/spec/whois/record/parser/responses/whois.nic.gl/property_status_active_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.gl/property_status_delegated_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.gl/status_registered_spec.rb +2 -2
- data/spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/status_registered_spec.rb +3 -3
- data/spec/whois/record/parser/responses/whois.nic.it/property_status_pending-delete_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.it/property_status_pendingupdate_autorenewperiod_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.lk/lk/status_available_spec.rb +106 -0
- data/spec/whois/record/parser/responses/whois.nic.lk/lk/status_registered_spec.rb +121 -0
- data/spec/whois/record/parser/responses/whois.nic.mg/property_status_active_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.mg/property_status_delegated_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.uk/property_status_no_status_listed_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.nic.uk/status_reserved_spec.rb +114 -0
- data/spec/whois/record/parser/responses/whois.registry.qa/property_nameservers_without_ips_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.registry.qa/{qa/status_available_spec.rb → status_available_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.registry.qa/{qa/status_registered_spec.rb → status_registered_spec.rb} +2 -2
- data/spec/whois/record/parser/responses/whois.rnids.rs/status_available_spec.rb +108 -0
- data/spec/whois/record/parser/responses/whois.rnids.rs/status_registered_spec.rb +145 -0
- data/spec/whois/record/parser/responses/whois.ua/property_nameservers_uppercase_spec.rb +36 -0
- data/spec/whois/record/parser/responses/whois.ua/status_available_spec.rb +60 -0
- data/spec/whois/record/parser/responses/whois.ua/status_registered_spec.rb +70 -0
- data/spec/whois/record/parser_spec.rb +46 -25
- data/spec/whois/record_spec.rb +11 -3
- data/whois.gemspec +4 -4
- metadata +111 -35
- data/spec/fixtures/responses/whois.net.ua/property_nameservers_uppercase.expected +0 -9
data/spec/whois/client_spec.rb
CHANGED
@@ -41,16 +41,23 @@ describe Whois::Client do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
describe "#query" do
|
44
|
-
it "
|
44
|
+
it "converts the argument to string" do
|
45
45
|
# I can't use the String in place of instance_of(String)
|
46
46
|
# because Array#to_s behaves differently
|
47
47
|
# on Ruby 1.8.7 and Ruby 1.9.1
|
48
48
|
# http://redmine.ruby-lang.org/issues/show/2617
|
49
49
|
|
50
|
-
server = Whois::Server::Adapters::Base.new(:tld, ".test", "
|
50
|
+
server = Whois::Server::Adapters::Base.new(:tld, ".test", "whois.test")
|
51
51
|
server.expects(:query).with(instance_of(String))
|
52
52
|
Whois::Server.expects(:guess).with(instance_of(String)).returns(server)
|
53
|
-
klass.new.query(["
|
53
|
+
klass.new.query(["example", ".", "test"])
|
54
|
+
end
|
55
|
+
|
56
|
+
it "converts the argument to downcase" do
|
57
|
+
server = Whois::Server::Adapters::Base.new(:tld, ".test", "whois.test")
|
58
|
+
server.expects(:query).with("example.test")
|
59
|
+
Whois::Server.expects(:guess).with("example.test").returns(server)
|
60
|
+
klass.new.query("Example.TEST")
|
54
61
|
end
|
55
62
|
|
56
63
|
it "detects email" do
|
@@ -81,10 +88,10 @@ describe Whois::Client do
|
|
81
88
|
sleep(2)
|
82
89
|
end
|
83
90
|
end
|
84
|
-
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "
|
91
|
+
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "whois.test"))
|
85
92
|
|
86
93
|
client = klass.new(:timeout => 1)
|
87
|
-
lambda { client.query("
|
94
|
+
lambda { client.query("example.test") }.should raise_error(Timeout::Error)
|
88
95
|
end
|
89
96
|
|
90
97
|
it "does not raise if timeout is not exceeded" do
|
@@ -93,10 +100,10 @@ describe Whois::Client do
|
|
93
100
|
sleep(1)
|
94
101
|
end
|
95
102
|
end
|
96
|
-
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "
|
103
|
+
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "whois.test"))
|
97
104
|
|
98
105
|
client = klass.new(:timeout => 5)
|
99
|
-
lambda { client.query("
|
106
|
+
lambda { client.query("example.test") }.should_not raise_error
|
100
107
|
end
|
101
108
|
|
102
109
|
it "supports unlimited timeout" do
|
@@ -105,10 +112,10 @@ describe Whois::Client do
|
|
105
112
|
sleep(1)
|
106
113
|
end
|
107
114
|
end
|
108
|
-
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "
|
115
|
+
Whois::Server.expects(:guess).returns(adapter.new(:tld, ".test", "whois.test"))
|
109
116
|
|
110
117
|
client = klass.new.tap { |c| c.timeout = nil }
|
111
|
-
lambda { client.query("
|
118
|
+
lambda { client.query("example.test") }.should_not raise_error
|
112
119
|
end
|
113
120
|
|
114
121
|
end
|
@@ -158,35 +158,35 @@ describe Whois::Record::Parser::Base do
|
|
158
158
|
end
|
159
159
|
|
160
160
|
|
161
|
-
describe "#
|
161
|
+
describe "#response_incomplete?" do
|
162
162
|
it "is undefined" do
|
163
|
-
klass.new(@part).respond_to?(:
|
163
|
+
klass.new(@part).respond_to?(:response_incomplete?).should be_false
|
164
164
|
end
|
165
165
|
|
166
166
|
# it "returns nil" do
|
167
167
|
# i = klass.new(@part)
|
168
|
-
# i.
|
168
|
+
# i.response_incomplete?.should be_nil
|
169
169
|
# end
|
170
170
|
#
|
171
171
|
# it "is false" do
|
172
172
|
# i = klass.new(@part)
|
173
|
-
# i.
|
173
|
+
# i.response_incomplete?.should be_false
|
174
174
|
# end
|
175
175
|
end
|
176
176
|
|
177
|
-
describe "#
|
177
|
+
describe "#response_throttled?" do
|
178
178
|
it "is undefined" do
|
179
|
-
klass.new(@part).respond_to?(:
|
179
|
+
klass.new(@part).respond_to?(:response_throttled?).should be_false
|
180
180
|
end
|
181
181
|
|
182
182
|
# it "returns nil" do
|
183
183
|
# i = klass.new(@part)
|
184
|
-
# i.
|
184
|
+
# i.response_throttled?.should be_nil
|
185
185
|
# end
|
186
186
|
#
|
187
187
|
# it "is false" do
|
188
188
|
# i = klass.new(@part)
|
189
|
-
# i.
|
189
|
+
# i.response_throttled?.should be_false
|
190
190
|
# end
|
191
191
|
end
|
192
192
|
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# This file is autogenerated. Do not edit it manually.
|
4
|
+
# If you want change the content of this file, edit
|
5
|
+
#
|
6
|
+
# /spec/fixtures/responses/whois.dns.hr/status_available.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.dns.hr.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisDnsHr, "status_available.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.dns.hr/status_available.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
lambda { @parser.disclaimer }.should raise_error(Whois::PropertyNotSupported)
|
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
|
+
lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe "#referral_url" do
|
40
|
+
it do
|
41
|
+
lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe "#referral_whois" do
|
45
|
+
it do
|
46
|
+
lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
describe "#status" do
|
50
|
+
it do
|
51
|
+
@parser.status.should == :available
|
52
|
+
end
|
53
|
+
end
|
54
|
+
describe "#available?" do
|
55
|
+
it do
|
56
|
+
@parser.available?.should == true
|
57
|
+
end
|
58
|
+
end
|
59
|
+
describe "#registered?" do
|
60
|
+
it do
|
61
|
+
@parser.registered?.should == false
|
62
|
+
end
|
63
|
+
end
|
64
|
+
describe "#created_on" do
|
65
|
+
it do
|
66
|
+
lambda { @parser.created_on }.should raise_error(Whois::PropertyNotSupported)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
describe "#updated_on" do
|
70
|
+
it do
|
71
|
+
lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
describe "#expires_on" do
|
75
|
+
it do
|
76
|
+
@parser.expires_on.should == nil
|
77
|
+
end
|
78
|
+
end
|
79
|
+
describe "#registrar" do
|
80
|
+
it do
|
81
|
+
lambda { @parser.registrar }.should raise_error(Whois::PropertyNotSupported)
|
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
|
+
lambda { @parser.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
describe "#technical_contacts" do
|
96
|
+
it do
|
97
|
+
lambda { @parser.technical_contacts }.should raise_error(Whois::PropertyNotSupported)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
describe "#nameservers" do
|
101
|
+
it do
|
102
|
+
lambda { @parser.nameservers }.should raise_error(Whois::PropertyNotSupported)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# This file is autogenerated. Do not edit it manually.
|
4
|
+
# If you want change the content of this file, edit
|
5
|
+
#
|
6
|
+
# /spec/fixtures/responses/whois.dns.hr/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.dns.hr.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisDnsHr, "status_registered.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.dns.hr/status_registered.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
lambda { @parser.disclaimer }.should raise_error(Whois::PropertyNotSupported)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain" do
|
30
|
+
it do
|
31
|
+
@parser.domain.should == "google.hr"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe "#domain_id" do
|
35
|
+
it do
|
36
|
+
lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe "#referral_url" do
|
40
|
+
it do
|
41
|
+
lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe "#referral_whois" do
|
45
|
+
it do
|
46
|
+
lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
describe "#status" do
|
50
|
+
it do
|
51
|
+
@parser.status.should == :registered
|
52
|
+
end
|
53
|
+
end
|
54
|
+
describe "#available?" do
|
55
|
+
it do
|
56
|
+
@parser.available?.should == false
|
57
|
+
end
|
58
|
+
end
|
59
|
+
describe "#registered?" do
|
60
|
+
it do
|
61
|
+
@parser.registered?.should == true
|
62
|
+
end
|
63
|
+
end
|
64
|
+
describe "#created_on" do
|
65
|
+
it do
|
66
|
+
lambda { @parser.created_on }.should raise_error(Whois::PropertyNotSupported)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
describe "#updated_on" do
|
70
|
+
it do
|
71
|
+
lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
describe "#expires_on" do
|
75
|
+
it do
|
76
|
+
@parser.expires_on.should be_a(Time)
|
77
|
+
@parser.expires_on.should == Time.parse("2012-09-21")
|
78
|
+
end
|
79
|
+
end
|
80
|
+
describe "#registrar" do
|
81
|
+
it do
|
82
|
+
lambda { @parser.registrar }.should raise_error(Whois::PropertyNotSupported)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
describe "#registrant_contacts" do
|
86
|
+
it do
|
87
|
+
@parser.registrant_contacts.should be_a(Array)
|
88
|
+
@parser.registrant_contacts.should have(1).items
|
89
|
+
@parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
|
90
|
+
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
91
|
+
@parser.registrant_contacts[0].name.should == "Google Hrvatska d.o.o."
|
92
|
+
@parser.registrant_contacts[0].organization.should == nil
|
93
|
+
@parser.registrant_contacts[0].address.should == "Primorska 26"
|
94
|
+
@parser.registrant_contacts[0].city.should == "Zagreb"
|
95
|
+
@parser.registrant_contacts[0].zip.should == "10 000"
|
96
|
+
@parser.registrant_contacts[0].state.should == nil
|
97
|
+
@parser.registrant_contacts[0].country.should == nil
|
98
|
+
@parser.registrant_contacts[0].phone.should == nil
|
99
|
+
@parser.registrant_contacts[0].fax.should == nil
|
100
|
+
@parser.registrant_contacts[0].email.should == nil
|
101
|
+
end
|
102
|
+
end
|
103
|
+
describe "#admin_contacts" do
|
104
|
+
it do
|
105
|
+
lambda { @parser.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
describe "#technical_contacts" do
|
109
|
+
it do
|
110
|
+
lambda { @parser.technical_contacts }.should raise_error(Whois::PropertyNotSupported)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
describe "#nameservers" do
|
114
|
+
it do
|
115
|
+
lambda { @parser.nameservers }.should raise_error(Whois::PropertyNotSupported)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,78 @@
|
|
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.dreamhost.com/property_contact_private.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.dreamhost.com.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisDreamhostCom, "property_contact_private.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.dreamhost.com/property_contact_private.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#registrant_contacts" do
|
25
|
+
it do
|
26
|
+
@parser.registrant_contacts.should be_a(Array)
|
27
|
+
@parser.registrant_contacts.should have(1).items
|
28
|
+
@parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
|
29
|
+
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
30
|
+
@parser.registrant_contacts[0].name.should == "adequatehq.com Private Registrant"
|
31
|
+
@parser.registrant_contacts[0].organization.should == "A Happy DreamHost Customer"
|
32
|
+
@parser.registrant_contacts[0].address.should == "417 Associated Rd #324"
|
33
|
+
@parser.registrant_contacts[0].city.should == "Brea"
|
34
|
+
@parser.registrant_contacts[0].zip.should == "92821"
|
35
|
+
@parser.registrant_contacts[0].state.should == "CA"
|
36
|
+
@parser.registrant_contacts[0].country_code.should == "US"
|
37
|
+
@parser.registrant_contacts[0].phone.should == "+1.2139471032"
|
38
|
+
@parser.registrant_contacts[0].fax.should == nil
|
39
|
+
@parser.registrant_contacts[0].email.should == "adequatehq.com@proxy.dreamhost.com"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
describe "#admin_contacts" do
|
43
|
+
it do
|
44
|
+
@parser.admin_contacts.should be_a(Array)
|
45
|
+
@parser.admin_contacts.should have(1).items
|
46
|
+
@parser.admin_contacts[0].should be_a(Whois::Record::Contact)
|
47
|
+
@parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
|
48
|
+
@parser.admin_contacts[0].name.should == "adequatehq.com Private Registrant"
|
49
|
+
@parser.admin_contacts[0].organization.should == "A Happy DreamHost Customer"
|
50
|
+
@parser.admin_contacts[0].address.should == "417 Associated Rd #324"
|
51
|
+
@parser.admin_contacts[0].city.should == "Brea"
|
52
|
+
@parser.admin_contacts[0].zip.should == "92821"
|
53
|
+
@parser.admin_contacts[0].state.should == "CA"
|
54
|
+
@parser.admin_contacts[0].country_code.should == "US"
|
55
|
+
@parser.admin_contacts[0].phone.should == "+1.2139471032"
|
56
|
+
@parser.admin_contacts[0].fax.should == nil
|
57
|
+
@parser.admin_contacts[0].email.should == "adequatehq.com@proxy.dreamhost.com"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
describe "#technical_contacts" do
|
61
|
+
it do
|
62
|
+
@parser.technical_contacts.should be_a(Array)
|
63
|
+
@parser.technical_contacts.should have(1).items
|
64
|
+
@parser.technical_contacts[0].should be_a(Whois::Record::Contact)
|
65
|
+
@parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
|
66
|
+
@parser.technical_contacts[0].name.should == "adequatehq.com Private Registrant"
|
67
|
+
@parser.technical_contacts[0].organization.should == "A Happy DreamHost Customer"
|
68
|
+
@parser.technical_contacts[0].address.should == "417 Associated Rd #324"
|
69
|
+
@parser.technical_contacts[0].city.should == "Brea"
|
70
|
+
@parser.technical_contacts[0].zip.should == "92821"
|
71
|
+
@parser.technical_contacts[0].state.should == "CA"
|
72
|
+
@parser.technical_contacts[0].country_code.should == "US"
|
73
|
+
@parser.technical_contacts[0].phone.should == "+1.2139471032"
|
74
|
+
@parser.technical_contacts[0].fax.should == nil
|
75
|
+
@parser.technical_contacts[0].email.should == "adequatehq.com@proxy.dreamhost.com"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,131 @@
|
|
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.dreamhost.com/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.dreamhost.com.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisDreamhostCom, "status_registered.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.dreamhost.com/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
|
+
lambda { @parser.status }.should raise_error(Whois::PropertyNotSupported)
|
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("1997-09-22 21:00:00")
|
43
|
+
end
|
44
|
+
end
|
45
|
+
describe "#updated_on" do
|
46
|
+
it do
|
47
|
+
lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
|
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("2013-09-21 21: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 == nil
|
60
|
+
@parser.registrar.name.should == "DreamHost"
|
61
|
+
@parser.registrar.organization.should == "New Dream Network, LLC."
|
62
|
+
@parser.registrar.url.should == "http://www.dreamhost.com/"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
describe "#registrant_contacts" do
|
66
|
+
it do
|
67
|
+
@parser.registrant_contacts.should be_a(Array)
|
68
|
+
@parser.registrant_contacts.should have(1).items
|
69
|
+
@parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
|
70
|
+
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
71
|
+
@parser.registrant_contacts[0].name.should == "DreamHost Web Hosting"
|
72
|
+
@parser.registrant_contacts[0].organization.should == "New Dream Network, LLC."
|
73
|
+
@parser.registrant_contacts[0].address.should == "PMB #257\n417 Associated Rd."
|
74
|
+
@parser.registrant_contacts[0].city.should == "Brea"
|
75
|
+
@parser.registrant_contacts[0].zip.should == "92821"
|
76
|
+
@parser.registrant_contacts[0].state.should == "CA"
|
77
|
+
@parser.registrant_contacts[0].country_code.should == "US"
|
78
|
+
@parser.registrant_contacts[0].phone.should == "+1.7147064182"
|
79
|
+
@parser.registrant_contacts[0].fax.should == nil
|
80
|
+
@parser.registrant_contacts[0].email.should == "internic@dreamhost.com"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
describe "#admin_contacts" do
|
84
|
+
it do
|
85
|
+
@parser.admin_contacts.should be_a(Array)
|
86
|
+
@parser.admin_contacts.should have(1).items
|
87
|
+
@parser.admin_contacts[0].should be_a(Whois::Record::Contact)
|
88
|
+
@parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
|
89
|
+
@parser.admin_contacts[0].name.should == "DreamHost Web Hosting"
|
90
|
+
@parser.admin_contacts[0].organization.should == "New Dream Network, LLC."
|
91
|
+
@parser.admin_contacts[0].address.should == "PMB #257\n417 Associated Rd."
|
92
|
+
@parser.admin_contacts[0].city.should == "Brea"
|
93
|
+
@parser.admin_contacts[0].zip.should == "92821"
|
94
|
+
@parser.admin_contacts[0].state.should == "CA"
|
95
|
+
@parser.admin_contacts[0].country_code.should == "US"
|
96
|
+
@parser.admin_contacts[0].phone.should == "+1.7147064182"
|
97
|
+
@parser.admin_contacts[0].fax.should == nil
|
98
|
+
@parser.admin_contacts[0].email.should == "internic@dreamhost.com"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
describe "#technical_contacts" do
|
102
|
+
it do
|
103
|
+
@parser.technical_contacts.should be_a(Array)
|
104
|
+
@parser.technical_contacts.should have(1).items
|
105
|
+
@parser.technical_contacts[0].should be_a(Whois::Record::Contact)
|
106
|
+
@parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
|
107
|
+
@parser.technical_contacts[0].name.should == "DreamHost Web Hosting"
|
108
|
+
@parser.technical_contacts[0].organization.should == "New Dream Network, LLC."
|
109
|
+
@parser.technical_contacts[0].address.should == "PMB #257\n417 Associated Rd."
|
110
|
+
@parser.technical_contacts[0].city.should == "Brea"
|
111
|
+
@parser.technical_contacts[0].zip.should == "92821"
|
112
|
+
@parser.technical_contacts[0].state.should == "CA"
|
113
|
+
@parser.technical_contacts[0].country_code.should == "US"
|
114
|
+
@parser.technical_contacts[0].phone.should == "+1.7147064182"
|
115
|
+
@parser.technical_contacts[0].fax.should == nil
|
116
|
+
@parser.technical_contacts[0].email.should == "internic@dreamhost.com"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
describe "#nameservers" do
|
120
|
+
it do
|
121
|
+
@parser.nameservers.should be_a(Array)
|
122
|
+
@parser.nameservers.should have(3).items
|
123
|
+
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
|
124
|
+
@parser.nameservers[0].name.should == "ns1.dreamhost.com"
|
125
|
+
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
|
126
|
+
@parser.nameservers[1].name.should == "ns2.dreamhost.com"
|
127
|
+
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
|
128
|
+
@parser.nameservers[2].name.should == "ns3.dreamhost.com"
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|