whois 3.6.4 → 3.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -20
- data/data/tld.json +330 -185
- data/lib/whois/record/parser/{whois.afilias.info.rb → whois.afilias.net.rb} +2 -2
- data/lib/whois/record/parser/{whois.nic.am.rb → whois.amnic.net.rb} +2 -2
- data/lib/whois/record/parser/{whois.nic.gov.rb → whois.dotgov.gov.rb} +2 -2
- data/lib/whois/record/parser/{whois.registrypro.pro.rb → whois.dotproregistry.net.rb} +2 -2
- data/lib/whois/record/parser/{whois.registry.in.rb → whois.inregistry.net.rb} +2 -2
- data/lib/whois/record/parser/{whois.domainregistry.my.rb → whois.mynic.my.rb} +2 -2
- data/lib/whois/record/parser/whois.tld.ee.rb +114 -6
- data/lib/whois/record/scanners/whois.tld.ee.rb +57 -0
- data/lib/whois/version.rb +1 -1
- data/whois.gemspec +4 -4
- metadata +9 -10
- data/data/CONTRIBUTING.md +0 -36
- data/lib/whois/record/parser/whois.nic.ck.rb +0 -72
@@ -1,72 +0,0 @@
|
|
1
|
-
#--
|
2
|
-
# Ruby Whois
|
3
|
-
#
|
4
|
-
# An intelligent pure Ruby WHOIS client and parser.
|
5
|
-
#
|
6
|
-
# Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net>
|
7
|
-
#++
|
8
|
-
|
9
|
-
|
10
|
-
require 'whois/record/parser/base'
|
11
|
-
|
12
|
-
|
13
|
-
module Whois
|
14
|
-
class Record
|
15
|
-
class Parser
|
16
|
-
|
17
|
-
#
|
18
|
-
# = whois.nic.ck parser
|
19
|
-
#
|
20
|
-
# Parser for the whois.nic.ck server.
|
21
|
-
#
|
22
|
-
# NOTE: This parser is just a stub and provides only a few basic methods
|
23
|
-
# to check for domain availability and get domain status.
|
24
|
-
# Please consider to contribute implementing missing methods.
|
25
|
-
# See WhoisNicIt parser for an explanation of all available methods
|
26
|
-
# and examples.
|
27
|
-
#
|
28
|
-
class WhoisNicCk < Base
|
29
|
-
|
30
|
-
property_supported :status do
|
31
|
-
if available?
|
32
|
-
:available
|
33
|
-
else
|
34
|
-
:registered
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
property_supported :available? do
|
39
|
-
!!(content_for_scanner =~ /^% No entries found for the selected source/)
|
40
|
-
end
|
41
|
-
|
42
|
-
property_supported :registered? do
|
43
|
-
!available?
|
44
|
-
end
|
45
|
-
|
46
|
-
|
47
|
-
property_not_supported :created_on
|
48
|
-
|
49
|
-
property_supported :updated_on do
|
50
|
-
if content_for_scanner =~ /changed:\s+(.*)\n/
|
51
|
-
Time.parse($1.split(" ", 2).last)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
property_supported :expires_on do
|
56
|
-
if content_for_scanner =~ /remarks:\s+expires (.+)\n/
|
57
|
-
Time.parse($1)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
|
62
|
-
property_supported :nameservers do
|
63
|
-
content_for_scanner.scan(/nserver:\s+(.+)\n/).flatten.map do |name|
|
64
|
-
Record::Nameserver.new(:name => name)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|