diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:17:20 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-30 18:19:18 +0000 |
commit | a9dfd48f9668d0a6e04cf009cea0c4ede962144d (patch) | |
tree | 0ff80622c8d95e7cbbb4aaa443ca53568f3ac6c6 | |
parent | 0c2213dfe23f177c91d76c0c70aec5a01f5a7f55 (diff) | |
download | unicorn-a9dfd48f9668d0a6e04cf009cea0c4ede962144d.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 34a2d95..fcfbc48 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -256,7 +256,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) $(RAKE) fm_update VERSION=$(VERSION) else gem install-gem: GIT-VERSION-FILE @@ -5,43 +5,6 @@ require 'wrongdoc' cgit_url = Wrongdoc.config[:cgit_url] git_url = Wrongdoc.config[:git_url] -desc "post to RAA" -task :raa_update do - require 'net/http' - require 'net/netrc' - rc = Net::Netrc.locate('unicorn-raa') or abort "~/.netrc not found" - password = rc.password - - s = Gem::Specification.load('unicorn.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 => 'Web', - :url => s.homepage, - :download => "http://rubyforge.org/frs/?group_id=1306", - :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' |