diff options
author | Saku Ytti <saku@ytti.fi> | 2015-09-17 13:41:33 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-09-17 13:41:33 +0300 |
commit | abfac72eb83fef559ba6d5b9a46ec63cd7eb4e39 (patch) | |
tree | bb7a5d3c3e040e21afe088149b95c4177836f738 /lib/oxidized/hook/exec.rb | |
parent | 08a95674c64edce5091423acaebc85a1d50eafb9 (diff) |
restore ruby 1.9.3 compatibility0.8.1
fix some whitespaces
bump up gemspec version
Diffstat (limited to 'lib/oxidized/hook/exec.rb')
-rw-r--r-- | lib/oxidized/hook/exec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/hook/exec.rb b/lib/oxidized/hook/exec.rb index eb71466..af2aeb1 100644 --- a/lib/oxidized/hook/exec.rb +++ b/lib/oxidized/hook/exec.rb @@ -9,9 +9,9 @@ class Exec < Oxidized::Hook def validate_cfg! # Syntax check - if cfg.has_key? "timeout" + if cfg.has_key? "timeout" @timeout = cfg.timeout - raise "invalid timeout value" unless @timeout.is_a?(Integer) && + raise "invalid timeout value" unless @timeout.is_a?(Integer) && @timeout > 0 end @@ -25,7 +25,7 @@ class Exec < Oxidized::Hook end rescue RuntimeError => e - raise ArgumentError, + raise ArgumentError, "#{self.class.name}: configuration invalid: #{e.message}" end |