Rakefile in joshbuddy-fuzzyhash-0.0.6 vs Rakefile in joshbuddy-fuzzyhash-0.0.7

- old
+ new

@@ -7,40 +7,19 @@ s.homepage = "http://fuzzyhash.rubyforge.org/" s.authors = ["Joshua Hull"] s.files = FileList["[A-Z]*", "{lib,spec}/**/*"] s.rubyforge_project = 'fuzzyhash' # This line would be new end + + Jeweler::GemcutterTasks.new + Jeweler::RubyforgeTasks.new do |rubyforge| + rubyforge.doc_task = "rdoc" + rubyforge.remote_doc_path = '' + end + rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end - -# These are new 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/fuzzyhash/" - 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 - require 'spec' require 'spec/rake/spectask' task :spec => 'spec:all' namespace(:spec) do