inspec 3.6.2 → 3.6.4
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/lib/inspec/config.rb +8 -1
- 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: 4bd30e84acea77b1a9eec7c3d7ad6b70a429426f5d9509a492530c33e7d56500
|
|
4
|
+
data.tar.gz: 4c7bdaa11806e392213811053d9d742abb07064f95be42ca3ca54663ee7b8287
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0690a4812aa05a6b4393322e0910b7698498bd8a0b76609f7a0cee9e108f511c071b3dd946f8979390471dd678b1a98587c0a0daaeb42d47142ef84acd2cd498'
|
|
7
|
+
data.tar.gz: 404249ed309a38bd4add6f0f583e6eadccb9097cf76a6ab46c29d91005978c587c3f06bbc9998607f89cc47cc323ea1c3d7affbf6442ebc17d2c0f75c1234742
|
data/lib/inspec/config.rb
CHANGED
|
@@ -177,8 +177,15 @@ module Inspec
|
|
|
177
177
|
path
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
+
# When reading STDIN, read it once into a class variable and cache it.
|
|
181
|
+
# Don't cache other IO objects though, as we use several different StringIOs
|
|
182
|
+
# during unit testing. Refs #3792
|
|
183
|
+
def self.stdin_contents # rubocop: disable Lint/IneffectiveAccessModifier
|
|
184
|
+
@stdin_content ||= STDIN.read
|
|
185
|
+
end
|
|
186
|
+
|
|
180
187
|
def read_cfg_file_io(cfg_io)
|
|
181
|
-
contents = cfg_io.read
|
|
188
|
+
contents = cfg_io == STDIN ? self.class.stdin_contents : cfg_io.read
|
|
182
189
|
begin
|
|
183
190
|
@cfg_file_contents = JSON.parse(contents)
|
|
184
191
|
validate_config_file_contents!
|
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: 3.6.
|
|
4
|
+
version: 3.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dominik Richter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: train
|