forked from mboeh/woodhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (28 loc) · 838 Bytes
/
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
require 'rubygems'
require 'rake'
require 'bundler/setup'
require 'bundler'
Bundler::GemHelper.install_tasks
require 'spec/rake/spectask'
namespace :spec do
Spec::Rake::SpecTask.new(:server) do |t|
t.spec_files = FileList["spec/**/*_spec.rb"] - FileList["spec/integration/*_spec.rb"]
end
Spec::Rake::SpecTask.new(:client) do |t|
t.spec_files = %w[spec/layout_spec.rb spec/middleware_stack_spec.rb spec/mixin_registry_spec.rb]
end
end
# Full server specs are supported on Ruby 1.9 or JRuby.
if RUBY_VERSION.to_f >= 1.9 or %w[jruby rbx].include?(RUBY_ENGINE)
task :spec => "spec:server"
else
task :spec => "spec:client"
end
task :default => :spec
if ENV['RDOC']
require 'rdoc/task'
Rake::RDocTask.new(:rdoc) do |t|
t.main = "README.rdoc"
t.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
end