zazu 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zazu.rb +6 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c368efff2b6adff8716c4b69d860b482b95a36b3d055124fdb3eac1218fc15db
4
- data.tar.gz: 4ea392972f1b5590571e252454e5e137ac9d502e25800c24fe5385920c2d1dde
3
+ metadata.gz: ee7ead248420bb8de0dd041ffada158ecce3f645217b6e8921b13c7535977dfb
4
+ data.tar.gz: 877678bc6130edaa2465413b07819423d902c24f224e0d4f648b6c10f3313d43
5
5
  SHA512:
6
- metadata.gz: 04cdb1d755be034d09991859f44ff335ce110ac7f59746299b2631aad46abd5fc84cfb105c2499af186b5b81522bfb550cd03c6fe476cfa3e53bd5c03644bb4d
7
- data.tar.gz: c1d9acf87bf13b41f8417395ea41a1b37602afa3eb9479e55d41bbb9895102a66937e9fbfb5543f0320430111de0bba6f6914695489f934b9ae2f3a9b8ccd5bc
6
+ metadata.gz: 1367466628c3c8187aa3addce9fa9515ace929d7596d718fd65ae887e10be09f2754bedaf5566c560ab6ab26d96df47cc97d82a2fbeeac57f38a59fb1fd772c2
7
+ data.tar.gz: b47988695e579a6cc566bae650d3172717059b581cf4d18b6aa5233d84a82daf512f99fb6493b7b0b8fd245c9b2db4f97c2dd87b86ea295ec9a83620aeded1f9
@@ -17,7 +17,7 @@ require 'uri'
17
17
  # zazu.run ['--environment', 'prod']
18
18
  #
19
19
  class Zazu
20
- VERSION = '0.0.2'
20
+ VERSION = '0.0.3'
21
21
 
22
22
  class Error < Exception; end
23
23
  class DownloadError < Error; end
@@ -37,7 +37,8 @@ class Zazu
37
37
  @logger.level = level
38
38
  end
39
39
 
40
- # Download the tool, to the temp directory
40
+ # Download the tool, to the temp directory. Raises a DownloadError on HTTP error.
41
+ #
41
42
  # * +:url:+ - The URL to the tool--Optional, can specity the block instead
42
43
  # * +:age:+ - Seconds old the downloaded copy can be before downloading again--Default is 3600
43
44
  # * +:block:+ - Receives the OS (:linux, :mac, :windows) and the machine arch (32 or 64)--Should return the URL
@@ -50,7 +51,9 @@ class Zazu
50
51
  download_file url
51
52
  end
52
53
 
53
- # Run the downloaded tool with arguments
54
+ # Run the downloaded tool with arguments Raises a RunError if the command
55
+ # exits with nonzero.
56
+ #
54
57
  # * +:args:+ - An array of args for the command
55
58
  # * +:show:+ - A regexp of output (STDOUT and STDERR) to include
56
59
  # * +:hide:+ - A regexp of output (STDOUT and STDERR) to exclude
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zazu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Calhoun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize