forked from amplitude/experiment-ruby-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (25 loc) · 679 Bytes
/
Rakefile
File metadata and controls
33 lines (25 loc) · 679 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
default_tasks = []
task default: :spec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
default_tasks << :spec
if RUBY_VERSION >= '2.1'
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
end
default_tasks << :rubocop
end
task default: default_tasks
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Amplitude Experiment Ruby SDK'
rdoc.main = 'README.md'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'README.md']
end