-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
53 lines (43 loc) · 932 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop//rake_task'
require 'yard'
require 'yard/rake/yardoc_task'
require "carioca/rake/manage"
require 'code_statistics'
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:spec)
task default: :spec
require 'version'
require 'rake/version_task'
Rake::VersionTask.new
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'doc/**/*', 'spec/**/*_spec.rb']
t.options += ['-o', 'yardoc']
end
YARD::Config.load_plugin('yard-rspec')
namespace :yardoc do
task :clobber do
begin
rm_r 'yardoc'
rescue StandardError
nil
end
begin
rm_r '.yardoc'
rescue StandardError
nil
end
begin
rm_r 'pkg'
rescue StandardError
nil
end
end
end
task clobber: 'yardoc:clobber'
desc "Run CVE security audit over bundle"
task :audit do
system('bundle audit')
end