chake 0.15 → 0.16

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: 97aa2aa5205e9b1f7443dac44a1dd76820dd1075
4
- data.tar.gz: 0ea452333ef4fce2a152aa437dde099940f18da0
3
+ metadata.gz: 1c5de6dc187e73f8e32845104205dfae9f7c1c67
4
+ data.tar.gz: 264ee4d200a5b7147ba63148486fa4b081cf9e41
5
5
  SHA512:
6
- metadata.gz: b7107ef453e6f5289abb903055be87d5d63b9e8e411fc4884ef580e8f8a022c8d5dd895f6891728a8e81b028682b1198b28072e031a81b1d1a13a193bb86c842
7
- data.tar.gz: 558c7a4e2b1e960beb1d2bacdc0ad8e74d871fc1411666b544d5c88266a2205de3422f1ebf8f324f5338b553e4643df78dd8e432795b32b2756795be85027b11
6
+ metadata.gz: b61161a7cb9a9dfc42c7debd8928f3af11bc83020ac83b7552b7c66e7169b77ecfd3d890de1c7bc5e0665455329e1366bd5eaa685acae84214f3a62f3e0f8fb5
7
+ data.tar.gz: c8f177faaae5b431527ba22030c264613d24b14230a805da08950a596565fe023f9394456ea3d02c2b01a40dec0149afd465908a0765181ef7a31d785d165e4f
@@ -1,3 +1,9 @@
1
+ # 0.16
2
+
3
+ * make `run` also capture stderr, for now mixed together with stdout. In the
4
+ future that may be improved for example to print stderr output in red when
5
+ running on a TTY.
6
+
1
7
  # 0.15
2
8
 
3
9
  * improve text in the parallel execution docs
@@ -23,7 +23,7 @@ module Chake
23
23
 
24
24
  def run(cmd)
25
25
  printf "%#{Node.max_node_name_length}s: $ %s\n", node.hostname, cmd
26
- output = IO.popen(command_runner + [cmd])
26
+ output = IO.popen(command_runner + [cmd], err: [:child, :out])
27
27
  output.each_line do |line|
28
28
  printf "%#{Node.max_node_name_length}s: %s\n", node.hostname, line.strip
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.15"
2
+ VERSION = "0.16"
3
3
  end
@@ -20,7 +20,7 @@ shared_examples "Chake::Backend" do |backend_class|
20
20
 
21
21
  it('runs commands') do
22
22
  io = StringIO.new("line 1\nline 2\n")
23
- expect(IO).to receive(:popen).with(backend.command_runner + ['something']).and_return(io)
23
+ expect(IO).to receive(:popen).with(backend.command_runner + ['something'], Hash).and_return(io)
24
24
  expect(backend).to receive(:printf).with(anything, "myhost", "something")
25
25
  expect(backend).to receive(:printf).with(anything, "myhost", "line 1")
26
26
  expect(backend).to receive(:printf).with(anything, "myhost", "line 2")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.15'
4
+ version: '0.16'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.5.1
148
+ rubygems_version: 2.5.2
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: serverless configuration management tool for chef