diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:25:48 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:26:06 +0000 |
commit | 7674ebfa5364a6b8a01b6552f8e9f40f6775b141 (patch) | |
tree | cdc0de3f738cb8a46b1465038670d9e106bae649 | |
parent | 2a2b451dc7878ad0eebfed27cf874b279c363eb4 (diff) | |
download | local-openid-7674ebfa5364a6b8a01b6552f8e9f40f6775b141.tar.gz |
Rakefile: kill raa_update task
RAA is dead
-rw-r--r-- | GNUmakefile | 1 | ||||
-rw-r--r-- | Rakefile | 37 |
2 files changed, 0 insertions, 38 deletions
diff --git a/GNUmakefile b/GNUmakefile index 2928059..f413c90 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -5,6 +5,5 @@ rfpackage := local-openid include pkg.mk ifneq ($(VERSION),) release:: - $(RAKE) raa_update VERSION=$(VERSION) $(RAKE) publish_news VERSION=$(VERSION) endif @@ -32,43 +32,6 @@ task :publish_news do rf.post_news('qrp', subject, body) end -desc "post to RAA" -task :raa_update do - require 'net/http' - require 'net/netrc' - rc = Net::Netrc.locate('local-openid-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('local-openid.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 => 'Application', - :category_minor => 'WWW', - :url => s.homepage, - :download => 'http://rubyforge.org/frs/?group_id=5626', - :license => "OpenSource", # AGPLv3, specifically - :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' |