Sha256: e9d5e4b2d1217e4593b3e1373291ef7f161df450d895b94b4e83893a897f0f2e

Contents?: true

Size: 684 Bytes

Versions: 8

Compression:

Stored size: 684 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ebooks_renamer-0.2.6 Rakefile
ebooks_renamer-0.2.5 Rakefile
ebooks_renamer-0.2.4 Rakefile
ebooks_renamer-0.2.3 Rakefile
ebooks_renamer-0.2.2 Rakefile
ebooks_renamer-0.2.1 Rakefile
ebooks_renamer-0.2.0 Rakefile
ebooks_renamer-0.1.5 Rakefile