public
Description: Rack::Debug is middleware that provides a simple interface to ruby-debug. Helps debug apps running in Passenger.
Homepage: http://ddollar.github.com/rack-debug
Clone URL: git://github.com/ddollar/rack-debug.git
Click here to lend your support to: rack-debug and make a donation at www.pledgie.com !
rack-debug / Rakefile
100644 51 lines (41 sloc) 1.268 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'rubygems'
require 'rake'
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "rack-debug"
    gem.summary = %Q{Rack::Debug adds a middleware interface to ruby-debug}
    gem.description = <<-DESCRIPTION
 
Rack::Debug adds a middlerware interface to ruby-debug
http://github.com/github/rack-debug
 
DESCRIPTION
    gem.email = "<ddollar@gmail.com>"
    gem.homepage = "http://github.com/ddollar/rack-debug"
    gem.authors = ["David Dollar", "Bart Teeuwisse"]
 
    gem.add_dependency 'rack', '>= 1.0'
    gem.add_dependency 'ruby-debug', '>= 0.10'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
 
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end
 
Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end
 
task :spec => :check_dependencies
 
task :default => :spec
 
begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end