forked from abhay/gchart
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (26 loc) · 917 Bytes
/
Rakefile
File metadata and controls
31 lines (26 loc) · 917 Bytes
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
require "rubygems"
require "hoe"
require "spec/rake/spectask"
require "./lib/version.rb"
hoe = Hoe.new("gchart", GChart::VERSION) do |p|
p.rubyforge_name = "gchart"
p.author = "John Barnette"
p.email = "jbarnette@rubyforge.org"
p.summary = "GChart uses the Google Chart API to create pretty pictures."
p.description = p.paragraphs_of("README.txt", 2..5).join("\n\n")
p.url = "http://gchart.rubyforge.org"
p.changes = p.paragraphs_of("CHANGELOG.txt", 0..1).join("\n\n")
end
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
t.spec_opts = ["--options", "spec/spec.opts"]
end
desc "Run all specs and get coverage statistics"
Spec::Rake::SpecTask.new('spec:rcov') do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
t.rcov = true
t.spec_opts = ["--options", "spec/spec.opts"]
end
Rake::Task[:default].prerequisites.clear
task :default => :spec