Permalink
Browse files

Fixing the documentation generation task name, from yard to yardoc

  • Loading branch information...
1 parent 28cfea3 commit 95eeb7dc5824291904e343f8a08d8f4e31588164 @noomii-bot noomii-bot committed Aug 21, 2009
Showing with 11 additions and 25 deletions.
  1. +11 −25 Rakefile
View
@@ -14,6 +14,11 @@ begin
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
+
+ Jeweler::RubyforgeTasks.new do |rubyforge|
+ rubyforge.doc_task = "yardoc"
+ end
+
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
@@ -34,6 +39,12 @@ end
task :default => :spec
+require 'yard'
+YARD::Rake::YardocTask.new do |t|
+ t.files = ['lib/**/*.rb']
+end
+
+
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
@@ -49,28 +60,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-begin
- require 'rake/contrib/sshpublisher'
- namespace :rubyforge do
-
- desc "Release gem and RDoc documentation to RubyForge"
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
-
- namespace :release do
- desc "Publish RDoc to RubyForge."
- task :docs => [:rdoc] do
- config = YAML.load(
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
- )
-
- host = "#{config['username']}@rubyforge.org"
- remote_dir = "/var/www/gforge-projects/walruz/"
- local_dir = 'rdoc'
-
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
- end
- end
- end
-rescue LoadError
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
-end

0 comments on commit 95eeb7d

Please sign in to comment.