plat4m 1.1.1 → 1.1.2

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: 3493a52f0b4f777199e3b7f22f912496d0bd33840782aca042308576343622d7
4
- data.tar.gz: 844d89eeae53b9c5de0bcd359d647de97d4096e0256d75785f8888ccab635dc0
3
+ metadata.gz: 4481fa20e386ce17cb2e32497e4751ef06a0c8fe8f6924ccc39123ef39b1d7fc
4
+ data.tar.gz: abe2c6c42b690c0d62f2172cf7fa105d8f18979f34c5ea0bcf8dc1df2a7c26aa
5
5
  SHA512:
6
- metadata.gz: d718c9b5ccb96cfcd5823aa7c6a94d3b94b9c9e41f78f97c0fef4494534e0e0fe4954416c405e7ab22e27ed8389fb27726de16da8d258841b9f3b69d8eb7e330
7
- data.tar.gz: '0104599df035623ef931b5e2c97bec707496a31ffa7d1b099ba15fa8fbd32967491ddbdbcc4d752521e4996c9bcb89e45ccb4ac0fec7bdb942d1b092d02896a7'
6
+ metadata.gz: fc950cde9aa00a2b3071db15c912bc946b931aeac7afc6f823a7083a21a97bd6d8fdf04eedfd6a6140f9ee3c94132fd6e7f4b75f1b3efb1d67fe9e1c3a295923
7
+ data.tar.gz: b4d5e19123e3651fdbcb2b6ddc96f817750a809f04add82a7b08353898dfae08f733d3a523fa93954c629a8666aba813e9323a3accf06eabbc862f1f34f412f1
@@ -51,7 +51,7 @@ module Plat4m
51
51
  data['ID'].to_sym
52
52
  end,
53
53
  distro: data['ID'].downcase,
54
- release: data['VERSION_ID']
54
+ release: data['VERSION_ID'] || data['BUILD_ID']
55
55
  }
56
56
  elsif File.file?('/etc/redhat-release')
57
57
  data = File.read('/etc/redhat-release').strip
data/lib/plat4m/system.rb CHANGED
@@ -76,14 +76,14 @@ module Plat4m
76
76
  end
77
77
 
78
78
  def to_s
79
- "#{@distro}-#{@release}[#{@id}#{@variant ? " #{@variant}" : ''}}]"
79
+ "#{@distro}-#{@release}[#{@id}#{@variant ? " #{@variant}" : ''}]"
80
80
  end
81
81
 
82
82
  end
83
83
 
84
84
  def initialize(platform, os)
85
85
  unless platform && platform.complete? && os && os.complete?
86
- raise "Invalid system specification [#{os} @ #{platform}]"
86
+ raise "Invalid system specification : #{os} @ #{platform}"
87
87
  end
88
88
  @platform = platform
89
89
  @os = os
@@ -8,6 +8,6 @@
8
8
  module Plat4m
9
9
 
10
10
  # Current Plat4m version.
11
- VERSION = '1.1.1'
11
+ VERSION = '1.1.2'
12
12
 
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plat4m
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-29 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plat4m is a simple runtime system platform scouting and support library.
14
14
  email: mcorino@m2c-software.nl