hast 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/config.yml.template +5 -4
- data/hast.gemspec +2 -2
- data/lib/hast/verifier.rb +6 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/config.yml.template
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
dns:
|
2
|
-
# The nameserver used when looking op domains.
|
2
|
+
# The nameserver(s) used when looking op domains.
|
3
3
|
#
|
4
|
-
# In most cases you can just leave this as 8.8.8.8
|
5
|
-
# primary Google nameserver.
|
4
|
+
# In most cases you can just leave this as 8.8.8.8 and 8.8.4.4 which
|
5
|
+
# is the primary and secondary Google nameserver.
|
6
6
|
#
|
7
|
-
|
7
|
+
primary: '8.8.8.8'
|
8
|
+
secondary: '8.8.4.4'
|
8
9
|
|
9
10
|
apache:
|
10
11
|
# The IP address of your Apache webserver.
|
data/hast.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{hast}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Thomas Watson Steen"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-04-22}
|
13
13
|
s.default_executable = %q{hast}
|
14
14
|
s.description = %q{ HAST stands for 'Hosting Account Status Tool'.
|
15
15
|
|
data/lib/hast/verifier.rb
CHANGED
@@ -15,7 +15,7 @@ module HAST
|
|
15
15
|
@type = type
|
16
16
|
@output_block = output_block
|
17
17
|
@dns = Net::DNS::Resolver.new
|
18
|
-
@dns.nameservers = @config['dns']['
|
18
|
+
@dns.nameservers = [@config['dns']['primary'], @config['dns']['secondary']].compact
|
19
19
|
end
|
20
20
|
|
21
21
|
def verify_domains
|
@@ -57,7 +57,11 @@ module HAST
|
|
57
57
|
|
58
58
|
def get_server_ips(domain)
|
59
59
|
ips = []
|
60
|
-
|
60
|
+
begin
|
61
|
+
@dns.query(domain).each_address { |ip| ips << ip.to_s }
|
62
|
+
rescue Net::DNS::Resolver::NoResponseError
|
63
|
+
ips = nil
|
64
|
+
end
|
61
65
|
ips
|
62
66
|
end
|
63
67
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 2
|
9
|
+
version: 0.3.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Thomas Watson Steen
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-22 00:00:00 +02:00
|
18
18
|
default_executable: hast
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|