Rakefile in patron-0.4.1 vs Rakefile in patron-0.4.2
- old
+ new
@@ -124,33 +124,8 @@
t.rcov_opts << '--exclude spec'
t.rcov_opts << '--exclude lib/magneto.rb'
t.rcov_opts << '--exclude /Library/Ruby/Gems'
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/patron/"
- local_dir = 'doc'
-
- 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
+Jeweler::RubyforgeTasks.new
task :default => :spec