-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (26 loc) · 684 Bytes
/
Copy pathRakefile
File metadata and controls
26 lines (26 loc) · 684 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
require "bundler/gem_tasks"
require "rake/testtask"
project_name = "ebooks_renamer"
Rake::TestTask.new do |t|
t.libs << "lib/#{project_name}"
t.test_files = FileList["test/lib/#{project_name}/test_*.rb"]
t.verbose = true
end
task default: [:test, :rubocop]
task :pry do
require "pry"
require "awesome_print"
require_relative "lib/ebook_meta"
include EbooksRenamer
ARGV.clear
Pry.start
end
require "rubocop/rake_task"
desc "Run RuboCop on the lib directory"
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ["lib/**/*.rb"]
# only show the files with failures
task.formatters = ["files"]
# don't abort rake on failure
task.fail_on_error = false
end