facter 2.5.5-universal-darwin → 2.5.6-universal-darwin

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: 788b7c8f21e1580690740842db2016d0923a7618
4
- data.tar.gz: '081f03024c6194e6568ee330018d361802382884'
2
+ SHA256:
3
+ metadata.gz: 906d99663174825c70b00fa538ae1d66ffac0f52094c54daa102e15d8ccf3aff
4
+ data.tar.gz: 835b7ec32701e8dde86c6dc64b098524dacdee4d172bd569d22271d49c1ff397
5
5
  SHA512:
6
- metadata.gz: c5fdc5234cab7b967ea3ef89efe8fbc5e58d8bf98fef374216b869da26578f4f7b6c86e7d0b84ce4b4ebe3dc1b23943b5c45890f2d34eb5b0eb8ae66707e19d3
7
- data.tar.gz: 3af2130cf6470967fac21270110c3a90b6c4a285a9dcf3794a28c3cbd35c27543363620c6a0ce15f2e641a69d781d137b31087b3f337a2418c6e6c9e56161333
6
+ metadata.gz: d672e15f745bd09ff7f5348d38e2eab9078227243f30d1065e0ea41f75b83e98efff9644263f248ac3c4d00c28e2006438a58d10ed8c8947a714656ef44feff1
7
+ data.tar.gz: c9a8a5a22a0f1673ce06fb6edac8b450cc588ffa5e3a53cd3e77996c9885f03daba677137729e683fab78459808f739f74b69e56ea910a17684a1a6b4a703882
@@ -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: universal-darwin
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: CFPropertyList
@@ -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