about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile38
-rw-r--r--clogger.gemspec2
2 files changed, 39 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index ff739a8..8997170 100644
--- a/Rakefile
+++ b/Rakefile
@@ -117,3 +117,41 @@ task :release_notes do
   print "\nChanges:\n\n"
   puts body
 end
+
+desc "post to RAA"
+task :raa_update do
+  require 'rubygems'
+  require 'net/http'
+  require 'net/netrc'
+  rc = Net::Netrc.locate('clogger-raa') or abort "~/.netrc not found"
+  password = rc.password
+
+  s = Gem::Specification.load('clogger.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 => 'Rack',
+    :url => s.homepage,
+    :download => 'http://rubyforge.org/frs/?group_id=8896',
+    :license => 'LGPLv3',
+    :description_style => 'Plain',
+    :description => desc,
+    :pass => password,
+    :submit => 'Update',
+  }
+  res = Net::HTTP.post_form(uri, form)
+  p res
+  puts res.body
+end
diff --git a/clogger.gemspec b/clogger.gemspec
index 665eb1c..7804e9e 100644
--- a/clogger.gemspec
+++ b/clogger.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
     s.required_rubygems_version = Gem::Requirement.new(">= 0")
   end
   s.homepage = 'http://clogger.rubyforge.org/'
-  s.authors = ["Eric Wong"]
+  s.authors = ["cloggers"]
   s.date = Time.now.utc.strftime('%Y-%m-%d')
   s.description = %q{
 Clogger is Rack middleware for logging HTTP requests.  The log format