Rakefile in ruote-beanstalk-2.1.10 vs Rakefile in ruote-beanstalk-2.1.11

- old
+ new

@@ -1,6 +1,8 @@ +$:.unshift('.') # ruby 1.9.2 + require 'rubygems' require 'rake' require 'lib/ruote/beanstalk/version.rb' @@ -31,12 +33,12 @@ gem.rubyforge_project = 'ruote' gem.test_file = 'test/test.rb' gem.add_dependency 'ruote', ">= #{Ruote::Beanstalk::VERSION}" - gem.add_dependency 'rufus-cloche', '>= 0.1.17' - gem.add_dependency 'beanstalk-client', '>= 1.0.2' + gem.add_dependency 'rufus-cloche', '>= 0.1.20' + gem.add_dependency 'beanstalk-client', '>= 1.1.0' gem.add_development_dependency 'yard' gem.add_development_dependency 'rake' gem.add_development_dependency 'jeweler' # gemspec spec : http://www.rubygems.org/read/chapter/20 @@ -45,43 +47,28 @@ # # DOC -#begin # -# require 'yard' -# -# YARD::Rake::YardocTask.new do |doc| -# doc.options = [ -# '-o', 'html/ruote-beanstalk', '--title', -# "ruote-beanstalk #{Ruote::Beanstalk::VERSION}" -# ] -# end -# -#rescue LoadError -# -# task :yard do -# abort "YARD is not available : 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.main = 'readme.rdoc' rd.rdoc_dir = 'rdoc/ruote-beanstalk_rdoc' - rd.rdoc_files.include('README.rdoc', 'CHANGELOG.txt', 'lib/**/*.rb') rd.title = "ruote-beanstalk #{Ruote::Beanstalk::VERSION}" + + rd.rdoc_files.include( + 'readme.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb') end # # TO THE WEB -task :upload_website => [ :clean, :rdoc ] do +task :upload_rdoc => [ :clean, :rdoc ] do account = 'jmettraux@rubyforge.org' webdir = '/var/www/gforge-projects/ruote' sh "rsync -azv -e ssh rdoc/ruote-beanstalk_rdoc #{account}:#{webdir}/"