mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
rake tasks for publishing API and gems to rubyforge
This commit is contained in:
parent
fc370141a4
commit
ff85aaf528
1 changed files with 14 additions and 0 deletions
14
Rakefile
14
Rakefile
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue