Rakefile in ruby-vpi-12.0.0 vs Rakefile in ruby-vpi-12.0.1
- old
+ new
@@ -159,9 +159,25 @@
mv FileList[tempDest + '/*'].to_a, t.name
rmdir tempDest
end
+desc 'Generate release announcement.'
+task :ann => 'doc/history.rb' do |t|
+ require t.prerequisites[0]
+ text = format_history_entry @history.first
+
+ require 'doc/lib/doc_format'
+ html = text.redcloth
+
+ IO.popen('w3m -T text/html -dump -cols 60', 'w+') do |pipe|
+ pipe.write html
+ pipe.close_write
+ puts pipe.read
+ end
+end
+
+
## distribution
desc "Prepare for distribution."
task :dist => ['ext', 'ref', :doc] do |t|