shells 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shells/shell_base.rb +1 -1
- data/lib/shells/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8031959f7c4931954cc4b0e994baeb07baacc525
|
4
|
+
data.tar.gz: 8b0bd0a83e7b57479e6077980a3cfd52caa446d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38b3a86b03c3cb8c0fd65d8b5ac2682a4da231049951413ae86515d7aa3f85749ee5a1bcf40e7063d1f5893e8a155df1b14b06e47b87fa0c5c7b6777bd9a5644
|
7
|
+
data.tar.gz: 8ac8cb433b8165d26ef51ae24c3a5be4537c1ae208e6a218379d53a9548ce9f25c8a2903b1b428dd7b7924dcfddf8bdde76e1563aac41511b7bea2a4df882f53
|
data/lib/shells/shell_base.rb
CHANGED
@@ -346,7 +346,7 @@ module Shells
|
|
346
346
|
options = { timeout_error: true }.merge(options)
|
347
347
|
options = self.options.merge(options.inject({}) { |m,(k,v)| m[k.to_sym] = v; m })
|
348
348
|
options[:retrieve_exit_code] = self.options[:retrieve_exit_code] if options[:retrieve_exit_code] == :default
|
349
|
-
options[:on_non_zero_exit_code] = self.options[:on_non_zero_exit_code] unless options[:on_non_zero_exit_code]
|
349
|
+
options[:on_non_zero_exit_code] = self.options[:on_non_zero_exit_code] unless [:raise, :ignore].include?(options[:on_non_zero_exit_code])
|
350
350
|
options[:silence_timeout] = self.options[:silence_timeout] if options[:silence_timeout] == :default
|
351
351
|
options[:command_timeout] = self.options[:command_timeout] if options[:command_timeout] == :default
|
352
352
|
ret = ''
|
data/lib/shells/version.rb
CHANGED