Skip to content

Commit ee253bb

Browse files
committed
Add functional Rakefile (defaults to rspec)
1 parent b5984cc commit ee253bb

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

Rakefile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
require 'rubygems'
22
require 'rake'
33
require 'bundler/gem_tasks'
4+
require 'rspec/core/rake_task'
45

5-
require 'spec/rake/spectask'
6-
Spec::Rake::SpecTask.new(:spec) do |spec|
7-
spec.libs << 'lib' << 'spec'
8-
spec.spec_files = FileList['spec/**/*_spec.rb']
9-
end
10-
11-
Spec::Rake::SpecTask.new(:rcov) do |spec|
12-
spec.libs << 'lib' << 'spec'
6+
RSpec::Core::RakeTask.new(:spec) do |spec|
137
spec.pattern = 'spec/**/*_spec.rb'
14-
spec.rcov = true
158
end
169

1710
task :default => :spec
18-
19-
require 'rake/rdoctask'
20-
Rake::RDocTask.new do |rdoc|
21-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
22-
23-
rdoc.rdoc_dir = 'rdoc'
24-
rdoc.title = "rack-reverse-proxy #{version}"
25-
rdoc.rdoc_files.include('README*')
26-
rdoc.rdoc_files.include('lib/**/*.rb')
27-
end

0 commit comments

Comments
 (0)