From bb99b47f74e1d191f88713911adab6b93af787ba Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Jan 2011 22:06:47 +0000 Subject: add subject to release_notes output It's kinda important --- lib/wrongdoc/release.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wrongdoc/release.rb b/lib/wrongdoc/release.rb index edf5c02..8101206 100644 --- a/lib/wrongdoc/release.rb +++ b/lib/wrongdoc/release.rb @@ -33,13 +33,15 @@ module Wrongdoc::Release def self.notes(io, opts) spec = Gem::Specification.load(Dir['*.gemspec'][0]) + _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3) + io.puts subject + io.puts io.puts spec.description.strip io.puts io.puts "* #{spec.homepage}" io.puts "* #{spec.email}" io.puts "* #{opts[:git_url] || opts[:cgit_url]}" - _, _, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3) io.print "\nChanges:\n\n" io.puts body end -- cgit v1.2.3-24-ge0c7