Sha256: 7041431058c68c90ccf447d1890c357c99a87d7f0594f0bf896521e8a494287d

Contents?: true

Size: 514 Bytes

Versions: 12

Compression:

Stored size: 514 Bytes

Contents

# require 'bundler/gem_tasks'
require 'structured_changelog'

desc 'Validate your Structured Changelog'
task 'changelog:validate', [:path] do |_task, arguments|
  path = arguments.to_h.fetch(:path) { "CHANGELOG.md" }

  puts "\e[32mValid #{path}\e[0m" if StructuredChangelog.new(path).validate
end

# if (guard_clean_task = Rake::Task['release:guard_clean'])
#   guard_clean_task.enhance(['changelog:validate'])
# elsif (release_task = Rake::Task['release'])
#   release_task.enhance(['changelog:validate'])
# end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
structured_changelog-0.11.2 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.11.1 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.11.0 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.10.2 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.10.1 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.10.0 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.8.3 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.8.2 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.8.1 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.8.0 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.7.2 lib/structured_changelog/tasks/validate.rb
structured_changelog-0.7.1 lib/structured_changelog/tasks/validate.rb