Projet

Général

Profil

Révision 5fea281f

ID5fea281f206db238ec88d0cd9c1183a14c46181f
Parent 407adb54
Enfant fa92e118

Ajouté par Tim Stallmann il y a plus de 3 ans

modulesync 4.2.0

Voir les différences:

Rakefile
1
# Managed by modulesync - DO NOT EDIT
2
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3

  
1 4
# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
2 5
# otherwise attempt to load it directly.
3 6
begin
4 7
  require 'voxpupuli/test/rake'
5 8
rescue LoadError
6
  require 'puppetlabs_spec_helper/rake_tasks'
9
  begin
10
    require 'puppetlabs_spec_helper/rake_tasks'
11
  rescue LoadError
12
  end
13
end
14

  
15
# load optional tasks for acceptance
16
# only available if gem group releases is installed
17
begin
18
  require 'voxpupuli/acceptance/rake'
19
rescue LoadError
7 20
end
8 21

  
9 22
# load optional tasks for releases
......
34 47
  require 'github_changelog_generator/task'
35 48
  require 'puppet_blacksmith'
36 49
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
37
    version = (Blacksmith::Modulefile.new).version
38
    config.future_release = "v#{version}" if version =~ /^\d+\.\d+.\d+$/
50
    metadata = Blacksmith::Modulefile.new
51
    config.future_release = "v#{metadata.version}" if metadata.version =~ /^\d+\.\d+.\d+$/
39 52
    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."
40 53
    config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
41 54
    config.user = 'voxpupuli'
42
    metadata_json = File.join(File.dirname(__FILE__), 'metadata.json')
43
    metadata = JSON.load(File.read(metadata_json))
44
    config.project = metadata['name']
55
    config.project = metadata.metadata['name']
45 56
  end
46 57

  
47 58
  # Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715

Formats disponibles : Unified diff