forked from brynary/rack-bug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (34 loc) · 1.14 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
42
require "rubygems"
require "spec/rake/spectask"
$LOAD_PATH.unshift "lib"
require "rack/bug"
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "rack-bug"
s.author = "Bryan Helmkamp"
s.email = "bryan" + "@" + "brynary.com"
s.homepage = "http://github.com/brynary/rack-bug"
s.summary = "Debugging toolbar for Rack applications implemented as middleware"
# s.description = "TODO"
s.rubyforge_project = "rack-bug"
s.extra_rdoc_files = %w(README.rdoc MIT-LICENSE.txt)
end
Jeweler::RubyforgeTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
end
desc "Run all specs in spec directory with RCov"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.rcov = true
t.rcov_opts = lambda do
IO.readlines(File.dirname(__FILE__) + "/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
end
end
task :spec => :check_dependencies
desc "Run the specs"
task :default => :spec