Rakefile in ruote-couch-2.1.10 vs Rakefile in ruote-couch-2.1.11

- old
+ new

@@ -30,12 +30,13 @@ gem.authors = [ 'John Mettraux' ] gem.rubyforge_project = 'ruote' gem.test_file = 'test/test.rb' - gem.add_dependency 'ruote', ">= #{Ruote::Couch::VERSION}" - gem.add_dependency 'rufus-jig', '>= 0.1.18' + #gem.add_dependency 'ruote', ">= #{Ruote::Couch::VERSION}" + gem.add_dependency 'ruote', ">= 2.1.11" + gem.add_dependency 'rufus-jig', '>= 0.1.23' gem.add_development_dependency 'yard' gem.add_development_dependency 'rake' gem.add_development_dependency 'jeweler' # gemspec spec : http://www.rubygems.org/read/chapter/20 @@ -59,35 +60,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-couch_rdoc' - YARD::Rake::YardocTask.new do |doc| - doc.options = [ - '-o', 'html/ruote-couch', '--title', - "ruote-couch #{Ruote::Couch::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-couch #{Ruote::Couch::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-couch #{account}:#{webdir}/" + sh "rsync -azv -e ssh rdoc/ruote-couch_rdoc #{account}:#{webdir}/" end