Rakefile in ruote-redis-2.1.10 vs Rakefile in ruote-redis-2.1.11
- old
+ new
@@ -31,11 +31,11 @@
gem.rubyforge_project = 'ruote'
#gem.test_file = 'test/test.rb'
gem.add_dependency 'ruote', ">= #{Ruote::Redis::VERSION}"
- gem.add_dependency 'redis', '>= 2.0.1'
+ gem.add_dependency 'redis', '>= 2.0.5'
gem.add_development_dependency 'yard'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'jeweler'
# gemspec spec : http://www.rubygems.org/read/chapter/20
@@ -44,35 +44,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-redis_rdoc'
- YARD::Rake::YardocTask.new do |doc|
- doc.options = [
- '-o', 'html/ruote-redis', '--title',
- "ruote-redis #{Ruote::Redis::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-redis #{Ruote::Redis::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-redis #{account}:#{webdir}/"
+ sh "rsync -azv -e ssh rdoc/ruote-redis_rdoc #{account}:#{webdir}/"
end