inspec 0.16.2 → 0.16.3

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: 2f33f41b2c19316d302c4891aa7f95c7eb608e4e
4
- data.tar.gz: c0d4de5dd94ca1263c5836b63719ec05dc26cfad
3
+ metadata.gz: 099f28bc15ad81e92f9379b4ec5c5139bb5d15da
4
+ data.tar.gz: abc9fc258cc2dcb2aa3f63b07d7f4bb29b12f241
5
5
  SHA512:
6
- metadata.gz: 7796905bf88f597c0ad335637fa2d10c6d0782b032b5f7bcccd502f87b0da1ac6817cecdd88a84509b0d5db0800c5033e9c34152dbd3d7ebac82369958b82b6d
7
- data.tar.gz: cdff84ba9cff5064c13c6d187129d4f5284fb293290f49e78b70fdf8e24c1ba5c645c58e8b5d1139cd916e73b4341c81a52fd269d140115bd065b176bfef0483
6
+ metadata.gz: 49c07980edfd876736a100b579e07c4c2ddeb1aaae5fbb101bd3aada2454a65bee2ffcfd38e42d2422914e287e59c355d68aa7d7a5d935b70c5cb92d212ed621
7
+ data.tar.gz: 1cdbffb6a1b6571e6f42cbc157b10de9b0517daef43552359cb627ad5d6c30aebf33484cf7db03a3b1087ac6c3ef638b5a976d0965c0deb26fc920bfcbbd7056
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [0.16.2](https://github.com/chef/inspec/tree/0.16.2) (2016-03-22)
4
- [Full Changelog](https://github.com/chef/inspec/compare/v0.16.1...0.16.2)
3
+ ## [0.16.3](https://github.com/chef/inspec/tree/0.16.3) (2016-03-23)
4
+ [Full Changelog](https://github.com/chef/inspec/compare/v0.16.2...0.16.3)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - inspec-compliance: fix upload of profiles [\#573](https://github.com/chef/inspec/pull/573) ([srenatus](https://github.com/srenatus))
9
+
10
+ **Closed issues:**
11
+
12
+ - Issues with 'inspec compliance upload' [\#572](https://github.com/chef/inspec/issues/572)
13
+
14
+ ## [v0.16.2](https://github.com/chef/inspec/tree/v0.16.2) (2016-03-22)
15
+ [Full Changelog](https://github.com/chef/inspec/compare/v0.16.1...v0.16.2)
5
16
 
6
17
  **Fixed bugs:**
7
18
 
@@ -11,6 +22,10 @@
11
22
 
12
23
  - inspec exec error on new install [\#569](https://github.com/chef/inspec/issues/569)
13
24
 
25
+ **Merged pull requests:**
26
+
27
+ - 0.16.2 [\#571](https://github.com/chef/inspec/pull/571) ([arlimus](https://github.com/arlimus))
28
+
14
29
  ## [v0.16.1](https://github.com/chef/inspec/tree/v0.16.1) (2016-03-22)
15
30
  [Full Changelog](https://github.com/chef/inspec/compare/v0.16.0...v0.16.1)
16
31
 
@@ -116,8 +116,7 @@ module Compliance
116
116
  req = Net::HTTP::Post.new(uri.path)
117
117
  req.basic_auth username, password
118
118
 
119
- req.body_stream=File.open(file_path)
120
- req['Content-Type'] = 'multipart/form-data'
119
+ req.body_stream=File.open(file_path, 'rb')
121
120
  req.add_field('Content-Length', File.size(file_path))
122
121
  req.add_field('Content-Type', 'application/x-gtar')
123
122
 
@@ -97,10 +97,10 @@ module Compliance
97
97
 
98
98
  # if it is a directory, tar it to tmp directory
99
99
  if File.directory?(path)
100
- file = Tempfile.new([profile_name, '.tar.gz'])
101
- archive_path = file.path
100
+ archive_path = Dir::Tmpname.create([profile_name, '.tar.gz']) {}
101
+ # archive_path = file.path
102
102
  puts "Generate temporary profile archive at #{archive_path}"
103
- profile.archive({ archive: archive_path, ignore_errors: false, overwrite: true })
103
+ profile.archive({ output: archive_path, ignore_errors: false, overwrite: true })
104
104
  else
105
105
  archive_path = path
106
106
  end
@@ -3,5 +3,5 @@
3
3
  # author: Christoph Hartmann
4
4
 
5
5
  module Inspec
6
- VERSION = '0.16.2'.freeze
6
+ VERSION = '0.16.3'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: r-train