Rakefile in sup-0.4 vs Rakefile in sup-0.5
- old
+ new
@@ -7,13 +7,17 @@
def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
end # thanks to "Mike H"
## allow people who use development versions by running "rake gem"
## and installing the resulting gem it to be able to do this. (gem
-## versions must be in dotted-digit notation only).
-version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
-
+## versions must be in dotted-digit notation only and can be passed
+## with the REL environment variable to "rake gem").
+if ENV['REL']
+ version = ENV['REL']
+else
+ version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
+end
Hoe.new('sup', version) do |p|
p.rubyforge_name = 'sup'
p.author = "William Morgan"
p.summary = 'A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.'
p.description = p.paragraphs_of('README.txt', 2..9).join("\n\n")
@@ -48,5 +52,9 @@
sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
end
# vim: syntax=ruby
# -*- ruby -*-
+task :upload_report do |t|
+ sh "ditz html ditz"
+ sh "rsync -essh -cavz ditz wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
+end