Rakefile in muck-activities-0.1.17 vs Rakefile in muck-activities-0.1.18

- old
+ new

@@ -55,46 +55,12 @@ gemspec.authors = ["Justin Ball"] gemspec.rubyforge_project = 'muck-activities' gemspec.add_dependency "muck-engine" gemspec.add_dependency "muck-users" gemspec.add_dependency "muck-comments" - # gemspec.files.include %w( - # tasks/* - # db/migrate/*.rb - # app/**/**/**/* - # config/* - # locales/* - # rails/* - # test/* - # lib/**/* - # public/**/* ) end + Jeweler::RubyforgeTasks.new do |rubyforge| + rubyforge.doc_task = "rdoc" + 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-activities/" - 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 \ No newline at end of file