Sha256: d2c36945a17138fc2d431893d89597c705d519c715a3281e1c7c633e4d006130

Contents?: true

Size: 605 Bytes

Versions: 103

Compression:

Stored size: 605 Bytes

Contents

desc 'update changelog'
task :changelog do
  File.open('CHANGELOG', 'w+') do |changelog|
    `git log -z --abbrev-commit`.split("\0").each do |commit|
      next if commit =~ /^Merge: \d*/
      ref, author, time, _, title, _, message = commit.split("\n", 7)
      ref    = ref[/commit ([0-9a-f]+)/, 1]
      author = author[/Author: (.*)/, 1].strip
      time   = Time.parse(time[/Date: (.*)/, 1]).utc
      title.strip!

      changelog.puts "[#{ref} | #{time}] #{author}"
      changelog.puts '', "  * #{title}"
      changelog.puts '', message.rstrip if message
      changelog.puts
    end
  end
end

Version data entries

103 entries across 101 versions & 27 rubygems

Version Path
innate-2023.01.06 tasks/changelog.rake
innate-2015.10.28 tasks/changelog.rake
Pistos-ramaze-2009.04.08 tasks/changelog.rake
bougyman-autumn-3.1.1 tasks/changelog.rake
bougyman-autumn-3.1.10 tasks/changelog.rake
bougyman-autumn-3.1.11 tasks/changelog.rake
bougyman-autumn-3.1.3 tasks/changelog.rake
bougyman-autumn-3.1.4 tasks/changelog.rake
bougyman-autumn-3.1.6 tasks/changelog.rake
bougyman-autumn-3.1.7 tasks/changelog.rake
bougyman-autumn-3.1.8 tasks/changelog.rake
bougyman-autumn-3.1.9 tasks/changelog.rake
bougyman-name_parse-0.0.3 tasks/changelog.rake
bougyman-name_parse-0.0.4 tasks/changelog.rake
bougyman-name_parse-0.0.5 tasks/changelog.rake
deathsyn-seedling-0.0.1 tasks/changelog.rake
deathsyn-seedling-0.0.1 lib/templates/core/tasks/changelog.rake
deathsyn-seedling-0.0.5 lib/templates/core/tasks/changelog.rake
manveru-innate-2009.04.01 tasks/changelog.rake
manveru-innate-2009.04.08 tasks/changelog.rake