Rakefile in ruote-dm-2.1.10 vs Rakefile in ruote-dm-2.1.11

- old
+ new

@@ -32,10 +32,11 @@ gem.test_file = 'test/test.rb' gem.add_dependency 'ruote', ">= #{Ruote::Dm::VERSION}" gem.add_dependency 'dm-core' + gem.add_dependency 'dm-migrations' #gem.add_dependency 'dm-aggregates' #gem.add_dependency 'dm-types' gem.add_development_dependency 'yard' gem.add_development_dependency 'rake' gem.add_development_dependency 'jeweler' @@ -46,35 +47,32 @@ # # DOC -begin +# +# make sure to have rdoc 2.5.x to run that +# +require 'rake/rdoctask' +Rake::RDocTask.new do |rd| - require 'yard' + rd.main = 'README.rdoc' + rd.rdoc_dir = 'rdoc/ruote-dm_rdoc' - YARD::Rake::YardocTask.new do |doc| - doc.options = [ - '-o', 'html/ruote-dm', '--title', - "ruote-dm #{Ruote::Dm::VERSION}" - ] - end + rd.rdoc_files.include( + 'README.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb') -rescue LoadError - - task :yard do - abort "YARD is not available : sudo gem install yard" - end + rd.title = "ruote-dm #{Ruote::Dm::VERSION}" end # # TO THE WEB -task :upload_website => [ :clean, :yard ] do +task :upload_rdoc => [ :clean, :rdoc ] do account = 'jmettraux@rubyforge.org' webdir = '/var/www/gforge-projects/ruote' - sh "rsync -azv -e ssh html/ruote-dm #{account}:#{webdir}/" + sh "rsync -azv -e ssh rdoc/ruote-dm_rdoc #{account}:#{webdir}/" end