Sha256: 56bffacf409066864200c5f45aaf38f86a5a2515a9d83f8be0c9958c4f03b118
Contents?: true
Size: 681 Bytes
Versions: 11
Compression:
Stored size: 681 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" project_name = "filename_cleaner" 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 task :pry do require "pry" require "awesome_print" require_relative "lib/#{project_name}" include FilenameCleaner 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
11 entries across 11 versions & 1 rubygems