Sha256: 203d75e0be05a64b38c55197697161e41e92a170a42552cc00ac960fed544229

Contents?: true

Size: 705 Bytes

Versions: 3

Compression:

Stored size: 705 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
project_name = '<%= name %>'

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/<%= name %>'
  include <%= MiscUtils.camel_case(name) %>
  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

3 entries across 3 versions & 1 rubygems

Version Path
gem_bootstrap-0.2.1 templates/Rakefile
gem_bootstrap-0.2.0 templates/Rakefile
gem_bootstrap-0.1.3 templates/Rakefile