Rakefile in io_splice-4.2.0 vs Rakefile in io_splice-4.3.0
- old
+ new
@@ -29,42 +29,5 @@
rf = RubyForge.new.configure
rf.login
rf.post_news('qrp', subject, body)
end
-
-desc "post to RAA"
-task :raa_update do
- require 'net/http'
- require 'net/netrc'
- rc = Net::Netrc.locate('io_splice-raa') or abort "~/.netrc not found"
- password = rc.password
-
- s = Gem::Specification.load('io_splice.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 => 'System',
- :url => s.homepage,
- :download => 'http://rubyforge.org/frs/?group_id=5626',
- :license => "LGPL",
- :description_style => 'Plain',
- :description => desc,
- :pass => password,
- :submit => 'Update',
- }
- res = Net::HTTP.post_form(uri, form)
- p res
- puts res.body
-end