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
@@ -37,11 +37,17 @@ module Whois
|
|
37
37
|
property_supported :status do
|
38
38
|
if content_for_scanner =~ /\s+Registration status:\s+(.+?)\n/
|
39
39
|
case $1.downcase
|
40
|
-
when "registered until renewal date."
|
41
|
-
|
42
|
-
when "
|
40
|
+
when "registered until renewal date."
|
41
|
+
:registered
|
42
|
+
when "registration request being processed."
|
43
|
+
:registered
|
44
|
+
when "renewal request being processed."
|
45
|
+
:registered
|
46
|
+
when "no registration status listed."
|
47
|
+
:reserved
|
43
48
|
# NEWSTATUS (redemption?)
|
44
|
-
when "renewal required."
|
49
|
+
when "renewal required."
|
50
|
+
:registered
|
45
51
|
else
|
46
52
|
Whois.bug!(ParserError, "Unknown status `#{$1}'.")
|
47
53
|
end
|
@@ -62,24 +68,25 @@ module Whois
|
|
62
68
|
|
63
69
|
|
64
70
|
property_supported :created_on do
|
65
|
-
if content_for_scanner =~ /\s+Registered on:\s+(
|
71
|
+
if content_for_scanner =~ /\s+Registered on:\s+(.+)\n/
|
66
72
|
Time.parse($1)
|
67
73
|
end
|
68
74
|
end
|
69
75
|
|
70
76
|
property_supported :updated_on do
|
71
|
-
if content_for_scanner =~ /\s+Last updated:\s+(
|
77
|
+
if content_for_scanner =~ /\s+Last updated:\s+(.+)\n/
|
72
78
|
Time.parse($1)
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
76
82
|
property_supported :expires_on do
|
77
|
-
if content_for_scanner =~ /\s+Renewal date:\s+(
|
83
|
+
if content_for_scanner =~ /\s+Renewal date:\s+(.+)\n/
|
78
84
|
Time.parse($1)
|
79
85
|
end
|
80
86
|
end
|
81
87
|
|
82
88
|
|
89
|
+
# @see http://www.nic.uk/other/whois/instruct/
|
83
90
|
property_supported :registrar do
|
84
91
|
if content_for_scanner =~ /Registrar:\n(.+) \[Tag = (.+)\]\n\s*URL: (.+)\n/
|
85
92
|
name, id, url = $1.strip, $2.strip, $3.strip
|
@@ -87,21 +94,34 @@ module Whois
|
|
87
94
|
|
88
95
|
Record::Registrar.new(
|
89
96
|
:id => id,
|
90
|
-
:url => url,
|
91
97
|
:name => (name || org),
|
92
|
-
:organization => org
|
98
|
+
:organization => org,
|
99
|
+
:url => url
|
100
|
+
)
|
101
|
+
elsif content_for_scanner =~ /This domain is registered directly with Nominet/
|
102
|
+
Record::Registrar.new(
|
103
|
+
:id => nil,
|
104
|
+
:name => "Nominet",
|
105
|
+
:organization => "Nominet UK",
|
106
|
+
:url => "http://www.nic.uk/"
|
93
107
|
)
|
94
108
|
end
|
95
109
|
end
|
96
110
|
|
97
111
|
|
98
112
|
property_supported :registrant_contacts do
|
99
|
-
if
|
100
|
-
|
113
|
+
if content_for_scanner =~ /Registrant's address:\n((.+\n)+)\n/
|
114
|
+
lines = $1.split("\n").map(&:strip)
|
115
|
+
address = lines[0..-5]
|
116
|
+
city = lines[-4]
|
117
|
+
state = lines[-3]
|
118
|
+
zip = lines[-2]
|
119
|
+
country = lines[-1]
|
120
|
+
|
101
121
|
Record::Contact.new(
|
102
122
|
:type => Record::Contact::TYPE_REGISTRANT,
|
103
123
|
:name => content_for_scanner[/Registrant:\n\s*(.+)\n/, 1],
|
104
|
-
:address => address,
|
124
|
+
:address => address.join("\n"),
|
105
125
|
:city => city,
|
106
126
|
:state => state,
|
107
127
|
:zip => zip,
|
@@ -80,7 +80,8 @@ module Whois
|
|
80
80
|
|
81
81
|
property_supported :nameservers do
|
82
82
|
node("Name Server") do |value|
|
83
|
-
|
83
|
+
ipv4s = node("Name Server IP") || Array.new(value.size)
|
84
|
+
value.zip(ipv4s).map do |name, ipv4|
|
84
85
|
Nameserver.new(:name => name, :ipv4 => ipv4)
|
85
86
|
end
|
86
87
|
end
|
@@ -0,0 +1,143 @@
|
|
1
|
+
#--
|
2
|
+
# Ruby Whois
|
3
|
+
#
|
4
|
+
# An intelligent pure Ruby WHOIS client and parser.
|
5
|
+
#
|
6
|
+
# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
|
7
|
+
#++
|
8
|
+
|
9
|
+
|
10
|
+
require 'whois/record/parser/base'
|
11
|
+
require 'whois/record/parser/scanners/whois.rnids.rs.rb'
|
12
|
+
|
13
|
+
|
14
|
+
module Whois
|
15
|
+
class Record
|
16
|
+
class Parser
|
17
|
+
|
18
|
+
# Parser for the whois.rnids.rs server.
|
19
|
+
#
|
20
|
+
# @see Whois::Record::Parser::Example
|
21
|
+
# The Example parser for the list of all available methods.
|
22
|
+
#
|
23
|
+
# @since RELEASE
|
24
|
+
class WhoisRnidsRs < Base
|
25
|
+
include Scanners::Ast
|
26
|
+
|
27
|
+
property_not_supported :disclaimer
|
28
|
+
|
29
|
+
|
30
|
+
property_supported :domain do
|
31
|
+
node("Domain name") { |str| str.chomp(".") }
|
32
|
+
end
|
33
|
+
|
34
|
+
property_not_supported :domain_id
|
35
|
+
|
36
|
+
|
37
|
+
property_not_supported :referral_whois
|
38
|
+
|
39
|
+
property_not_supported :referral_url
|
40
|
+
|
41
|
+
|
42
|
+
property_supported :status do
|
43
|
+
case s = node("Domain status") { |str| str.downcase }
|
44
|
+
when nil
|
45
|
+
:available
|
46
|
+
when "active"
|
47
|
+
:registered
|
48
|
+
else
|
49
|
+
Whois.bug!(ParserError, "Unknown status `#{s}'.")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
property_supported :available? do
|
54
|
+
!!node("status:available")
|
55
|
+
end
|
56
|
+
|
57
|
+
property_supported :registered? do
|
58
|
+
!available?
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
property_supported :created_on do
|
63
|
+
node("Registration date") { |value| Time.parse(value) }
|
64
|
+
end
|
65
|
+
|
66
|
+
property_supported :updated_on do
|
67
|
+
node("Modification date") { |value| Time.parse(value) }
|
68
|
+
end
|
69
|
+
|
70
|
+
property_supported :expires_on do
|
71
|
+
node("Expiration date") { |value| Time.parse(value) }
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
property_supported :registrar do
|
76
|
+
node("Registrar") do |str|
|
77
|
+
Record::Registrar.new(
|
78
|
+
:id => nil,
|
79
|
+
:name => node("Registrar")
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
|
85
|
+
property_supported :registrant_contacts do
|
86
|
+
build_contact("Owner", Whois::Record::Contact::TYPE_REGISTRANT)
|
87
|
+
end
|
88
|
+
|
89
|
+
property_supported :admin_contacts do
|
90
|
+
build_contact("Administrative contact", Whois::Record::Contact::TYPE_ADMIN)
|
91
|
+
end
|
92
|
+
|
93
|
+
property_supported :technical_contacts do
|
94
|
+
build_contact("Technical contact", Whois::Record::Contact::TYPE_TECHNICAL)
|
95
|
+
end
|
96
|
+
|
97
|
+
|
98
|
+
property_supported :nameservers do
|
99
|
+
Array.wrap(node("DNS")).map do |line|
|
100
|
+
name, ipv4 = line.split("-").map(&:strip)
|
101
|
+
name.chomp!(".")
|
102
|
+
Nameserver.new(:name => name, :ipv4 => ipv4)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
|
107
|
+
# Initializes a new {Scanners::WhoisRnidsRs} instance
|
108
|
+
# passing the {#content_for_scanner}
|
109
|
+
# and calls +parse+ on it.
|
110
|
+
#
|
111
|
+
# @return [Hash]
|
112
|
+
def parse
|
113
|
+
Scanners::WhoisRnidsRs.new(content_for_scanner).parse
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
private
|
118
|
+
|
119
|
+
def build_contact(element, type)
|
120
|
+
node(element) do |hash|
|
121
|
+
Record::Contact.new(
|
122
|
+
:type => type,
|
123
|
+
:id => nil,
|
124
|
+
:name => hash[element],
|
125
|
+
:organization => nil,
|
126
|
+
:address => hash["Address"],
|
127
|
+
:city => nil,
|
128
|
+
:zip => nil,
|
129
|
+
:state => nil,
|
130
|
+
:country => nil,
|
131
|
+
:country_code => nil,
|
132
|
+
:phone => nil,
|
133
|
+
:fax => nil,
|
134
|
+
:email => nil
|
135
|
+
)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
#--
|
2
|
+
# Ruby Whois
|
3
|
+
#
|
4
|
+
# An intelligent pure Ruby WHOIS client and parser.
|
5
|
+
#
|
6
|
+
# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
|
7
|
+
#++
|
8
|
+
|
9
|
+
|
10
|
+
require 'whois/record/parser/base'
|
11
|
+
|
12
|
+
|
13
|
+
module Whois
|
14
|
+
class Record
|
15
|
+
class Parser
|
16
|
+
|
17
|
+
# Parser for the whois.ua server.
|
18
|
+
#
|
19
|
+
# @note This parser is just a stub and provides only a few basic methods
|
20
|
+
# to check for domain availability and get domain status.
|
21
|
+
# Please consider to contribute implementing missing methods.
|
22
|
+
#
|
23
|
+
# @since RELEASE
|
24
|
+
class WhoisUa < Base
|
25
|
+
|
26
|
+
property_supported :status do
|
27
|
+
if content_for_scanner =~ /status:\s+(.+?)\n/
|
28
|
+
case s = $1.downcase
|
29
|
+
when /^ok-until/
|
30
|
+
:registered
|
31
|
+
else
|
32
|
+
Whois.bug!(ParserError, "Unknown status `#{s}'.")
|
33
|
+
end
|
34
|
+
else
|
35
|
+
:available
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
property_supported :available? do
|
40
|
+
!!(content_for_scanner =~ /No entries found for domain/)
|
41
|
+
end
|
42
|
+
|
43
|
+
property_supported :registered? do
|
44
|
+
!available?
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
property_not_supported :created_on
|
49
|
+
|
50
|
+
property_supported :updated_on do
|
51
|
+
if content_for_scanner =~ /changed:\s+(.+)\n/
|
52
|
+
time = $1.split(" ").last
|
53
|
+
Time.parse(time)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
property_supported :expires_on do
|
58
|
+
if content_for_scanner =~ /status:\s+(.+)\n/
|
59
|
+
time = $1.split(" ").last
|
60
|
+
Time.parse(time)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
property_supported :nameservers do
|
66
|
+
content_for_scanner.scan(/nserver:\s+(.+)\n/).flatten.map do |name|
|
67
|
+
Record::Nameserver.new(:name => name.strip.downcase)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
data/lib/whois/version.rb
CHANGED
@@ -27,20 +27,20 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
#created_on
|
30
|
-
should: %s (time)
|
30
|
+
should: %s CLASS(time)
|
31
31
|
should: %s == Time.parse("2006-02-21")
|
32
32
|
|
33
33
|
#updated_on
|
34
|
-
should: %s (time)
|
34
|
+
should: %s CLASS(time)
|
35
35
|
should: %s == Time.parse("2009-02-20")
|
36
36
|
|
37
37
|
#expires_on
|
38
|
-
should: %s (time)
|
38
|
+
should: %s CLASS(time)
|
39
39
|
should: %s == Time.parse("2010-02-21")
|
40
40
|
|
41
41
|
|
42
42
|
#registrar
|
43
|
-
should: %s (registrar)
|
43
|
+
should: %s CLASS(registrar)
|
44
44
|
should: %s.id == nil
|
45
45
|
should: %s.name == "ENCIRCA, INC"
|
46
46
|
should: %s.organization == "ENCIRCA, INC"
|
@@ -48,9 +48,9 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
#nameservers
|
51
|
-
should: %s (array)
|
52
|
-
should: %s
|
53
|
-
should: %s[0] (nameserver)
|
51
|
+
should: %s CLASS(array)
|
52
|
+
should: %s SIZE(2)
|
53
|
+
should: %s[0] CLASS(nameserver)
|
54
54
|
should: %s[0].name == "ns2.registry.jobs"
|
55
|
-
should: %s[1] (nameserver)
|
55
|
+
should: %s[1] CLASS(nameserver)
|
56
56
|
should: %s[1].name == "ns1.registry.jobs"
|
@@ -19,13 +19,13 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
#nameservers
|
22
|
-
should: %s (array)
|
23
|
-
should: %s
|
24
|
-
should: %s[0] (nameserver)
|
22
|
+
should: %s CLASS(array)
|
23
|
+
should: %s SIZE(4)
|
24
|
+
should: %s[0] CLASS(nameserver)
|
25
25
|
should: %s[0].name == "ns1.google.com"
|
26
|
-
should: %s[1] (nameserver)
|
26
|
+
should: %s[1] CLASS(nameserver)
|
27
27
|
should: %s[1].name == "ns2.google.com"
|
28
|
-
should: %s[2] (nameserver)
|
28
|
+
should: %s[2] CLASS(nameserver)
|
29
29
|
should: %s[2].name == "ns3.google.com"
|
30
|
-
should: %s[3] (nameserver)
|
30
|
+
should: %s[3] CLASS(nameserver)
|
31
31
|
should: %s[3].name == "ns4.google.com"
|
@@ -19,9 +19,9 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
#nameservers
|
22
|
-
should: %s (array)
|
23
|
-
should: %s
|
24
|
-
should: %s[0] (nameserver)
|
22
|
+
should: %s CLASS(array)
|
23
|
+
should: %s SIZE(2)
|
24
|
+
should: %s[0] CLASS(nameserver)
|
25
25
|
should: %s[0].name == "ns1.google.com"
|
26
|
-
should: %s[1] (nameserver)
|
26
|
+
should: %s[1] CLASS(nameserver)
|
27
27
|
should: %s[1].name == "ns2.google.com"
|