train-core 3.2.22 → 3.2.23

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: 7c7224fcb11f89a3eef30fa1e5299bb8228684b63f66285d1f2a93d21c9dba1d
4
- data.tar.gz: 17c5877cdfa5b66acc45bd9a9e9879283ab77a199f2f18d04fa03d4452e16396
3
+ metadata.gz: 8833b9ed7f5a514eeea468cfa0864297f20a189310da62c63adbdb97ff6c68bb
4
+ data.tar.gz: f059ae5832a58daa8d45da3a27816097e8eabb7728f63207e4ef94a9fb4b161e
5
5
  SHA512:
6
- metadata.gz: 7e09ea633fc06a6a9417f45814529feca0006c6322bcd4e0ede9f2f4bae3ba479ace2c59e5c6591411379e3290eb46daf7b99fc182885aa5121baa51604de825
7
- data.tar.gz: 3855cfa50fd0a3765764ff491050c2c7cb2b849b1bdbe42aa440766ed071f4a3a9c0b6b20572d3b8e7132f7073351787879f4dd54259625388595644cd050085
6
+ metadata.gz: 4d7fb1e26cb9a08eb9ce0c854dae087f732b804e1b8f8ba226c0c52b7e9a2214f1ebdd630597de3da28c5c65546a7bb5873225ecd314b16ee9ae7ca7a565a0e4
7
+ data.tar.gz: 4d89339a331457c22b45fe6ace83efcf7ca93b57c506d8cb4cd84179b4e553afb257242ca2e0976de73da715f11dbf24634f0c69c43a742b7a4b77a590bab166
@@ -55,11 +55,10 @@ module Train::Extras
55
55
 
56
56
  # (see CommandWrapperBase::verify)
57
57
  def verify
58
+ # Do nothing, successfully. Don't use "true", that's not available on Windows.
58
59
  cmd = if @sudo
59
60
  # Wrap it up. It needs /dev/null on the outside to disable stdin
60
- # NOTE: can't use @sudo_command because -v conflicts with -E.
61
- # See test-kitchen's use of this variable for conflict.
62
- "sh -c '(sudo -v) < /dev/null'"
61
+ "sh -c '(#{run("echo")}) < /dev/null'"
63
62
  else
64
63
  run("echo")
65
64
  end
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = "3.2.22".freeze
6
+ VERSION = "3.2.23".freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.22
4
+ version: 3.2.23
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-02-14 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable