whois 2.5.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1537 -0
- data/README.md +212 -0
- data/Rakefile +3 -3
- data/lib/whois.rb +26 -1
- data/lib/whois/definitions/tlds.rb +3 -2
- data/lib/whois/record.rb +2 -2
- data/lib/whois/record/parser/base_afilias.rb +2 -2
- data/lib/whois/record/parser/base_cocca.rb +9 -1
- data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +6 -2
- data/lib/whois/record/parser/kero.yachay.pe.rb +1 -1
- data/lib/whois/record/parser/whois.adamsnames.tc.rb +1 -1
- data/lib/whois/record/parser/whois.aeda.net.ae.rb +1 -1
- data/lib/whois/record/parser/whois.ai.rb +1 -1
- data/lib/whois/record/parser/whois.arnes.si.rb +1 -1
- data/lib/whois/record/parser/whois.ati.tn.rb +133 -0
- data/lib/whois/record/parser/whois.biz.rb +1 -1
- data/lib/whois/record/parser/whois.cat.rb +1 -1
- data/lib/whois/record/parser/whois.cctld.uz.rb +4 -3
- data/lib/whois/record/parser/whois.centralnic.com.rb +1 -3
- data/lib/whois/record/parser/whois.cnnic.cn.rb +1 -1
- data/lib/whois/record/parser/whois.co.ca.rb +1 -1
- data/lib/whois/record/parser/whois.co.pl.rb +1 -1
- data/lib/whois/record/parser/whois.co.ug.rb +13 -12
- data/lib/whois/record/parser/whois.crsnic.net.rb +6 -2
- data/lib/whois/record/parser/whois.denic.de.rb +1 -1
- data/lib/whois/record/parser/whois.dk-hostmaster.dk.rb +1 -1
- data/lib/whois/record/parser/whois.dns.be.rb +2 -2
- data/lib/whois/record/parser/whois.dns.lu.rb +2 -2
- data/lib/whois/record/parser/whois.dns.pl.rb +2 -2
- data/lib/whois/record/parser/whois.dns.pt.rb +1 -1
- data/lib/whois/record/parser/whois.domain-registry.nl.rb +1 -1
- data/lib/whois/record/parser/whois.domain.kg.rb +1 -1
- data/lib/whois/record/parser/whois.domainregistry.my.rb +1 -1
- data/lib/whois/record/parser/whois.domreg.lt.rb +2 -2
- data/lib/whois/record/parser/whois.dot.tk.rb +1 -1
- data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
- data/lib/whois/record/parser/whois.educause.edu.rb +128 -20
- data/lib/whois/record/parser/whois.eenet.ee.rb +1 -1
- data/lib/whois/record/parser/whois.eu.rb +2 -2
- data/lib/whois/record/parser/whois.fi.rb +1 -1
- data/lib/whois/record/parser/whois.gg.rb +1 -1
- data/lib/whois/record/parser/whois.godaddy.com.rb +1 -1
- data/lib/whois/record/parser/whois.hkirc.hk.rb +12 -13
- data/lib/whois/record/parser/whois.iana.org.rb +2 -1
- data/lib/whois/record/parser/whois.in.ua.rb +1 -1
- data/lib/whois/record/parser/whois.isnic.is.rb +1 -1
- data/lib/whois/record/parser/whois.isoc.org.il.rb +1 -1
- data/lib/whois/record/parser/whois.ja.net.rb +2 -1
- data/lib/whois/record/parser/whois.je.rb +1 -1
- data/lib/whois/record/parser/whois.jprs.jp.rb +1 -1
- data/lib/whois/record/parser/whois.kenic.or.ke.rb +1 -1
- data/lib/whois/record/parser/whois.markmonitor.com.rb +1 -1
- data/lib/whois/record/parser/whois.meregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.museum.rb +1 -1
- data/lib/whois/record/parser/whois.na-nic.com.na.rb +1 -0
- data/lib/whois/record/parser/whois.netcom.cm.rb +1 -1
- data/lib/whois/record/parser/whois.nic-se.se.rb +1 -1
- data/lib/whois/record/parser/whois.nic.am.rb +1 -1
- data/lib/whois/record/parser/whois.nic.as.rb +1 -1
- data/lib/whois/record/parser/whois.nic.asia.rb +1 -1
- data/lib/whois/record/parser/whois.nic.at.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cc.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cd.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ch.rb +2 -2
- data/lib/whois/record/parser/whois.nic.ci.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ck.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cl.rb +1 -1
- data/lib/whois/record/parser/whois.nic.co.rb +1 -1
- data/lib/whois/record/parser/whois.nic.coop.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cz.rb +11 -9
- data/lib/whois/record/parser/whois.nic.ec.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gl.rb +2 -63
- data/lib/whois/record/parser/whois.nic.hu.rb +3 -3
- data/lib/whois/record/parser/whois.nic.im.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ir.rb +1 -1
- data/lib/whois/record/parser/whois.nic.it.rb +4 -4
- data/lib/whois/record/parser/whois.nic.kz.rb +1 -1
- data/lib/whois/record/parser/whois.nic.li.rb +1 -1
- data/lib/whois/record/parser/whois.nic.lv.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ly.rb +1 -1
- data/lib/whois/record/parser/whois.nic.md.rb +5 -5
- data/lib/whois/record/parser/whois.nic.mg.rb +1 -1
- data/lib/whois/record/parser/whois.nic.mx.rb +1 -1
- data/lib/whois/record/parser/whois.nic.net.sa.rb +1 -1
- data/lib/whois/record/parser/whois.nic.nu.rb +1 -1
- data/lib/whois/record/parser/whois.nic.org.uy.rb +1 -1
- data/lib/whois/record/parser/whois.nic.sl.rb +1 -1
- data/lib/whois/record/parser/whois.nic.sm.rb +1 -1
- data/lib/whois/record/parser/whois.nic.sn.rb +6 -3
- data/lib/whois/record/parser/whois.nic.so.rb +1 -1
- data/lib/whois/record/parser/whois.nic.st.rb +1 -1
- data/lib/whois/record/parser/whois.nic.tel.rb +1 -1
- data/lib/whois/record/parser/whois.nic.tr.rb +2 -1
- data/lib/whois/record/parser/whois.nic.travel.rb +1 -1
- data/lib/whois/record/parser/whois.nic.tv.rb +1 -1
- data/lib/whois/record/parser/whois.nic.uk.rb +11 -4
- data/lib/whois/record/parser/whois.nic.us.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ve.rb +5 -3
- data/lib/whois/record/parser/whois.pandi.or.id.rb +5 -4
- data/lib/whois/record/parser/whois.pnina.ps.rb +8 -8
- data/lib/whois/record/parser/whois.register.bg.rb +6 -5
- data/lib/whois/record/parser/whois.registry.hm.rb +1 -1
- data/lib/whois/record/parser/whois.registry.om.rb +125 -0
- data/lib/whois/record/parser/whois.registrypro.pro.rb +1 -1
- data/lib/whois/record/parser/whois.ripe.net.rb +1 -1
- data/lib/whois/record/parser/whois.rnids.rs.rb +1 -1
- data/lib/whois/record/parser/whois.rotld.ro.rb +5 -4
- data/lib/whois/record/parser/whois.samoanic.ws.rb +1 -1
- data/lib/whois/record/parser/whois.sgnic.sg.rb +16 -16
- data/lib/whois/record/parser/whois.sk-nic.sk.rb +15 -8
- data/lib/whois/record/parser/whois.smallregistry.net.rb +10 -2
- data/lib/whois/record/parser/whois.srs.net.nz.rb +38 -20
- data/lib/whois/record/parser/whois.tcinet.ru.rb +4 -2
- data/lib/whois/record/parser/whois.thnic.co.th.rb +5 -4
- data/lib/whois/record/parser/whois.tld.ee.rb +7 -7
- data/lib/whois/record/parser/whois.tonic.to.rb +2 -3
- data/lib/whois/record/parser/whois.twnic.net.tw.rb +1 -1
- data/lib/whois/record/parser/whois.tznic.or.tz.rb +8 -4
- data/lib/whois/record/parser/whois.usp.ac.fj.rb +5 -4
- data/lib/whois/record/parser/whois.za.net.rb +1 -1
- data/lib/whois/record/parser/whois.za.org.rb +1 -1
- data/lib/whois/record/scanners/whois.ati.tn.rb +46 -0
- data/lib/whois/record/scanners/whois.cira.ca.rb +0 -1
- data/lib/whois/record/scanners/whois.registry.om.rb +39 -0
- data/lib/whois/record/scanners/whois.rnids.rs.rb +5 -0
- data/lib/whois/record/super_struct.rb +8 -5
- data/lib/whois/server/adapters/base.rb +53 -53
- data/lib/whois/version.rb +2 -2
- data/spec/fixtures/responses/whois.ati.tn/status_available.expected +57 -0
- data/spec/fixtures/responses/whois.ati.tn/status_available.txt +4 -0
- data/spec/fixtures/responses/whois.ati.tn/status_registered.expected +122 -0
- data/spec/fixtures/responses/whois.ati.tn/status_registered.txt +36 -0
- data/spec/fixtures/responses/whois.cctld.uz/property_expires_on_dash.expected +2 -0
- data/spec/fixtures/responses/whois.cctld.uz/property_expires_on_dash.txt +123 -0
- data/spec/fixtures/responses/whois.cctld.uz/property_status_reserved.expected +8 -0
- data/spec/fixtures/responses/whois.cctld.uz/property_status_reserved.txt +123 -0
- data/spec/fixtures/responses/{whois.nic.uk/property_status_registered.expected → whois.co.ug/property_status_active.expected} +0 -0
- data/spec/fixtures/responses/whois.co.ug/property_status_active.txt +35 -0
- data/spec/fixtures/responses/whois.co.ug/property_status_unconfirmed.expected +8 -0
- data/spec/fixtures/responses/whois.co.ug/property_status_unconfirmed.txt +30 -0
- data/spec/fixtures/responses/whois.dns.be/{response_throttled.expected → response_throttled_hourly.expected} +0 -0
- data/spec/fixtures/responses/whois.dns.be/{response_throttled_max.txt → response_throttled_hourly.txt} +0 -0
- data/spec/fixtures/responses/whois.dns.be/{response_throttled_max.expected → response_throttled_limit.expected} +0 -0
- data/spec/fixtures/responses/whois.dns.be/{response_throttled.txt → response_throttled_limit.txt} +0 -0
- data/spec/fixtures/responses/whois.dns.hr/status_registered.expected +13 -11
- data/spec/fixtures/responses/whois.domain-registry.nl/status_available.expected +4 -0
- data/spec/fixtures/responses/whois.domain-registry.nl/status_redemption.expected +4 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture1.txt +63 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture2.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture3.txt +67 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture4.txt +68 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture5.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/fixture6.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant.expected +27 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant.txt +63 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant_with_additional_organization.expected +28 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant_with_additional_organization.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant_without_address.expected +26 -0
- data/spec/fixtures/responses/whois.educause.edu/{property_registrant_without_address.txt → property_contact_registrant_without_address.txt} +0 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contact_registrant_without_zip.expected +27 -0
- data/spec/fixtures/responses/whois.educause.edu/{property_registrant_without_zip.txt → property_contact_registrant_without_zip.txt} +0 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts.expected +31 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts.txt +63 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case1.expected +31 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case1.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case2.expected +32 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case2.txt +67 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case3.expected +32 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case3.txt +66 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case4.expected +32 -0
- data/spec/fixtures/responses/whois.educause.edu/property_contacts_case4.txt +68 -0
- data/spec/fixtures/responses/whois.educause.edu/status_available.expected +34 -0
- data/spec/fixtures/responses/whois.educause.edu/status_registered.expected +70 -8
- data/spec/fixtures/responses/whois.hkirc.hk/property_expires_on_null.expected +2 -0
- data/spec/fixtures/responses/whois.hkirc.hk/property_expires_on_null.txt +104 -0
- data/spec/fixtures/responses/whois.na-nic.com.na/property_status_active.expected +8 -0
- data/spec/fixtures/responses/whois.na-nic.com.na/property_status_active.txt +54 -0
- data/spec/fixtures/responses/whois.na-nic.com.na/property_status_delegated.expected +8 -0
- data/spec/fixtures/responses/whois.na-nic.com.na/property_status_delegated.txt +86 -0
- data/spec/fixtures/responses/whois.na-nic.com.na/status_registered.expected +9 -2
- data/spec/fixtures/responses/whois.na-nic.com.na/status_registered.txt +17 -7
- data/spec/fixtures/responses/whois.nc/property_contact_without_state.txt +21 -0
- data/spec/fixtures/responses/whois.nic.af/status_registered.expected +14 -3
- data/spec/fixtures/responses/whois.nic.af/status_registered.txt +59 -40
- data/spec/fixtures/responses/whois.nic.cx/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.gl/status_available.expected +7 -0
- data/spec/fixtures/responses/whois.nic.gl/status_registered.expected +14 -0
- data/spec/fixtures/responses/whois.nic.gs/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.ht/status_registered.expected +9 -2
- data/spec/fixtures/responses/whois.nic.ht/status_registered.txt +58 -44
- data/spec/fixtures/responses/whois.nic.ki/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.ms/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.mu/status_registered.expected +9 -2
- data/spec/fixtures/responses/whois.nic.mu/status_registered.txt +52 -8
- data/spec/fixtures/responses/whois.nic.net.nf/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.net.ng/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.net.sb/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.nic.tl/status_registered.expected +9 -2
- data/spec/fixtures/responses/whois.nic.tl/status_registered.txt +42 -5
- data/spec/fixtures/responses/whois.nic.uk/property_nameservers_with_ip.txt +11 -7
- data/spec/fixtures/responses/whois.nic.uk/property_registrant_type_individual.txt +45 -0
- data/spec/fixtures/responses/whois.nic.uk/{property_status_registered.txt → property_registrant_type_unknown.txt} +5 -5
- data/spec/fixtures/responses/whois.nic.uk/property_status_missing.txt +2 -2
- data/spec/fixtures/responses/whois.nic.uk/property_status_no_status_listed.txt +2 -2
- data/spec/fixtures/responses/whois.nic.uk/property_status_registered_until_expiry_date.txt +18 -13
- data/spec/fixtures/responses/whois.nic.uk/property_status_suspended.txt +51 -51
- data/spec/fixtures/responses/whois.nic.uk/status_available.txt +2 -2
- data/spec/fixtures/responses/whois.nic.uk/status_invalid.txt +2 -2
- data/spec/fixtures/responses/whois.nic.uk/status_registered.expected +2 -2
- data/spec/fixtures/responses/whois.nic.uk/status_registered.txt +5 -5
- data/spec/fixtures/responses/whois.nic.uk/status_reserved.expected +1 -1
- data/spec/fixtures/responses/whois.nic.uk/status_reserved.txt +2 -2
- data/spec/fixtures/responses/whois.nic.uk/status_suspended.expected +1 -1
- data/spec/fixtures/responses/whois.nic.uk/status_suspended.txt +51 -51
- data/spec/fixtures/responses/whois.registry.gy/status_registered.expected +7 -0
- data/spec/fixtures/responses/whois.registry.om/status_available.expected +56 -0
- data/spec/fixtures/responses/whois.registry.om/status_available.txt +1 -0
- data/spec/fixtures/responses/whois.registry.om/status_registered.expected +100 -0
- data/spec/fixtures/responses/whois.registry.om/status_registered.txt +18 -0
- data/spec/fixtures/responses/whois.rnids.rs/property_nameservers_hyphenated.expected +9 -0
- data/spec/fixtures/responses/whois.rnids.rs/property_nameservers_hyphenated.txt +36 -0
- data/spec/fixtures/responses/whois.rnids.rs/token_whois_privacy.expected +11 -0
- data/spec/fixtures/responses/whois.rnids.rs/token_whois_privacy.txt +36 -0
- data/spec/fixtures/responses/whois.srs.net.nz/response_throttled.expected +2 -0
- data/spec/fixtures/responses/whois.srs.net.nz/response_throttled.txt +27 -0
- data/spec/fixtures/responses/whois.srs.net.nz/status_available.expected +4 -0
- data/spec/fixtures/responses/whois.srs.net.nz/status_available.txt +2 -3
- data/spec/fixtures/responses/whois.srs.net.nz/status_invalid.expected +4 -0
- data/spec/fixtures/responses/whois.srs.net.nz/status_invalid.txt +2 -3
- data/spec/fixtures/responses/whois.srs.net.nz/status_registered.expected +6 -2
- data/spec/fixtures/responses/whois.srs.net.nz/status_registered.txt +5 -4
- data/spec/fixtures/responses/whois.tznic.or.tz/property_status_expired.expected +8 -0
- data/spec/fixtures/responses/whois.tznic.or.tz/property_status_expired.txt +56 -0
- data/spec/support/helpers/spec_helper.rb +0 -5
- data/spec/tlds +4 -2
- data/spec/whois/record/contact_spec.rb +8 -8
- data/spec/whois/record/nameserver_spec.rb +6 -6
- data/spec/whois/record/parser/base_spec.rb +11 -11
- data/spec/whois/record/parser/blank_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.ati.tn/status_available_spec.rb +108 -0
- data/spec/whois/record/parser/responses/whois.ati.tn/status_registered_spec.rb +173 -0
- data/spec/whois/record/parser/responses/whois.cctld.uz/property_expires_on_dash_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.cctld.uz/property_status_reserved_spec.rb +39 -0
- data/spec/whois/record/parser/responses/{whois.nic.uk/property_status_registered_spec.rb → whois.co.ug/property_status_active_spec.rb} +4 -4
- data/spec/whois/record/parser/responses/whois.co.ug/property_status_unconfirmed_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.dns.be/{response_throttled_spec.rb → response_throttled_hourly_spec.rb} +3 -3
- data/spec/whois/record/parser/responses/whois.dns.be/{response_throttled_max_spec.rb → response_throttled_limit_spec.rb} +3 -3
- data/spec/whois/record/parser/responses/whois.dns.hr/status_registered_spec.rb +13 -11
- data/spec/whois/record/parser/responses/whois.domain-registry.nl/status_available_spec.rb +5 -0
- data/spec/whois/record/parser/responses/whois.domain-registry.nl/status_redemption_spec.rb +5 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contact_registrant_spec.rb +44 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contact_registrant_with_additional_organization_spec.rb +44 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contact_registrant_without_address_spec.rb +44 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contact_registrant_without_zip_spec.rb +44 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contacts_case1_spec.rb +43 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contacts_case2_spec.rb +43 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contacts_case3_spec.rb +43 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contacts_case4_spec.rb +43 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/property_contacts_spec.rb +43 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/status_available_spec.rb +48 -0
- data/spec/whois/record/parser/responses/whois.educause.edu/status_registered_spec.rb +83 -8
- data/spec/whois/record/parser/responses/whois.hkirc.hk/property_expires_on_null_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.na-nic.com.na/property_status_active_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.na-nic.com.na/property_status_delegated_spec.rb +39 -0
- data/spec/whois/record/parser/responses/whois.na-nic.com.na/status_registered_spec.rb +10 -2
- data/spec/whois/record/parser/responses/whois.nic.af/status_registered_spec.rb +15 -3
- data/spec/whois/record/parser/responses/whois.nic.cx/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.gl/status_available_spec.rb +10 -0
- data/spec/whois/record/parser/responses/whois.nic.gl/status_registered_spec.rb +18 -0
- data/spec/whois/record/parser/responses/whois.nic.gs/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.ht/status_registered_spec.rb +10 -2
- data/spec/whois/record/parser/responses/whois.nic.ki/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.ms/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.mu/status_registered_spec.rb +10 -2
- data/spec/whois/record/parser/responses/whois.nic.net.nf/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.net.ng/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.net.sb/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.nic.tl/status_registered_spec.rb +10 -2
- data/spec/whois/record/parser/responses/whois.nic.uk/status_registered_spec.rb +2 -2
- data/spec/whois/record/parser/responses/whois.nic.uk/status_reserved_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.nic.uk/status_suspended_spec.rb +1 -1
- data/spec/whois/record/parser/responses/whois.registry.gy/status_registered_spec.rb +8 -0
- data/spec/whois/record/parser/responses/whois.registry.om/status_available_spec.rb +107 -0
- data/spec/whois/record/parser/responses/whois.registry.om/status_registered_spec.rb +151 -0
- data/spec/whois/record/parser/responses/whois.rnids.rs/property_nameservers_hyphenated_spec.rb +36 -0
- data/spec/whois/record/parser/responses/whois.rnids.rs/token_whois_privacy_spec.rb +42 -0
- data/spec/whois/record/parser/responses/whois.srs.net.nz/response_throttled_spec.rb +29 -0
- data/spec/whois/record/parser/responses/whois.srs.net.nz/status_available_spec.rb +5 -0
- data/spec/whois/record/parser/responses/whois.srs.net.nz/status_invalid_spec.rb +5 -0
- data/spec/whois/record/parser/responses/whois.srs.net.nz/status_registered_spec.rb +7 -2
- data/spec/whois/record/parser/responses/whois.tznic.or.tz/property_status_expired_spec.rb +39 -0
- data/spec/whois/record/parser_spec.rb +25 -25
- data/spec/whois/record/part_spec.rb +5 -5
- data/spec/whois/record/registrar_spec.rb +8 -8
- data/spec/whois/record/super_struct_spec.rb +0 -1
- data/spec/whois/record_spec.rb +12 -12
- data/spec/whois/server/adapters/afilias_spec.rb +2 -2
- data/spec/whois/server/adapters/formatted_spec.rb +1 -1
- data/spec/whois/server/adapters/pir_spec.rb +2 -2
- data/spec/whois/server/adapters/standard_spec.rb +1 -1
- data/spec/whois/server/adapters/verisign_spec.rb +2 -2
- data/whois.gemspec +6 -6
- metadata +97 -20
- data/.rspec +0 -1
- data/spec/fixtures/responses/whois.educause.edu/property_registrant_without_address.expected +0 -11
- data/spec/fixtures/responses/whois.educause.edu/property_registrant_without_zip.expected +0 -12
- data/spec/whois/record/parser/responses/whois.educause.edu/property_registrant_without_address_spec.rb +0 -38
- data/spec/whois/record/parser/responses/whois.educause.edu/property_registrant_without_zip_spec.rb +0 -39
@@ -21,6 +21,31 @@ describe Whois::Record::Parser::WhoisEducauseEdu, "status_available.expected" do
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
@parser.disclaimer.should == "\nThis Registry database contains ONLY .EDU domains. \nThe data in the EDUCAUSE Whois database is provided \nby EDUCAUSE for information purposes in order to \nassist in the process of obtaining information about \nor related to .edu domain registration records. \n\nThe EDUCAUSE Whois database is authoritative for the \n.EDU domain. \n\nA Web interface for the .EDU EDUCAUSE Whois Server is \navailable at: http://whois.educause.net \n\nBy submitting a Whois query, you agree that this information \nwill not be used to allow, enable, or otherwise support \nthe transmission of unsolicited commercial advertising or \nsolicitations via e-mail. The use of electronic processes to \nharvest information from this server is generally prohibited \nexcept as reasonably necessary to register or modify .edu \ndomain names.\n\nYou may use \"%\" as a wildcard in your search. For further \ninformation regarding the use of this WHOIS server, please \ntype: help \n"
|
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
|
24
49
|
describe "#status" do
|
25
50
|
it do
|
26
51
|
@parser.status.should == :available
|
@@ -51,6 +76,29 @@ describe Whois::Record::Parser::WhoisEducauseEdu, "status_available.expected" do
|
|
51
76
|
@parser.expires_on.should == nil
|
52
77
|
end
|
53
78
|
end
|
79
|
+
describe "#registrar" do
|
80
|
+
it do
|
81
|
+
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
|
+
@parser.admin_contacts.should be_a(Array)
|
93
|
+
@parser.admin_contacts.should == []
|
94
|
+
end
|
95
|
+
end
|
96
|
+
describe "#technical_contacts" do
|
97
|
+
it do
|
98
|
+
@parser.technical_contacts.should be_a(Array)
|
99
|
+
@parser.technical_contacts.should == []
|
100
|
+
end
|
101
|
+
end
|
54
102
|
describe "#nameservers" do
|
55
103
|
it do
|
56
104
|
@parser.nameservers.should be_a(Array)
|
@@ -21,6 +21,31 @@ describe Whois::Record::Parser::WhoisEducauseEdu, "status_registered.expected" d
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#disclaimer" do
|
25
|
+
it do
|
26
|
+
@parser.disclaimer.should == "\nThis Registry database contains ONLY .EDU domains. \nThe data in the EDUCAUSE Whois database is provided \nby EDUCAUSE for information purposes in order to \nassist in the process of obtaining information about \nor related to .edu domain registration records. \n\nThe EDUCAUSE Whois database is authoritative for the \n.EDU domain. \n\nA Web interface for the .EDU EDUCAUSE Whois Server is \navailable at: http://whois.educause.net \n\nBy submitting a Whois query, you agree that this information \nwill not be used to allow, enable, or otherwise support \nthe transmission of unsolicited commercial advertising or \nsolicitations via e-mail. The use of electronic processes to \nharvest information from this server is generally prohibited \nexcept as reasonably necessary to register or modify .edu \ndomain names.\n\nYou may use \"%\" as a wildcard in your search. For further \ninformation regarding the use of this WHOIS server, please \ntype: help \n"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain" do
|
30
|
+
it do
|
31
|
+
@parser.domain.should == "educause.edu"
|
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
|
24
49
|
describe "#status" do
|
25
50
|
it do
|
26
51
|
@parser.status.should == :registered
|
@@ -54,19 +79,69 @@ describe Whois::Record::Parser::WhoisEducauseEdu, "status_registered.expected" d
|
|
54
79
|
@parser.expires_on.should == Time.parse("2010-07-31")
|
55
80
|
end
|
56
81
|
end
|
82
|
+
describe "#registrar" do
|
83
|
+
it do
|
84
|
+
lambda { @parser.registrar }.should raise_error(Whois::PropertyNotSupported)
|
85
|
+
end
|
86
|
+
end
|
57
87
|
describe "#registrant_contacts" do
|
58
88
|
it do
|
59
89
|
@parser.registrant_contacts.should be_a(Array)
|
60
90
|
@parser.registrant_contacts.should have(1).items
|
61
91
|
@parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
|
62
|
-
@parser.registrant_contacts[0].type.should
|
63
|
-
@parser.registrant_contacts[0].
|
64
|
-
@parser.registrant_contacts[0].
|
65
|
-
@parser.registrant_contacts[0].
|
66
|
-
@parser.registrant_contacts[0].
|
67
|
-
@parser.registrant_contacts[0].
|
68
|
-
@parser.registrant_contacts[0].
|
69
|
-
@parser.registrant_contacts[0].
|
92
|
+
@parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
|
93
|
+
@parser.registrant_contacts[0].id.should == nil
|
94
|
+
@parser.registrant_contacts[0].name.should == nil
|
95
|
+
@parser.registrant_contacts[0].organization.should == "EDUCAUSE"
|
96
|
+
@parser.registrant_contacts[0].address.should == "4772 Walnut Street\nSuite 206"
|
97
|
+
@parser.registrant_contacts[0].city.should == "Boulder"
|
98
|
+
@parser.registrant_contacts[0].zip.should == "80301"
|
99
|
+
@parser.registrant_contacts[0].state.should == "CO"
|
100
|
+
@parser.registrant_contacts[0].country.should == "UNITED STATES"
|
101
|
+
@parser.registrant_contacts[0].country_code.should == nil
|
102
|
+
@parser.registrant_contacts[0].phone.should == nil
|
103
|
+
@parser.registrant_contacts[0].fax.should == nil
|
104
|
+
@parser.registrant_contacts[0].email.should == nil
|
105
|
+
end
|
106
|
+
end
|
107
|
+
describe "#admin_contacts" do
|
108
|
+
it do
|
109
|
+
@parser.admin_contacts.should be_a(Array)
|
110
|
+
@parser.admin_contacts.should have(1).items
|
111
|
+
@parser.admin_contacts[0].should be_a(Whois::Record::Contact)
|
112
|
+
@parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
|
113
|
+
@parser.admin_contacts[0].id.should == nil
|
114
|
+
@parser.admin_contacts[0].name.should == "Information Technology\nEDUCAUSE"
|
115
|
+
@parser.admin_contacts[0].organization.should == nil
|
116
|
+
@parser.admin_contacts[0].address.should == "4772 Walnut Street\nSte 206"
|
117
|
+
@parser.admin_contacts[0].city.should == "Boulder"
|
118
|
+
@parser.admin_contacts[0].zip.should == "80301"
|
119
|
+
@parser.admin_contacts[0].state.should == "CO"
|
120
|
+
@parser.admin_contacts[0].country.should == "UNITED STATES"
|
121
|
+
@parser.admin_contacts[0].country_code.should == nil
|
122
|
+
@parser.admin_contacts[0].phone.should == "(303) 449-4430"
|
123
|
+
@parser.admin_contacts[0].fax.should == nil
|
124
|
+
@parser.admin_contacts[0].email.should == "netadmin@educause.edu"
|
125
|
+
end
|
126
|
+
end
|
127
|
+
describe "#technical_contacts" do
|
128
|
+
it do
|
129
|
+
@parser.technical_contacts.should be_a(Array)
|
130
|
+
@parser.technical_contacts.should have(1).items
|
131
|
+
@parser.technical_contacts[0].should be_a(Whois::Record::Contact)
|
132
|
+
@parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
|
133
|
+
@parser.technical_contacts[0].id.should == nil
|
134
|
+
@parser.technical_contacts[0].name.should == "Information Technology\nEDUCAUSE"
|
135
|
+
@parser.technical_contacts[0].organization.should == nil
|
136
|
+
@parser.technical_contacts[0].address.should == "4772 Walnut Street\nSte 206"
|
137
|
+
@parser.technical_contacts[0].city.should == "Boulder"
|
138
|
+
@parser.technical_contacts[0].zip.should == "80301"
|
139
|
+
@parser.technical_contacts[0].state.should == "CO"
|
140
|
+
@parser.technical_contacts[0].country.should == "UNITED STATES"
|
141
|
+
@parser.technical_contacts[0].country_code.should == nil
|
142
|
+
@parser.technical_contacts[0].phone.should == "(303) 449-4430"
|
143
|
+
@parser.technical_contacts[0].fax.should == nil
|
144
|
+
@parser.technical_contacts[0].email.should == "netadmin@educause.edu"
|
70
145
|
end
|
71
146
|
end
|
72
147
|
describe "#nameservers" do
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# This file is autogenerated. Do not edit it manually.
|
4
|
+
# If you want change the content of this file, edit
|
5
|
+
#
|
6
|
+
# /spec/fixtures/responses/whois.hkirc.hk/property_expires_on_null.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.hkirc.hk.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisHkircHk, "property_expires_on_null.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.hkirc.hk/property_expires_on_null.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#expires_on" do
|
25
|
+
it do
|
26
|
+
@parser.expires_on.should == nil
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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.na-nic.com.na/property_status_active.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.na-nic.com.na.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisNaNicComNa, "property_status_active.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.na-nic.com.na/property_status_active.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#status" do
|
25
|
+
it do
|
26
|
+
@parser.status.should == :registered
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#available?" do
|
30
|
+
it do
|
31
|
+
@parser.available?.should == false
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe "#registered?" do
|
35
|
+
it do
|
36
|
+
@parser.registered?.should == true
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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.na-nic.com.na/property_status_delegated.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.na-nic.com.na.rb'
|
15
|
+
|
16
|
+
describe Whois::Record::Parser::WhoisNaNicComNa, "property_status_delegated.expected" do
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
file = fixture("responses", "whois.na-nic.com.na/property_status_delegated.txt")
|
20
|
+
part = Whois::Record::Part.new(:body => File.read(file))
|
21
|
+
@parser = klass.new(part)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#status" do
|
25
|
+
it do
|
26
|
+
@parser.status.should == :registered
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#available?" do
|
30
|
+
it do
|
31
|
+
@parser.available?.should == false
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe "#registered?" do
|
35
|
+
it do
|
36
|
+
@parser.registered?.should == true
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -55,13 +55,21 @@ describe Whois::Record::Parser::WhoisNaNicComNa, "status_registered.expected" do
|
|
55
55
|
describe "#updated_on" do
|
56
56
|
it do
|
57
57
|
@parser.updated_on.should be_a(Time)
|
58
|
-
@parser.updated_on.should == Time.parse("
|
58
|
+
@parser.updated_on.should == Time.parse("2012-03-19")
|
59
59
|
end
|
60
60
|
end
|
61
61
|
describe "#expires_on" do
|
62
62
|
it do
|
63
63
|
@parser.expires_on.should be_a(Time)
|
64
|
-
@parser.expires_on.should == Time.parse("
|
64
|
+
@parser.expires_on.should == Time.parse("2012-08-20")
|
65
|
+
end
|
66
|
+
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
65
73
|
end
|
66
74
|
end
|
67
75
|
describe "#nameservers" do
|
@@ -55,23 +55,35 @@ describe Whois::Record::Parser::WhoisNicAf, "status_registered.expected" do
|
|
55
55
|
describe "#updated_on" do
|
56
56
|
it do
|
57
57
|
@parser.updated_on.should be_a(Time)
|
58
|
-
@parser.updated_on.should == Time.parse("
|
58
|
+
@parser.updated_on.should == Time.parse("2012-05-01")
|
59
59
|
end
|
60
60
|
end
|
61
61
|
describe "#expires_on" do
|
62
62
|
it do
|
63
63
|
@parser.expires_on.should be_a(Time)
|
64
|
-
@parser.expires_on.should == Time.parse("
|
64
|
+
@parser.expires_on.should == Time.parse("2013-05-05")
|
65
|
+
end
|
66
|
+
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
65
73
|
end
|
66
74
|
end
|
67
75
|
describe "#nameservers" do
|
68
76
|
it do
|
69
77
|
@parser.nameservers.should be_a(Array)
|
70
|
-
@parser.nameservers.should have(
|
78
|
+
@parser.nameservers.should have(4).items
|
71
79
|
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
|
72
80
|
@parser.nameservers[0].name.should == "ns1.google.com"
|
73
81
|
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
|
74
82
|
@parser.nameservers[1].name.should == "ns2.google.com"
|
83
|
+
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
|
84
|
+
@parser.nameservers[2].name.should == "ns3.google.com"
|
85
|
+
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
|
86
|
+
@parser.nameservers[3].name.should == "ns4.google.com"
|
75
87
|
end
|
76
88
|
end
|
77
89
|
end
|
@@ -64,6 +64,14 @@ describe Whois::Record::Parser::WhoisNicCx, "status_registered.expected" do
|
|
64
64
|
@parser.expires_on.should == Time.parse("2012-07-30")
|
65
65
|
end
|
66
66
|
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
73
|
+
end
|
74
|
+
end
|
67
75
|
describe "#nameservers" do
|
68
76
|
it do
|
69
77
|
@parser.nameservers.should be_a(Array)
|
@@ -21,6 +21,16 @@ describe Whois::Record::Parser::WhoisNicGl, "status_available.expected" do
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#domain" do
|
25
|
+
it do
|
26
|
+
@parser.domain.should == "u34jedzcq.gl"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain_id" do
|
30
|
+
it do
|
31
|
+
lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
|
32
|
+
end
|
33
|
+
end
|
24
34
|
describe "#status" do
|
25
35
|
it do
|
26
36
|
@parser.status.should == :available
|
@@ -21,6 +21,16 @@ describe Whois::Record::Parser::WhoisNicGl, "status_registered.expected" do
|
|
21
21
|
@parser = klass.new(part)
|
22
22
|
end
|
23
23
|
|
24
|
+
describe "#domain" do
|
25
|
+
it do
|
26
|
+
@parser.domain.should == "google.gl"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe "#domain_id" do
|
30
|
+
it do
|
31
|
+
lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported)
|
32
|
+
end
|
33
|
+
end
|
24
34
|
describe "#status" do
|
25
35
|
it do
|
26
36
|
@parser.status.should == :registered
|
@@ -54,6 +64,14 @@ describe Whois::Record::Parser::WhoisNicGl, "status_registered.expected" do
|
|
54
64
|
@parser.expires_on.should == Time.parse("2013-01-01")
|
55
65
|
end
|
56
66
|
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
73
|
+
end
|
74
|
+
end
|
57
75
|
describe "#nameservers" do
|
58
76
|
it do
|
59
77
|
@parser.nameservers.should be_a(Array)
|
@@ -64,6 +64,14 @@ describe Whois::Record::Parser::WhoisNicGs, "status_registered.expected" do
|
|
64
64
|
@parser.expires_on.should == Time.parse("2011-07-08")
|
65
65
|
end
|
66
66
|
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
73
|
+
end
|
74
|
+
end
|
67
75
|
describe "#nameservers" do
|
68
76
|
it do
|
69
77
|
@parser.nameservers.should be_a(Array)
|
@@ -55,13 +55,21 @@ describe Whois::Record::Parser::WhoisNicHt, "status_registered.expected" do
|
|
55
55
|
describe "#updated_on" do
|
56
56
|
it do
|
57
57
|
@parser.updated_on.should be_a(Time)
|
58
|
-
@parser.updated_on.should == Time.parse("
|
58
|
+
@parser.updated_on.should == Time.parse("2012-03-30 00:00:00")
|
59
59
|
end
|
60
60
|
end
|
61
61
|
describe "#expires_on" do
|
62
62
|
it do
|
63
63
|
@parser.expires_on.should be_a(Time)
|
64
|
-
@parser.expires_on.should == Time.parse("
|
64
|
+
@parser.expires_on.should == Time.parse("2012-06-18 00:00:00")
|
65
|
+
end
|
66
|
+
end
|
67
|
+
describe "#registrar" do
|
68
|
+
it do
|
69
|
+
@parser.registrar.should be_a(Whois::Record::Registrar)
|
70
|
+
@parser.registrar.id.should == nil
|
71
|
+
@parser.registrar.name.should == "MarkMonitor"
|
72
|
+
@parser.registrar.url.should == "http://www.markmonitor.com"
|
65
73
|
end
|
66
74
|
end
|
67
75
|
describe "#nameservers" do
|