inspec-core 2.3.23 → 2.3.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -22
- data/lib/inspec/plugin/v2/installer.rb +28 -9
- data/lib/inspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a044a703a7706c3e6bbc2fb70f57cfd2fdf5e591f3c8d65ce468aa59e70452
|
4
|
+
data.tar.gz: 58f3fc85cbde3ddaf7893783f270739da5908f0e078953e9f5fe8a857df7ef75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5392bb427b8599300233b82a2be890115fd906b76a79920ce3e3957dd197617eef3981fb20f7b78b0c7d0c7e5b8be5f6017de353bfcd5b93f575bf1516bd82
|
7
|
+
data.tar.gz: 9d1ddfaf201def4450cbe225c980be0dcad761e92c66636df44aced2b391cb3b22b454a17d1db903899305f3a51bb303ee2b158401f1c8c62d46e009078da733
|
data/CHANGELOG.md
CHANGED
@@ -1,36 +1,42 @@
|
|
1
1
|
# Change Log
|
2
2
|
<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
|
3
|
-
<!-- latest_release 2.3.
|
4
|
-
## [v2.3.
|
3
|
+
<!-- latest_release 2.3.24 -->
|
4
|
+
## [v2.3.24](https://github.com/inspec/inspec/tree/v2.3.24) (2018-10-12)
|
5
5
|
|
6
|
-
####
|
7
|
-
- Fix plugin issues
|
6
|
+
#### Bug Fixes
|
7
|
+
- Fix plugin install issues in different ruby envs [#3505](https://github.com/inspec/inspec/pull/3505) ([jquick](https://github.com/jquick))
|
8
8
|
<!-- latest_release -->
|
9
9
|
|
10
|
-
<!-- release_rollup since=2.3.
|
11
|
-
### Changes since 2.3.
|
10
|
+
<!-- release_rollup since=2.3.23 -->
|
11
|
+
### Changes since 2.3.23 release
|
12
|
+
|
13
|
+
#### Bug Fixes
|
14
|
+
- Fix plugin install issues in different ruby envs [#3505](https://github.com/inspec/inspec/pull/3505) ([jquick](https://github.com/jquick)) <!-- 2.3.24 -->
|
15
|
+
<!-- release_rollup -->
|
16
|
+
|
17
|
+
<!-- latest_stable_release -->
|
18
|
+
## [v2.3.23](https://github.com/inspec/inspec/tree/v2.3.23) (2018-10-12)
|
12
19
|
|
13
20
|
#### Enhancements
|
14
|
-
- Plugins: Filter Plugins During Search and Install [#3458](https://github.com/inspec/inspec/pull/3458) ([clintoncwolfe](https://github.com/clintoncwolfe))
|
21
|
+
- Plugins: Filter Plugins During Search and Install [#3458](https://github.com/inspec/inspec/pull/3458) ([clintoncwolfe](https://github.com/clintoncwolfe))
|
15
22
|
|
16
23
|
#### Bug Fixes
|
17
|
-
-
|
18
|
-
- Fix error on empty attributes yaml [#3485](https://github.com/inspec/inspec/pull/3485) ([jquick](https://github.com/jquick))
|
19
|
-
-
|
24
|
+
- small fix - update to AlpinePkg Class [#3483](https://github.com/inspec/inspec/pull/3483) ([aaronlippold](https://github.com/aaronlippold))
|
25
|
+
- Fix error on empty attributes yaml [#3485](https://github.com/inspec/inspec/pull/3485) ([jquick](https://github.com/jquick))
|
26
|
+
- Backport compliance namespace and add testing for A2 audit report. [#3493](https://github.com/inspec/inspec/pull/3493) ([jquick](https://github.com/jquick))
|
20
27
|
|
21
28
|
#### Merged Pull Requests
|
22
|
-
- Fix
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
- Remove 'demo' from website. [#3475](https://github.com/inspec/inspec/pull/3475) ([miah](https://github.com/miah))
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
- Fix
|
31
|
-
<!-- release_rollup -->
|
32
|
-
|
29
|
+
- Fix archive with required attributes [#3468](https://github.com/inspec/inspec/pull/3468) ([jquick](https://github.com/jquick))
|
30
|
+
- Exclude docs and examples from the gem [#3471](https://github.com/inspec/inspec/pull/3471) ([tas50](https://github.com/tas50))
|
31
|
+
- Fix Packages Resource Docs [#3469](https://github.com/inspec/inspec/pull/3469) ([pwelch](https://github.com/pwelch))
|
32
|
+
- Enable compression for deb/rpm packages [#3472](https://github.com/inspec/inspec/pull/3472) ([tas50](https://github.com/tas50))
|
33
|
+
- Remove 'demo' from website. [#3475](https://github.com/inspec/inspec/pull/3475) ([miah](https://github.com/miah))
|
34
|
+
- Skip running appveyor on docs and examples [#3474](https://github.com/inspec/inspec/pull/3474) ([btm](https://github.com/btm))
|
35
|
+
- docs: Add version to multiple descriptions doc [#3477](https://github.com/inspec/inspec/pull/3477) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
36
|
+
- Set a static node GUID for travis runs [#3497](https://github.com/inspec/inspec/pull/3497) ([jquick](https://github.com/jquick))
|
37
|
+
- Fix plugin issues on omni builds [#3499](https://github.com/inspec/inspec/pull/3499) ([jquick](https://github.com/jquick))
|
33
38
|
<!-- latest_stable_release -->
|
39
|
+
|
34
40
|
## [v2.3.10](https://github.com/inspec/inspec/tree/v2.3.10) (2018-10-04)
|
35
41
|
|
36
42
|
#### Enhancements
|
@@ -43,7 +49,6 @@
|
|
43
49
|
|
44
50
|
#### Merged Pull Requests
|
45
51
|
- Fix `attribute` with empty hash regression [#3454](https://github.com/inspec/inspec/pull/3454) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
46
|
-
<!-- latest_stable_release -->
|
47
52
|
|
48
53
|
## [v2.3.5](https://github.com/inspec/inspec/tree/v2.3.5) (2018-10-01)
|
49
54
|
|
@@ -390,25 +390,44 @@ module Inspec::Plugin::V2
|
|
390
390
|
# Utilities
|
391
391
|
#===================================================================#
|
392
392
|
|
393
|
-
# This class alows us to build a
|
393
|
+
# This class alows us to build a Resolver set with the gems that are
|
394
394
|
# already included either with Ruby or with the InSpec install
|
395
|
-
|
395
|
+
#
|
396
|
+
# This code is heavily based on:
|
397
|
+
# https://github.com/hashicorp/vagrant/blob/master/lib/vagrant/bundler.rb#L400
|
398
|
+
# https://github.com/hashicorp/vagrant/blob/master/lib/vagrant/bundler.rb#L565
|
399
|
+
class InstalledVendorSet < Gem::Resolver::Set
|
396
400
|
def initialize
|
397
401
|
super
|
402
|
+
@remote = false
|
403
|
+
@specs = []
|
398
404
|
|
405
|
+
# Grab any pre loaded gems
|
399
406
|
Gem::Specification.find_all do |spec|
|
400
|
-
@specs
|
401
|
-
@directories[spec] = spec.gem_dir
|
407
|
+
@specs << spec
|
402
408
|
end
|
403
409
|
|
410
|
+
# find all gem specification directories
|
411
|
+
directories = [Gem::Specification.default_specifications_dir]
|
404
412
|
if !defined?(::Bundler)
|
405
|
-
|
413
|
+
# add in any others that do not start with the user directory
|
414
|
+
directories += Gem::Specification.dirs.find_all do |path|
|
406
415
|
!path.start_with?(Gem.user_dir)
|
407
416
|
end
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
417
|
+
end
|
418
|
+
|
419
|
+
# add them all to the specs array
|
420
|
+
Gem::Specification.each_spec(directories) do |spec|
|
421
|
+
@specs << spec
|
422
|
+
end
|
423
|
+
|
424
|
+
# resolver expects one of each spec so uniq here.
|
425
|
+
@specs.uniq!
|
426
|
+
end
|
427
|
+
|
428
|
+
def find_all(req)
|
429
|
+
@specs.select { |spec| req.match?(spec) }.map do |spec|
|
430
|
+
Gem::Resolver::InstalledSpecification.new(self, spec)
|
412
431
|
end
|
413
432
|
end
|
414
433
|
end
|
data/lib/inspec/version.rb
CHANGED