voxpupuli-test 5.4.0 → 5.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/voxpupuli/test/facts.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8aaa3add5854227878d3f1778e5da09782d7e0b1a7e084c92f9b7abf7e2ad84b
4
- data.tar.gz: 905aa938bae4efcb909c7a8503b403b1b247561bec9a80fafb1d72ce9add44ea
3
+ metadata.gz: 74323fa1dc51303124eb85ad484ab64daa38f90bcface0d9125157cef3ad1497
4
+ data.tar.gz: 4c5824fd53ac77cfa287bebddfc5ccc1f70caf616a11296286cb784c54b9ca05
5
5
  SHA512:
6
- metadata.gz: f6ea9e4f1ca2c0ae07f60ca4c5bcb3c4aaa4aec6c2ce527c7aa026dae288d912b1f5ceeca69c379b249bec40e8d50b087975a834934adb4c2e89f33b6b66fd3e
7
- data.tar.gz: 51ff37e23a34d592cb334826c0af64301dfde04f32f1def12d20753177644263de067e965a4f153d891b17f658c9487108e1fe34c2eb138199ca36579318916d
6
+ metadata.gz: 466125ca660248a7a9a0809bc2f775381a15c19e0ebbe100ab3cc9e316db34a46e80e6054aaa211287bc5daf3bc730c823bdced65f01255668ce8367ab645c47
7
+ data.tar.gz: 2da894f9f9572de4b7fbbbe0b24026bc40ae907c17306c963a09c91899fe472f8ba36a3adf2cc9dea3f9121adc4b1b598dcf546d3ed573260f2a95f84f0a94e1
@@ -50,8 +50,8 @@ def add_facts_for_metadata(metadata)
50
50
 
51
51
  metadata['dependencies'].each do |dependency|
52
52
  case normalize_module_name(dependency['name'])
53
- when 'camptocamp/systemd'
54
- add_custom_fact :systemd, ->(os, facts) { facts[:service_provider] == 'systemd' }
53
+ when 'camptocamp/systemd', 'puppet/systemd'
54
+ add_custom_fact :systemd, ->(os, facts) { facts['service_provider'] == 'systemd' }
55
55
  when 'puppetlabs/stdlib'
56
56
  add_stdlib_facts
57
57
  end
@@ -85,7 +85,7 @@ def add_stdlib_facts
85
85
  when 'openbsd'
86
86
  'openbsd'
87
87
  when 'redhat'
88
- facts[:operatingsystemrelease].to_i >= 7 ? 'systemd' : 'redhat'
88
+ facts[:operatingsystemmajrelease].to_i >= 7 ? 'systemd' : 'redhat'
89
89
  when 'suse'
90
90
  facts[:operatingsystemmajrelease].to_i >= 12 ? 'systemd' : 'redhat'
91
91
  when 'windows'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voxpupuli-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake