Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rakefile: kill raa_update task

RAA is dead.
  • Loading branch information...
commit a9dfd48f9668d0a6e04cf009cea0c4ede962144d 1 parent 0c2213d
Eric Wong authored
Showing with 0 additions and 38 deletions.
  1. +0 −1  GNUmakefile
  2. +0 −37 Rakefile
View
1  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
View
37 Rakefile
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.