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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5866bdaba80db3f77d6a3a31af54fcdc6584cb0315093975a90e2a67616b95bd
4
- data.tar.gz: a7a84ee7bba5072fc042ea7bd9af8692808e3cc4ae328d182c9af05dd495affd
3
+ metadata.gz: 07ce3c9c460909bfb27d25c98f2911d44d3319e287e1befb072b0a8d09e22f3d
4
+ data.tar.gz: 7158a199c122637211d0a4b9e2e2795b4ec100709a16a1a38be6195d904eaf7d
5
5
  SHA512:
6
- metadata.gz: 438487cd4e20e19f95c767d5627b246f8db486b9686df766ec1cc17883b93aeffad42e86f7bcdc513ecb6b39fa85c2a1f8d4344f1675b8c3768877204abef000
7
- data.tar.gz: 32e554b6063e10342aa64d1f5697cc39b1c1b69f6e8b2af19367595b61fe5ef4c6f0c37d121db9195291430a62782bb52bb643c5275e07bda2f2a52054f8b8e5
6
+ metadata.gz: e51b5023ca17e20878508e7bb9b7f1abcd8c603676bba0f0a38644d7bd33165700f6fbe251ee61e15beff9c93304b55888bf346ec4228275d57f2201f2dbdcac
7
+ data.tar.gz: 473ce96487948f10e81af956690fcb7ef1ca6d0924809d15099ff0919a01a2cc15b0c87ca470a0fb277e8d4086384c281ab4f3b86a6fb61d7b2923be4def5d3f
@@ -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", "~> 0.8"
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"
@@ -36,8 +36,13 @@ module Inspec
36
36
  end
37
37
 
38
38
  # configure pry shell prompt
39
- Pry.config.prompt_name = "inspec"
40
- Pry.prompt = [proc { "#{readline_ignore("\e[1m\e[32m")}#{Pry.config.prompt_name}> #{readline_ignore("\e[0m")}" }]
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::Terminal.width! - 1)
72
+ Pry::ColorPrinter.pp(value, pager, Pry::Output.new(pry).width - 1)
68
73
  end
69
74
  end
70
75
  end
@@ -1,3 +1,3 @@
1
1
  module Inspec
2
- VERSION = "4.18.104".freeze
2
+ VERSION = "4.18.108".freeze
3
3
  end
@@ -302,6 +302,10 @@ module InspecPlugins
302
302
  )
303
303
  true
304
304
  else
305
+ Inspec::Log.debug(
306
+ "Received #{response.code} from #{url}#{automate_endpoint} - " \
307
+ "assuming target is not an #{AUTOMATE_PRODUCT_NAME}2 instance"
308
+ )
305
309
  false
306
310
  end
307
311
  end
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.104
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-07 00:00:00.000000000 Z
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