Sha256: cbbbd6f001505f8230cbd57c5b173fbebb3eab3cac0b041fb18c1e4fc9fc1a93

Contents?: true

Size: 404 Bytes

Versions: 17

Compression:

Stored size: 404 Bytes

Contents

require 'structured_changelog'

desc "Display Release Notes for One or Multiple Versions"
task "changelog:notes", [:query, :path] do |_task, arguments|
  query = arguments.to_h.fetch(:query) { "current" }
  path  = arguments.to_h.fetch(:path)  { "CHANGELOG.md" }

  changelog = StructuredChangelog.new(path)
  releases  = changelog.find_releases(query)

  puts releases.map(&:contents).join("\n\n")
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
structured_changelog-0.11.2 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.11.1 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.11.0 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.10.2 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.10.1 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.10.0 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.8.3 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.8.2 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.8.1 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.8.0 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.7.2 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.7.1 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.7.0 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.6.2 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.6.1 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.6.0 lib/structured_changelog/tasks/notes.rb
structured_changelog-0.5.0 lib/structured_changelog/tasks/notes.rb