train 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: '088cb00fd44675b8b74dc5ff07fd84bd8aae9ab59f4fb4137c6877453f7e5353'
|
4
|
+
data.tar.gz: 9a1caf9091b4acd6b042638a690fb5d4c75a4ac704b53a83ba602f32be80e90e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b58c0f37eba0fb23bd5b507f609233adae32bfb6508449d5fea6c2eab0c727328d4d235cfabd9f921a7cba4aea485fe8d742a07f8bdd016140893963c5ba9b6
|
7
|
+
data.tar.gz: 054dcb57476a6e9d1b64bf9e7d505bd3030f26756f9017f411b1addec68a8c6d7c16f8f5031e5be0d7994c30ff1618a5dc7c5e0e0af903a806b677338e489f5e
|
@@ -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
|
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
|