Permalink
Browse files

rake tasks for publishing API and gems to rubyforge

  • Loading branch information...
1 parent fc37014 commit ff85aaf5287cdc015677d4cb973b4ef57443f164 @rtomayko rtomayko committed Sep 8, 2008
Showing with 14 additions and 0 deletions.
  1. +14 −0 Rakefile
View
@@ -52,6 +52,20 @@ file package('.tar.gz') => %w[dist/] + spec.files do |f|
sh "git archive --format=tar HEAD | gzip > #{f.name}"
end
+# Rubyforge Release / Publish Tasks ==================================
+
+desc 'Publish API docs to rubyforge'
+task 'publish:doc' => 'doc/api/index.html' do
+ sh 'scp -rp doc/* rubyforge.org:/var/www/gforge-projects/sinatra/'
+end
+
+task 'publish:gem' => [package('.gem'), package('.tar.gz')] do |t|
+ sh <<-end
+ rubyforge add_release sinatra sinatra #{spec.version} #{package('.gem')} &&
+ rubyforge add_file sinatra sinatra #{spec.version} #{package('.tar.gz')}
+ end
+end
+
# Gemspec Helpers ====================================================
file 'sinatra.gemspec' => FileList['{lib,test,images}/**','Rakefile'] do |f|

0 comments on commit ff85aaf

Please sign in to comment.