shells 0.1.18 → 0.1.19

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: dfc638465094c9b38eff3fb75fc5325cb7601810
4
- data.tar.gz: '094972dd5fa27394b26e953251eea3ea87ff84f1'
3
+ metadata.gz: 302f3e301fe60f6a3d26dbc63e4cb19bcff97f5f
4
+ data.tar.gz: bd93b67cf1f7fcda21904dc22a7ae04bce1cc63e
5
5
  SHA512:
6
- metadata.gz: ad2255fc5b7d41ebf1d99804d6ba9be36f989e8268024f7c5f08d6ea0e0fb79d93fcbdf062210ec5568ac37ecb00d493237a745f44bf15465f685cdd150c7094
7
- data.tar.gz: 1667f0e51d0464bd0b2a90d9c5f2762ae191d5a550c0bfacab8b2077de360447b3312d08f498ef27101ba25df90405ce7f68cd80da5f25a0937a3338c699efe9
6
+ metadata.gz: d1c321b8cd282bb8a6d7f2b6eca944b06d7de52c5fff87c652a97cb4a2af695063c3ec1b7d6de4908f61c7fd24c4174fe58199d55d840806c183641f2377c055
7
+ data.tar.gz: df0ab5a1d5f2ab43e7a555bc4f70f83620c536736ec3aef486d33e32b395e87df779806f66ef9b4435547bdfedddabe637548ebff99f712040c3ab5cb45403ab
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Shells
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shells
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker