From 4d808af6c143fb40bfbb8d3c041b850171a22129 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 30 Jan 2024 21:12:51 +0100 Subject: [PATCH] github_changelog_generator: Apply best practices We use this Rakefile setup everywhere else. --- Rakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index b70b3acf..42bd7b66 100644 --- a/Rakefile +++ b/Rakefile @@ -50,9 +50,11 @@ namespace :puppet_versions do end begin - require 'rubygems' require 'github_changelog_generator/task' - +rescue LoadError + # github_changelog_generator is an optional group +else + require 'rubygems' GitHubChangelogGenerator::RakeTask.new :changelog do |config| config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog} config.user = 'voxpupuli' @@ -60,8 +62,6 @@ begin gem_version = Gem::Specification.load("#{config.project}.gemspec").version config.future_release = gem_version end -rescue LoadError - # Changelog generator is optional end begin