From 68a0e9c53b68996ad5473fe6f38dda641ec545cf Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 21 Jun 2024 12:08:50 +0200 Subject: [PATCH 1/2] Add a comment to a supressed exception --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index f3a7386..d316bb5 100644 --- a/Rakefile +++ b/Rakefile @@ -15,4 +15,5 @@ begin config.future_release = "v#{Gem::Specification.load("#{config.project}.gemspec").version}" end rescue LoadError + # Optional gem, release group is probably disabled end From a43060a39f7117253da73dffd2e33d49748aefc8 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 21 Jun 2024 12:09:15 +0200 Subject: [PATCH 2/2] Merge duplicate branches in service_provider fact --- lib/voxpupuli/test/facts.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/voxpupuli/test/facts.rb b/lib/voxpupuli/test/facts.rb index c09bcba..c78906d 100644 --- a/lib/voxpupuli/test/facts.rb +++ b/lib/voxpupuli/test/facts.rb @@ -73,20 +73,16 @@ def add_stdlib_facts add_custom_fact :service_provider, ->(_os, facts) do os = RSpec.configuration.facterdb_string_keys ? facts['os'] : facts[:os] case os['family'].downcase - when 'archlinux' + when 'archlinux', 'debian', 'redhat' 'systemd' when 'darwin' 'launchd' - when 'debian' - 'systemd' when 'freebsd' 'freebsd' when 'gentoo' 'openrc' when 'openbsd' 'openbsd' - when 'redhat' - 'systemd' when 'suse' os['release']['major'].to_i >= 12 ? 'systemd' : 'redhat' when 'windows'