6 require 'spec/rake/spectask'
7 require './lib/augment.rb'
9 Hoe.new('augment', Augment::VERSION) do |p|
10 p.rubyforge_name = 'augment'
11 p.author = 'Phil Hagelberg'
12 p.email = 'technomancy@gmail.com'
13 p.summary = 'Augment is a system for collecting and displaying code metadata.'
14 p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
15 p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
16 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
17 p.extra_deps << ['miniunit', '>= 1.1.0']
18 p.extra_deps << ['json', '>= 1.1.1']
22 system("scp html/* technomancy@rubyforge.org:/var/www/gforge-projects/augment/")
26 FileUtils.cd(File.dirname(__FILE__) + '/html/src/')
27 TEMPLATE = File.read('html.erb')
28 Dir.glob('*html').each do |filename|
29 @title = ("Augment - " + filename.match(/(.*)\.html/)[1].gsub(/_/, ' ').capitalize).gsub(/ - Index/, '')
30 @body = File.read(filename)
32 html = ERB.new(TEMPLATE).result( binding )
33 File.open("../#{filename}", 'w') { |f| f.puts html }
37 Spec::Rake::SpecTask.new