From: Eric Wong Date: Mon, 30 Sep 2013 18:20:45 +0000 (+0000) Subject: Rakefile: kill raa_update task X-Git-Tag: v4.2.0~5 X-Git-Url: https://repo.or.cz/w/zbatery.git/commitdiff_plain/56925269d8f94162dcc6c8004f82409115c4ed87 Rakefile: kill raa_update task RAA is dead --- diff --git a/GNUmakefile b/GNUmakefile index 1676616..c53b494 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -8,7 +8,6 @@ doc:: man-rdoc include pkg.mk ifneq ($(VERSION),) release:: - $(RAKE) raa_update VERSION=$(VERSION) $(RAKE) publish_news VERSION=$(VERSION) $(RAKE) fm_update VERSION=$(VERSION) endif diff --git a/Rakefile b/Rakefile index ca58308..d1ca285 100644 --- a/Rakefile +++ b/Rakefile @@ -33,43 +33,6 @@ task :publish_news do rf.post_news('rainbows', subject, body) end -desc "post to RAA" -task :raa_update do - require 'net/http' - require 'net/netrc' - rc = Net::Netrc.locate('zbatery-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('zbatery.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 => 'experimental', - :owner => s.authors.first, - :email => s.email, - :category_major => 'Library', - :category_minor => 'Web', - :url => s.homepage, - :download => "http://rubyforge.org/frs/?group_id=8977", - :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'