Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Commit

Permalink
add release notes task
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquez committed Apr 4, 2014
1 parent fa44b2b commit ca047cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ end

task :commits, :since_tag do |task, args|
tag = ENV["SINCE_TAG"] || args[:since_tag] || `git describe --abbrev=0 --tags`
puts
puts '## Commits'
puts `git log #{tag.strip}..HEAD --oneline`
puts
end

task :checksum => :build_gzip do
Expand All @@ -213,9 +216,14 @@ task :checksum => :build_gzip do
left_column_length = file.length if file.length > left_column_length
end

puts
puts "## Checksums"
file_hash.each_pair do |file, hash|
puts "#{file.ljust(left_column_length)} #{hash}"
end
puts
end

task :release_notes => [:checksum, :commits]

task :default => ['lint', 'spec']

0 comments on commit ca047cd

Please sign in to comment.