chef 0.8.2 → 0.8.4

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.
@@ -27,7 +27,7 @@ require 'chef/config'
27
27
  Dir[File.join(File.dirname(__FILE__), 'chef/mixin/**/*.rb')].sort.each { |lib| require lib }
28
28
 
29
29
  class Chef
30
- VERSION = '0.8.2'
30
+ VERSION = '0.8.4'
31
31
  end
32
32
 
33
33
  # Adds a Dir.glob to Ruby 1.8.5, for compat
@@ -71,7 +71,7 @@ class Chef
71
71
  ca_cert.sign keypair, OpenSSL::Digest::SHA1.new
72
72
 
73
73
  File.open(ca_cert_file, "w") { |f| f.write ca_cert.to_pem }
74
- File.open(ca_keypair_file, "w") { |f| f.write keypair.to_pem }
74
+ File.open(ca_keypair_file, File::WRONLY|File::EXCL|File::CREAT, 0600) { |f| f.write keypair.to_pem }
75
75
  end
76
76
  self
77
77
  end
@@ -7,7 +7,7 @@ require 'openssl'
7
7
  class Chef
8
8
  class StreamingCookbookUploader
9
9
 
10
- DefaultHeaders = { 'accept' => 'application/json' }
10
+ DefaultHeaders = { 'accept' => 'application/json', 'x-chef-version' => ::Chef::VERSION }
11
11
 
12
12
  class << self
13
13
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 2
9
- version: 0.8.2
8
+ - 4
9
+ version: 0.8.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Jacob
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-02-28 00:00:00 -08:00
17
+ date: 2010-03-02 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency