train-core 3.12.13 → 3.13.2
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/train/platforms/detect/helpers/os_common.rb +4 -3
- data/lib/train/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6ced29649aad99b00f786b6cbef4777bd154195b676fea83eb16cb4fa1961f
|
4
|
+
data.tar.gz: 9c75c2a466e43432fa793a1342fa509b660750ba42350fcada2ec1953d001168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e3ceede17d733f9f3705cc07330a3a04b1facb8ff304ffc69a1f6cc4c1b3d0441edb43e0a13f13610071befc83da1f9fef861c25452d2174f9ba59ce325053
|
7
|
+
data.tar.gz: 36315a4aaac156242353457b9f7a0dbf2e8c35905f71308cfd7a3986f0bb7cef0cdea66b6ae6e5cca9960acbe38ab8a071b5d9d448b13b30f690e9e521d4c18f
|
@@ -8,7 +8,7 @@ module Train::Platforms::Detect::Helpers
|
|
8
8
|
include Train::Platforms::Detect::Helpers::Windows
|
9
9
|
|
10
10
|
def ruby_host_os(regex)
|
11
|
-
::RbConfig::CONFIG["host_os"]
|
11
|
+
regex.match?(::RbConfig::CONFIG["host_os"])
|
12
12
|
end
|
13
13
|
|
14
14
|
def winrm?
|
@@ -35,8 +35,9 @@ module Train::Platforms::Detect::Helpers
|
|
35
35
|
|
36
36
|
def command_output(cmd)
|
37
37
|
res = @backend.run_command(cmd)
|
38
|
-
|
39
|
-
|
38
|
+
# To suppress warning: literal string will be frozen in the future
|
39
|
+
stdout = String.new(res.stdout)
|
40
|
+
stderr = String.new(res.stderr)
|
40
41
|
# When you try to execute command using ssh connection as root user and you have provided ssh user identity file
|
41
42
|
# it gives standard output to login as authorized user other than root. To show this standard output as an error
|
42
43
|
# to user we are matching the string of stdout and raising the error here so that user gets exact information.
|
data/lib/train/version.rb
CHANGED
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.
|
4
|
+
version: 3.13.2
|
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: 2025-
|
11
|
+
date: 2025-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: ffi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.16.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.16.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: 3.1.0
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - ">="
|