inspec-core 4.18.104 → 4.18.108
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/inspec-core.gemspec +2 -2
- data/lib/inspec/shell.rb +8 -3
- data/lib/inspec/version.rb +1 -1
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/api.rb +4 -0
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07ce3c9c460909bfb27d25c98f2911d44d3319e287e1befb072b0a8d09e22f3d
|
4
|
+
data.tar.gz: 7158a199c122637211d0a4b9e2e2795b4ec100709a16a1a38be6195d904eaf7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e51b5023ca17e20878508e7bb9b7f1abcd8c603676bba0f0a38644d7bd33165700f6fbe251ee61e15beff9c93304b55888bf346ec4228275d57f2201f2dbdcac
|
7
|
+
data.tar.gz: 473ce96487948f10e81af956690fcb7ef1ca6d0924809d15099ff0919a01a2cc15b0c87ca470a0fb277e8d4086384c281ab4f3b86a6fb61d7b2923be4def5d3f
|
data/inspec-core.gemspec
CHANGED
@@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "license-acceptance", ">= 0.2.13", "< 2.0"
|
28
28
|
spec.add_dependency "thor", ">= 0.20", "< 2.0"
|
29
29
|
spec.add_dependency "json_schemer", "~> 0.2.1"
|
30
|
-
spec.add_dependency "method_source", "
|
30
|
+
spec.add_dependency "method_source", ">= 0.8", "< 2.0"
|
31
31
|
spec.add_dependency "rubyzip", "~> 1.2", ">= 1.2.2"
|
32
32
|
spec.add_dependency "rspec", "~> 3.9"
|
33
33
|
spec.add_dependency "rspec-its", "~> 1.2"
|
34
|
-
spec.add_dependency "pry", "~> 0"
|
34
|
+
spec.add_dependency "pry", "~> 0.13"
|
35
35
|
spec.add_dependency "hashie", "~> 3.4"
|
36
36
|
spec.add_dependency "mixlib-log", "~> 3.0"
|
37
37
|
spec.add_dependency "sslshake", "~> 1.2"
|
data/lib/inspec/shell.rb
CHANGED
@@ -36,8 +36,13 @@ module Inspec
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# configure pry shell prompt
|
39
|
-
Pry.
|
40
|
-
|
39
|
+
Pry::Prompt.add(
|
40
|
+
:inspec,
|
41
|
+
"inspec custom prompt"
|
42
|
+
) do |_context, _nesting, _pry_instance, _sep|
|
43
|
+
"#{readline_ignore("\e[1m\e[32m")}inspec> #{readline_ignore("\e[0m")}"
|
44
|
+
end
|
45
|
+
Pry.config.prompt = Pry::Prompt[:inspec]
|
41
46
|
|
42
47
|
# Add a help menu as the default intro
|
43
48
|
Pry.hooks.add_hook(:before_session, "inspec_intro") do
|
@@ -64,7 +69,7 @@ module Inspec
|
|
64
69
|
|
65
70
|
pry.pager.open do |pager|
|
66
71
|
pager.print pry.config.output_prefix
|
67
|
-
Pry::ColorPrinter.pp(value, pager, Pry::
|
72
|
+
Pry::ColorPrinter.pp(value, pager, Pry::Output.new(pry).width - 1)
|
68
73
|
end
|
69
74
|
end
|
70
75
|
end
|
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.18.
|
4
|
+
version: 4.18.108
|
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: 2020-04-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-telemetry
|
@@ -82,16 +82,22 @@ dependencies:
|
|
82
82
|
name: method_source
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - "
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0.8'
|
88
|
+
- - "<"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '2.0'
|
88
91
|
type: :runtime
|
89
92
|
prerelease: false
|
90
93
|
version_requirements: !ruby/object:Gem::Requirement
|
91
94
|
requirements:
|
92
|
-
- - "
|
95
|
+
- - ">="
|
93
96
|
- !ruby/object:Gem::Version
|
94
97
|
version: '0.8'
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '2.0'
|
95
101
|
- !ruby/object:Gem::Dependency
|
96
102
|
name: rubyzip
|
97
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +152,14 @@ dependencies:
|
|
146
152
|
requirements:
|
147
153
|
- - "~>"
|
148
154
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
155
|
+
version: '0.13'
|
150
156
|
type: :runtime
|
151
157
|
prerelease: false
|
152
158
|
version_requirements: !ruby/object:Gem::Requirement
|
153
159
|
requirements:
|
154
160
|
- - "~>"
|
155
161
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0'
|
162
|
+
version: '0.13'
|
157
163
|
- !ruby/object:Gem::Dependency
|
158
164
|
name: hashie
|
159
165
|
requirement: !ruby/object:Gem::Requirement
|