Sha256: 55c9b5ebb988e5f7719762e0cb45cb6b8de352fde6329ad1e1a09cce3c815294
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
# Copyright (c) 2008-2009 The Rubyists, LLC (effortless systems) <rubyists@rubyists.com> # Distributed under the terms of the MIT license. # See the LICENSE file that accompanied this software for the full MIT License text # 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
deathsyn-seedling-0.0.5 | tasks/changelog.rake |
seedling-0.0.6 | tasks/changelog.rake |
seedling-0.0.5 | tasks/changelog.rake |