-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
43 lines (35 loc) · 742 Bytes
/
Copy pathRakefile
File metadata and controls
43 lines (35 loc) · 742 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
33
34
35
36
37
38
39
40
41
42
43
require'rubygems'
require'rake'
begin
gem 'rubygems-tasks', '~> 0.1'
require'rubygems/tasks'
Gem::Tasks.new
rescue LoadError => e
warn e.message
warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
end
begin
gem 'rspec', '>= 3.0'
require'rspec/core/rake_task'
RSpec::Core::RakeTask.new
rescue LoadError => e
task :spec do
abort "Please run `gem install rspec` to install RSpec."
end
end
task :test => :spec
task :default => :spec
begin
gem 'yard', '>= 0.8'
require'yard'
YARD::Rake::YardocTask.new
rescue LoadError => e
task :yard do
abort 'Please run `gem install yard` to install YARD.'
end
end
task :benchmark do
Dir.glob('benchmarks/*.rb') do |scr|
ruby(scr)
end
end