rspec-puppet-facts 2.0.4 → 2.0.5

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: b80bdd2fc57daf6d7ec7f10e4ada3a36745856aca9dd2c5955fc26c534b0c5df
4
- data.tar.gz: 8be61f7bb4ccabd698747c46cdc271052d049761132a7f74eb3e9c58efca6b60
3
+ metadata.gz: f8b388a56b77311997681ce48848b6e799c7943d8c2e3d296345e9f6587bc2ca
4
+ data.tar.gz: 33f5a3534d51478872c88b1e8ca74843820ff433f19e62932c9c7e58228f2234
5
5
  SHA512:
6
- metadata.gz: c6ef1ccea5b2a1d8d684c95f559e244ce4dfc02e82b668f3c15421a25345a0b427b0d354c81b5e3dc8179d6dea61440f98369ac79c99afed267654b295d5eaab
7
- data.tar.gz: a470ec0513ef46cf933c9dff8e4db26721259a47020971307c6489ec3b4812aeb6cf3e8256256a5fa2595840abd1105464c1badaf1f8eea3ca57f3508a05f687
6
+ metadata.gz: 3e0487293f8f9a2b4c9b8e45db12770f9002eddefe705e0697d68f8e74982910a4deb8f1c939d56953b0cb203980910ad6011527a131ca03828c3351336f6a83
7
+ data.tar.gz: 82229c84b00526195fa998d14047a84cbf7ba2782930928b8ba11fe7f646b793b76b5e3932ee33503d40cf2f1d59c97eb3a8269fe8f88e60baaaa2d926d0efcd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.5](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.5) (2022-04-22)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.4...2.0.5)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - fallback to lsb facts if structured facts are nil [\#140](https://github.com/voxpupuli/rspec-puppet-facts/pull/140) ([bastelfreak](https://github.com/bastelfreak))
10
+
3
11
  ## [2.0.4](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.4) (2022-04-22)
4
12
 
5
13
  [Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.3...2.0.4)
@@ -2,6 +2,6 @@ module RspecPuppetFacts
2
2
  # This module contains the current version constant
3
3
  module Version
4
4
  # The current version of this gem
5
- STRING = '2.0.4'
5
+ STRING = '2.0.5'
6
6
  end
7
7
  end
@@ -158,6 +158,8 @@ module RspecPuppetFacts
158
158
  operatingsystemmajrelease = '2016'
159
159
  elsif facts.dig(:os, 'release', 'major')
160
160
  operatingsystemmajrelease = facts[:os]['release']['major']
161
+ elsif facts.dig(:os, 'distro', 'release', 'major')
162
+ operatingsystemmajrelease = facts[:os]['distro']['release']['major']
161
163
  else
162
164
  if facts[:operatingsystemmajrelease].nil?
163
165
  operatingsystemmajrelease = facts[:operatingsystemrelease].split('.')[0]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet-facts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli