whois-parser 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +14 -8
- data/CONTRIBUTING.md +21 -7
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/whois-parser.rb +1 -1
- data/lib/whois/parser.rb +16 -1
- data/lib/whois/parser/version.rb +1 -1
- data/lib/whois/parsers/base.rb +1 -1
- data/lib/whois/parsers/base_afilias.rb +2 -2
- data/lib/whois/parsers/base_afilias2.rb +1 -1
- data/lib/whois/parsers/base_cocca.rb +4 -4
- data/lib/whois/parsers/base_cocca2.rb +2 -2
- data/lib/whois/parsers/base_icann_compliant.rb +1 -1
- data/lib/whois/parsers/base_icb.rb +1 -1
- data/lib/whois/parsers/base_iisse.rb +1 -1
- data/lib/whois/parsers/base_nic_fr.rb +3 -3
- data/lib/whois/parsers/base_shared1.rb +1 -1
- data/lib/whois/parsers/base_shared2.rb +1 -1
- data/lib/whois/parsers/base_shared3.rb +1 -1
- data/lib/whois/parsers/base_verisign.rb +1 -1
- data/lib/whois/parsers/base_whoisd.rb +2 -2
- data/lib/whois/parsers/blank.rb +1 -1
- data/lib/whois/parsers/capetown-whois.registry.net.za.rb +1 -1
- data/lib/whois/parsers/ccwhois.ksregistry.net.rb +1 -1
- data/lib/whois/parsers/ccwhois.verisign-grs.com.rb +1 -1
- data/lib/whois/parsers/coza-whois.registry.net.za.rb +25 -0
- data/lib/whois/parsers/durban-whois.registry.net.za.rb +1 -1
- data/lib/whois/parsers/example.rb +1 -1
- data/lib/whois/parsers/joburg-whois.registry.net.za.rb +1 -1
- data/lib/whois/parsers/kero.yachay.pe.rb +3 -3
- data/lib/whois/parsers/org-whois.registry.net.za.rb +1 -1
- data/lib/whois/parsers/tvwhois.verisign-grs.com.rb +1 -1
- data/lib/whois/parsers/whois.1und1.info.rb +1 -1
- data/lib/whois/parsers/whois.35.com.rb +1 -1
- data/lib/whois/parsers/whois.aeda.net.ae.rb +2 -2
- data/lib/whois/parsers/whois.aero.rb +1 -1
- data/lib/whois/parsers/whois.afilias-grs.info.rb +1 -1
- data/lib/whois/parsers/whois.afilias.net.rb +1 -1
- data/lib/whois/parsers/whois.amnic.net.rb +2 -2
- data/lib/whois/parsers/whois.ascio.com.rb +1 -1
- data/lib/whois/parsers/whois.ati.tn.rb +1 -1
- data/lib/whois/parsers/whois.audns.net.au.rb +1 -1
- data/lib/whois/parsers/whois.ax.rb +1 -1
- data/lib/whois/parsers/whois.biz.rb +12 -3
- data/lib/whois/parsers/whois.bnnic.bn.rb +1 -1
- data/lib/whois/parsers/whois.cat.rb +1 -1
- data/lib/whois/parsers/whois.cctld.by.rb +1 -1
- data/lib/whois/parsers/whois.cctld.uz.rb +2 -2
- data/lib/whois/parsers/whois.cdmon.com.rb +1 -1
- data/lib/whois/parsers/whois.centralnic.com.rb +1 -1
- data/lib/whois/parsers/whois.cira.ca.rb +4 -4
- data/lib/whois/parsers/whois.cmc.iq.rb +1 -1
- data/lib/whois/parsers/whois.cnnic.cn.rb +1 -1
- data/lib/whois/parsers/whois.co.ca.rb +1 -1
- data/lib/whois/parsers/whois.co.pl.rb +1 -1
- data/lib/whois/parsers/whois.co.ug.rb +2 -2
- data/lib/whois/parsers/whois.comlaude.com.rb +1 -1
- data/lib/whois/parsers/whois.corporatedomains.com.rb +1 -1
- data/lib/whois/parsers/whois.denic.de.rb +2 -2
- data/lib/whois/parsers/whois.dk-hostmaster.dk.rb +2 -2
- data/lib/whois/parsers/whois.dns.be.rb +3 -3
- data/lib/whois/parsers/whois.dns.hr.rb +1 -1
- data/lib/whois/parsers/whois.dns.lu.rb +2 -2
- data/lib/whois/parsers/whois.dns.pl.rb +1 -1
- data/lib/whois/parsers/whois.dns.pt.rb +2 -2
- data/lib/whois/parsers/whois.domain-registry.nl.rb +2 -2
- data/lib/whois/parsers/whois.domain.kg.rb +1 -1
- data/lib/whois/parsers/whois.domainregistry.ie.rb +2 -2
- data/lib/whois/parsers/whois.domreg.lt.rb +1 -1
- data/lib/whois/parsers/whois.donuts.co.rb +1 -1
- data/lib/whois/parsers/whois.dot.cf.rb +1 -1
- data/lib/whois/parsers/whois.dot.tk.rb +1 -1
- data/lib/whois/parsers/whois.dotgov.gov.rb +2 -2
- data/lib/whois/parsers/whois.dotmobiregistry.net.rb +1 -1
- data/lib/whois/parsers/whois.dotpostregistry.net.rb +1 -1
- data/lib/whois/parsers/whois.dreamhost.com.rb +1 -1
- data/lib/whois/parsers/whois.educause.edu.rb +2 -2
- data/lib/whois/parsers/whois.eenet.ee.rb +1 -1
- data/lib/whois/parsers/whois.enom.com.rb +1 -1
- data/lib/whois/parsers/whois.eu.org.rb +1 -1
- data/lib/whois/parsers/whois.eu.rb +2 -2
- data/lib/whois/parsers/whois.fi.rb +2 -2
- data/lib/whois/parsers/whois.gandi.net.rb +1 -1
- data/lib/whois/parsers/whois.gg.rb +1 -1
- data/lib/whois/parsers/whois.godaddy.com.rb +1 -1
- data/lib/whois/parsers/whois.gov.za.rb +1 -1
- data/lib/whois/parsers/whois.hkirc.hk.rb +1 -1
- data/lib/whois/parsers/whois.iana.org.rb +1 -1
- data/lib/whois/parsers/whois.iis.nu.rb +1 -1
- data/lib/whois/parsers/whois.iis.se.rb +1 -1
- data/lib/whois/parsers/whois.in.ua.rb +2 -2
- data/lib/whois/parsers/whois.inregistry.net.rb +1 -1
- data/lib/whois/parsers/whois.isnic.is.rb +1 -1
- data/lib/whois/parsers/whois.isoc.org.il.rb +2 -2
- data/lib/whois/parsers/whois.ja.net.rb +1 -1
- data/lib/whois/parsers/whois.je.rb +1 -1
- data/lib/whois/parsers/whois.jprs.jp.rb +3 -3
- data/lib/whois/parsers/whois.kenic.or.ke.rb +3 -3
- data/lib/whois/parsers/whois.kr.rb +1 -1
- data/lib/whois/parsers/whois.markmonitor.com.rb +1 -1
- data/lib/whois/parsers/whois.monic.mo.rb +1 -1
- data/lib/whois/parsers/whois.museum.rb +1 -1
- data/lib/whois/parsers/whois.mynic.my.rb +1 -1
- data/lib/whois/parsers/whois.na-nic.com.na.rb +1 -1
- data/lib/whois/parsers/whois.nc.rb +1 -1
- data/lib/whois/parsers/whois.netcom.cm.rb +1 -1
- data/lib/whois/parsers/whois.networksolutions.com.rb +1 -1
- data/lib/whois/parsers/whois.nic.ac.rb +1 -1
- data/lib/whois/parsers/whois.nic.af.rb +1 -1
- data/lib/whois/parsers/whois.nic.ag.rb +1 -1
- data/lib/whois/parsers/{whois.ai.rb → whois.nic.ai.rb} +3 -3
- data/lib/whois/parsers/whois.nic.as.rb +1 -1
- data/lib/whois/parsers/whois.nic.asia.rb +1 -1
- data/lib/whois/parsers/whois.nic.at.rb +1 -1
- data/lib/whois/parsers/whois.nic.bj.rb +1 -1
- data/lib/whois/parsers/whois.nic.bo.rb +1 -1
- data/lib/whois/parsers/whois.nic.cd.rb +1 -1
- data/lib/whois/parsers/whois.nic.ch.rb +1 -1
- data/lib/whois/parsers/whois.nic.ci.rb +1 -1
- data/lib/whois/parsers/whois.nic.cl.rb +1 -1
- data/lib/whois/parsers/whois.nic.co.rb +1 -1
- data/lib/whois/parsers/whois.nic.college.rb +1 -1
- data/lib/whois/parsers/whois.nic.coop.rb +1 -1
- data/lib/whois/parsers/whois.nic.cx.rb +1 -1
- data/lib/whois/parsers/whois.nic.cz.rb +1 -1
- data/lib/whois/parsers/whois.nic.design.rb +1 -1
- data/lib/whois/parsers/whois.nic.dm.rb +1 -1
- data/lib/whois/parsers/whois.nic.dz.rb +1 -1
- data/lib/whois/parsers/whois.nic.ec.rb +2 -2
- data/lib/whois/parsers/whois.nic.es.rb +1 -1
- data/lib/whois/parsers/whois.nic.fm.rb +18 -0
- data/lib/whois/parsers/whois.nic.fo.rb +1 -1
- data/lib/whois/parsers/whois.nic.fr.rb +1 -1
- data/lib/whois/parsers/whois.nic.gd.rb +1 -1
- data/lib/whois/parsers/whois.nic.gl.rb +1 -1
- data/lib/whois/parsers/whois.nic.gs.rb +1 -1
- data/lib/whois/parsers/whois.nic.hn.rb +1 -1
- data/lib/whois/parsers/whois.nic.ht.rb +1 -1
- data/lib/whois/parsers/whois.nic.hu.rb +1 -1
- data/lib/whois/parsers/whois.nic.im.rb +1 -1
- data/lib/whois/parsers/whois.nic.io.rb +1 -1
- data/lib/whois/parsers/whois.nic.ir.rb +1 -1
- data/lib/whois/parsers/whois.nic.it.rb +2 -2
- data/lib/whois/parsers/whois.nic.jobs.rb +1 -1
- data/lib/whois/parsers/whois.nic.ki.rb +1 -1
- data/lib/whois/parsers/whois.nic.kz.rb +1 -1
- data/lib/whois/parsers/whois.nic.la.rb +1 -1
- data/lib/whois/parsers/whois.nic.li.rb +1 -1
- data/lib/whois/parsers/whois.nic.lk.rb +1 -1
- data/lib/whois/parsers/whois.nic.lv.rb +1 -1
- data/lib/whois/parsers/whois.nic.ly.rb +1 -1
- data/lib/whois/parsers/whois.nic.md.rb +1 -1
- data/lib/whois/parsers/whois.nic.me.rb +1 -1
- data/lib/whois/parsers/whois.nic.mg.rb +1 -1
- data/lib/whois/parsers/whois.nic.ms.rb +1 -1
- data/lib/whois/parsers/whois.nic.mu.rb +1 -1
- data/lib/whois/parsers/whois.nic.mx.rb +1 -1
- data/lib/whois/parsers/whois.nic.name.rb +1 -1
- data/lib/whois/parsers/whois.nic.net.ng.rb +1 -1
- data/lib/whois/parsers/whois.nic.net.sa.rb +1 -1
- data/lib/whois/parsers/whois.nic.net.sb.rb +1 -1
- data/lib/whois/parsers/whois.nic.nf.rb +1 -1
- data/lib/whois/parsers/whois.nic.org.uy.rb +2 -2
- data/lib/whois/parsers/whois.nic.pm.rb +1 -1
- data/lib/whois/parsers/whois.nic.pr.rb +1 -1
- data/lib/whois/parsers/whois.nic.priv.at.rb +1 -1
- data/lib/whois/parsers/whois.nic.pw.rb +1 -1
- data/lib/whois/parsers/whois.nic.re.rb +1 -1
- data/lib/whois/parsers/whois.nic.sh.rb +1 -1
- data/lib/whois/parsers/whois.nic.sl.rb +1 -1
- data/lib/whois/parsers/whois.nic.sm.rb +2 -2
- data/lib/whois/parsers/whois.nic.sn.rb +1 -1
- data/lib/whois/parsers/whois.nic.so.rb +1 -1
- data/lib/whois/parsers/whois.nic.space.rb +1 -1
- data/lib/whois/parsers/whois.nic.st.rb +10 -10
- data/lib/whois/parsers/whois.nic.tc.rb +1 -1
- data/lib/whois/parsers/whois.nic.tech.rb +1 -1
- data/lib/whois/parsers/whois.nic.tel.rb +1 -1
- data/lib/whois/parsers/whois.nic.tl.rb +1 -1
- data/lib/whois/parsers/whois.nic.tm.rb +1 -1
- data/lib/whois/parsers/whois.nic.tr.rb +1 -1
- data/lib/whois/parsers/whois.nic.travel.rb +1 -1
- data/lib/whois/parsers/whois.nic.uk.rb +2 -2
- data/lib/whois/parsers/whois.nic.us.rb +1 -1
- data/lib/whois/parsers/whois.nic.ve.rb +2 -2
- data/lib/whois/parsers/whois.nic.wf.rb +1 -1
- data/lib/whois/parsers/whois.nic.xxx.rb +1 -1
- data/lib/whois/parsers/whois.nic.xyz.rb +1 -1
- data/lib/whois/parsers/whois.norid.no.rb +1 -1
- data/lib/whois/parsers/whois.pairnic.com.rb +1 -1
- data/lib/whois/parsers/whois.pandi.or.id.rb +1 -1
- data/lib/whois/parsers/whois.pir.org.rb +1 -1
- data/lib/whois/parsers/whois.pnina.ps.rb +1 -1
- data/lib/whois/parsers/whois.register.bg.rb +2 -2
- data/lib/whois/parsers/whois.register.com.rb +1 -1
- data/lib/whois/parsers/whois.register.si.rb +2 -2
- data/lib/whois/parsers/whois.registre.ma.rb +7 -9
- data/lib/whois/parsers/whois.registro.br.rb +53 -9
- data/lib/whois/parsers/whois.registry.gy.rb +1 -1
- data/lib/whois/parsers/whois.registry.hm.rb +1 -1
- data/lib/whois/parsers/whois.registry.om.rb +1 -1
- data/lib/whois/parsers/whois.registry.qa.rb +1 -1
- data/lib/whois/parsers/whois.ripe.net.rb +1 -1
- data/lib/whois/parsers/whois.rnids.rs.rb +2 -2
- data/lib/whois/parsers/whois.rotld.ro.rb +2 -2
- data/lib/whois/parsers/whois.rrpproxy.net.rb +1 -1
- data/lib/whois/parsers/whois.safenames.net.rb +1 -1
- data/lib/whois/parsers/whois.schlund.info.rb +1 -1
- data/lib/whois/parsers/whois.sgnic.sg.rb +2 -2
- data/lib/whois/parsers/whois.sk-nic.sk.rb +2 -2
- data/lib/whois/parsers/whois.smallregistry.net.rb +2 -2
- data/lib/whois/parsers/whois.srs.net.nz.rb +3 -3
- data/lib/whois/parsers/whois.sx.rb +2 -2
- data/lib/whois/parsers/whois.tcinet.ru.rb +1 -1
- data/lib/whois/parsers/whois.thnic.co.th.rb +2 -2
- data/lib/whois/parsers/whois.tld.ee.rb +1 -1
- data/lib/whois/parsers/whois.tld.sy.rb +1 -1
- data/lib/whois/parsers/whois.tonic.to.rb +1 -1
- data/lib/whois/parsers/whois.tucows.com.rb +1 -1
- data/lib/whois/parsers/whois.twnic.net.tw.rb +1 -1
- data/lib/whois/parsers/whois.tznic.or.tz.rb +1 -1
- data/lib/whois/parsers/whois.ua.rb +3 -3
- data/lib/whois/parsers/whois.udag.net.rb +1 -1
- data/lib/whois/parsers/whois.uniregistry.net.rb +1 -1
- data/lib/whois/parsers/whois.usp.ac.fj.rb +2 -2
- data/lib/whois/parsers/whois.verisign-grs.com.rb +1 -1
- data/lib/whois/parsers/whois.website.ws.rb +1 -1
- data/lib/whois/parsers/whois.wildwestdomains.com.rb +1 -1
- data/lib/whois/parsers/whois.yoursrs.com.rb +1 -1
- data/lib/whois/parsers/whois.za.net.rb +1 -1
- data/lib/whois/parsers/whois.za.org.rb +1 -1
- data/lib/whois/parsers/whois1.nic.bi.rb +1 -1
- data/lib/whois/parsers/za_central_registry.rb +12 -1
- data/lib/whois/scanners/whois.cira.ca.rb +1 -1
- data/whois-parser.gemspec +3 -3
- metadata +10 -10
- data/lib/whois/parsers/whois.registry.net.za.rb +0 -139
- data/lib/whois/scanners/whois.registry.net.za.rb +0 -92
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -59,7 +59,7 @@ module Whois
|
|
59
59
|
when /^inactive/
|
60
60
|
:inactive
|
61
61
|
else
|
62
|
-
Whois.bug!(ParserError, "Unknown status `#{s}'.")
|
62
|
+
Whois::Parser.bug!(ParserError, "Unknown status `#{s}'.")
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -30,7 +30,7 @@ module Whois
|
|
30
30
|
when "activo"
|
31
31
|
:registered
|
32
32
|
else
|
33
|
-
Whois.bug!(ParserError, "Unknown status `#{$1}'.")
|
33
|
+
Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
|
34
34
|
end
|
35
35
|
else
|
36
36
|
:available
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -31,7 +31,7 @@ module Whois
|
|
31
31
|
case $1.downcase
|
32
32
|
when "active" then :registered
|
33
33
|
else
|
34
|
-
Whois.bug!(ParserError, "Unknown status `#{$1}'.")
|
34
|
+
Whois::Parser.bug!(ParserError, "Unknown status `#{$1}'.")
|
35
35
|
end
|
36
36
|
else
|
37
37
|
:available
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -42,27 +42,27 @@ module Whois
|
|
42
42
|
!available?
|
43
43
|
end
|
44
44
|
|
45
|
-
|
46
45
|
property_supported :created_on do
|
47
|
-
if content_for_scanner =~
|
46
|
+
if content_for_scanner =~ /Creation Date:\s+(.*)\n/
|
48
47
|
parse_time($1)
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
52
51
|
property_supported :updated_on do
|
53
|
-
if content_for_scanner =~
|
52
|
+
if content_for_scanner =~ /Updated Date:\s+(.*)\n/
|
54
53
|
parse_time($1)
|
55
54
|
end
|
56
55
|
end
|
57
56
|
|
58
|
-
|
59
|
-
|
57
|
+
property_supported :expires_on do
|
58
|
+
if content_for_scanner =~ /Expiration Date:\s+(.*)\n/
|
59
|
+
parse_time($1)
|
60
|
+
end
|
61
|
+
end
|
60
62
|
|
61
63
|
property_supported :nameservers do
|
62
|
-
|
63
|
-
|
64
|
-
Parser::Nameserver.new(:name => name.strip)
|
65
|
-
end
|
64
|
+
content_for_scanner.scan(/nameserver:\s+(.+)\n/).flatten.map do |name|
|
65
|
+
Parser::Nameserver.new(name: name)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|