1 # -*- encoding: binary -*-
2 autoload :Gem, 'rubygems'
3 cgit_url = "http://git.bogomips.org/cgit/metropolis.git"
4 git_url = 'git://git.bogomips.org/metropolis.git'
10 rc = Net::Netrc.locate('metropolis-raa') or abort "~/.netrc not found"
11 password = rc.password
13 s = Gem::Specification.load('metropolis.gemspec')
14 desc = [ s.description.strip ]
16 desc << "Metropolis is licensed under the terms of the AGPLv3, " \
17 "but RAA doesn't have a field for it"
19 desc << "* #{s.email}"
20 desc << "* #{git_url}"
21 desc << "* #{cgit_url}"
22 desc = desc.join("\n")
23 uri = URI.parse('http://raa.ruby-lang.org/regist.rhtml')
26 :short_description => s.summary,
27 :version => s.version.to_s,
28 :status => 'experimental',
29 :owner => s.authors.first,
31 :category_major => 'Library',
32 :category_minor => 'Web',
34 :download => "http://rubyforge.org/frs/?group_id=8977",
35 :license => "OpenSource", # AGPLv3, actually
36 :description_style => 'Plain',
41 res = Net::HTTP.post_form(uri, form)