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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73cef55a9f03d277375cc9a8595106dfed5b137d37b59b423a877f20b3517781
4
- data.tar.gz: 82d70967052893b197de306d02a809b09ff5bb15288c9c26139c6feafe7cc739
3
+ metadata.gz: 8c6ced29649aad99b00f786b6cbef4777bd154195b676fea83eb16cb4fa1961f
4
+ data.tar.gz: 9c75c2a466e43432fa793a1342fa509b660750ba42350fcada2ec1953d001168
5
5
  SHA512:
6
- metadata.gz: 131639aca4c3b17c3da436bf0fefea1becb37f79cc778cd127f7864bf0cf9260e6d63254a00279e9b35d6df371e4673a5604a7b22951f3f54235328b7c629412
7
- data.tar.gz: cb562de67060c842a4e3fa86609ddf4f1fc45f50000024f8feab3a7050cc7bebc0b5ad7d0768a34eaa2572beec4f95a97d71c2d4e37b7782c5d26bc71c8f5608
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"] =~ regex
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
- stdout = res.stdout
39
- stderr = res.stderr
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
@@ -2,5 +2,5 @@
2
2
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
3
3
 
4
4
  module Train
5
- VERSION = "3.12.13".freeze
5
+ VERSION = "3.13.2".freeze
6
6
  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.12.13
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-04-30 00:00:00.000000000 Z
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.13.0
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.13.0
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: '2.7'
186
+ version: 3.1.0
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - ">="