train-core 1.7.6 → 2.0.0

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
- SHA256:
3
- metadata.gz: d04a9540dfda45b7ff57c63fc3164e9c761efb619280b2db796ce5e69ba3722a
4
- data.tar.gz: 34fefba6433cd529923bfef6d6054abe14a1f22f8da3f31c9b118527162c8b02
2
+ SHA1:
3
+ metadata.gz: 1e48b383137a442238a0d7518a5f09e160ff94c6
4
+ data.tar.gz: 9be9441c9ce6edb6d7df7369891edde5db0b1b34
5
5
  SHA512:
6
- metadata.gz: a9ebc590c7e8c021256a2c632931bfee757e9df8e5e72b816ef9f20cdf95abe46f299fe6cc04168085eac576caa963fed6077da45ab289d1d6308bcb26f54a7b
7
- data.tar.gz: 742ecb1dcb62b7a1a8d8f7548fd70ee7b7d5289a401403fc6b849a4177c89735599554348837ef94e53a1093acd1dbd8b77d9daf5d6bbc2c18eee70afe9d8a59
6
+ metadata.gz: f83820a41f4f17c02f395bf458f1ad4f0344d0dc2771278d9e5c171b54130ae0b25ae855122732c91b308102fb4258a94e45aee4ae2b83d83c277cdbf9349ae7
7
+ data.tar.gz: bd17a615120f7d7a5f85aa9f70ee85ca1f52565681320a9dcc8a03d88f5428bde43d084e3e572ec4fb2e7d13009b4eaddc8a60d252e4c4764db18b75c23e72f6
@@ -14,7 +14,8 @@ module Train::Platforms::Detect::Helpers
14
14
  end
15
15
 
16
16
  def winrm?
17
- @backend.class.to_s == 'Train::Transports::WinRM::Connection'
17
+ Object.const_defined?('Train::Transports::WinRM::Connection') &&
18
+ @backend.class == Train::Transports::WinRM::Connection
18
19
  end
19
20
 
20
21
  def unix_file_contents(path)
@@ -37,7 +37,6 @@ module Train::Platforms::Detect::Helpers
37
37
 
38
38
  raw.lines.each_with_object({}) do |line, memo|
39
39
  line.strip!
40
- next if line.start_with?('#')
41
40
  next if line.empty?
42
41
  key, value = line.split('=', 2)
43
42
  memo[key] = value.gsub(/\A"|"\Z/, '') unless value.empty?
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '1.7.6'.freeze
6
+ VERSION = '2.0.0'.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: 1.7.6
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-19 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -107,7 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.0.1
110
+ rubyforge_project:
111
+ rubygems_version: 2.6.14.3
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: Transport interface to talk to a selected set of backends.