inspec-core 4.37.23 → 4.37.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inspec/fetcher/local.rb +2 -1
- data/lib/inspec/fetcher/mock.rb +5 -3
- data/lib/inspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e113de1997a85e75b6186d7704201915862612280bced44513199bbb64b0e40
|
4
|
+
data.tar.gz: c0962fb880cb50ffed8519aa952c728492dc35d0f232b148e20a30bcb0f5eca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16439816a2895607b2f2181ba4145911d786dac1940e00e31b9d271ef0af6315f54cee354d6fc8f2faccd069a2183c2da3f35aa4f242513d9e68c5c6b5ad2fd6
|
7
|
+
data.tar.gz: f19ec8498e808e36140353208bea624b02ebe0461bbce4cc133e190b763afd53478557a2e4bd6177d73c5cd6c90e56ac9cd5c82245493fb71015834da6414da3
|
data/lib/inspec/fetcher/local.rb
CHANGED
@@ -3,7 +3,8 @@ require "openssl" unless defined?(OpenSSL)
|
|
3
3
|
module Inspec::Fetcher
|
4
4
|
class Local < Inspec.fetcher(1)
|
5
5
|
name "local"
|
6
|
-
priority
|
6
|
+
priority 1
|
7
|
+
# Priority is used for setting precedence of fetchers. And registry plugin(v1) decides which fetcher to use for loading profiles by using this priority
|
7
8
|
|
8
9
|
def self.resolve(target)
|
9
10
|
if target.is_a?(String)
|
data/lib/inspec/fetcher/mock.rb
CHANGED
@@ -6,9 +6,11 @@ module Inspec::Fetcher
|
|
6
6
|
priority 0
|
7
7
|
|
8
8
|
def self.resolve(target)
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
if (target.is_a? Hash) && ((target.keys & %i{cwd path backend}).empty?)
|
10
|
+
new(target)
|
11
|
+
else
|
12
|
+
nil
|
13
|
+
end
|
12
14
|
end
|
13
15
|
|
14
16
|
def initialize(data)
|
data/lib/inspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.37.
|
4
|
+
version: 4.37.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef InSpec Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-telemetry
|