5 require 'spec/rake/spectask'
7 require './lib/calais.rb'
9 Hoe.new('calais', Calais::VERSION) do |p|
10 p.rubyforge_name = 'calais'
11 p.author = 'Abhay Kumar'
12 p.email = 'info@opensynapse.net'
13 p.summary = 'A Ruby library to access the OpenCalais service'
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")
20 Spec::Rake::SpecTask.new do |t|
21 t.spec_files = FileList["spec/*_spec.rb"].sort
22 t.spec_opts = ["--options", "spec/spec.opts"]
25 desc "Run all specs and get coverage statistics"
26 Spec::Rake::SpecTask.new('coverage') do |t|
27 t.spec_opts = ["--options", "spec/spec.opts"]
28 t.spec_files = FileList["spec/*_spec.rb"].sort
29 t.rcov_opts = ["--exclude", "spec", "--exclude", "gems"]
33 Rake::Task[:default].prerequisites.clear
34 task :default => :spec