right_chimp 2.1.21 → 2.1.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42299d7dc40141d8d1552a18c9a032b0d94fd7ea
4
- data.tar.gz: 1fb2dec943f54313bb55df8b0d21674f5c213810
3
+ metadata.gz: 6f022467293e88c12aa9ad933c9e9a9b3e0e655b
4
+ data.tar.gz: 604197bb4e918af2147d30e51a5c3f878bba71ef
5
5
  SHA512:
6
- metadata.gz: 36320560e80b9c1c9ac510805fb893735c35d9effd0bc3ccc47f0924c50f8fa7b631822d9b43fab2df90f787aea0c568afcb73127d2f5c2b0c6a603cd6ba4a1a
7
- data.tar.gz: f04244176ab3475f2b89e1e14484046de783dd9863aadfdc180c96fe89e803e95b032a4fe15f3b9e20da734f6180f4a0d4bd8bb601f0e61f315cd714fa846eca
6
+ metadata.gz: 749b50fd69cd2aacc2720695436b80c1f256cdf974e8837975c8bc016a6159c7a8e65229338613367b7f12f7d77db4c43c8403274e70e9408806a5d27d42cda2
7
+ data.tar.gz: 352fa926317812bcef270d5a64c80fc3a85040ca64ec4162e2197e0d851e5ddfa984f25e839db231fbbe4eba4d54ef34890d912f404e1b73d2ed8b1192cdccbd
data/CHANGES CHANGED
@@ -176,3 +176,7 @@ Version 2.1.20
176
176
  Version 2.1.21
177
177
  --------------
178
178
  * Bugfix: Pull the correct path whenever loading up the erb template in webui.
179
+
180
+ Version 2.1.22
181
+ --------------
182
+ * Bugfix: use 'pause' behaviour if there are no contents in stdin
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- right_chimp (2.1.21)
4
+ right_chimp (2.1.22)
5
5
  highline (~> 1.7.2)
6
6
  nokogiri (~> 1.6.7.1)
7
7
  progressbar (~> 0.11.0)
@@ -1011,6 +1011,15 @@ module Chimp
1011
1011
  puts "(A)bort chimp run"
1012
1012
  puts "(I)gnore errors and continue"
1013
1013
  command = gets()
1014
+ if command.nil?
1015
+ #
1016
+ # if command is nil, stdin is closed or its source ended
1017
+ # probably because we are in an automated environment,
1018
+ # then we pause like in '--no-prompt' scenario
1019
+ #
1020
+ puts 'Warning! stdin empty, using pause behaviour, use --no-prompt to avoid this message'
1021
+ return 'pause'
1022
+ end
1014
1023
 
1015
1024
  if command =~ /^a/i
1016
1025
  puts "Aborting!"
@@ -1,3 +1,3 @@
1
1
  module Chimp
2
- VERSION = "2.1.21"
2
+ VERSION = "2.1.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_chimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.21
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - RightScale Operations
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake