shells 0.1.13 → 0.1.14
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 +3 -3
- 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: deb503621ed53873d55b579bbe6f2c9ef8e031ce
|
4
|
+
data.tar.gz: 0da90d54124b3e02c55c2ac3df69f6b8db09d871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea7e947ee7797532aeb53dcde2ba5b92fd84580f7178820a0cefbf7253a973ac0bfa7246116906196769312b28f3752ea4fcd391a51c956a3f798208de594811
|
7
|
+
data.tar.gz: cc983d7364478548eeee1d081526b5c734a431ab19511345dc5f02b558a711e36c101ef4c8876b3f0aed4a54ca2a3b496e28226423a3497929bffbfab2e93e7c
|
data/lib/shells/shell_base.rb
CHANGED
@@ -572,7 +572,7 @@ module Shells
|
|
572
572
|
!(combined_output =~ prompt_match)
|
573
573
|
end
|
574
574
|
|
575
|
-
pos = combined_output =~ prompt_match
|
575
|
+
pos = (combined_output =~ prompt_match)
|
576
576
|
if combined_output[pos - 1] != "\n"
|
577
577
|
# no newline before prompt, fix that.
|
578
578
|
self.combined_output = combined_output[0...pos] + "\n" + combined_output[pos..-1]
|
@@ -603,7 +603,7 @@ module Shells
|
|
603
603
|
end
|
604
604
|
stderr_received do |data|
|
605
605
|
@last_input = Time.now
|
606
|
-
append_stderr
|
606
|
+
append_stderr strip_ansi_escape(data), &block
|
607
607
|
end
|
608
608
|
end
|
609
609
|
|
@@ -797,7 +797,7 @@ module Shells
|
|
797
797
|
def command_output(command)
|
798
798
|
# get everything except for the ending prompt.
|
799
799
|
ret =
|
800
|
-
if (prompt_pos = combined_output =~ prompt_match)
|
800
|
+
if (prompt_pos = (combined_output =~ prompt_match))
|
801
801
|
combined_output[0...prompt_pos]
|
802
802
|
else
|
803
803
|
combined_output
|
data/lib/shells/version.rb
CHANGED