about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-13 02:51:42 +0000
committerEric Wong <e@80x24.org>2015-01-13 02:51:42 +0000
commitaa20e0bf3368810ea6580cddc1f5c80f99b97d7c (patch)
tree57e5385a5e0bcffbbd225d46d58b5ef7e20a28ae
parent785b35c2a8153d8fc6163ed5bbe076036a67c8a2 (diff)
downloadclogger-aa20e0bf3368810ea6580cddc1f5c80f99b97d7c.tar.gz
Rubyforge is dead
-rw-r--r--Rakefile32
1 files changed, 0 insertions, 32 deletions
diff --git a/Rakefile b/Rakefile
index fc217c4..abb2a61 100644
--- a/Rakefile
+++ b/Rakefile
@@ -4,35 +4,3 @@ begin
 rescue LoadError
   warn "rake-compiler not available, cross compiling disabled"
 end
-
-cgit_url = "http://bogomips.org/clogger.git"
-git_url = 'git://bogomips.org/clogger.git'
-
-desc "post news article to rubyforge"
-task :publish_news do
-  require 'rubyforge'
-  spec = Gem::Specification.load('clogger.gemspec')
-  tmp = Tempfile.new('rf-news')
-  _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
-  tmp.puts subject
-  tmp.puts
-  tmp.puts spec.description.strip
-  tmp.puts ""
-  tmp.puts "* #{spec.homepage}"
-  tmp.puts "* #{spec.email}"
-  tmp.puts "* #{git_url}"
-  tmp.print "\nChanges:\n\n"
-  tmp.puts body
-  tmp.flush
-  system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
-  msg = File.readlines(tmp.path)
-  subject = msg.shift
-  blank = msg.shift
-  blank == "\n" or abort "no newline after subject!"
-  subject.strip!
-  body = msg.join("").strip!
-
-  rf = RubyForge.new.configure
-  rf.login
-  rf.post_news('clogger', subject, body)
-end