whois 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +23 -0
- data/README.rdoc +24 -7
- data/lib/core_ext.rb +4 -3
- data/lib/whois/answer/contact.rb +1 -1
- data/lib/whois/answer/nameserver.rb +41 -0
- data/lib/whois/answer/parser/base.rb +1 -0
- data/lib/whois/answer/parser/jobswhois.verisign-grs.com.rb +2 -2
- data/lib/whois/answer/parser/scanners/iana.rb +145 -0
- data/lib/whois/answer/parser/scanners/verisign.rb +15 -15
- data/lib/whois/answer/parser/whois.crsnic.net.rb +2 -2
- data/lib/whois/answer/parser/whois.denic.de.rb +27 -22
- data/lib/whois/answer/parser/whois.iana.org.rb +56 -16
- data/lib/whois/answer/parser/whois.nic.cc.rb +1 -1
- data/lib/whois/answer/parser/whois.nic.hu.rb +12 -8
- data/lib/whois/answer/parser/whois.nic.it.rb +1 -1
- data/lib/whois/answer/parser/whois.nic.tv.rb +1 -1
- data/lib/whois/answer/parser/whois.publicinterestregistry.net.rb +11 -9
- data/lib/whois/answer/registrar.rb +5 -5
- data/lib/whois/client.rb +0 -1
- data/lib/whois/errors.rb +19 -19
- data/lib/whois/server.rb +119 -47
- data/lib/whois/server/adapters/base.rb +44 -2
- data/lib/whois/version.rb +4 -3
- data/whois.gemspec +9 -18
- metadata +26 -713
- data/Manifest +0 -541
- data/Rakefile +0 -82
- data/data/ip6_del_list +0 -47
- data/data/ip_del_list +0 -245
- data/data/make_ip6_del.pl +0 -38
- data/data/make_ip_del.pl +0 -25
- data/data/make_servers_charset.pl +0 -21
- data/data/make_tld_serv.pl +0 -23
- data/data/servers_charset_list +0 -38
- data/data/tld_serv_list +0 -377
- data/tasks/server.rake +0 -109
- data/test/list_tld +0 -324
- data/test/test_helper.rb +0 -56
- data/test/testcases/referrals/afilias.bz.txt +0 -40
- data/test/testcases/referrals/crsnic.com.txt +0 -210
- data/test/testcases/referrals/crsnic.com_more_servers.txt +0 -210
- data/test/testcases/referrals/crsnic.com_one_server.txt +0 -57
- data/test/testcases/referrals/niccc.cc.txt +0 -59
- data/test/testcases/referrals/pir.org.txt +0 -84
- data/test/testcases/responses/UTF8.txt +0 -10
- data/test/testcases/responses/jobswhois.verisign-grs.com/available.txt +0 -44
- data/test/testcases/responses/jobswhois.verisign-grs.com/property_registrar.txt +0 -54
- data/test/testcases/responses/jobswhois.verisign-grs.com/registered.txt +0 -54
- data/test/testcases/responses/whois.adamsnames.tc/gd/available.txt +0 -2
- data/test/testcases/responses/whois.adamsnames.tc/gd/registered.txt +0 -26
- data/test/testcases/responses/whois.adamsnames.tc/tc/available.txt +0 -2
- data/test/testcases/responses/whois.adamsnames.tc/tc/registered.txt +0 -28
- data/test/testcases/responses/whois.adamsnames.tc/vg/available.txt +0 -2
- data/test/testcases/responses/whois.adamsnames.tc/vg/registered.txt +0 -28
- data/test/testcases/responses/whois.aeda.net.ae/available.txt +0 -1
- data/test/testcases/responses/whois.aeda.net.ae/registered.txt +0 -15
- data/test/testcases/responses/whois.aero/available.txt +0 -1
- data/test/testcases/responses/whois.aero/registered.txt +0 -102
- data/test/testcases/responses/whois.afilias-grs.info/bz/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/bz/registered.txt +0 -122
- data/test/testcases/responses/whois.afilias-grs.info/gi/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/gi/registered.txt +0 -98
- data/test/testcases/responses/whois.afilias-grs.info/hn/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/hn/registered.txt +0 -85
- data/test/testcases/responses/whois.afilias-grs.info/lc/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/lc/registered.txt +0 -83
- data/test/testcases/responses/whois.afilias-grs.info/mn/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/mn/registered.txt +0 -100
- data/test/testcases/responses/whois.afilias-grs.info/sc/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/sc/registered.txt +0 -85
- data/test/testcases/responses/whois.afilias-grs.info/vc/available.txt +0 -1
- data/test/testcases/responses/whois.afilias-grs.info/vc/registered.txt +0 -100
- data/test/testcases/responses/whois.afilias.info/available.txt +0 -1
- data/test/testcases/responses/whois.afilias.info/registered.txt +0 -104
- data/test/testcases/responses/whois.ai/available.txt +0 -2
- data/test/testcases/responses/whois.ai/registered.txt +0 -59
- data/test/testcases/responses/whois.arnes.si/available.txt +0 -29
- data/test/testcases/responses/whois.arnes.si/registered.txt +0 -55
- data/test/testcases/responses/whois.audns.net.au/available.txt +0 -1
- data/test/testcases/responses/whois.audns.net.au/registered.txt +0 -23
- data/test/testcases/responses/whois.biz/available.txt +0 -25
- data/test/testcases/responses/whois.biz/registered.txt +0 -89
- data/test/testcases/responses/whois.cat/available.txt +0 -18
- data/test/testcases/responses/whois.cat/registered.txt +0 -83
- data/test/testcases/responses/whois.cctld.uz/available.txt +0 -12
- data/test/testcases/responses/whois.cctld.uz/registered.txt +0 -123
- data/test/testcases/responses/whois.cira.ca/available.txt +0 -9
- data/test/testcases/responses/whois.cira.ca/registered.txt +0 -47
- data/test/testcases/responses/whois.cnnic.cn/available.txt +0 -1
- data/test/testcases/responses/whois.cnnic.cn/registered.txt +0 -19
- data/test/testcases/responses/whois.crsnic.net/MULTIPLE.txt +0 -3
- data/test/testcases/responses/whois.crsnic.net/available.txt +0 -43
- data/test/testcases/responses/whois.crsnic.net/nameservers_with_no_nameserver.txt +0 -67
- data/test/testcases/responses/whois.crsnic.net/registered.txt +0 -57
- data/test/testcases/responses/whois.crsnic.net/registered_with_multiple_entries.txt +0 -235
- data/test/testcases/responses/whois.denic.de/1-10-0_available.txt +0 -30
- data/test/testcases/responses/whois.denic.de/1-10-0_registered.txt +0 -77
- data/test/testcases/responses/whois.denic.de/available.txt +0 -42
- data/test/testcases/responses/whois.denic.de/error_invalid_domain_name.txt +0 -37
- data/test/testcases/responses/whois.denic.de/property_nameservers_with_ip.txt +0 -67
- data/test/testcases/responses/whois.denic.de/property_technical_contact.txt +0 -70
- data/test/testcases/responses/whois.denic.de/registered.txt +0 -70
- data/test/testcases/responses/whois.dk-hostmaster.dk/available.txt +0 -15
- data/test/testcases/responses/whois.dk-hostmaster.dk/registered.txt +0 -47
- data/test/testcases/responses/whois.dns.be/available.txt +0 -41
- data/test/testcases/responses/whois.dns.be/registered.txt +0 -66
- data/test/testcases/responses/whois.dns.lu/available.txt +0 -26
- data/test/testcases/responses/whois.dns.lu/property_nameservers_with_ip.txt +0 -55
- data/test/testcases/responses/whois.dns.lu/registered.txt +0 -57
- data/test/testcases/responses/whois.dns.pt/available.txt +0 -1
- data/test/testcases/responses/whois.dns.pt/registered.txt +0 -32
- data/test/testcases/responses/whois.domain-registry.nl/available.txt +0 -21
- data/test/testcases/responses/whois.domain-registry.nl/registered.txt +0 -67
- data/test/testcases/responses/whois.domainregistry.ie/available.txt +0 -7
- data/test/testcases/responses/whois.domainregistry.ie/registered.txt +0 -26
- data/test/testcases/responses/whois.domreg.lt/available.txt +0 -18
- data/test/testcases/responses/whois.domreg.lt/property_nameservers_with_ip.txt +0 -32
- data/test/testcases/responses/whois.domreg.lt/registered.txt +0 -37
- data/test/testcases/responses/whois.dot.tk/available.txt +0 -1
- data/test/testcases/responses/whois.dot.tk/registered.txt +0 -28
- data/test/testcases/responses/whois.dotmobiregistry.net/available.txt +0 -25
- data/test/testcases/responses/whois.dotmobiregistry.net/registered.txt +0 -81
- data/test/testcases/responses/whois.educause.edu/available.txt +0 -28
- data/test/testcases/responses/whois.educause.edu/registered.txt +0 -66
- data/test/testcases/responses/whois.eenet.ee/available.txt +0 -6
- data/test/testcases/responses/whois.eenet.ee/registered.txt +0 -27
- data/test/testcases/responses/whois.eu.org/available.txt +0 -1
- data/test/testcases/responses/whois.eu.org/registered.txt +0 -19
- data/test/testcases/responses/whois.eu/available.txt +0 -47
- data/test/testcases/responses/whois.eu/property_nameservers_with_ip.txt +0 -61
- data/test/testcases/responses/whois.eu/registered.txt +0 -63
- data/test/testcases/responses/whois.hkdnr.net.hk/available.txt +0 -1
- data/test/testcases/responses/whois.hkdnr.net.hk/registered.txt +0 -96
- data/test/testcases/responses/whois.iana.org/MULTIPLE.txt +0 -3
- data/test/testcases/responses/whois.iana.org/available.txt +0 -7
- data/test/testcases/responses/whois.iana.org/registered.txt +0 -89
- data/test/testcases/responses/whois.in.ua/available.txt +0 -4
- data/test/testcases/responses/whois.in.ua/registered.txt +0 -16
- data/test/testcases/responses/whois.isnic.is/available.txt +0 -7
- data/test/testcases/responses/whois.isnic.is/registered.txt +0 -57
- data/test/testcases/responses/whois.jprs.jp/jp/available.txt +0 -17
- data/test/testcases/responses/whois.jprs.jp/jp/registered.txt +0 -30
- data/test/testcases/responses/whois.jprs.jp/ne.jp/available.txt +0 -17
- data/test/testcases/responses/whois.jprs.jp/ne.jp/registered.txt +0 -19
- data/test/testcases/responses/whois.meregistry.net/available.txt +0 -1
- data/test/testcases/responses/whois.meregistry.net/registered.txt +0 -94
- data/test/testcases/responses/whois.museum/available.txt +0 -18
- data/test/testcases/responses/whois.museum/registered.txt +0 -92
- data/test/testcases/responses/whois.net.ua/available.txt +0 -7
- data/test/testcases/responses/whois.net.ua/property_nameservers_uppercase.txt +0 -29
- data/test/testcases/responses/whois.net.ua/redirect_to_whois.in.ua.txt +0 -29
- data/test/testcases/responses/whois.net.ua/registered.txt +0 -58
- data/test/testcases/responses/whois.nic-se.se/available.txt +0 -21
- data/test/testcases/responses/whois.nic-se.se/property_nameservers_with_ip.txt +0 -37
- data/test/testcases/responses/whois.nic-se.se/registered.txt +0 -37
- data/test/testcases/responses/whois.nic.ac/available.txt +0 -2
- data/test/testcases/responses/whois.nic.ac/registered.txt +0 -2
- data/test/testcases/responses/whois.nic.af/available.txt +0 -13
- data/test/testcases/responses/whois.nic.af/registered.txt +0 -56
- data/test/testcases/responses/whois.nic.ag/available.txt +0 -1
- data/test/testcases/responses/whois.nic.ag/registered.txt +0 -100
- data/test/testcases/responses/whois.nic.am/available.txt +0 -3
- data/test/testcases/responses/whois.nic.am/registered.txt +0 -42
- data/test/testcases/responses/whois.nic.as/available.txt +0 -12
- data/test/testcases/responses/whois.nic.as/registered.txt +0 -18
- data/test/testcases/responses/whois.nic.asia/available.txt +0 -1
- data/test/testcases/responses/whois.nic.asia/registered.txt +0 -159
- data/test/testcases/responses/whois.nic.at/available.txt +0 -25
- data/test/testcases/responses/whois.nic.at/registered.txt +0 -65
- data/test/testcases/responses/whois.nic.cc/available.txt +0 -44
- data/test/testcases/responses/whois.nic.cc/registered.txt +0 -58
- data/test/testcases/responses/whois.nic.cd/available.txt +0 -1
- data/test/testcases/responses/whois.nic.cd/registered.txt +0 -85
- data/test/testcases/responses/whois.nic.ch/available.txt +0 -2
- data/test/testcases/responses/whois.nic.ch/property_nameservers_with_ip.txt +0 -27
- data/test/testcases/responses/whois.nic.ch/registered.txt +0 -28
- data/test/testcases/responses/whois.nic.co/available.txt +0 -28
- data/test/testcases/responses/whois.nic.co/registered.txt +0 -82
- data/test/testcases/responses/whois.nic.coop/available.txt +0 -33
- data/test/testcases/responses/whois.nic.coop/registered.txt +0 -123
- data/test/testcases/responses/whois.nic.ec/available.txt +0 -1
- data/test/testcases/responses/whois.nic.ec/registered.txt +0 -40
- data/test/testcases/responses/whois.nic.fr/fr/available.txt +0 -19
- data/test/testcases/responses/whois.nic.fr/fr/registered.txt +0 -98
- data/test/testcases/responses/whois.nic.fr/pm/available.txt +0 -19
- data/test/testcases/responses/whois.nic.fr/pm/registered.txt +0 -88
- data/test/testcases/responses/whois.nic.fr/re/available.txt +0 -19
- data/test/testcases/responses/whois.nic.fr/re/registered.txt +0 -83
- data/test/testcases/responses/whois.nic.fr/wf/available.txt +0 -19
- data/test/testcases/responses/whois.nic.fr/wf/registered.txt +0 -88
- data/test/testcases/responses/whois.nic.fr/yt/available.txt +0 -19
- data/test/testcases/responses/whois.nic.fr/yt/registered.txt +0 -88
- data/test/testcases/responses/whois.nic.gl/available.txt +0 -23
- data/test/testcases/responses/whois.nic.gl/registered.txt +0 -40
- data/test/testcases/responses/whois.nic.gov/available.txt +0 -1
- data/test/testcases/responses/whois.nic.gov/registered.txt +0 -5
- data/test/testcases/responses/whois.nic.ht/available.txt +0 -23
- data/test/testcases/responses/whois.nic.ht/registered.txt +0 -59
- data/test/testcases/responses/whois.nic.hu/current/available.txt +0 -3
- data/test/testcases/responses/whois.nic.hu/current/registered.txt +0 -9
- data/test/testcases/responses/whois.nic.hu/v1.99/available.txt +0 -12
- data/test/testcases/responses/whois.nic.hu/v1.99/in_progress.txt +0 -13
- data/test/testcases/responses/whois.nic.hu/v1.99/property_registrant_as_company.txt +0 -65
- data/test/testcases/responses/whois.nic.hu/v1.99/property_registrant_as_private_person.txt +0 -58
- data/test/testcases/responses/whois.nic.hu/v1.99/property_registrant_without_address.txt +0 -58
- data/test/testcases/responses/whois.nic.hu/v1.99/registered.txt +0 -65
- data/test/testcases/responses/whois.nic.im/available.txt +0 -2
- data/test/testcases/responses/whois.nic.im/registered.txt +0 -45
- data/test/testcases/responses/whois.nic.io/available.txt +0 -2
- data/test/testcases/responses/whois.nic.io/registered.txt +0 -2
- data/test/testcases/responses/whois.nic.it/available.txt +0 -2
- data/test/testcases/responses/whois.nic.it/property_admin_contact.txt +0 -53
- data/test/testcases/responses/whois.nic.it/property_registrant_contact.txt +0 -58
- data/test/testcases/responses/whois.nic.it/property_status_active.txt +0 -53
- data/test/testcases/responses/whois.nic.it/property_status_available.txt +0 -2
- data/test/testcases/responses/whois.nic.it/property_technical_contact.txt +0 -53
- data/test/testcases/responses/whois.nic.it/registered.txt +0 -53
- data/test/testcases/responses/whois.nic.kz/available.txt +0 -4
- data/test/testcases/responses/whois.nic.kz/registered.txt +0 -37
- data/test/testcases/responses/whois.nic.la/available.txt +0 -1
- data/test/testcases/responses/whois.nic.la/registered.txt +0 -70
- data/test/testcases/responses/whois.nic.lv/available.txt +0 -7
- data/test/testcases/responses/whois.nic.lv/registered.txt +0 -33
- data/test/testcases/responses/whois.nic.ly/available.txt +0 -1
- data/test/testcases/responses/whois.nic.ly/registered.txt +0 -65
- data/test/testcases/responses/whois.nic.mu/ki/available.txt +0 -20
- data/test/testcases/responses/whois.nic.mu/ki/registered.txt +0 -30
- data/test/testcases/responses/whois.nic.mu/mu/available.txt +0 -9
- data/test/testcases/responses/whois.nic.mu/mu/registered.txt +0 -22
- data/test/testcases/responses/whois.nic.mx/available.txt +0 -11
- data/test/testcases/responses/whois.nic.mx/registered.txt +0 -58
- data/test/testcases/responses/whois.nic.name/available.txt +0 -29
- data/test/testcases/responses/whois.nic.name/registered.txt +0 -36
- data/test/testcases/responses/whois.nic.name/reserved.txt +0 -30
- data/test/testcases/responses/whois.nic.net.sa/available.txt +0 -5
- data/test/testcases/responses/whois.nic.net.sa/registered.txt +0 -17
- data/test/testcases/responses/whois.nic.nu/available.txt +0 -19
- data/test/testcases/responses/whois.nic.nu/registered.txt +0 -35
- data/test/testcases/responses/whois.nic.or.kr/available.txt +0 -10
- data/test/testcases/responses/whois.nic.or.kr/registered.txt +0 -48
- data/test/testcases/responses/whois.nic.org.uy/available.txt +0 -10
- data/test/testcases/responses/whois.nic.org.uy/registered.txt +0 -48
- data/test/testcases/responses/whois.nic.sn/available.txt +0 -3
- data/test/testcases/responses/whois.nic.sn/registered.txt +0 -14
- data/test/testcases/responses/whois.nic.st/available.txt +0 -1
- data/test/testcases/responses/whois.nic.st/registered.txt +0 -47
- data/test/testcases/responses/whois.nic.tel/available.txt +0 -59
- data/test/testcases/responses/whois.nic.tel/registered.txt +0 -111
- data/test/testcases/responses/whois.nic.tl/available.txt +0 -21
- data/test/testcases/responses/whois.nic.tl/registered.txt +0 -29
- data/test/testcases/responses/whois.nic.tr/available.txt +0 -1
- data/test/testcases/responses/whois.nic.tr/property_nameservers_with_trailing_space.txt +0 -42
- data/test/testcases/responses/whois.nic.tr/registered.txt +0 -48
- data/test/testcases/responses/whois.nic.travel/available.txt +0 -25
- data/test/testcases/responses/whois.nic.travel/registered.txt +0 -75
- data/test/testcases/responses/whois.nic.tv/available.txt +0 -44
- data/test/testcases/responses/whois.nic.tv/registered.txt +0 -54
- data/test/testcases/responses/whois.nic.uk/available.txt +0 -20
- data/test/testcases/responses/whois.nic.uk/invalid.txt +0 -22
- data/test/testcases/responses/whois.nic.uk/registered.txt +0 -50
- data/test/testcases/responses/whois.nic.us/available.txt +0 -29
- data/test/testcases/responses/whois.nic.us/registered.txt +0 -99
- data/test/testcases/responses/whois.nic.ve/available.txt +0 -10
- data/test/testcases/responses/whois.nic.ve/registered.txt +0 -48
- data/test/testcases/responses/whois.norid.no/available.txt +0 -5
- data/test/testcases/responses/whois.norid.no/registered.txt +0 -34
- data/test/testcases/responses/whois.pandi.or.id/available.txt +0 -9
- data/test/testcases/responses/whois.pandi.or.id/registered.txt +0 -33
- data/test/testcases/responses/whois.publicinterestregistry.net/available.txt +0 -1
- data/test/testcases/responses/whois.publicinterestregistry.net/registered.txt +0 -85
- data/test/testcases/responses/whois.publicinterestregistry.net/throttle.txt +0 -1
- data/test/testcases/responses/whois.register.bg/available.txt +0 -1
- data/test/testcases/responses/whois.register.bg/property_nameservers_with_ip.txt +0 -42
- data/test/testcases/responses/whois.register.bg/registered.txt +0 -44
- data/test/testcases/responses/whois.registro.br/available.txt +0 -22
- data/test/testcases/responses/whois.registro.br/registered.txt +0 -23
- data/test/testcases/responses/whois.registry.in/available.txt +0 -1
- data/test/testcases/responses/whois.registry.in/registered.txt +0 -83
- data/test/testcases/responses/whois.registrypro.pro/available.txt +0 -20
- data/test/testcases/responses/whois.registrypro.pro/registered.txt +0 -62
- data/test/testcases/responses/whois.ripe.net/fo/available.txt +0 -11
- data/test/testcases/responses/whois.ripe.net/fo/registered.txt +0 -45
- data/test/testcases/responses/whois.ripe.net/gm/available.txt +0 -11
- data/test/testcases/responses/whois.ripe.net/gm/registered.txt +0 -37
- data/test/testcases/responses/whois.ripe.net/mc/available.txt +0 -11
- data/test/testcases/responses/whois.ripe.net/mc/registered.txt +0 -36
- data/test/testcases/responses/whois.ripe.net/sm/available.txt +0 -11
- data/test/testcases/responses/whois.ripe.net/sm/registered.txt +0 -60
- data/test/testcases/responses/whois.ripe.net/va/available.txt +0 -11
- data/test/testcases/responses/whois.ripe.net/va/registered.txt +0 -48
- data/test/testcases/responses/whois.ripn.net/ru/available.txt +0 -9
- data/test/testcases/responses/whois.ripn.net/ru/property_nameservers_with_ip.txt +0 -22
- data/test/testcases/responses/whois.ripn.net/ru/registered.txt +0 -24
- data/test/testcases/responses/whois.ripn.net/su/available.txt +0 -9
- data/test/testcases/responses/whois.ripn.net/su/registered.txt +0 -20
- data/test/testcases/responses/whois.rotld.ro/available.txt +0 -16
- data/test/testcases/responses/whois.rotld.ro/registered.txt +0 -27
- data/test/testcases/responses/whois.samoanic.ws/available.txt +0 -12
- data/test/testcases/responses/whois.samoanic.ws/registered.txt +0 -34
- data/test/testcases/responses/whois.srs.net.nz/available.txt +0 -28
- data/test/testcases/responses/whois.srs.net.nz/invalid.txt +0 -28
- data/test/testcases/responses/whois.srs.net.nz/registered.txt +0 -72
- data/test/testcases/responses/whois.tonic.to/1.txt +0 -1
- data/test/testcases/responses/whois.tonic.to/available.txt +0 -2
- data/test/testcases/responses/whois.tonic.to/incomplete.txt +0 -1
- data/test/testcases/responses/whois.tonic.to/registered.txt +0 -3
- data/test/testcases/responses/whois.za.net/available.txt +0 -9
- data/test/testcases/responses/whois.za.net/registered.txt +0 -42
- data/test/testcases/responses/whois.za.org/available.txt +0 -9
- data/test/testcases/responses/whois.za.org/registered.txt +0 -44
- data/test/whois/answer/contact_test.rb +0 -14
- data/test/whois/answer/parser/base_test.rb +0 -84
- data/test/whois/answer/parser/blank_test.rb +0 -19
- data/test/whois/answer/parser/jobswhois.verisign-grs.com_test.rb +0 -161
- data/test/whois/answer/parser/saudinic.net.sa_test.rb +0 -12
- data/test/whois/answer/parser/whois.adamsnames.tc_test.rb +0 -162
- data/test/whois/answer/parser/whois.aeda.net.ae_test.rb +0 -63
- data/test/whois/answer/parser/whois.aero_test.rb +0 -84
- data/test/whois/answer/parser/whois.afilias-grs.info_test.rb +0 -438
- data/test/whois/answer/parser/whois.afilias.info_test.rb +0 -64
- data/test/whois/answer/parser/whois.ai_test.rb +0 -58
- data/test/whois/answer/parser/whois.arnes.si_test.rb +0 -72
- data/test/whois/answer/parser/whois.audns.net.au_test.rb +0 -70
- data/test/whois/answer/parser/whois.ausregistry.net.au_test.rb +0 -12
- data/test/whois/answer/parser/whois.biz_test.rb +0 -64
- data/test/whois/answer/parser/whois.cat_test.rb +0 -64
- data/test/whois/answer/parser/whois.cctld.uz_test.rb +0 -91
- data/test/whois/answer/parser/whois.cira.ca_test.rb +0 -64
- data/test/whois/answer/parser/whois.cnnic.cn_test.rb +0 -73
- data/test/whois/answer/parser/whois.cnnic.net.cn_test.rb +0 -11
- data/test/whois/answer/parser/whois.crsnic.net_test.rb +0 -186
- data/test/whois/answer/parser/whois.denic.de_test.rb +0 -414
- data/test/whois/answer/parser/whois.dk-hostmaster.dk_test.rb +0 -57
- data/test/whois/answer/parser/whois.dns.be_test.rb +0 -65
- data/test/whois/answer/parser/whois.dns.lu_test.rb +0 -77
- data/test/whois/answer/parser/whois.dns.pt_test.rb +0 -84
- data/test/whois/answer/parser/whois.domain-registry.nl_test.rb +0 -62
- data/test/whois/answer/parser/whois.domainregistry.ie_test.rb +0 -60
- data/test/whois/answer/parser/whois.domreg.lt_test.rb +0 -67
- data/test/whois/answer/parser/whois.dot.tk_test.rb +0 -77
- data/test/whois/answer/parser/whois.dotmobiregistry.net_test.rb +0 -64
- data/test/whois/answer/parser/whois.educause.edu_test.rb +0 -64
- data/test/whois/answer/parser/whois.eenet.ee_test.rb +0 -91
- data/test/whois/answer/parser/whois.eu.org_test.rb +0 -51
- data/test/whois/answer/parser/whois.eu_test.rb +0 -65
- data/test/whois/answer/parser/whois.hkdnr.net.hk_test.rb +0 -77
- data/test/whois/answer/parser/whois.iana.org_test.rb +0 -63
- data/test/whois/answer/parser/whois.in.ua_test.rb +0 -91
- data/test/whois/answer/parser/whois.isnic.is_test.rb +0 -62
- data/test/whois/answer/parser/whois.jprs.jp_test.rb +0 -165
- data/test/whois/answer/parser/whois.meregistry.net_test.rb +0 -64
- data/test/whois/answer/parser/whois.museum_test.rb +0 -64
- data/test/whois/answer/parser/whois.net.ua_test.rb +0 -98
- data/test/whois/answer/parser/whois.nic-se.se_test.rb +0 -71
- data/test/whois/answer/parser/whois.nic.ac_test.rb +0 -126
- data/test/whois/answer/parser/whois.nic.af_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.ag_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.am_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.as_test.rb +0 -63
- data/test/whois/answer/parser/whois.nic.asia_test.rb +0 -69
- data/test/whois/answer/parser/whois.nic.at_test.rb +0 -65
- data/test/whois/answer/parser/whois.nic.cc_test.rb +0 -133
- data/test/whois/answer/parser/whois.nic.cd_test.rb +0 -62
- data/test/whois/answer/parser/whois.nic.ch_test.rb +0 -65
- data/test/whois/answer/parser/whois.nic.co_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.coop_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.ec_test.rb +0 -98
- data/test/whois/answer/parser/whois.nic.fr_test.rb +0 -281
- data/test/whois/answer/parser/whois.nic.gl_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.gov_test.rb +0 -51
- data/test/whois/answer/parser/whois.nic.ht_test.rb +0 -98
- data/test/whois/answer/parser/whois.nic.hu_test.rb +0 -321
- data/test/whois/answer/parser/whois.nic.im_test.rb +0 -60
- data/test/whois/answer/parser/whois.nic.io_test.rb +0 -51
- data/test/whois/answer/parser/whois.nic.it_test.rb +0 -298
- data/test/whois/answer/parser/whois.nic.kz_test.rb +0 -91
- data/test/whois/answer/parser/whois.nic.la_test.rb +0 -98
- data/test/whois/answer/parser/whois.nic.lv_test.rb +0 -65
- data/test/whois/answer/parser/whois.nic.ly_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.mu_test.rb +0 -123
- data/test/whois/answer/parser/whois.nic.mx_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.name_test.rb +0 -51
- data/test/whois/answer/parser/whois.nic.net.sa_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.nu_test.rb +0 -59
- data/test/whois/answer/parser/whois.nic.or.kr_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.org.uy_test.rb +0 -91
- data/test/whois/answer/parser/whois.nic.sn_test.rb +0 -190
- data/test/whois/answer/parser/whois.nic.st_test.rb +0 -77
- data/test/whois/answer/parser/whois.nic.tel_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.tl_test.rb +0 -84
- data/test/whois/answer/parser/whois.nic.tr_test.rb +0 -98
- data/test/whois/answer/parser/whois.nic.travel_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.tv_test.rb +0 -132
- data/test/whois/answer/parser/whois.nic.uk_test.rb +0 -76
- data/test/whois/answer/parser/whois.nic.us_test.rb +0 -64
- data/test/whois/answer/parser/whois.nic.ve_test.rb +0 -91
- data/test/whois/answer/parser/whois.norid.no_test.rb +0 -49
- data/test/whois/answer/parser/whois.pandi.or.id_test.rb +0 -79
- data/test/whois/answer/parser/whois.publicinterestregistry.net_test.rb +0 -284
- data/test/whois/answer/parser/whois.register.bg_test.rb +0 -69
- data/test/whois/answer/parser/whois.registro.br_test.rb +0 -51
- data/test/whois/answer/parser/whois.registry.in_test.rb +0 -69
- data/test/whois/answer/parser/whois.registrypro.pro_test.rb +0 -84
- data/test/whois/answer/parser/whois.ripe.net_test.rb +0 -266
- data/test/whois/answer/parser/whois.ripn.net_test.rb +0 -127
- data/test/whois/answer/parser/whois.rotld.ro_test.rb +0 -63
- data/test/whois/answer/parser/whois.samoanic.ws_test.rb +0 -64
- data/test/whois/answer/parser/whois.srs.net.nz_test.rb +0 -79
- data/test/whois/answer/parser/whois.tonic.to_test.rb +0 -125
- data/test/whois/answer/parser/whois.za.net_test.rb +0 -62
- data/test/whois/answer/parser/whois.za.org_test.rb +0 -62
- data/test/whois/answer/parser_test.rb +0 -219
- data/test/whois/answer/super_struct_test.rb +0 -24
- data/test/whois/answer_test.rb +0 -180
- data/test/whois/client_test.rb +0 -96
- data/test/whois/errors_test.rb +0 -23
- data/test/whois/integration_test.rb +0 -31
- data/test/whois/server/adapters/afilias_test.rb +0 -37
- data/test/whois/server/adapters/base_test.rb +0 -15
- data/test/whois/server/adapters/formatted_test.rb +0 -29
- data/test/whois/server/adapters/none_test.rb +0 -22
- data/test/whois/server/adapters/not_implemented_test.rb +0 -16
- data/test/whois/server/adapters/pir_test.rb +0 -37
- data/test/whois/server/adapters/standard_test.rb +0 -36
- data/test/whois/server/adapters/verisign_test.rb +0 -51
- data/test/whois/server/adapters/web_test.rb +0 -17
- data/test/whois/server_test.rb +0 -105
- data/utils/bm_delegation_vs_inheritance.rb +0 -150
- data/utils/bm_shell_vs_pure.rb +0 -14
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
|
2
|
-
No such domain: u34jedzcq.za.net
|
3
|
-
|
4
|
-
The ZA NiC whois service contains ONLY information relating to the registration
|
5
|
-
or availability of Internet domain names under the ZA.NET and ZA.ORG namespace.
|
6
|
-
Online registration of ZA NiC domains can be made using the automated tool
|
7
|
-
available at http://www.za.net/
|
8
|
-
|
9
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
|
2
|
-
Domain Name : karnaugh.za.net
|
3
|
-
|
4
|
-
Registered for : Colin Alston
|
5
|
-
11 Swales Crescent
|
6
|
-
Pinetown
|
7
|
-
3610
|
8
|
-
South Africa
|
9
|
-
|
10
|
-
Administrative Contact : Colin Alston <diskbox@yifan.net>
|
11
|
-
DAC
|
12
|
-
11 Swales Crecent
|
13
|
-
Pinetown
|
14
|
-
KZN
|
15
|
-
3610
|
16
|
-
South Africa
|
17
|
-
7037634
|
18
|
-
|
19
|
-
Technical Contact : Colin Alston <diskbox@yifan.net>
|
20
|
-
DAC
|
21
|
-
11 Swales Crecent
|
22
|
-
Pinetown
|
23
|
-
KZN
|
24
|
-
3610
|
25
|
-
South Africa
|
26
|
-
7037634
|
27
|
-
|
28
|
-
Record Created : Fri Mar 29 22:03:53 GMT 2002
|
29
|
-
Record Last Updated : Fri Mar 29 22:03:53 GMT 2002
|
30
|
-
Database Last Updated : Sun Nov 22 16:01:16 GMT 2009
|
31
|
-
|
32
|
-
Domain Name Servers listed in order:
|
33
|
-
|
34
|
-
ns3.zoneedit.com
|
35
|
-
ns5.zoneedit.com
|
36
|
-
|
37
|
-
|
38
|
-
The ZA NiC whois service contains ONLY information relating to the registration
|
39
|
-
or availability of Internet domain names under the ZA.NET and ZA.ORG namespace.
|
40
|
-
Online registration of ZA NiC domains can be made using the automated tool
|
41
|
-
available at http://www.za.net/
|
42
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
|
2
|
-
No such domain: u34jedzcq.za.org
|
3
|
-
|
4
|
-
The ZA NiC whois service contains ONLY information relating to the registration
|
5
|
-
or availability of Internet domain names under the ZA.NET and ZA.ORG namespace.
|
6
|
-
Online registration of ZA NiC domains can be made using the automated tool
|
7
|
-
available at http://www.za.net/
|
8
|
-
|
9
|
-
|
@@ -1,44 +0,0 @@
|
|
1
|
-
|
2
|
-
Domain Name : csa.za.org
|
3
|
-
|
4
|
-
Registered for : W&C Information Consultants CC
|
5
|
-
No 4 Botano Bldg
|
6
|
-
Centurion
|
7
|
-
0046
|
8
|
-
South Africa
|
9
|
-
|
10
|
-
Administrative Contact : Willo van der Merwe <hostmaster@wcic.co.za> <hostmaster@wcic.co.za>
|
11
|
-
W&C Information Consultants CC
|
12
|
-
No 4 Botano Bldg
|
13
|
-
Centurion
|
14
|
-
Gauteng
|
15
|
-
0046
|
16
|
-
South Africa
|
17
|
-
+27 12 643 0288
|
18
|
-
+27 12 643 0287
|
19
|
-
|
20
|
-
Technical Contact : Willo van der Merwe <hostmaster@wcic.co.za> <hostmaster@wcic.co.za>
|
21
|
-
W&C Information Consultants CC
|
22
|
-
No 4 Botano Bldg
|
23
|
-
Centurion
|
24
|
-
Gauteng
|
25
|
-
0046
|
26
|
-
South Africa
|
27
|
-
+27 12 643 0288
|
28
|
-
+27 12 643 0287
|
29
|
-
|
30
|
-
Record Created : Sun Nov 5 14:03:48 GMT 2000
|
31
|
-
Record Last Updated : Mon Aug 15 12:15:10 BST 2005
|
32
|
-
Database Last Updated : Sun Nov 22 16:01:16 GMT 2009
|
33
|
-
|
34
|
-
Domain Name Servers listed in order:
|
35
|
-
|
36
|
-
blade.wcic.co.za
|
37
|
-
sabertooth.wcic.co.za
|
38
|
-
ns2.iafrica.com
|
39
|
-
|
40
|
-
The ZA NiC whois service contains ONLY information relating to the registration
|
41
|
-
or availability of Internet domain names under the ZA.NET and ZA.ORG namespace.
|
42
|
-
Online registration of ZA NiC domains can be made using the automated tool
|
43
|
-
available at http://www.za.net/
|
44
|
-
|
@@ -1,84 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'whois/answer/parser/base'
|
3
|
-
|
4
|
-
class AnswerParserBaseTest < Test::Unit::TestCase
|
5
|
-
|
6
|
-
def setup
|
7
|
-
@klass = Whois::Answer::Parser::Base
|
8
|
-
@part = Whois::Answer::Part.new("This is the response.", "whois.foo.com")
|
9
|
-
end
|
10
|
-
|
11
|
-
|
12
|
-
def test_initialize
|
13
|
-
parser = @klass.new(@part)
|
14
|
-
assert_instance_of @klass, parser
|
15
|
-
end
|
16
|
-
|
17
|
-
def test_initialize_should_require_part
|
18
|
-
assert_raise(ArgumentError) { @klass.new }
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
def test_content
|
23
|
-
parser = @klass.new(@part)
|
24
|
-
assert_equal @part.response, parser.content
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_content_for_scanner
|
28
|
-
parser = @klass.new(Whois::Answer::Part.new("This is\r\nthe response.", "whois.foo.com"))
|
29
|
-
assert_equal "This is\nthe response.", parser.send(:content_for_scanner)
|
30
|
-
assert_equal "This is\nthe response.", parser.instance_variable_get(:"@content_for_scanner")
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
def test_property_supported?
|
35
|
-
klass = Class.new(@klass) do
|
36
|
-
end
|
37
|
-
assert !klass.new(@part).property_supported?(:disclaimer)
|
38
|
-
assert klass.new(@part).respond_to?(:disclaimer)
|
39
|
-
|
40
|
-
klass = Class.new(@klass) do
|
41
|
-
register_property(:disclaimer, :supported) {}
|
42
|
-
end
|
43
|
-
assert klass.new(@part).property_supported?(:disclaimer)
|
44
|
-
assert klass.new(@part).respond_to?(:disclaimer)
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
def test_contacts_should_return_empty_array_with_all_unsupported
|
49
|
-
parser = @klass.new(@part)
|
50
|
-
assert_equal [], parser.contacts
|
51
|
-
end
|
52
|
-
|
53
|
-
def test_contacts_should_return_all_supported_contacts
|
54
|
-
c1 = Whois::Answer::Contact.new(:id => "1st", :name => "foo")
|
55
|
-
c2 = Whois::Answer::Contact.new(:id => "2nd", :name => "foo")
|
56
|
-
c3 = Whois::Answer::Contact.new(:id => "3rd", :name => "foo")
|
57
|
-
klass = Class.new(@klass) do
|
58
|
-
register_property(:registrant_contact, :supported) { [c1, c2] }
|
59
|
-
register_property(:admin_contact, :supported) { nil }
|
60
|
-
register_property(:technical_contact, :supported) { c3 }
|
61
|
-
end
|
62
|
-
assert_equal ["1st", "2nd", "3rd"], klass.new(@part).contacts.map(&:id)
|
63
|
-
end
|
64
|
-
|
65
|
-
|
66
|
-
def test_throttle_question
|
67
|
-
assert !@klass.new(@part).throttle?
|
68
|
-
end
|
69
|
-
|
70
|
-
|
71
|
-
def test_self_property_registry
|
72
|
-
assert_instance_of Hash, @klass.property_registry
|
73
|
-
end
|
74
|
-
|
75
|
-
def test_self_property_registry_with_klass
|
76
|
-
assert_instance_of Hash, @klass.property_registry(Whois::Answer::Parser::WhoisNicIt)
|
77
|
-
end
|
78
|
-
|
79
|
-
def test_self_property_registry_with_klass_should_initialize_to_empty_hash
|
80
|
-
parser = Class.new
|
81
|
-
assert_equal Hash.new, @klass.property_registry(parser)
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'whois/answer/parser/blank'
|
3
|
-
|
4
|
-
class AnswerParserBlankTest < Test::Unit::TestCase
|
5
|
-
|
6
|
-
def setup
|
7
|
-
@klass = Whois::Answer::Parser::Blank
|
8
|
-
@part = Whois::Answer::Part.new("This is the response.", "whois.foo.com")
|
9
|
-
end
|
10
|
-
|
11
|
-
Whois::Answer::Parser::PROPERTIES.each do |method|
|
12
|
-
define_method "test_#{method}_should_raise" do
|
13
|
-
parser = @klass.new(@part)
|
14
|
-
error = assert_raise(Whois::ParserNotFound) { parser.send(method) }
|
15
|
-
assert_match "whois.foo.com", error.message
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
@@ -1,161 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'whois/answer/parser/jobswhois.verisign-grs.com'
|
3
|
-
|
4
|
-
class AnswerParserJobswhoisVerisignGrsComTest < Whois::Answer::Parser::TestCase
|
5
|
-
|
6
|
-
def setup
|
7
|
-
@klass = Whois::Answer::Parser::JobswhoisVerisignGrsCom
|
8
|
-
@host = "jobswhois.verisign-grs.com"
|
9
|
-
end
|
10
|
-
|
11
|
-
|
12
|
-
def test_disclaimer
|
13
|
-
expected = <<-EOS.strip
|
14
|
-
TERMS OF USE: You are not authorized to access or query our Whois \
|
15
|
-
database through the use of electronic processes that are high-volume and \
|
16
|
-
automated except as reasonably necessary to register domain names or \
|
17
|
-
modify existing registrations; the Data in VeriSign's ("VeriSign") Whois \
|
18
|
-
database is provided by VeriSign for information purposes only, and to \
|
19
|
-
assist persons in obtaining information about or related to a domain name \
|
20
|
-
registration record. VeriSign does not guarantee its accuracy. \
|
21
|
-
By submitting a Whois query, you agree to abide by the following terms of \
|
22
|
-
use: You agree that you may use this Data only for lawful purposes and that \
|
23
|
-
under no circumstances will you use this Data to: (1) allow, enable, or \
|
24
|
-
otherwise support the transmission of mass unsolicited, commercial \
|
25
|
-
advertising or solicitations via e-mail, telephone, or facsimile; or \
|
26
|
-
(2) enable high volume, automated, electronic processes that apply to \
|
27
|
-
VeriSign (or its computer systems). The compilation, repackaging, \
|
28
|
-
dissemination or other use of this Data is expressly prohibited without \
|
29
|
-
the prior written consent of VeriSign. You agree not to use electronic \
|
30
|
-
processes that are automated and high-volume to access or query the \
|
31
|
-
Whois database except as reasonably necessary to register domain names \
|
32
|
-
or modify existing registrations. VeriSign reserves the right to restrict \
|
33
|
-
your access to the Whois database in its sole discretion to ensure \
|
34
|
-
operational stability. VeriSign may restrict or terminate your access to the \
|
35
|
-
Whois database for failure to abide by these terms of use. VeriSign \
|
36
|
-
reserves the right to modify these terms at any time.
|
37
|
-
EOS
|
38
|
-
assert_equal expected,
|
39
|
-
@klass.new(load_part('/registered.txt')).disclaimer
|
40
|
-
assert_equal expected,
|
41
|
-
@klass.new(load_part('/available.txt')).disclaimer
|
42
|
-
end
|
43
|
-
|
44
|
-
|
45
|
-
def test_domain
|
46
|
-
assert_equal "goto.jobs",
|
47
|
-
@klass.new(load_part('/registered.txt')).domain
|
48
|
-
assert_equal "u34jedzcq.jobs",
|
49
|
-
@klass.new(load_part('/available.txt')).domain
|
50
|
-
end
|
51
|
-
|
52
|
-
def test_domain_id
|
53
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).domain_id }
|
54
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).domain_id }
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
def test_referral_whois
|
59
|
-
assert_equal "whois.encirca.com",
|
60
|
-
@klass.new(load_part('/registered.txt')).referral_whois
|
61
|
-
assert_equal nil,
|
62
|
-
@klass.new(load_part('/available.txt')).referral_whois
|
63
|
-
end
|
64
|
-
|
65
|
-
def test_referral_url_with_registered
|
66
|
-
parser = @klass.new(load_part('/registered.txt'))
|
67
|
-
expected = "http://www.encirca.com"
|
68
|
-
assert_equal expected, parser.referral_url
|
69
|
-
assert_equal expected, parser.instance_eval { @referral_url }
|
70
|
-
end
|
71
|
-
|
72
|
-
def test_referral_url_with_available
|
73
|
-
parser = @klass.new(load_part('/available.txt'))
|
74
|
-
expected = nil
|
75
|
-
assert_equal expected, parser.referral_url
|
76
|
-
assert_equal expected, parser.instance_eval { @referral_url }
|
77
|
-
end
|
78
|
-
|
79
|
-
|
80
|
-
def test_status
|
81
|
-
assert_equal "ACTIVE",
|
82
|
-
@klass.new(load_part('/registered.txt')).status
|
83
|
-
assert_equal nil,
|
84
|
-
@klass.new(load_part('/available.txt')).status
|
85
|
-
end
|
86
|
-
|
87
|
-
def test_available?
|
88
|
-
assert !@klass.new(load_part('/registered.txt')).available?
|
89
|
-
assert @klass.new(load_part('/available.txt')).available?
|
90
|
-
end
|
91
|
-
|
92
|
-
def test_registered?
|
93
|
-
assert @klass.new(load_part('/registered.txt')).registered?
|
94
|
-
assert !@klass.new(load_part('/available.txt')).registered?
|
95
|
-
end
|
96
|
-
|
97
|
-
|
98
|
-
def test_created_on
|
99
|
-
assert_equal Time.parse("2006-02-21"),
|
100
|
-
@klass.new(load_part('/registered.txt')).created_on
|
101
|
-
assert_equal nil,
|
102
|
-
@klass.new(load_part('/available.txt')).created_on
|
103
|
-
end
|
104
|
-
|
105
|
-
def test_updated_on
|
106
|
-
assert_equal Time.parse("2009-02-20"),
|
107
|
-
@klass.new(load_part('/registered.txt')).updated_on
|
108
|
-
assert_equal nil,
|
109
|
-
@klass.new(load_part('/available.txt')).updated_on
|
110
|
-
end
|
111
|
-
|
112
|
-
def test_expires_on
|
113
|
-
assert_equal Time.parse("2010-02-21"),
|
114
|
-
@klass.new(load_part('/registered.txt')).expires_on
|
115
|
-
assert_equal nil,
|
116
|
-
@klass.new(load_part('/available.txt')).expires_on
|
117
|
-
end
|
118
|
-
|
119
|
-
|
120
|
-
def test_registrar_with_registered
|
121
|
-
parser = @klass.new(load_part('/registered.txt'))
|
122
|
-
expected = parser.registrar
|
123
|
-
assert_equal expected, parser.registrar
|
124
|
-
assert_equal expected, parser.instance_eval { @registrar }
|
125
|
-
|
126
|
-
assert_instance_of Whois::Answer::Registrar, expected
|
127
|
-
assert_equal "ENCIRCA, INC", expected.name
|
128
|
-
end
|
129
|
-
|
130
|
-
def test_registrar_with_available
|
131
|
-
parser = @klass.new(load_part('/available.txt'))
|
132
|
-
expected = nil
|
133
|
-
assert_equal expected, parser.registrar
|
134
|
-
assert_equal expected, parser.instance_eval { @registrar }
|
135
|
-
end
|
136
|
-
|
137
|
-
def test_registrar
|
138
|
-
parser = @klass.new(load_part('/property_registrar.txt'))
|
139
|
-
result = parser.registrar
|
140
|
-
|
141
|
-
assert_instance_of Whois::Answer::Registrar, result
|
142
|
-
assert_equal nil, result.id
|
143
|
-
assert_equal "ENCIRCA, INC", result.name
|
144
|
-
assert_equal "ENCIRCA, INC", result.organization
|
145
|
-
assert_equal "http://www.encirca.com", result.url
|
146
|
-
end
|
147
|
-
|
148
|
-
|
149
|
-
def test_nameservers
|
150
|
-
parser = @klass.new(load_part('/registered.txt'))
|
151
|
-
expected = %w( ns2.registry.jobs ns1.registry.jobs )
|
152
|
-
assert_equal expected, parser.nameservers
|
153
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
154
|
-
|
155
|
-
parser = @klass.new(load_part('/available.txt'))
|
156
|
-
expected = %w()
|
157
|
-
assert_equal expected, parser.nameservers
|
158
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
159
|
-
end
|
160
|
-
|
161
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'whois/answer/parser/saudinic.net.sa'
|
3
|
-
require 'whois/answer/parser/whois.nic.net.sa_test'
|
4
|
-
|
5
|
-
class AnswerParserSaudinicNetSaTest < AnswerParserWhoisNicNetSaTest
|
6
|
-
|
7
|
-
def setup
|
8
|
-
@klass = Whois::Answer::Parser::SaudinicNetSa
|
9
|
-
@host = "whois.nic.net.sa"
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
@@ -1,162 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'whois/answer/parser/whois.adamsnames.tc'
|
3
|
-
|
4
|
-
class AnswerParserWhoisAdamsnamesTcTest < Whois::Answer::Parser::TestCase
|
5
|
-
|
6
|
-
def setup
|
7
|
-
@klass = Whois::Answer::Parser::WhoisAdamsnamesTc
|
8
|
-
@host = "whois.adamsnames.tc"
|
9
|
-
end
|
10
|
-
|
11
|
-
end
|
12
|
-
|
13
|
-
class AnswerParserWhoisAdamsnamesTcGdTest < AnswerParserWhoisAdamsnamesTcTest
|
14
|
-
|
15
|
-
def test_status
|
16
|
-
assert_equal :registered,
|
17
|
-
@klass.new(load_part('/gd/registered.txt')).status
|
18
|
-
assert_equal :available,
|
19
|
-
@klass.new(load_part('/gd/available.txt')).status
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_available?
|
23
|
-
assert !@klass.new(load_part('/gd/registered.txt')).available?
|
24
|
-
assert @klass.new(load_part('/gd/available.txt')).available?
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_registered?
|
28
|
-
assert @klass.new(load_part('/gd/registered.txt')).registered?
|
29
|
-
assert !@klass.new(load_part('/gd/available.txt')).registered?
|
30
|
-
end
|
31
|
-
|
32
|
-
|
33
|
-
def test_created_on
|
34
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/registered.txt')).created_on }
|
35
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/available.txt')).created_on }
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_updated_on
|
39
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/registered.txt')).updated_on }
|
40
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/available.txt')).updated_on }
|
41
|
-
end
|
42
|
-
|
43
|
-
def test_expires_on
|
44
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/registered.txt')).expires_on }
|
45
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/gd/available.txt')).expires_on }
|
46
|
-
end
|
47
|
-
|
48
|
-
|
49
|
-
def test_nameservers
|
50
|
-
parser = @klass.new(load_part('/gd/registered.txt'))
|
51
|
-
expected = %w( ns1.google.com ns2.google.com )
|
52
|
-
assert_equal expected, parser.nameservers
|
53
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
54
|
-
|
55
|
-
parser = @klass.new(load_part('/gd/available.txt'))
|
56
|
-
expected = %w()
|
57
|
-
assert_equal expected, parser.nameservers
|
58
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
59
|
-
end
|
60
|
-
|
61
|
-
|
62
|
-
end
|
63
|
-
|
64
|
-
class AnswerParserWhoisAdamsnamesTcTcTest < AnswerParserWhoisAdamsnamesTcTest
|
65
|
-
|
66
|
-
def test_status
|
67
|
-
assert_equal :registered,
|
68
|
-
@klass.new(load_part('/tc/registered.txt')).status
|
69
|
-
assert_equal :available,
|
70
|
-
@klass.new(load_part('/tc/available.txt')).status
|
71
|
-
end
|
72
|
-
|
73
|
-
def test_available?
|
74
|
-
assert !@klass.new(load_part('/tc/registered.txt')).available?
|
75
|
-
assert @klass.new(load_part('/tc/available.txt')).available?
|
76
|
-
end
|
77
|
-
|
78
|
-
def test_registered?
|
79
|
-
assert @klass.new(load_part('/tc/registered.txt')).registered?
|
80
|
-
assert !@klass.new(load_part('/tc/available.txt')).registered?
|
81
|
-
end
|
82
|
-
|
83
|
-
|
84
|
-
def test_created_on
|
85
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/registered.txt')).created_on }
|
86
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/available.txt')).created_on }
|
87
|
-
end
|
88
|
-
|
89
|
-
def test_updated_on
|
90
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/registered.txt')).updated_on }
|
91
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/available.txt')).updated_on }
|
92
|
-
end
|
93
|
-
|
94
|
-
def test_expires_on
|
95
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/registered.txt')).expires_on }
|
96
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/tc/available.txt')).expires_on }
|
97
|
-
end
|
98
|
-
|
99
|
-
|
100
|
-
def test_nameservers
|
101
|
-
parser = @klass.new(load_part('/tc/registered.txt'))
|
102
|
-
expected = %w( ns1.google.com ns2.google.com ns3.google.com ns4.google.com )
|
103
|
-
assert_equal expected, parser.nameservers
|
104
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
105
|
-
|
106
|
-
parser = @klass.new(load_part('/tc/available.txt'))
|
107
|
-
expected = %w()
|
108
|
-
assert_equal expected, parser.nameservers
|
109
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
110
|
-
end
|
111
|
-
|
112
|
-
end
|
113
|
-
|
114
|
-
class AnswerParserWhoisAdamsnamesTcVgTest < AnswerParserWhoisAdamsnamesTcTest
|
115
|
-
|
116
|
-
def test_status
|
117
|
-
assert_equal :registered,
|
118
|
-
@klass.new(load_part('/vg/registered.txt')).status
|
119
|
-
assert_equal :available,
|
120
|
-
@klass.new(load_part('/vg/available.txt')).status
|
121
|
-
end
|
122
|
-
|
123
|
-
def test_available?
|
124
|
-
assert !@klass.new(load_part('/vg/registered.txt')).available?
|
125
|
-
assert @klass.new(load_part('/vg/available.txt')).available?
|
126
|
-
end
|
127
|
-
|
128
|
-
def test_registered?
|
129
|
-
assert @klass.new(load_part('/vg/registered.txt')).registered?
|
130
|
-
assert !@klass.new(load_part('/vg/available.txt')).registered?
|
131
|
-
end
|
132
|
-
|
133
|
-
|
134
|
-
def test_created_on
|
135
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/registered.txt')).created_on }
|
136
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/available.txt')).created_on }
|
137
|
-
end
|
138
|
-
|
139
|
-
def test_updated_on
|
140
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/registered.txt')).updated_on }
|
141
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/available.txt')).updated_on }
|
142
|
-
end
|
143
|
-
|
144
|
-
def test_expires_on
|
145
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/registered.txt')).expires_on }
|
146
|
-
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/vg/available.txt')).expires_on }
|
147
|
-
end
|
148
|
-
|
149
|
-
|
150
|
-
def test_nameservers
|
151
|
-
parser = @klass.new(load_part('/vg/registered.txt'))
|
152
|
-
expected = %w( ns1.google.com ns2.google.com ns3.google.com ns4.google.com )
|
153
|
-
assert_equal expected, parser.nameservers
|
154
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
155
|
-
|
156
|
-
parser = @klass.new(load_part('/vg/available.txt'))
|
157
|
-
expected = %w()
|
158
|
-
assert_equal expected, parser.nameservers
|
159
|
-
assert_equal expected, parser.instance_eval { @nameservers }
|
160
|
-
end
|
161
|
-
|
162
|
-
end
|