train-core 2.1.2 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/train/platforms/detect/specifications/os.rb +3 -1
- data/lib/train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff5f052115cd4bbe97f297245c00e62939c03b9cf5e9aa305115ea2cd6af1c1b
|
4
|
+
data.tar.gz: b2560e322686da3d3cb300c0e951bc35e998bef19ec722d1825762b27b1da7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a6ee81e5ce9c1e345690adcaeb2b07fbed5465d78b11999e960a8583f5d4005482ddd1a30831faad6c1e315e15432a47e8eff5fb4ea1b5cc9731232a4bc7c3
|
7
|
+
data.tar.gz: be2d1a428392cecdfad20f1066e985787f21d7f33b382d3f7a2616008fc6a7bf0a1aecb316be7079b9d0cf1064c03334e9633f6c40371f9e1edd7b7b351f9c07
|
@@ -237,8 +237,10 @@ module Train::Platforms::Detect::Specifications
|
|
237
237
|
plat.family('suse').in_family('linux')
|
238
238
|
.detect {
|
239
239
|
if !(suse = unix_file_contents('/etc/SuSE-release')).nil?
|
240
|
+
# https://rubular.com/r/UKaYWolCYFMfp1
|
240
241
|
version = suse.scan(/VERSION = (\d+)\nPATCHLEVEL = (\d+)/).flatten.join('.')
|
241
|
-
|
242
|
+
# https://rubular.com/r/b5PN3hZDxa5amV
|
243
|
+
version = suse[/VERSION\s?=\s?"?([\d\.]{2,})"?/, 1] if version == ''
|
242
244
|
@platform[:release] = version
|
243
245
|
true
|
244
246
|
end
|
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: 2.1.
|
4
|
+
version: 2.1.7
|
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-05-
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|