inspec 0.22.0 → 0.22.1
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 +15 -2
- data/lib/inspec/runner_rspec.rb +7 -2
- 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: 4b5f2bef15c7f0f158ae2491912c6d61cb0b55f6
|
|
4
|
+
data.tar.gz: 1f27bbc177e50b663f76d4a48cfb87c8bd513bfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c07f9a7e558f6e3491b348179d7f867e04d723b5ec5fc40c60293d0b1f61e39e17c52f607c1856c8c1258f344084b10f5452c3569b41205d8c4bf37e2149130
|
|
7
|
+
data.tar.gz: b3d4af5f18744254ff7f88ae755c438e04c62b93b5fc7eefb4d7475e99bc11e16d3216453496d4464334ff6fbce0ef6aec5cb86a3b2979f8367255cceba8f780
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.22.
|
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v0.
|
|
3
|
+
## [0.22.1](https://github.com/chef/inspec/tree/0.22.1) (2016-05-18)
|
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.22.0...0.22.1)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- fix reporter/formatter disagreements [\#764](https://github.com/chef/inspec/pull/764) ([arlimus](https://github.com/arlimus))
|
|
9
|
+
|
|
10
|
+
**Closed issues:**
|
|
11
|
+
|
|
12
|
+
- port resource fails in docker containers because netstat is missing, but gives poor error output as to why. [\#762](https://github.com/chef/inspec/issues/762)
|
|
13
|
+
- Add support for alternate sudo command [\#755](https://github.com/chef/inspec/issues/755)
|
|
14
|
+
- Chef Compliance Server UI - Need capability to remove an uploaded profile [\#712](https://github.com/chef/inspec/issues/712)
|
|
15
|
+
|
|
16
|
+
## [v0.22.0](https://github.com/chef/inspec/tree/v0.22.0) (2016-05-16)
|
|
17
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.21.6...v0.22.0)
|
|
5
18
|
|
|
6
19
|
**Implemented enhancements:**
|
|
7
20
|
|
data/lib/inspec/runner_rspec.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Inspec
|
|
|
14
14
|
class RunnerRspec
|
|
15
15
|
def initialize(conf)
|
|
16
16
|
@conf = conf
|
|
17
|
+
@formatter = nil
|
|
17
18
|
reset_tests
|
|
18
19
|
configure_output
|
|
19
20
|
end
|
|
@@ -65,8 +66,12 @@ module Inspec
|
|
|
65
66
|
with.run_specs(tests)
|
|
66
67
|
end
|
|
67
68
|
|
|
69
|
+
# Provide an output hash of the run's report
|
|
70
|
+
#
|
|
71
|
+
# @return [Hash] a run's output hash
|
|
68
72
|
def report
|
|
69
|
-
reporter = RSpec.configuration.formatters
|
|
73
|
+
reporter = @formatter || RSpec.configuration.formatters[0]
|
|
74
|
+
return nil if reporter.nil? || !reporter.respond_to?(:output_hash)
|
|
70
75
|
reporter.output_hash
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -98,7 +103,7 @@ module Inspec
|
|
|
98
103
|
end
|
|
99
104
|
|
|
100
105
|
format = FORMATTERS[@conf['format']] || @conf['format'] || 'progress'
|
|
101
|
-
RSpec.configuration.add_formatter(format)
|
|
106
|
+
@formatter = RSpec.configuration.add_formatter(format)
|
|
102
107
|
RSpec.configuration.color = @conf['color']
|
|
103
108
|
|
|
104
109
|
setup_reporting if @conf['report']
|
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.22.
|
|
4
|
+
version: 0.22.1
|
|
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-05-
|
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: r-train
|