facter 2.5.5 → 2.5.6

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: 78769e8d4ce47302885d7835f01c8fe04dc7154a
4
- data.tar.gz: 4c549271a6841d0f8ff2d584611178f55d36c5f4
2
+ SHA256:
3
+ metadata.gz: e4538088004cbcac0680166bcac1523021be9732a956a608fdfe7ab95e320eec
4
+ data.tar.gz: 49e50390a5b7760ec839ee9a907c863ce06f966552ab5be562d4a616f51e6ac5
5
5
  SHA512:
6
- metadata.gz: bcd812b5865f013c63acd772b8535c16a2600b6835a5cdf74776288775e14e9c20f73be73c1a214a55574321b5ec65c37ab1c97300952bc4b6f27fe2acc8ccd2
7
- data.tar.gz: 162148ad25af0696814784b7ae12d46be8536ccc6f57c6de6a96136e2038c732d403f7cf9fd6cffdc01f508bf384f800ed739dfcc608a401da83ea2dbe6a8975
6
+ metadata.gz: 80f92f1943f78cd483746d0262e67a92c597b38276a4664a610cb4e4a75f0fa88428faf902e7009c1fb5f3c0e1a3c2645b2129b9b3efb694396ae3eab65981fc
7
+ data.tar.gz: 71258f517b4a3ce7be3cc650b7db6e28cd6c9aed88b9804c75cd26623837d86bdc545e93713e6e6440c77afacb64c09efb1fd41c79c40871b961de296d909cc1
@@ -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: ruby
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
  description: You can prove anything with facts!
14
14
  email: info@puppetlabs.com
@@ -532,8 +532,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
532
532
  - !ruby/object:Gem::Version
533
533
  version: '0'
534
534
  requirements: []
535
- rubyforge_project:
536
- rubygems_version: 2.6.14
535
+ rubygems_version: 3.0.4
537
536
  signing_key:
538
537
  specification_version: 4
539
538
  summary: Facter, a system inventory tool