summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-30 18:30:34 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-30 18:30:34 +0000
commit54301895782c299ca98982da76189359311a8769 (patch)
tree96899e34e2a6d1d6c7cd04f12c9b96daa1402ecb
parentfefeb7132968d6e3cdd76d1ea3faf1dc1dcd3ec7 (diff)
RAA is dead.
-rw-r--r--Rakefile38
1 files changed, 0 insertions, 38 deletions
diff --git a/Rakefile b/Rakefile
index 873a4f0..1217f30 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,39 +1 @@
 # -*- encoding: binary -*-
-cgit_url = "http://bogomips.org/ruby-tdb.git"
-git_url = 'git://bogomips.org/ruby-tdb.git'
-desc "post to RAA"
-task :raa_update do
-  require 'net/http'
-  require 'net/netrc'
-  rc = Net::Netrc.locate('tdb-raa') or abort "~/.netrc not found"
-  password = rc.password
-
-  s = Gem::Specification.load('tdb.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 => 'experimental',
-    :owner => s.authors.first,
-    :email => s.email,
-    :category_major => 'Library',
-    :category_minor => 'Database',
-    :url => s.homepage,
-    :download => 'http://bogomips.org/ruby-tdb/files/',
-    :license => "LGPL",
-    :description_style => 'Plain',
-    :description => desc,
-    :pass => password,
-    :submit => 'Update',
-  }
-  res = Net::HTTP.post_form(uri, form)
-  p res
-  puts res.body
-end