mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2026-05-05 15:32:47 +00:00
modulesync 4.2.0
This commit is contained in:
23
Rakefile
23
Rakefile
@@ -1,9 +1,22 @@
|
||||
# Managed by modulesync - DO NOT EDIT
|
||||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||||
|
||||
# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
|
||||
# otherwise attempt to load it directly.
|
||||
begin
|
||||
require 'voxpupuli/test/rake'
|
||||
rescue LoadError
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
begin
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
# load optional tasks for acceptance
|
||||
# only available if gem group releases is installed
|
||||
begin
|
||||
require 'voxpupuli/acceptance/rake'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
# load optional tasks for releases
|
||||
@@ -34,14 +47,12 @@ begin
|
||||
require 'github_changelog_generator/task'
|
||||
require 'puppet_blacksmith'
|
||||
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
||||
version = (Blacksmith::Modulefile.new).version
|
||||
config.future_release = "v#{version}" if version =~ /^\d+\.\d+.\d+$/
|
||||
metadata = Blacksmith::Modulefile.new
|
||||
config.future_release = "v#{metadata.version}" if metadata.version =~ /^\d+\.\d+.\d+$/
|
||||
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\nEach new release typically also includes the latest modulesync defaults.\nThese should not affect the functionality of the module."
|
||||
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
|
||||
config.user = 'voxpupuli'
|
||||
metadata_json = File.join(File.dirname(__FILE__), 'metadata.json')
|
||||
metadata = JSON.load(File.read(metadata_json))
|
||||
config.project = metadata['name']
|
||||
config.project = metadata.metadata['name']
|
||||
end
|
||||
|
||||
# Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715
|
||||
|
||||
Reference in New Issue
Block a user