globetrotter 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/globetrotter.rb +4 -4
- data/lib/globetrotter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4240a6e751f517da1e12913108881e0bfc1a26ed
|
4
|
+
data.tar.gz: c266b065ce40f73653ac831b57f1981c366fa2f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ccf99bc22792e6a27a3bde5b4a966ecb156ad0c54bebe6bb98cf0ab9d50f5ccfe20c4eeda1f275138a57042e06f28a958d41157d6a4db6ff3ce7cf93ab76e8
|
7
|
+
data.tar.gz: 6826bb0eb77b802e20c7b5b898fa3c59b0cd08d10d5e0da9646967a55482aad3c6b65c4ad26b23e2d9cdba7dedb471b4cda13d19d56e5c930d07f0d8d08e9b68
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Query 100 DNS servers for googleapis.com, making 10 requests in parallel at a ti
|
|
11
11
|
|
12
12
|
$ globetrotter -q googleapis.com -c 100 -p 10
|
13
13
|
|
14
|
-
Write results for google.com to /tmp/google.txt - file will be created if it
|
14
|
+
Write results for google.com to /tmp/google.txt - file will be created if it doesn't exist
|
15
15
|
|
16
16
|
$ globetrotter -q google.com -f /tmp/google.txt
|
17
17
|
|
data/lib/globetrotter.rb
CHANGED
@@ -24,10 +24,10 @@ class Globetrotter
|
|
24
24
|
@ns_count_to_check = ns_count if @ns_count_to_check > ns_count
|
25
25
|
@ns_ips = @ns_ips.sample(@ns_count_to_check)
|
26
26
|
|
27
|
-
message = "Found #{ns_count} nameserver
|
27
|
+
message = "Found #{ns_count} nameserver#{'s' unless ns_count.size == 1}. "\
|
28
28
|
"Querying #{@ns_count_to_check} of those "\
|
29
|
-
"for #{query}, #{@concurrency} at a time, "\
|
30
|
-
"with a timeout of #{@timeout_seconds} second
|
29
|
+
"for '#{query}', #{@concurrency} at a time, "\
|
30
|
+
"with a timeout of #{@timeout_seconds} second#{'s' unless @timeout_seconds == 1}."
|
31
31
|
$stderr.puts message
|
32
32
|
|
33
33
|
EM.run do
|
@@ -71,7 +71,7 @@ class Globetrotter
|
|
71
71
|
result_ips.each { |ip| puts ip }
|
72
72
|
end
|
73
73
|
$stderr.puts "#{ok} succeeded, #{nok} failed (#{ok + nok} total)"
|
74
|
-
$stderr.puts "Wrote #{new_results} new unique result
|
74
|
+
$stderr.puts "Wrote #{new_results} new unique result#{'s' unless new_results.size == 1} to #{@file}" if @file
|
75
75
|
end
|
76
76
|
)
|
77
77
|
end
|
data/lib/globetrotter/version.rb
CHANGED