inspec 0.16.2 → 0.16.3
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 +4 -4
- data/CHANGELOG.md +17 -2
- data/lib/bundles/inspec-compliance/api.rb +1 -2
- data/lib/bundles/inspec-compliance/cli.rb +3 -3
- data/lib/inspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 099f28bc15ad81e92f9379b4ec5c5139bb5d15da
|
|
4
|
+
data.tar.gz: abc9fc258cc2dcb2aa3f63b07d7f4bb29b12f241
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49c07980edfd876736a100b579e07c4c2ddeb1aaae5fbb101bd3aada2454a65bee2ffcfd38e42d2422914e287e59c355d68aa7d7a5d935b70c5cb92d212ed621
|
|
7
|
+
data.tar.gz: 1cdbffb6a1b6571e6f42cbc157b10de9b0517daef43552359cb627ad5d6c30aebf33484cf7db03a3b1087ac6c3ef638b5a976d0965c0deb26fc920bfcbbd7056
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.16.
|
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v0.16.
|
|
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
|
-
|
|
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({
|
|
103
|
+
profile.archive({ output: archive_path, ignore_errors: false, overwrite: true })
|
|
104
104
|
else
|
|
105
105
|
archive_path = path
|
|
106
106
|
end
|
data/lib/inspec/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: r-train
|