inspec 0.14.1 → 0.14.2
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/examples/resource/controls/tiny.rb +3 -0
- data/examples/resource/inspec.yml +10 -0
- data/examples/resource/libraries/tiny.rb +3 -0
- data/lib/bundles/inspec-compliance/cli.rb +1 -1
- data/lib/bundles/inspec-supermarket.rb +13 -0
- data/lib/inspec/plugins.rb +11 -4
- data/lib/inspec/version.rb +1 -1
- data/test/unit/mock/profiles/resource-tiny/inspec.yml +10 -0
- data/test/unit/mock/profiles/resource-tiny/libraries/resource.rb +3 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee4e0eeba70bb333ceb475748c630fddcf391b71
|
4
|
+
data.tar.gz: 9905be5cb12a127b4c76dbe94ffbd6ea56f2e94e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db089d42ea726c458809a1326beeb437e14d7b5bc0914974c7a84838c02dcda113307aa5088d0a0c2c0a57a5d7aff8bea787f135d4c04e32be463fc6fa335ff0
|
7
|
+
data.tar.gz: d04cb5ae70e8654386a5eba79a92f3dcf60b71c2bf6181e79cd1a78fd4f39d6a0fe41f336461d782368a4e4ad2a59f5aa2ccef6a4c8fded9cbcb8aeeaf3cab8c
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.14.
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v0.14.
|
3
|
+
## [0.14.2](https://github.com/chef/inspec/tree/0.14.2) (2016-02-22)
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.14.1...0.14.2)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- fix cc upload [\#483](https://github.com/chef/inspec/pull/483) ([chris-rock](https://github.com/chris-rock))
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- load plugins in the same gem installation [\#482](https://github.com/chef/inspec/pull/482) ([arlimus](https://github.com/arlimus))
|
13
|
+
|
14
|
+
## [v0.14.1](https://github.com/chef/inspec/tree/v0.14.1) (2016-02-22)
|
15
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.14.0...v0.14.1)
|
5
16
|
|
6
17
|
**Implemented enhancements:**
|
7
18
|
|
@@ -12,6 +23,10 @@
|
|
12
23
|
|
13
24
|
- ignore `pax\_global\_header` as valid file [\#480](https://github.com/chef/inspec/pull/480) ([chris-rock](https://github.com/chris-rock))
|
14
25
|
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- 0.14.1 [\#481](https://github.com/chef/inspec/pull/481) ([chris-rock](https://github.com/chris-rock))
|
29
|
+
|
15
30
|
## [v0.14.0](https://github.com/chef/inspec/tree/v0.14.0) (2016-02-22)
|
16
31
|
[Full Changelog](https://github.com/chef/inspec/compare/v0.13.0...v0.14.0)
|
17
32
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
name: resource
|
2
|
+
title: InSpec Example Resources
|
3
|
+
maintainer: Chef Software, Inc.
|
4
|
+
copyright: Chef Software, Inc.
|
5
|
+
copyright_email: support@chef.io
|
6
|
+
license: Apache 2 license
|
7
|
+
summary: Demonstrates the use of InSpec custom resources
|
8
|
+
version: 1.0.0
|
9
|
+
supports:
|
10
|
+
- linux
|
@@ -57,7 +57,7 @@ module Compliance
|
|
57
57
|
o = options.dup
|
58
58
|
configure_logger(o)
|
59
59
|
# check the profile, we only allow to upload valid profiles
|
60
|
-
profile = Inspec::Profile.
|
60
|
+
profile = Inspec::Profile.for_target(path, o)
|
61
61
|
|
62
62
|
# start verification process
|
63
63
|
error_count = 0
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# author: Christoph Hartmann
|
3
|
+
# author: Dominik Richter
|
4
|
+
|
5
|
+
libdir = File.dirname(__FILE__)
|
6
|
+
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
7
|
+
|
8
|
+
module Supermarket
|
9
|
+
autoload :API, 'inspec-supermarket/api'
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'inspec-supermarket/cli'
|
13
|
+
require 'inspec-supermarket/target'
|
data/lib/inspec/plugins.rb
CHANGED
@@ -24,11 +24,18 @@ module Inspec
|
|
24
24
|
def_delegator :registry, :keys, :list
|
25
25
|
|
26
26
|
def initialize(home = nil)
|
27
|
+
@paths = []
|
28
|
+
|
29
|
+
# load plugins in the same gem installation
|
30
|
+
lib_home = File.expand_path(File.join(__FILE__, '..', '..', '..', '..'))
|
31
|
+
@paths += Dir[lib_home+'/inspec-*-*/lib/inspec-*rb']
|
32
|
+
|
33
|
+
# traverse out of inspec-vX.Y.Z/lib/inspec/plugins.rb
|
27
34
|
@home = home || File.join(Dir.home, '.inspec', 'plugins')
|
28
|
-
@paths
|
29
|
-
|
30
|
-
|
31
|
-
|
35
|
+
@paths += Dir[File.join(@home, '**{,/*/**}', '*.gemspec')]
|
36
|
+
.map { |x| File.dirname(x) }
|
37
|
+
.map { |x| Dir[File.join(x, 'lib', 'inspec-*.rb')] }
|
38
|
+
.flatten
|
32
39
|
|
33
40
|
# load bundled plugins
|
34
41
|
bundled_dir = File.expand_path(File.dirname(__FILE__))
|
data/lib/inspec/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
name: complete
|
2
|
+
title: complete example profile
|
3
|
+
maintainer: Chef Software, Inc.
|
4
|
+
copyright: Chef Software, Inc.
|
5
|
+
copyright_email: support@chef.io
|
6
|
+
license: Proprietary, All rights reserved
|
7
|
+
summary: Testing stub
|
8
|
+
version: 1.0.0
|
9
|
+
supports:
|
10
|
+
- os-family: linux
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
@@ -207,6 +207,9 @@ files:
|
|
207
207
|
- examples/profile/controls/gordon.rb
|
208
208
|
- examples/profile/inspec.yml
|
209
209
|
- examples/profile/libraries/gordon_config.rb
|
210
|
+
- examples/resource/controls/tiny.rb
|
211
|
+
- examples/resource/inspec.yml
|
212
|
+
- examples/resource/libraries/tiny.rb
|
210
213
|
- inspec.gemspec
|
211
214
|
- lib/bundles/README.md
|
212
215
|
- lib/bundles/inspec-compliance.rb
|
@@ -221,6 +224,7 @@ files:
|
|
221
224
|
- lib/bundles/inspec-init/templates/profile/controls/example.rb
|
222
225
|
- lib/bundles/inspec-init/templates/profile/inspec.yml
|
223
226
|
- lib/bundles/inspec-init/templates/profile/libraries/.gitkeep
|
227
|
+
- lib/bundles/inspec-supermarket.rb
|
224
228
|
- lib/bundles/inspec-supermarket/README.md
|
225
229
|
- lib/bundles/inspec-supermarket/api.rb
|
226
230
|
- lib/bundles/inspec-supermarket/cli.rb
|
@@ -482,6 +486,8 @@ files:
|
|
482
486
|
- test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
|
483
487
|
- test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
|
484
488
|
- test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
|
489
|
+
- test/unit/mock/profiles/resource-tiny/inspec.yml
|
490
|
+
- test/unit/mock/profiles/resource-tiny/libraries/resource.rb
|
485
491
|
- test/unit/mock/profiles/simple-metadata/inspec.yml
|
486
492
|
- test/unit/plugin_test.rb
|
487
493
|
- test/unit/profile_context_test.rb
|
@@ -557,7 +563,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
557
563
|
version: '0'
|
558
564
|
requirements: []
|
559
565
|
rubyforge_project:
|
560
|
-
rubygems_version: 2.
|
566
|
+
rubygems_version: 2.5.1
|
561
567
|
signing_key:
|
562
568
|
specification_version: 4
|
563
569
|
summary: Infrastructure and compliance testing.
|
@@ -723,6 +729,8 @@ test_files:
|
|
723
729
|
- test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
|
724
730
|
- test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
|
725
731
|
- test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
|
732
|
+
- test/unit/mock/profiles/resource-tiny/inspec.yml
|
733
|
+
- test/unit/mock/profiles/resource-tiny/libraries/resource.rb
|
726
734
|
- test/unit/mock/profiles/simple-metadata/inspec.yml
|
727
735
|
- test/unit/plugin_test.rb
|
728
736
|
- test/unit/profile_context_test.rb
|