diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:26:52 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:26:52 +0000 |
commit | 2935c3a5f3543b5d541b7364278faf218ac35037 (patch) | |
tree | 940085e244de173d2978567694b580556a211265 | |
parent | f28a47d7d67e0f96f8733e8fcfdb1aeb3958de20 (diff) | |
download | metropolis-master.tar.gz |
RAA is dead.
-rw-r--r-- | GNUmakefile | 1 | ||||
-rw-r--r-- | Rakefile | 43 |
2 files changed, 0 insertions, 44 deletions
diff --git a/GNUmakefile b/GNUmakefile index 2d05b07..48558bd 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -107,7 +107,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) else gem install-gem: GIT-VERSION-FILE $(MAKE) $@ VERSION=$(GIT_VERSION) @@ -1,44 +1 @@ # -*- encoding: binary -*- -autoload :Gem, 'rubygems' -cgit_url = "http://git.bogomips.org/cgit/metropolis.git" -git_url = 'git://git.bogomips.org/metropolis.git' - -desc "post to RAA" -task :raa_update do - require 'net/http' - require 'net/netrc' - rc = Net::Netrc.locate('metropolis-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('metropolis.gemspec') - desc = [ s.description.strip ] - desc << "" - desc << "Metropolis is licensed under the terms of the AGPLv3, " \ - "but RAA doesn't have a field for it" - 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 => "OpenSource", # AGPLv3, actually - :description_style => 'Plain', - :description => desc, - :pass => password, - :submit => "Update", - } - res = Net::HTTP.post_form(uri, form) - p res - puts res.body -end |