Rakefile in ruote-2.1.10 vs Rakefile in ruote-2.1.11

- old
+ new

@@ -2,11 +2,22 @@ require 'lib/ruote/version.rb' require 'rubygems' require 'rake' +# +# clean +require 'rake/clean' +CLEAN.include('pkg', 'rdoc', 'ruote_work', 'ruote_data', 'logs') + +task :default => [ :clean ] + + +# +# jeweler tasks + begin require 'jeweler' Jeweler::Tasks.new do |gem| @@ -21,14 +32,13 @@ gem.homepage = 'http://ruote.rubyforge.org' gem.authors = [ 'John Mettraux', 'Kenneth Kalmer', 'Torsten Schoenebaum' ] gem.rubyforge_project = 'ruote' gem.test_file = 'test/test.rb' - gem.add_dependency 'rufus-json', '>= 0.2.2' - gem.add_dependency 'rufus-cloche', '>= 0.1.17' + gem.add_dependency 'rufus-json', '>= 0.2.5' + gem.add_dependency 'rufus-cloche', '>= 0.1.20' gem.add_dependency 'rufus-dollar' - gem.add_dependency 'rufus-lru' gem.add_dependency 'rufus-mnemo', '>= 1.1.0' gem.add_dependency 'rufus-scheduler', '>= 2.0.5' gem.add_dependency 'rufus-treechecker', '>= 1.0.3' gem.add_development_dependency 'rake' @@ -39,34 +49,53 @@ gem.add_development_dependency 'jeweler' # Gem::Specification http://www.rubygems.org/read/chapter/20 end Jeweler::GemcutterTasks.new + rescue LoadError puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler' end -begin - require 'yard' - YARD::Rake::YardocTask.new do |doc| - doc.options = [ '-o', 'rdoc', '--title', "ruote #{Ruote::VERSION}" ] - end -rescue LoadError - task :yard do - abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard' - end + +# +# rdoc + +#begin +# require 'yard' +# YARD::Rake::YardocTask.new do |doc| +# doc.options = [ '-o', 'rdoc', '--title', "ruote #{Ruote::VERSION}" ] +# end +#rescue LoadError +# task :yard do +# abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard' +# end +#end + +# +# make sure to have rdoc 2.5.x to run that +# +require 'rake/rdoctask' +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 = "ruote #{Ruote::VERSION}" end -require 'rake/clean' -CLEAN.include('pkg', 'rdoc', 'work', 'logs') -task :default => [ :clean ] +# +# upload_rdoc desc 'Upload the documentation to rubyforge' -task :upload_rdoc => :yard do - sh %{ - rsync -azv -e ssh \ - rdoc \ - jmettraux@rubyforge.org:/var/www/gforge-projects/ruote/ - } +task :upload_rdoc => [ :clean, :rdoc ] do + + account = 'jmettraux@rubyforge.org' + webdir = '/var/www/gforge-projects/ruote' + + sh "rsync -azv -e ssh rdoc #{account}:#{webdir}/" end