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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17c51957624df054318ca580aa5c5b8819779b6a8e908a8733d3ebaa8de324d4
4
- data.tar.gz: 35923b58619c9ea189a3f41a10726c701bf149e3bbc85fe149c610625832725d
3
+ metadata.gz: 12a044a703a7706c3e6bbc2fb70f57cfd2fdf5e591f3c8d65ce468aa59e70452
4
+ data.tar.gz: 58f3fc85cbde3ddaf7893783f270739da5908f0e078953e9f5fe8a857df7ef75
5
5
  SHA512:
6
- metadata.gz: 39ba1aafa5dbf29b15577093145d5fc3a1385aefa588369d8e08c28af1750c8a5182cf86e093e705b177b28ee8d97dcc9905563f8c1ee5f3ecc128be8a26b6ce
7
- data.tar.gz: 1b0f13cf9321e3ab9fcd692b41268422f2a9fd954510a853e2b27468453c67cae78ac4885e37f8d0819aac970b1d10560c2ca17d4d3950cd47d2c30e3aa7a71f
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.23 -->
4
- ## [v2.3.23](https://github.com/inspec/inspec/tree/v2.3.23) (2018-10-12)
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
- #### Merged Pull Requests
7
- - Fix plugin issues on omni builds [#3499](https://github.com/inspec/inspec/pull/3499) ([jquick](https://github.com/jquick))
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.10 -->
11
- ### Changes since 2.3.10 release
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)) <!-- 2.3.20 -->
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
- - Backport compliance namespace and add testing for A2 audit report. [#3493](https://github.com/inspec/inspec/pull/3493) ([jquick](https://github.com/jquick)) <!-- 2.3.21 -->
18
- - Fix error on empty attributes yaml [#3485](https://github.com/inspec/inspec/pull/3485) ([jquick](https://github.com/jquick)) <!-- 2.3.19 -->
19
- - small fix - update to AlpinePkg Class [#3483](https://github.com/inspec/inspec/pull/3483) ([aaronlippold](https://github.com/aaronlippold)) <!-- 2.3.16 -->
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 plugin issues on omni builds [#3499](https://github.com/inspec/inspec/pull/3499) ([jquick](https://github.com/jquick)) <!-- 2.3.23 -->
23
- - Set a static node GUID for travis runs [#3497](https://github.com/inspec/inspec/pull/3497) ([jquick](https://github.com/jquick)) <!-- 2.3.22 -->
24
- - docs: Add version to multiple descriptions doc [#3477](https://github.com/inspec/inspec/pull/3477) ([jerryaldrichiii](https://github.com/jerryaldrichiii)) <!-- 2.3.18 -->
25
- - Skip running appveyor on docs and examples [#3474](https://github.com/inspec/inspec/pull/3474) ([btm](https://github.com/btm)) <!-- 2.3.17 -->
26
- - Remove &#39;demo&#39; from website. [#3475](https://github.com/inspec/inspec/pull/3475) ([miah](https://github.com/miah)) <!-- 2.3.15 -->
27
- - Enable compression for deb/rpm packages [#3472](https://github.com/inspec/inspec/pull/3472) ([tas50](https://github.com/tas50)) <!-- 2.3.14 -->
28
- - Fix Packages Resource Docs [#3469](https://github.com/inspec/inspec/pull/3469) ([pwelch](https://github.com/pwelch)) <!-- 2.3.13 -->
29
- - Exclude docs and examples from the gem [#3471](https://github.com/inspec/inspec/pull/3471) ([tas50](https://github.com/tas50)) <!-- 2.3.12 -->
30
- - Fix archive with required attributes [#3468](https://github.com/inspec/inspec/pull/3468) ([jquick](https://github.com/jquick)) <!-- 2.3.11 -->
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 &#39;demo&#39; 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 Vendor set with the gems that are
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
- class InstalledVendorSet < Gem::Resolver::VendorSet
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[spec.name] = spec
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
- directories = Gem::Specification.dirs.find_all do |path|
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
- Gem::Specification.each_spec(directories) do |spec|
409
- @specs[spec.name] = spec
410
- @directories[spec] = spec.gem_dir
411
- end
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
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '2.3.23'
7
+ VERSION = '2.3.24'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.23
4
+ version: 2.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter