Rakefile in muck-friends-0.1.5 vs Rakefile in muck-friends-0.1.6

- old
+ new

@@ -57,35 +57,11 @@ gemspec.rubyforge_project = 'muck-friends' gemspec.add_dependency "muck-engine" gemspec.add_dependency "muck-users" gemspec.add_dependency "muck-profiles" end -rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" -end - -# rubyforge tasks -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/muck-friends/" - local_dir = 'rdoc' - - Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload - end - end + Jeweler::RubyforgeTasks.new do |rubyforge| + rubyforge.doc_task = "rdoc" end rescue LoadError - puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured." + puts "Jeweler not available. Install it with: sudo gem install jeweler" end \ No newline at end of file