-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (26 loc) · 727 Bytes
/
Rakefile
File metadata and controls
32 lines (26 loc) · 727 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
32
# encoding: utf-8
require "bundler/gem_tasks"
require "yard"
require "yard/rake/yardoc_task"
require "rspec/core/rake_task"
desc "Run RSpec code examples"
namespace :spec do
desc "Run offline RSpec code examples"
RSpec::Core::RakeTask.new(:offline) do |t|
t.rspec_opts = "--tag offline"
end
desc "Run online RSpec code examples"
RSpec::Core::RakeTask.new(:online) do |t|
t.rspec_opts = "--tag online"
end
RSpec::Core::RakeTask.new(:all) do |t|
t.rspec_opts = "--tag offline --tag online"
end
end
desc "Run all RSpec code examples"
task :spec => 'spec:all'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
t.stats_options = ['--list-undoc']
end
task :default => "spec:offline"