whois 3.4.3 → 3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -5
- data/lib/whois.rb +1 -1
- data/lib/whois/client.rb +1 -1
- data/lib/whois/errors.rb +1 -1
- data/lib/whois/record.rb +1 -1
- data/lib/whois/record/contact.rb +1 -1
- data/lib/whois/record/nameserver.rb +1 -1
- data/lib/whois/record/parser.rb +1 -1
- data/lib/whois/record/parser/base.rb +1 -1
- data/lib/whois/record/parser/base_afilias.rb +1 -1
- data/lib/whois/record/parser/base_cocca.rb +1 -1
- data/lib/whois/record/parser/base_cocca2.rb +1 -1
- data/lib/whois/record/parser/base_icann_compliant.rb +1 -1
- data/lib/whois/record/parser/base_icb.rb +3 -4
- data/lib/whois/record/parser/base_iisse.rb +1 -1
- data/lib/whois/record/parser/base_shared1.rb +1 -1
- data/lib/whois/record/parser/base_shared2.rb +1 -1
- data/lib/whois/record/parser/base_shared3.rb +1 -1
- data/lib/whois/record/parser/base_verisign.rb +2 -2
- data/lib/whois/record/parser/base_whoisd.rb +1 -1
- data/lib/whois/record/parser/blank.rb +1 -1
- data/lib/whois/record/parser/ccwhois.verisign-grs.com.rb +1 -1
- data/lib/whois/record/parser/example.rb +1 -1
- data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +1 -1
- data/lib/whois/record/parser/kero.yachay.pe.rb +1 -1
- data/lib/whois/record/parser/whois.1und1.info.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.aero.rb +1 -1
- data/lib/whois/record/parser/whois.afilias-grs.info.rb +1 -1
- data/lib/whois/record/parser/whois.afilias.info.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.ascio.com.rb +1 -1
- data/lib/whois/record/parser/whois.ati.tn.rb +1 -1
- data/lib/whois/record/parser/whois.audns.net.au.rb +1 -1
- data/lib/whois/record/parser/whois.ax.rb +1 -1
- data/lib/whois/record/parser/whois.biz.rb +1 -1
- data/lib/whois/record/parser/whois.bn.rb +1 -1
- data/lib/whois/record/parser/whois.cat.rb +1 -1
- data/lib/whois/record/parser/whois.cctld.by.rb +1 -1
- data/lib/whois/record/parser/whois.cctld.uz.rb +1 -1
- data/lib/whois/record/parser/whois.centralnic.com.rb +1 -1
- data/lib/whois/record/parser/whois.cira.ca.rb +1 -1
- data/lib/whois/record/parser/whois.cmc.iq.rb +1 -1
- 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 +1 -1
- data/lib/whois/record/parser/whois.comlaude.com.rb +1 -1
- data/lib/whois/record/parser/whois.denic.de.rb +2 -2
- data/lib/whois/record/parser/whois.dk-hostmaster.dk.rb +1 -1
- data/lib/whois/record/parser/whois.dns.be.rb +1 -1
- data/lib/whois/record/parser/whois.dns.hr.rb +1 -1
- data/lib/whois/record/parser/whois.dns.lu.rb +7 -9
- data/lib/whois/record/parser/whois.dns.pl.rb +1 -1
- 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.ie.rb +2 -2
- data/lib/whois/record/parser/whois.domainregistry.my.rb +1 -1
- data/lib/whois/record/parser/whois.domreg.lt.rb +1 -1
- data/lib/whois/record/parser/whois.dot.cf.rb +1 -1
- data/lib/whois/record/parser/whois.dot.tk.rb +1 -1
- data/lib/whois/record/parser/whois.dotmobiregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.dotpostregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
- data/lib/whois/record/parser/whois.educause.edu.rb +1 -1
- data/lib/whois/record/parser/whois.eenet.ee.rb +1 -1
- data/lib/whois/record/parser/whois.enom.com.rb +1 -1
- data/lib/whois/record/parser/whois.eu.org.rb +1 -1
- data/lib/whois/record/parser/whois.eu.rb +1 -1
- data/lib/whois/record/parser/whois.fi.rb +1 -1
- data/lib/whois/record/parser/whois.gandi.net.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.gov.za.rb +1 -1
- data/lib/whois/record/parser/whois.hkirc.hk.rb +1 -1
- data/lib/whois/record/parser/whois.iam.net.ma.rb +1 -1
- data/lib/whois/record/parser/whois.iana.org.rb +1 -1
- data/lib/whois/record/parser/whois.iis.nu.rb +1 -1
- data/lib/whois/record/parser/whois.iis.se.rb +1 -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 +1 -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.kr.rb +1 -1
- data/lib/whois/record/parser/whois.markmonitor.com.rb +1 -1
- data/lib/whois/record/parser/whois.meridiantld.net.rb +1 -1
- data/lib/whois/record/parser/whois.monic.mo.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 -1
- data/lib/whois/record/parser/whois.nc.rb +1 -1
- data/lib/whois/record/parser/whois.netcom.cm.rb +1 -1
- data/lib/whois/record/parser/whois.networksolutions.com.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ac.rb +1 -1
- data/lib/whois/record/parser/whois.nic.af.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ag.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.bj.rb +1 -1
- data/lib/whois/record/parser/whois.nic.bo.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cd.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ch.rb +1 -1
- 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.cx.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cz.rb +1 -1
- data/lib/whois/record/parser/whois.nic.dm.rb +1 -1
- data/lib/whois/record/parser/whois.nic.dz.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ec.rb +1 -1
- data/lib/whois/record/parser/whois.nic.es.rb +1 -1
- data/lib/whois/record/parser/whois.nic.fo.rb +1 -1
- data/lib/whois/record/parser/whois.nic.fr.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gd.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gl.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gov.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gs.rb +1 -1
- data/lib/whois/record/parser/whois.nic.hn.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ht.rb +1 -1
- data/lib/whois/record/parser/whois.nic.hu.rb +1 -1
- data/lib/whois/record/parser/whois.nic.im.rb +1 -1
- data/lib/whois/record/parser/whois.nic.io.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ir.rb +1 -1
- data/lib/whois/record/parser/whois.nic.it.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ki.rb +1 -1
- data/lib/whois/record/parser/whois.nic.kz.rb +1 -1
- data/lib/whois/record/parser/whois.nic.la.rb +1 -1
- data/lib/whois/record/parser/whois.nic.li.rb +1 -1
- data/lib/whois/record/parser/whois.nic.lk.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 +1 -1
- data/lib/whois/record/parser/whois.nic.me.rb +1 -1
- data/lib/whois/record/parser/whois.nic.mg.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ms.rb +1 -1
- data/lib/whois/record/parser/whois.nic.mu.rb +1 -1
- data/lib/whois/record/parser/whois.nic.mx.rb +1 -1
- data/lib/whois/record/parser/whois.nic.name.rb +1 -1
- data/lib/whois/record/parser/whois.nic.net.ng.rb +1 -1
- data/lib/whois/record/parser/whois.nic.net.sa.rb +1 -1
- data/lib/whois/record/parser/whois.nic.net.sb.rb +1 -1
- data/lib/whois/record/parser/whois.nic.nf.rb +1 -1
- data/lib/whois/record/parser/whois.nic.org.uy.rb +1 -1
- data/lib/whois/record/parser/whois.nic.pr.rb +1 -1
- data/lib/whois/record/parser/whois.nic.priv.at.rb +1 -1
- data/lib/whois/record/parser/whois.nic.pw.rb +1 -1
- data/lib/whois/record/parser/whois.nic.sh.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 +1 -1
- 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.tl.rb +1 -1
- data/lib/whois/record/parser/whois.nic.tm.rb +6 -48
- data/lib/whois/record/parser/whois.nic.tr.rb +1 -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 +1 -1
- data/lib/whois/record/parser/whois.nic.us.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ve.rb +1 -1
- data/lib/whois/record/parser/whois.nic.xxx.rb +1 -1
- data/lib/whois/record/parser/whois.norid.no.rb +1 -1
- data/lib/whois/record/parser/whois.org.za.rb +1 -1
- data/lib/whois/record/parser/whois.pairnic.com.rb +1 -1
- data/lib/whois/record/parser/whois.pandi.or.id.rb +1 -1
- data/lib/whois/record/parser/whois.pir.org.rb +56 -6
- data/lib/whois/record/parser/whois.pnina.ps.rb +1 -1
- data/lib/whois/record/parser/whois.register.bg.rb +1 -1
- data/lib/whois/record/parser/whois.register.com.rb +1 -1
- data/lib/whois/record/parser/whois.registro.br.rb +1 -1
- data/lib/whois/record/parser/whois.registry.gy.rb +1 -1
- data/lib/whois/record/parser/whois.registry.hm.rb +1 -1
- data/lib/whois/record/parser/whois.registry.in.rb +1 -1
- data/lib/whois/record/parser/whois.registry.net.za.rb +1 -1
- data/lib/whois/record/parser/whois.registry.om.rb +1 -1
- data/lib/whois/record/parser/whois.registry.qa.rb +1 -1
- 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 +1 -1
- data/lib/whois/record/parser/whois.rrpproxy.net.rb +1 -1
- data/lib/whois/record/parser/whois.schlund.info.rb +1 -1
- data/lib/whois/record/parser/whois.sgnic.sg.rb +1 -1
- data/lib/whois/record/parser/whois.sk-nic.sk.rb +1 -1
- data/lib/whois/record/parser/whois.smallregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.srs.net.nz.rb +1 -1
- data/lib/whois/record/parser/whois.sx.rb +1 -1
- data/lib/whois/record/parser/whois.tcinet.ru.rb +1 -1
- data/lib/whois/record/parser/whois.thnic.co.th.rb +1 -1
- data/lib/whois/record/parser/whois.tld.ee.rb +1 -1
- data/lib/whois/record/parser/whois.tld.sy.rb +1 -1
- data/lib/whois/record/parser/whois.tonic.to.rb +1 -1
- data/lib/whois/record/parser/whois.tucows.com.rb +1 -1
- data/lib/whois/record/parser/whois.twnic.net.tw.rb +1 -1
- data/lib/whois/record/parser/whois.tznic.or.tz.rb +1 -1
- data/lib/whois/record/parser/whois.ua.rb +1 -1
- data/lib/whois/record/parser/whois.udag.net.rb +1 -1
- data/lib/whois/record/parser/whois.usp.ac.fj.rb +1 -1
- data/lib/whois/record/parser/whois.verisign-grs.com.rb +1 -1
- data/lib/whois/record/parser/whois.website.ws.rb +1 -1
- data/lib/whois/record/parser/whois.wildwestdomains.com.rb +1 -1
- data/lib/whois/record/parser/whois.yoursrs.com.rb +1 -1
- 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/parser/whois1.nic.bi.rb +1 -1
- data/lib/whois/record/part.rb +1 -1
- data/lib/whois/record/registrar.rb +1 -1
- data/lib/whois/record/scanners/base.rb +1 -1
- data/lib/whois/record/scanners/base_afilias.rb +1 -1
- data/lib/whois/record/scanners/base_cocca2.rb +1 -1
- data/lib/whois/record/scanners/base_icann_compliant.rb +1 -1
- data/lib/whois/record/scanners/base_iisse.rb +1 -1
- data/lib/whois/record/scanners/base_shared1.rb +1 -1
- data/lib/whois/record/scanners/base_shared2.rb +1 -1
- data/lib/whois/record/scanners/base_shared3.rb +1 -1
- data/lib/whois/record/scanners/base_whoisd.rb +1 -1
- data/lib/whois/record/scanners/iana.rb +1 -1
- data/lib/whois/record/scanners/scannable.rb +1 -1
- data/lib/whois/record/scanners/verisign.rb +1 -1
- data/lib/whois/record/scanners/whois.ati.tn.rb +1 -1
- data/lib/whois/record/scanners/whois.audns.net.au.rb +1 -1
- data/lib/whois/record/scanners/whois.cctld.by.rb +1 -1
- data/lib/whois/record/scanners/whois.centralnic.com.rb +1 -1
- data/lib/whois/record/scanners/whois.cira.ca.rb +1 -1
- data/lib/whois/record/scanners/whois.cnnic.cn.rb +1 -1
- data/lib/whois/record/scanners/whois.denic.de.rb +1 -1
- data/lib/whois/record/scanners/whois.dns.hr.rb +1 -1
- data/lib/whois/record/scanners/whois.domainregistry.ie.rb +1 -1
- data/lib/whois/record/scanners/whois.fi.rb +1 -1
- data/lib/whois/record/scanners/whois.nc.rb +1 -1
- data/lib/whois/record/scanners/whois.nic.cz.rb +1 -1
- data/lib/whois/record/scanners/whois.nic.it.rb +1 -1
- data/lib/whois/record/scanners/whois.pir.org.rb +29 -0
- data/lib/whois/record/scanners/whois.registry.net.za.rb +1 -1
- data/lib/whois/record/scanners/whois.rnids.rs.rb +1 -1
- data/lib/whois/record/scanners/whois.smallregistry.net.rb +1 -1
- data/lib/whois/record/scanners/whois.srs.net.nz.rb +1 -1
- data/lib/whois/record/scanners/whois.sx.rb +1 -1
- data/lib/whois/record/scanners/whois.tucows.com.rb +1 -1
- data/lib/whois/record/scanners/whois.yoursrs.com.rb +1 -1
- data/lib/whois/record/super_struct.rb +1 -1
- data/lib/whois/server.rb +1 -1
- data/lib/whois/server/adapters/afilias.rb +1 -1
- data/lib/whois/server/adapters/arin.rb +1 -1
- data/lib/whois/server/adapters/arpa.rb +1 -1
- data/lib/whois/server/adapters/base.rb +1 -1
- data/lib/whois/server/adapters/formatted.rb +1 -1
- data/lib/whois/server/adapters/none.rb +1 -1
- data/lib/whois/server/adapters/not_implemented.rb +1 -1
- data/lib/whois/server/adapters/standard.rb +1 -1
- data/lib/whois/server/adapters/verisign.rb +1 -1
- data/lib/whois/server/adapters/web.rb +1 -1
- data/lib/whois/server/socket_handler.rb +1 -1
- data/lib/whois/version.rb +2 -2
- data/whois.gemspec +4 -5
- metadata +3 -2
@@ -3,12 +3,12 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2014 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
10
|
require 'whois/record/parser/base_afilias'
|
11
|
-
|
11
|
+
require 'whois/record/scanners/whois.pir.org.rb'
|
12
12
|
|
13
13
|
module Whois
|
14
14
|
class Record
|
@@ -17,6 +17,8 @@ module Whois
|
|
17
17
|
# Parser for the whois.pir.org server.
|
18
18
|
class WhoisPirOrg < BaseAfilias
|
19
19
|
|
20
|
+
self.scanner = Scanners::WhoisPirOrg
|
21
|
+
|
20
22
|
# Checks whether the response has been throttled.
|
21
23
|
#
|
22
24
|
# @return [Boolean]
|
@@ -28,11 +30,59 @@ module Whois
|
|
28
30
|
!!node("response:throttled")
|
29
31
|
end
|
30
32
|
|
31
|
-
|
33
|
+
property_supported :status do
|
34
|
+
list = Array.wrap(node("Domain Status"))
|
35
|
+
end
|
36
|
+
|
37
|
+
property_supported :registrar do
|
38
|
+
node('Sponsoring Registrar') do |name|
|
39
|
+
Record::Registrar.new(
|
40
|
+
:id => node('Sponsoring Registrar IANA ID'),
|
41
|
+
:name => node('Sponsoring Registrar'),
|
42
|
+
:organization => node('Sponsoring Registrar')
|
43
|
+
)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
property_supported :created_on do
|
48
|
+
node("Creation Date") do |value|
|
49
|
+
Time.parse(value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
property_supported :updated_on do
|
54
|
+
node("Updated Date") do |value|
|
55
|
+
Time.parse(value)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
property_supported :expires_on do
|
60
|
+
node("Registry Expiry Date") do |value|
|
61
|
+
Time.parse(value)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def build_contact(element, type)
|
66
|
+
node("#{element} ID") do
|
67
|
+
address = [node("#{element} Street")]
|
68
|
+
address = (address + (1..3).map { |i| node("#{element} Street#{i}") }).
|
69
|
+
delete_if { |i| i.nil? || i.empty? }.
|
70
|
+
join("\n")
|
32
71
|
|
33
|
-
|
34
|
-
|
35
|
-
|
72
|
+
Record::Contact.new(
|
73
|
+
:type => type,
|
74
|
+
:id => node("#{element} ID"),
|
75
|
+
:name => node("#{element} Name"),
|
76
|
+
:organization => node("#{element} Organization"),
|
77
|
+
:address => address,
|
78
|
+
:city => node("#{element} City"),
|
79
|
+
:zip => node("#{element} Postal Code"),
|
80
|
+
:state => node("#{element} State/Province"),
|
81
|
+
:country_code => node("#{element} Country"),
|
82
|
+
:phone => node("#{element} Phone"),
|
83
|
+
:fax => node("#{element} Fax"),
|
84
|
+
:email => node("#{element} Email")
|
85
|
+
)
|
36
86
|
end
|
37
87
|
end
|
38
88
|
|