whois 2.7.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +143 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +28 -41
- data/bin/ruby-whois +14 -7
- data/data/ipv4.json +723 -0
- data/data/ipv6.json +100 -0
- data/data/tld.json +1302 -0
- data/lib/whois.rb +3 -3
- data/lib/whois/client.rb +17 -7
- data/lib/whois/core_ext.rb +0 -2
- data/lib/whois/errors.rb +13 -20
- data/lib/whois/record.rb +28 -22
- data/lib/whois/record/contact.rb +1 -1
- data/lib/whois/record/nameserver.rb +1 -1
- data/lib/whois/record/parser.rb +70 -46
- data/lib/whois/record/parser/base.rb +58 -59
- data/lib/whois/record/parser/base_afilias.rb +2 -7
- data/lib/whois/record/parser/base_cocca.rb +8 -5
- data/lib/whois/record/parser/base_cocca2.rb +107 -0
- data/lib/whois/record/parser/base_shared1.rb +2 -7
- data/lib/whois/record/parser/base_shared2.rb +2 -7
- data/lib/whois/record/parser/base_whoisd.rb +16 -9
- data/lib/whois/record/parser/blank.rb +1 -1
- data/lib/whois/record/parser/example.rb +1 -10
- data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +19 -19
- data/lib/whois/record/parser/kero.yachay.pe.rb +28 -18
- 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 +2 -2
- 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.ati.tn.rb +3 -8
- data/lib/whois/record/parser/whois.audns.net.au.rb +4 -9
- data/lib/whois/record/parser/whois.ax.rb +66 -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.by.rb +5 -8
- data/lib/whois/record/parser/whois.cctld.uz.rb +1 -1
- data/lib/whois/record/parser/whois.centralnic.com.rb +4 -9
- data/lib/whois/record/parser/whois.cira.ca.rb +3 -8
- data/lib/whois/record/parser/whois.cmc.iq.rb +7 -4
- data/lib/whois/record/parser/whois.cnnic.cn.rb +13 -21
- data/lib/whois/record/parser/whois.co.ca.rb +1 -1
- data/lib/whois/record/parser/whois.co.pl.rb +1 -6
- data/lib/whois/record/parser/whois.co.ug.rb +2 -2
- data/lib/whois/record/parser/whois.crsnic.net.rb +14 -15
- data/lib/whois/record/parser/whois.denic.de.rb +2 -2
- data/lib/whois/record/parser/whois.dk-hostmaster.dk.rb +2 -2
- data/lib/whois/record/parser/whois.dns.be.rb +2 -2
- data/lib/whois/record/parser/whois.dns.hr.rb +3 -8
- data/lib/whois/record/parser/whois.dns.lu.rb +1 -1
- data/lib/whois/record/parser/whois.dns.pl.rb +70 -9
- data/lib/whois/record/parser/whois.dns.pt.rb +16 -15
- data/lib/whois/record/parser/whois.domain-registry.nl.rb +2 -2
- data/lib/whois/record/parser/whois.domain.kg.rb +1 -1
- data/lib/whois/record/parser/whois.domainregistry.ie.rb +9 -12
- 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.tk.rb +1 -1
- data/lib/whois/record/parser/whois.dotmobiregistry.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 -6
- 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 +13 -1
- data/lib/whois/record/parser/whois.fi.rb +2 -2
- data/lib/whois/record/parser/whois.gg.rb +1 -1
- data/lib/whois/record/parser/whois.godaddy.com.rb +4 -4
- 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 +2 -2
- 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 +9 -6
- 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.meregistry.net.rb +1 -1
- data/lib/whois/record/parser/whois.monic.mo.rb +1 -6
- data/lib/whois/record/parser/whois.museum.rb +1 -1
- data/lib/whois/record/parser/whois.na-nic.com.na.rb +3 -23
- data/lib/whois/record/parser/whois.nc.rb +8 -11
- 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-se.se.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ac.rb +1 -6
- data/lib/whois/record/parser/whois.nic.af.rb +7 -3
- 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 +7 -9
- data/lib/whois/record/parser/whois.nic.bo.rb +1 -1
- data/lib/whois/record/parser/whois.nic.cc.rb +11 -11
- 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 +7 -3
- data/lib/whois/record/parser/whois.nic.cz.rb +8 -3
- data/lib/whois/record/parser/whois.nic.dm.rb +3 -8
- 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.fo.rb +2 -2
- data/lib/whois/record/parser/whois.nic.fr.rb +1 -1
- data/lib/whois/record/parser/whois.nic.gl.rb +5 -1
- data/lib/whois/record/parser/whois.nic.gov.rb +11 -12
- data/lib/whois/record/parser/whois.nic.gs.rb +7 -23
- data/lib/whois/record/parser/whois.nic.hn.rb +28 -0
- data/lib/whois/record/parser/whois.nic.ht.rb +7 -3
- data/lib/whois/record/parser/whois.nic.hu.rb +2 -2
- data/lib/whois/record/parser/whois.nic.im.rb +1 -1
- data/lib/whois/record/parser/whois.nic.io.rb +1 -6
- data/lib/whois/record/parser/whois.nic.ir.rb +1 -1
- data/lib/whois/record/parser/whois.nic.it.rb +2 -7
- data/lib/whois/record/parser/whois.nic.ki.rb +7 -3
- data/lib/whois/record/parser/whois.nic.kz.rb +9 -12
- data/lib/whois/record/parser/whois.nic.la.rb +3 -2
- data/lib/whois/record/parser/whois.nic.li.rb +1 -1
- data/lib/whois/record/parser/whois.nic.lk.rb +3 -9
- 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 -6
- data/lib/whois/record/parser/whois.nic.mg.rb +1 -1
- data/lib/whois/record/parser/whois.nic.ms.rb +7 -3
- data/lib/whois/record/parser/whois.nic.mu.rb +7 -3
- data/lib/whois/record/parser/whois.nic.mx.rb +1 -1
- data/lib/whois/record/parser/whois.nic.name.rb +2 -2
- data/lib/whois/record/parser/whois.nic.net.nf.rb +7 -42
- data/lib/whois/record/parser/whois.nic.net.ng.rb +3 -3
- data/lib/whois/record/parser/whois.nic.net.sa.rb +1 -1
- data/lib/whois/record/parser/whois.nic.net.sb.rb +7 -3
- 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.pr.rb +32 -14
- data/lib/whois/record/parser/whois.nic.priv.at.rb +1 -1
- data/lib/whois/record/parser/whois.nic.pw.rb +27 -0
- data/lib/whois/record/parser/whois.nic.sh.rb +1 -6
- 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 -6
- 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 +5 -54
- data/lib/whois/record/parser/whois.nic.tl.rb +7 -3
- data/lib/whois/record/parser/whois.nic.tm.rb +1 -6
- data/lib/whois/record/parser/whois.nic.tr.rb +1 -1
- data/lib/whois/record/parser/whois.nic.travel.rb +5 -50
- data/lib/whois/record/parser/whois.nic.tv.rb +11 -12
- data/lib/whois/record/parser/whois.nic.uk.rb +18 -20
- data/lib/whois/record/parser/whois.nic.us.rb +5 -50
- 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 -6
- data/lib/whois/record/parser/whois.pandi.or.id.rb +1 -1
- data/lib/whois/record/parser/whois.pir.org.rb +1 -1
- 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 +2 -2
- data/lib/whois/record/parser/whois.registro.br.rb +1 -1
- data/lib/whois/record/parser/whois.registry.gy.rb +7 -3
- 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 +123 -0
- data/lib/whois/record/parser/whois.registry.om.rb +2 -2
- data/lib/whois/record/parser/whois.registry.qa.rb +1 -1
- data/lib/whois/record/parser/whois.registrypro.pro.rb +2 -2
- data/lib/whois/record/parser/whois.ripe.net.rb +1 -1
- data/lib/whois/record/parser/whois.rnids.rs.rb +3 -8
- data/lib/whois/record/parser/whois.rotld.ro.rb +1 -1
- data/lib/whois/record/parser/whois.samoanic.ws.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 +2 -2
- data/lib/whois/record/parser/whois.srs.net.nz.rb +1 -1
- data/lib/whois/record/parser/whois.sx.rb +50 -32
- data/lib/whois/record/parser/whois.tcinet.ru.rb +2 -2
- data/lib/whois/record/parser/whois.thnic.co.th.rb +5 -5
- data/lib/whois/record/parser/whois.tld.ee.rb +2 -2
- data/lib/whois/record/parser/whois.tonic.to.rb +1 -6
- data/lib/whois/record/parser/whois.twnic.net.tw.rb +1 -1
- data/lib/whois/record/parser/whois.tznic.or.tz.rb +2 -2
- data/lib/whois/record/parser/whois.ua.rb +1 -6
- data/lib/whois/record/parser/whois.usp.ac.fj.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 +5 -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_shared1.rb +1 -1
- data/lib/whois/record/scanners/base_shared2.rb +1 -2
- data/lib/whois/record/scanners/base_whoisd.rb +4 -4
- data/lib/whois/record/scanners/iana.rb +1 -1
- data/lib/whois/record/scanners/{ast.rb → nodable.rb} +4 -4
- 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 +3 -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 +6 -3
- 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 +3 -1
- data/lib/whois/record/scanners/whois.nc.rb +1 -1
- data/lib/whois/record/scanners/whois.nic.dm.rb +1 -1
- data/lib/whois/record/scanners/whois.nic.hu.rb +1 -1
- data/lib/whois/record/scanners/whois.nic.it.rb +1 -1
- data/lib/whois/record/scanners/whois.registry.net.za.rb +103 -0
- 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.sx.rb +14 -46
- data/lib/whois/record/super_struct.rb +1 -1
- data/lib/whois/server.rb +18 -4
- data/lib/whois/server/adapters/afilias.rb +8 -13
- data/lib/whois/server/adapters/arpa.rb +1 -1
- data/lib/whois/server/adapters/base.rb +24 -44
- 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 +11 -19
- data/lib/whois/server/adapters/web.rb +2 -5
- data/lib/whois/server/socket_handler.rb +66 -0
- data/lib/whois/version.rb +3 -3
- data/whois.gemspec +11 -11
- metadata +24 -29
- data/lib/whois/core_ext/date_time/conversions.rb +0 -14
- data/lib/whois/definitions/ipv4.rb +0 -240
- data/lib/whois/definitions/ipv6.rb +0 -32
- data/lib/whois/definitions/tlds.rb +0 -367
- data/lib/whois/record/parser/saudinic.net.sa.rb +0 -23
- data/lib/whois/record/parser/whois.ausregistry.net.au.rb +0 -23
- data/lib/whois/record/parser/whois.centralnic.net.rb +0 -25
- data/lib/whois/record/parser/whois.cnnic.net.cn.rb +0 -23
- data/lib/whois/record/parser/whois.coza.net.za.rb +0 -76
- data/lib/whois/record/parser/whois.ficora.fi.rb +0 -24
- data/lib/whois/record/parser/whois.hkdnr.net.hk.rb +0 -23
- data/lib/whois/record/parser/whois.net.ua.rb +0 -24
- data/lib/whois/record/parser/whois.nic.or.kr.rb +0 -24
- data/lib/whois/record/parser/whois.publicinterestregistry.net.rb +0 -23
- data/lib/whois/record/parser/whois.ripn.net.rb +0 -23
@@ -0,0 +1,28 @@
|
|
1
|
+
#--
|
2
|
+
# Ruby Whois
|
3
|
+
#
|
4
|
+
# An intelligent pure Ruby WHOIS client and parser.
|
5
|
+
#
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
|
+
#++
|
8
|
+
|
9
|
+
|
10
|
+
require 'whois/record/parser/base_cocca'
|
11
|
+
|
12
|
+
|
13
|
+
module Whois
|
14
|
+
class Record
|
15
|
+
class Parser
|
16
|
+
|
17
|
+
# Parser for the whois.nic.hn server.
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
# @since RELEASE
|
23
|
+
class WhoisNicHn < BaseCocca
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
|
-
require 'whois/record/parser/
|
10
|
+
require 'whois/record/parser/base_cocca2'
|
11
11
|
|
12
12
|
|
13
13
|
module Whois
|
@@ -15,7 +15,11 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.ht server.
|
18
|
-
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
class WhoisNicHt < BaseCocca2
|
19
23
|
end
|
20
24
|
|
21
25
|
end
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -21,7 +21,7 @@ module Whois
|
|
21
21
|
# @author Gábor Vészi <veszig@done.hu>
|
22
22
|
#
|
23
23
|
class WhoisNicHu < Base
|
24
|
-
include Scanners::
|
24
|
+
include Scanners::Nodable
|
25
25
|
|
26
26
|
property_supported :disclaimer do
|
27
27
|
node("field:disclaimer")
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -33,11 +33,6 @@ module Whois
|
|
33
33
|
property_not_supported :domain_id
|
34
34
|
|
35
35
|
|
36
|
-
property_not_supported :referral_whois
|
37
|
-
|
38
|
-
property_not_supported :referral_url
|
39
|
-
|
40
|
-
|
41
36
|
property_supported :status do
|
42
37
|
if available?
|
43
38
|
: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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -17,7 +17,7 @@ module Whois
|
|
17
17
|
|
18
18
|
# Parser for the whois.nic.it server.
|
19
19
|
class WhoisNicIt < Base
|
20
|
-
include Scanners::
|
20
|
+
include Scanners::Nodable
|
21
21
|
|
22
22
|
|
23
23
|
property_supported :disclaimer do
|
@@ -32,11 +32,6 @@ module Whois
|
|
32
32
|
property_not_supported :domain_id
|
33
33
|
|
34
34
|
|
35
|
-
property_not_supported :referral_whois
|
36
|
-
|
37
|
-
property_not_supported :referral_url
|
38
|
-
|
39
|
-
|
40
35
|
property_supported :status do
|
41
36
|
case s = node("Status").to_s.downcase
|
42
37
|
when /^ok/, "active", /\bclient/
|
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
|
-
require 'whois/record/parser/
|
10
|
+
require 'whois/record/parser/base_cocca2'
|
11
11
|
|
12
12
|
|
13
13
|
module Whois
|
@@ -15,7 +15,11 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.ki server.
|
18
|
-
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
class WhoisNicKi < BaseCocca2
|
19
23
|
end
|
20
24
|
|
21
25
|
end
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -14,17 +14,14 @@ module Whois
|
|
14
14
|
class Record
|
15
15
|
class Parser
|
16
16
|
|
17
|
-
#
|
18
|
-
# = whois.nic.kz parser
|
19
|
-
#
|
20
17
|
# Parser for the whois.nic.kz server.
|
21
18
|
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# See WhoisNicIt parser for an explanation of all available methods
|
26
|
-
# and examples.
|
19
|
+
# @note This parser is just a stub and provides only a few basic methods
|
20
|
+
# to check for domain availability and get domain status.
|
21
|
+
# Please consider to contribute implementing missing methods.
|
27
22
|
#
|
23
|
+
# @see Whois::Record::Parser::Example
|
24
|
+
# The Example parser for the list of all available methods.
|
28
25
|
class WhoisNicKz < Base
|
29
26
|
|
30
27
|
property_supported :status do
|
@@ -45,14 +42,14 @@ module Whois
|
|
45
42
|
|
46
43
|
|
47
44
|
property_supported :created_on do
|
48
|
-
if content_for_scanner =~ /Domain created: (
|
45
|
+
if content_for_scanner =~ /Domain created: (.+)\n/
|
49
46
|
Time.parse($1)
|
50
47
|
end
|
51
48
|
end
|
52
49
|
|
53
50
|
property_supported :updated_on do
|
54
|
-
if content_for_scanner =~ /Last modified : (
|
55
|
-
Time.parse(
|
51
|
+
if content_for_scanner =~ /Last modified : (.+)\n/ && !(value = $1).empty?
|
52
|
+
Time.parse(value)
|
56
53
|
end
|
57
54
|
end
|
58
55
|
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -19,7 +19,8 @@ module Whois
|
|
19
19
|
#
|
20
20
|
# It aliases the whois.centralnic.com parser because
|
21
21
|
# the .LA TLD is powered by Centralnic.
|
22
|
-
WhoisNicLa
|
22
|
+
class WhoisNicLa < WhoisCentralnicCom
|
23
|
+
end
|
23
24
|
|
24
25
|
end
|
25
26
|
end
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -15,7 +15,7 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.lk server.
|
18
|
-
#
|
18
|
+
#
|
19
19
|
# @see Whois::Record::Parser::Example
|
20
20
|
# The Example parser for the list of all available methods.
|
21
21
|
#
|
@@ -34,12 +34,6 @@ module Whois
|
|
34
34
|
property_not_supported :domain_id
|
35
35
|
|
36
36
|
|
37
|
-
property_not_supported :referral_whois
|
38
|
-
|
39
|
-
property_not_supported :referral_url
|
40
|
-
|
41
|
-
|
42
|
-
|
43
37
|
property_supported :status do
|
44
38
|
if available?
|
45
39
|
:available
|
@@ -59,7 +53,7 @@ module Whois
|
|
59
53
|
|
60
54
|
property_supported :created_on do
|
61
55
|
if content_for_scanner =~ /Created on\.+:(.+)\n/
|
62
|
-
Time.parse($1)
|
56
|
+
Time.parse($1) unless $1 == "null"
|
63
57
|
end
|
64
58
|
end
|
65
59
|
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -33,11 +33,6 @@ module Whois
|
|
33
33
|
property_not_supported :domain_id
|
34
34
|
|
35
35
|
|
36
|
-
property_not_supported :referral_whois
|
37
|
-
|
38
|
-
property_not_supported :referral_url
|
39
|
-
|
40
|
-
|
41
36
|
property_supported :status do
|
42
37
|
if available?
|
43
38
|
:available
|
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
|
-
require 'whois/record/parser/
|
10
|
+
require 'whois/record/parser/base_cocca2'
|
11
11
|
|
12
12
|
|
13
13
|
module Whois
|
@@ -15,7 +15,11 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.ms server.
|
18
|
-
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
class WhoisNicMs < BaseCocca2
|
19
23
|
end
|
20
24
|
|
21
25
|
end
|
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
|
-
require 'whois/record/parser/
|
10
|
+
require 'whois/record/parser/base_cocca2'
|
11
11
|
|
12
12
|
|
13
13
|
module Whois
|
@@ -15,7 +15,11 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.mu server.
|
18
|
-
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
class WhoisNicMu < BaseCocca2
|
19
23
|
end
|
20
24
|
|
21
25
|
end
|
@@ -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-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
@@ -19,7 +19,7 @@ module Whois
|
|
19
19
|
# @note This parser is just a stub and provides only a few basic methods
|
20
20
|
# to check for domain availability and get domain status.
|
21
21
|
# Please consider to contribute implementing missing methods.
|
22
|
-
#
|
22
|
+
#
|
23
23
|
# @see Whois::Record::Parser::Example
|
24
24
|
# The Example parser for the list of all available methods.
|
25
25
|
#
|
@@ -3,11 +3,11 @@
|
|
3
3
|
#
|
4
4
|
# An intelligent pure Ruby WHOIS client and parser.
|
5
5
|
#
|
6
|
-
# Copyright (c) 2009-
|
6
|
+
# Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net>
|
7
7
|
#++
|
8
8
|
|
9
9
|
|
10
|
-
require 'whois/record/parser/
|
10
|
+
require 'whois/record/parser/base_cocca2'
|
11
11
|
|
12
12
|
|
13
13
|
module Whois
|
@@ -15,46 +15,11 @@ module Whois
|
|
15
15
|
class Parser
|
16
16
|
|
17
17
|
# Parser for the whois.nic.net.nf server.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
when "active"
|
24
|
-
:registered
|
25
|
-
when "delegated"
|
26
|
-
:registered
|
27
|
-
when "not registered"
|
28
|
-
:available
|
29
|
-
when /pending delete/
|
30
|
-
:redemption
|
31
|
-
when /pending purge/
|
32
|
-
:redemption
|
33
|
-
when /not have any records for that zone/
|
34
|
-
:invalid
|
35
|
-
else
|
36
|
-
Whois.bug!(ParserError, "Unknown status `#{s}'.")
|
37
|
-
end
|
38
|
-
else
|
39
|
-
Whois.bug!(ParserError, "Unable to parse status.")
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
# NEWPROPERTY
|
45
|
-
def valid?
|
46
|
-
cached_properties_fetch(:valid?) do
|
47
|
-
!invalid?
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# NEWPROPERTY
|
52
|
-
def invalid?
|
53
|
-
cached_properties_fetch(:invalid?) do
|
54
|
-
status == :invalid
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
18
|
+
#
|
19
|
+
# @see Whois::Record::Parser::Example
|
20
|
+
# The Example parser for the list of all available methods.
|
21
|
+
#
|
22
|
+
class WhoisNicNetNf < BaseCocca2
|
58
23
|
end
|
59
24
|
|
60
25
|
end
|