diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:22:15 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:22:15 +0000 |
commit | 806d7c85ac63f50e21a9e6d352f83dc063ce17e8 (patch) | |
tree | 0001966cc8dbddcc7e3c702ee8b4eae1ae32fdc6 | |
parent | 0e98393a0933ab5564d5fb10644f46380a2eaac8 (diff) | |
download | ruby_io_splice-806d7c85ac63f50e21a9e6d352f83dc063ce17e8.tar.gz |
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 e3b0136..7dfbbe6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,7 +6,6 @@ rfpackage := io_splice include pkg.mk ifneq ($(VERSION),) release:: - $(RAKE) raa_update VERSION=$(VERSION) $(RAKE) publish_news VERSION=$(VERSION) endif rcov: build @@ -31,40 +31,3 @@ task :publish_news do rf.login 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('io_splice-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('io_splice.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 => 'System', - :url => s.homepage, - :download => 'http://rubyforge.org/frs/?group_id=5626', - :license => "LGPL", - :description_style => 'Plain', - :description => desc, - :pass => password, - :submit => 'Update', - } - res = Net::HTTP.post_form(uri, form) - p res - puts res.body -end |