Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91c613c87d
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (30 sloc) 1.012 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require 'spec/rake/spectask'

require './lib/calais.rb'

Hoe.new('calais', Calais::VERSION) do |p|
  p.rubyforge_name = 'calais'
  p.author = 'Abhay Kumar'
  p.summary = 'A Ruby interface to the Calais Web Service'
  p.description = p.paragraphs_of('README.txt', 1..9).join("\n\n")
  p.email = 'info@opensynapse.net'
  p.url = 'http://calais.rubyforge.org'
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
  p.remote_rdoc_dir = ''
end

desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList["spec/**/*_spec.rb"].sort
  t.spec_opts = ["--options", "spec/spec.opts"]
end

desc "Run all specs and get coverage statistics"
Spec::Rake::SpecTask.new('coverage') do |t|
  t.spec_opts = ["--options", "spec/spec.opts"]
  t.spec_files = FileList["spec/*_spec.rb"].sort
  t.rcov_opts = ["--exclude", "spec", "--exclude", "gems"]
  t.rcov = true
end

Rake::Task[:default].prerequisites.clear
task :default => :spec

# vim: syntax=Ruby
Something went wrong with that request. Please try again.