license key must now be passed in rather than loaded from YAML file
[ruby-calais.git] / Rakefile
blobd517dc2a856f0fef390ab7e47cfe32d036454d99
1 # -*- ruby -*-
3 require 'rubygems'
4 require 'hoe'
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")
17 end
19 desc "Run all specs"
20 Spec::Rake::SpecTask.new do |t|
21   t.spec_files = FileList["spec/*_spec.rb"].sort
22   t.spec_opts = ["--options", "spec/spec.opts"]
23 end
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"]
30   t.rcov = true
31 end
33 Rake::Task[:default].prerequisites.clear
34 task :default => :spec
36 # vim: syntax=Ruby