-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (26 loc) · 695 Bytes
/
Rakefile
File metadata and controls
34 lines (26 loc) · 695 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
# frozen_string_literal: true
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require "rake"
require "rake/extensiontask"
require "rake/testtask"
require "rubocop/rake_task"
Rake::ExtensionTask.new "isbn_check" do |ext|
ext.lib_dir = "lib/isbn_extractor/isbn_check"
end
Rake::TestTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
t.libs << "spec"
t.warning = false
end
RuboCop::RakeTask.new
task default: %i[rubocop test]
task spec: :test
Bundler::GemHelper.install_tasks
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r isbn_extractor.rb"
end