knife-essentials 0.9.7 → 0.9.8

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.
@@ -216,7 +216,7 @@ class Chef
216
216
  end
217
217
  command_output = `#{command}`
218
218
  command_output = sub_filenames(command_output, tempfiles)
219
- output command_output
219
+ stdout.write command_output
220
220
 
221
221
  # Check if the output is different
222
222
  tempfiles.each_pair do |tempfile, file|
@@ -243,7 +243,7 @@ class Chef
243
243
  diff = `diff -u #{old_file.path} #{tempfile.path}`
244
244
  diff.gsub!(old_file.path, "#{format_path(file[:file])} (old)")
245
245
  diff.gsub!(tempfile.path, "#{format_path(file[:file])} (new)")
246
- output diff
246
+ stdout.write diff
247
247
  ensure
248
248
  old_file.close!
249
249
  end
@@ -255,7 +255,7 @@ class Chef
255
255
 
256
256
  def sub_filenames(str, tempfiles)
257
257
  tempfiles.each_pair do |tempfile, file|
258
- str.gsub!(tempfile.path, format_path(file[:file]))
258
+ str = str.gsub(tempfile.path, format_path(file[:file]))
259
259
  end
260
260
  str
261
261
  end
@@ -1,3 +1,3 @@
1
1
  module ChefFS
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-essentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef-zero