Skip to content

Commit

Permalink
deprecate "rake upload_rdoc"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Sep 1, 2012
1 parent 85ad42f commit ade24fd
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions Rakefile
Expand Up @@ -6,7 +6,7 @@ require 'rubygems/user_interaction' if Gem::RubyGemsVersion == '1.5.0'

require 'rake'
require 'rake/clean'
require 'rake/rdoctask'
#require 'rake/rdoctask'


#
Expand Down Expand Up @@ -68,34 +68,36 @@ task :prepare do
end


##
## rdoc
##
## make sure to have rdoc 2.5.x to run that
#
# rdoc
#Rake::RDocTask.new do |rd|
#
# make sure to have rdoc 2.5.x to run that

Rake::RDocTask.new do |rd|

rd.main = 'README.rdoc'
rd.rdoc_dir = 'rdoc'

rd.rdoc_files.include(
'README.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb')

rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}"
end


# rd.main = 'README.rdoc'
# rd.rdoc_dir = 'rdoc'
#
# upload_rdoc

desc %{
upload the rdoc to rubyforge
}
task :upload_rdoc => [ :clean, :rdoc ] do

account = 'jmettraux@rubyforge.org'
webdir = '/var/www/gforge-projects/ruote'

sh "rsync -azv -e ssh rdoc/#{GEMSPEC.name}_rdoc #{account}:#{webdir}/"
end
# rd.rdoc_files.include(
# 'README.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb')
#
# rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}"
#end
#
#
##
## upload_rdoc
#
#desc %{
# upload the rdoc to rubyforge
#}
#task :upload_rdoc => [ :clean, :rdoc ] do
#
# account = 'jmettraux@rubyforge.org'
# webdir = '/var/www/gforge-projects/ruote'
#
# sh "rsync -azv -e ssh rdoc/#{GEMSPEC.name}_rdoc #{account}:#{webdir}/"
#end
#
# leverarge rdoc.info instead

0 comments on commit ade24fd

Please sign in to comment.