-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
51 lines (40 loc) · 1.08 KB
/
Rakefile
File metadata and controls
51 lines (40 loc) · 1.08 KB
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
44
45
46
47
48
49
50
51
# frozen_string_literal: true
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
requested_tasks = Rake.application.top_level_tasks
if (requested_tasks & %w[rdoc clobber_rdoc]).any?
require "rdoc/task"
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.title = "OctaSpace Ruby SDK"
rdoc.options << "--line-numbers"
rdoc.rdoc_files.include("README.md")
rdoc.rdoc_files.include("lib/**/*.rb")
end
end
if (requested_tasks & %w[build install release]).any?
require "bundler/gem_tasks"
end
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.pattern = "test/**/*_test.rb"
t.verbose = false
end
if (requested_tasks & %w[lint standard standard:fix standard:fix_unsafely]).any?
require "standard/rake"
desc "Lint with the Standard Ruby style guide"
task lint: :standard
end
if defined?(Rails)
load "rails/tasks/statistics.rake"
STATS_DIRECTORIES = [
%w[Library lib/],
%w[Tests test/]
].freeze
end
task default: :test