2 require 'rake/extensiontask'
3 Rake::ExtensionTask.new('clogger_ext')
5 warn "rake-compiler not available, cross compiling disabled"
8 desc "read news article from STDIN and post to rubyforge"
11 IO.select([STDIN], nil, nil, 1) or abort "E: news must be read from stdin"
15 blank == "\n" or abort "no newline after subject!"
17 body = msg.join("").strip!
19 rf = RubyForge.new.configure
21 rf.post_news('clogger', subject, body)
24 cgit_url = "http://git.bogomips.org/cgit/clogger.git"
25 git_url = 'git://git.bogomips.org/clogger.git'
32 rc = Net::Netrc.locate('clogger-raa') or abort "~/.netrc not found"
33 password = rc.password
35 s = Gem::Specification.load('clogger.gemspec')
36 desc = [ s.description.strip ]
38 desc << "* #{s.email}"
39 desc << "* #{git_url}"
40 desc << "* #{cgit_url}"
41 desc = desc.join("\n")
42 uri = URI.parse('http://raa.ruby-lang.org/regist.rhtml')
45 :short_description => s.summary,
46 :version => s.version.to_s,
47 :status => 'experimental',
48 :owner => s.authors.first,
50 :category_major => 'Library',
51 :category_minor => 'Rack',
53 :download => 'http://rubyforge.org/frs/?group_id=8896',
55 :description_style => 'Plain',
60 res = Net::HTTP.post_form(uri, form)