Sha256: 8c12303f5470445e889d430149e339ca0f39895bc9ec1f7decc6e64d97e8eafb

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"
project_name = "html2pdf"
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/html2pdf"
  include Html2Pdf
  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
html2pdf-0.2.6 Rakefile
html2pdf-0.2.5 Rakefile
html2pdf-0.2.4 Rakefile
html2pdf-0.2.3 Rakefile
html2pdf-0.2.2 Rakefile
html2pdf-0.2.1 Rakefile
html2pdf-0.2.0 Rakefile
html2pdf-0.1.7 Rakefile