facter 2.5.5-x86-mingw32 → 2.5.6-x86-mingw32

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
- SHA1:
3
- metadata.gz: 69962bcfea54e185c95064d09967bea323d00d38
4
- data.tar.gz: a48400bf9bc11aa3795618b9d6db28581bcc2f61
2
+ SHA256:
3
+ metadata.gz: 4bd8f8d56a472805a545f96d99125afd37d2b549b27503f1db28ef373570c5a0
4
+ data.tar.gz: 9201dc506d452c71bf0a28836e8c30099e2175427c9e2cd39476f57433bf0cb5
5
5
  SHA512:
6
- metadata.gz: cf3921f5fae804cce6b2dc9a4283c84c1b256c53d89d26333488ea5635920cf1e80304d7e3e565f33040a62575b88ae5eb71ace75b6d25e18d9da19804f868e8
7
- data.tar.gz: 97b8d8ee81a0bc9f58384b48031865ff9f2a04ba3080b9c7828c50d817b6d4b4eb34354fff8d50eef34fe6c627506983c100e6e97df8afa50b8f3773ab5bee2d
6
+ metadata.gz: 0ddf5ac375071996c6d629d6064d5f75f50dfe38942971c12fca12faea5a0c4b7460b55857dda70bbf25d99c8c0f33d44308bbf5c39a7a4ec30b1dcb329e9259
7
+ data.tar.gz: dfae12222f23918f6184f08cb093c8fcfc133795a91773c74d67d2de24e94d8e818d8620b1142dbceaa5d5867ff36197ffce32b8c7ab2ec1b978039b1562e8a8
@@ -389,7 +389,7 @@ module Facter
389
389
  lsbdistrelease
390
390
  else
391
391
  if release = Facter::Util::FileRead.read('/etc/system-release')
392
- if match = /\d+\.\d+/.match(release)
392
+ if match = /\d+\.?\d*/.match(release)
393
393
  match[0]
394
394
  end
395
395
  end
@@ -1,6 +1,6 @@
1
1
  module Facter
2
2
  if not defined? FACTERVERSION then
3
- FACTERVERSION = '2.5.5'
3
+ FACTERVERSION = '2.5.6'
4
4
  end
5
5
 
6
6
  # Returns the running version of Facter.
@@ -278,6 +278,15 @@ describe Facter::Operatingsystem::Linux do
278
278
  expect(release).to eq "2014.03"
279
279
  end
280
280
 
281
+ it "should parse major release only from /etc/system-release" do
282
+ subject.expects(:get_operatingsystem).returns("Amazon")
283
+ subject.expects(:get_lsbdistrelease).returns(nil)
284
+ Facter::Util::FileRead.expects(:read).with('/etc/system-release').returns("Amazon Linux release 2 (Karoo)")
285
+ release = subject.get_operatingsystemrelease
286
+ expect(release).to eq "2"
287
+ end
288
+
289
+
281
290
  it "should fall back to kernelrelease fact for gnu/kfreebsd" do
282
291
  Facter.fact(:kernelrelease).stubs(:value).returns("1.2.3")
283
292
  subject.expects(:get_operatingsystem).returns("GNU/kFreeBSD")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
4
+ version: 2.5.6
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-18 00:00:00.000000000 Z
11
+ date: 2019-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -546,8 +546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
546
546
  - !ruby/object:Gem::Version
547
547
  version: '0'
548
548
  requirements: []
549
- rubyforge_project:
550
- rubygems_version: 2.6.14
549
+ rubygems_version: 3.0.4
551
550
  signing_key:
552
551
  specification_version: 4
553
552
  summary: Facter, a system inventory tool