summaryrefslogtreecommitdiffstats
path: root/tasks/rubyforge.rake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-21 23:25:33 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-21 23:25:33 +0200
commitf8bfa06c628873c7b8ba6c7442b808063dd36cdc (patch)
treeec87b9451129d9f3be21104278675a8f385fa0d2 /tasks/rubyforge.rake
parent6e296fe91c94c87a4bee73e1c866329cdae136f0 (diff)
downloadzorglub-f8bfa06c628873c7b8ba6c7442b808063dd36cdc.zip
zorglub-f8bfa06c628873c7b8ba6c7442b808063dd36cdc.tar.gz
use bundler
Diffstat (limited to 'tasks/rubyforge.rake')
-rw-r--r--tasks/rubyforge.rake54
1 files changed, 0 insertions, 54 deletions
diff --git a/tasks/rubyforge.rake b/tasks/rubyforge.rake
deleted file mode 100644
index 73be292..0000000
--- a/tasks/rubyforge.rake
+++ /dev/null
@@ -1,54 +0,0 @@
-# -*- coding: UTF-8 -*-
-#
-if PROJ.rubyforge.name.valid? && HAVE_RUBYFORGE
-
-require 'rubyforge'
-require 'rake/contrib/sshpublisher'
-
-namespace :gem do
- desc 'Package and upload to RubyForge'
- task :release => [:clobber, 'gem'] do |t|
- v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
- abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
- pkg = "pkg/#{PROJ.gem._spec.full_name}"
-
- if $DEBUG then
- puts "release_id = rf.add_release #{PROJ.rubyforge.name.inspect}, #{PROJ.name.inspect}, #{PROJ.version.inspect}, \"#{pkg}.tgz\""
- puts "rf.add_file #{PROJ.rubyforge.name.inspect}, #{PROJ.name.inspect}, release_id, \"#{pkg}.gem\""
- end
-
- rf = RubyForge.new
- rf.configure rescue nil
- puts 'Logging in'
- rf.login
-
- c = rf.userconfig
- c['release_notes'] = PROJ.description if PROJ.description
- c['release_changes'] = PROJ.changes if PROJ.changes
- c['preformatted'] = true
-
- files = Dir.glob("#{pkg}*.*")
-
- puts "Releasing #{PROJ.name} v. #{PROJ.version}"
- rf.add_release PROJ.rubyforge.name, PROJ.name, PROJ.version, *files
- end
-end # namespace :gem
-
-
-namespace :doc do
- desc "Publish RDoc to RubyForge"
- task :release => %w(doc:clobber_rdoc doc: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/#{PROJ.rubyforge.name}/"
- remote_dir << PROJ.rdoc.remote_dir if PROJ.rdoc.remote_dir
- local_dir = PROJ.rdoc.dir
-
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
- end
-end # namespace :doc
-
-end # if HAVE_RUBYFORGE
-
-# EOF