athlete 0.0.1 → 0.0.2

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: 6d3860c8ddee3f9c32fe243c211833b00ae37488
4
- data.tar.gz: 47a5c48f169f581acb8c100b9428e69dec334778
3
+ metadata.gz: bbb34150f69a7c76456d41d3487534c28fed756f
4
+ data.tar.gz: 149101dc9564e8c05a1aeb50a95c79c93124fe6f
5
5
  SHA512:
6
- metadata.gz: a0ee2dfa941b4e3c504b6530bfe344170da34a8cb6500b05cf062c49832d55c07a05c784472034f8258990e2b9169a8e09df95072d050f3e183431863e1b2a2b
7
- data.tar.gz: 17ca485cf67f9ff3afe517b049b3c104feda65f9b30d63ab3e0e3fa8180e025cf1f3f575478f1ba63497ed64f01e59e120541e6d7265ef1448802ddf405fe32d
6
+ metadata.gz: 83908ff4ec450266820d72dd81eabc599e603f3ccfcfab51acd9b6a28abefae5dae715d13c78c62de33f7806f6d5b26cedf4af504034b0c3a0806f3c9f6c13bc
7
+ data.tar.gz: 77c0d27d2f6d38b632f211576f4a4428ddfb5f39996406c23b7a28ff592adc83713c9168d9e07da0572f5e88b813115139058a3e41926e9cc5d1d12c6f0b489e
@@ -114,6 +114,9 @@ module Athlete
114
114
  info "[#{logged_command}] [stderr] #{stderr}" if stderr != nil
115
115
  end
116
116
 
117
+ if retval.exitstatus != 0
118
+ raise Athlete::CommandExecutionFailed, "The command #{command} exited with non-zero status #{retval.exitstatus}"
119
+ end
117
120
  end
118
121
 
119
122
  def readable_output
@@ -106,7 +106,7 @@ module Athlete
106
106
  error << "The arguments parameter must be specified as an array" if @arguments && !@arguments.kind_of?(Array)
107
107
 
108
108
  unless errors.empty?
109
- raise ConfigurationInvalidException, @errors
109
+ raise ConfigurationInvalidException, errors
110
110
  end
111
111
  end
112
112
 
@@ -1,3 +1,3 @@
1
1
  module Athlete
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Sykes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler