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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a55ff368548238574ba3a1d5936f8ed6bb34dbf4d173e416c74468790b2a02
4
- data.tar.gz: 7012b4c2459df452d8c3c24e26287811512accd65b3b5779ef9ae41d4a0108e5
3
+ metadata.gz: '088cb00fd44675b8b74dc5ff07fd84bd8aae9ab59f4fb4137c6877453f7e5353'
4
+ data.tar.gz: 9a1caf9091b4acd6b042638a690fb5d4c75a4ac704b53a83ba602f32be80e90e
5
5
  SHA512:
6
- metadata.gz: 88b49fcf2f4b0ef4bbb91a90b3df97c674962d83f25109fc25129c4375ae21dacbee5fa25384825f7c39f162b0955ffae8d868db8017b1c0f70d4ff76e98aeb1
7
- data.tar.gz: b92a6ebe311579705b17d3a1f14ee261abb35c16710211e4690e4e60891793370b8fc3df02db54b7c92b7ac19a0064efa0d62b9d24b6c18a66e55bde5f26a5d6
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
- version = suse[/VERSION = ([\d\.]{2,})/, 1] if version == ''
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
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '2.1.2'.freeze
6
+ VERSION = '2.1.7'.freeze
7
7
  end
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2019-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json