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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7ae14a70d9a7a00a245ea4ae19094bed8e1677b
4
- data.tar.gz: 762e167c5daca6b2e378fd74a1bd540804949550
3
+ metadata.gz: deb503621ed53873d55b579bbe6f2c9ef8e031ce
4
+ data.tar.gz: 0da90d54124b3e02c55c2ac3df69f6b8db09d871
5
5
  SHA512:
6
- metadata.gz: 35c3b0460654bf793e01c0bf38723f3263c08a07eac6c4c11a6b7a8ad1196125dd5704521cb2643ce8bf5c68776619e5f7192dc0de4c75b8208006494baa1a3c
7
- data.tar.gz: 499fc9f2ca47528ed82223606b18dff28a78d1ec8eab57bd3874b722c4d38ea877febe3ed7b84421da2873accc479a9cab873e18917d53802b966b622e619419
6
+ metadata.gz: ea7e947ee7797532aeb53dcde2ba5b92fd84580f7178820a0cefbf7253a973ac0bfa7246116906196769312b28f3752ea4fcd391a51c956a3f798208de594811
7
+ data.tar.gz: cc983d7364478548eeee1d081526b5c734a431ab19511345dc5f02b558a711e36c101ef4c8876b3f0aed4a54ca2a3b496e28226423a3497929bffbfab2e93e7c
@@ -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 strip_ansi_escap(data), &block
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
@@ -1,3 +1,3 @@
1
1
  module Shells
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker