From a9dfd48f9668d0a6e04cf009cea0c4ede962144d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Sep 2013 18:17:20 +0000 Subject: Rakefile: kill raa_update task RAA is dead. --- GNUmakefile | 1 - Rakefile | 37 ------------------------------------- 2 files changed, 38 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 34a2d95..fcfbc48 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -256,7 +256,6 @@ release: verify package $(release_notes) $(release_changes) # in case of gem downloads from RubyForge releases page -rubyforge add_file \ $(rfproject) $(rfpackage) $(VERSION) $(pkggem) - $(RAKE) raa_update VERSION=$(VERSION) $(RAKE) fm_update VERSION=$(VERSION) else gem install-gem: GIT-VERSION-FILE diff --git a/Rakefile b/Rakefile index 9f36a74..01ff5d0 100644 --- a/Rakefile +++ b/Rakefile @@ -5,43 +5,6 @@ require 'wrongdoc' cgit_url = Wrongdoc.config[:cgit_url] git_url = Wrongdoc.config[:git_url] -desc "post to RAA" -task :raa_update do - require 'net/http' - require 'net/netrc' - rc = Net::Netrc.locate('unicorn-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('unicorn.gemspec') - desc = [ s.description.strip ] - desc << "" - desc << "* #{s.email}" - desc << "* #{git_url}" - desc << "* #{cgit_url}" - desc = desc.join("\n") - uri = URI.parse('http://raa.ruby-lang.org/regist.rhtml') - form = { - :name => s.name, - :short_description => s.summary, - :version => s.version.to_s, - :status => 'stable', - :owner => s.authors.first, - :email => s.email, - :category_major => 'Library', - :category_minor => 'Web', - :url => s.homepage, - :download => "http://rubyforge.org/frs/?group_id=1306", - :license => "Ruby's", - :description_style => 'Plain', - :description => desc, - :pass => password, - :submit => "Update", - } - res = Net::HTTP.post_form(uri, form) - p res - puts res.body -end - desc "post to FM" task :fm_update do require 'tempfile' -- cgit v1.2.3-24-ge0c7