shells 0.1.18 → 0.1.19
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 +4 -4
- data/lib/shells/shell_base.rb +5 -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: 302f3e301fe60f6a3d26dbc63e4cb19bcff97f5f
|
|
4
|
+
data.tar.gz: bd93b67cf1f7fcda21904dc22a7ae04bce1cc63e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1c321b8cd282bb8a6d7f2b6eca944b06d7de52c5fff87c652a97cb4a2af695063c3ec1b7d6de4908f61c7fd24c4174fe58199d55d840806c183641f2377c055
|
|
7
|
+
data.tar.gz: df0ab5a1d5f2ab43e7a555bc4f70f83620c536736ec3aef486d33e32b395e87df779806f66ef9b4435547bdfedddabe637548ebff99f712040c3ab5cb45403ab
|
data/lib/shells/shell_base.rb
CHANGED
|
@@ -812,7 +812,11 @@ module Shells
|
|
|
812
812
|
until result_data.to_s.strip == '' || result_cmd.strip =~ command_regex
|
|
813
813
|
result_cmd,_,result_data = result_data.partition("\n")
|
|
814
814
|
end
|
|
815
|
-
|
|
815
|
+
|
|
816
|
+
if result_cmd.nil? || !(result_cmd =~ command_regex)
|
|
817
|
+
STDERR.puts "SHELL WARNING: Failed to match #{command_regex.inspect}."
|
|
818
|
+
end
|
|
819
|
+
|
|
816
820
|
result_data
|
|
817
821
|
end
|
|
818
822
|
|
data/lib/shells/version.rb
CHANGED