forked from mojombo/chronic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
41 lines (31 loc) · 1.04 KB
/
Rakefile
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
38
39
40
41
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'spec/rake/spectask'
require './lib/chronic.rb'
Hoe.spec 'chronic' do
readme_file = File.expand_path(File.join('.', "README.rdoc"))
rubyforge_name = 'chronic'
summary = 'A natural language date parser'
developer('Tom Preston-Werner','[email protected]')
developer('Colin Shea','[email protected]')
description = paragraphs_of(readme_file, 2).join("\n\n")
url = paragraphs_of(readme_file, 0).first.split(/\n/)[1..-1]
changes = paragraphs_of('History.txt', 0..1).join("\n\n")
need_tar = false
extra_deps = []
version = Chronic::VERSION
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
# vim: syntax=ruby