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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 299aa952c37aefd7d010d9464cb134d154dfb46e
4
- data.tar.gz: 5aad1fb6ddce30a09dda66e30f3b54c18dffaafe
3
+ metadata.gz: 4240a6e751f517da1e12913108881e0bfc1a26ed
4
+ data.tar.gz: c266b065ce40f73653ac831b57f1981c366fa2f5
5
5
  SHA512:
6
- metadata.gz: 700dd882be22045a005d6cacd791148da2662c5c4c02349019d2f4ef5e7111a9a30d1d59db1597d6af8251e68bd2a3eec4e69b995b70474acaf2d9d0b23a1b38
7
- data.tar.gz: 096af3cf1ac2db801db8a85932d140f7b2f77da3f9a6825812e5a701fda85f06520b22407eafbf27200ce2cf0de8a746b509caed79b3a5b0b23e02a4530dac02
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 doens't exist
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
 
@@ -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(s). "\
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(s)."
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(s) to #{@file}" if @file
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
@@ -1,3 +1,3 @@
1
1
  class Globetrotter
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globetrotter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Lopez