globetrotter 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba937570c70da00cf21b0eb41bb082ad1b7c8313
4
- data.tar.gz: f0758c5c8527d68ce413aa3cbc70176bc30173fe
3
+ metadata.gz: a77ed8d5c5ea59b1ec541a7444b090874e33ef8d
4
+ data.tar.gz: 4b8791eaabed67a6e414567c2f1089346e43391e
5
5
  SHA512:
6
- metadata.gz: 92c59ce13cfea48a0ae02cf4b664463f02fa2096a8e5f05030dca0b7259aa56d801c687436de7eda5935d0f317943bc027b3b4740e0d354ccb7722d27a1855fa
7
- data.tar.gz: e2298d109842fe233ae300ccdbd5b32105375cc765d52a36fdcd8a9b6636491e27b6a84206a886f05f45d3ee740e38b41503f9a8d8fc7c5c9d0881bd09a0729b
6
+ metadata.gz: cbffd8ef57ecabbc09dc9c37a0948fcce9a3a4ecab3240a5198a7f45cf9658ae5c7652a50f1b44e18753e61e5d19abbec077e2c5c8274d886ea5b65a1ce349c9
7
+ data.tar.gz: c864bcec76287458b0d3181b6c68203274cf70e5d2447bb60e62e25fa2a1c02cfac01f2b1f312a1d82fe84ae904e2851081200a8b958087c70af5f5a8fcda636
data/README.md CHANGED
@@ -1,28 +1,24 @@
1
- # Globetrotter
1
+ # globetrotter
2
2
 
3
- TODO: Write a gem description
3
+ globetrotter retrieves a list of DNS servers around the world from the [Public DNS Server List](http://public-dns.tk/) and runs your query against them. This is particularly handy for compiling list of SaaS endpoint IPs in cases where the provider doesn't specify them.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'globetrotter'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install globetrotter
7
+ `gem install globetrotter`
18
8
 
19
9
  ## Usage
10
+ Query 100 DNS servers for googleapis.com, making 10 requests in parallel at a time:
11
+ `globetrotter -q googleapis.com -c 100 -p 10`
12
+
13
+ See `globetrotter -h` for all parameters
20
14
 
21
- TODO: Write usage instructions here
15
+ ## TODO
16
+ * Improve command line argument parsing
17
+ * Handle non-A records
22
18
 
23
19
  ## Contributing
24
20
 
25
- 1. Fork it ( https://github.com/[my-github-username]/globetrotter/fork )
21
+ 1. [Fork it](https://github.com/amplify-education/globetrotter/fork)
26
22
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
23
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
24
  4. Push to the branch (`git push origin my-new-feature`)
@@ -27,7 +27,7 @@ opts = Trollop.options do
27
27
  opt :concurrency,
28
28
  'Number of concurrent DNS requests to make',
29
29
  type: Integer,
30
- default: 100,
30
+ default: 10,
31
31
  short: '-p'
32
32
  end
33
33
 
@@ -13,7 +13,7 @@ class Globetrotter
13
13
  @ns_count_to_check = options.fetch(:ns_count_to_check, 100)
14
14
  @timeout_seconds = options.fetch(:timeout_seconds, 2)
15
15
  @query = options.fetch(:query, 'googleapis.com')
16
- @concurrency = options.fetch(:concurrency, 100)
16
+ @concurrency = options.fetch(:concurrency, 10)
17
17
  @ns_ips = fetch_ns_ips
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  class Globetrotter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Lopez