Sha256: 15ee329a726a2951d8e3df6a0c03c497e030fae2c53ff8028d177d88f4263ed4

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'

YARD::Rake::YardocTask.new

Rake::TestTask.new do |t|
  t.test_files = FileList['test/test_*.rb']
end

task :build => :test

task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['test'].execute
end

desc "Create test pdf files"
task :make_test_pdf do
  text_to_pdf = 'enscript -B -f "Times-Roman6.0" %s --output=- | ps2pdf - > %s'

  Dir.chdir(File.join(File.dirname(__FILE__), 'test', 'data')) do
    Dir['*statement*.txt']. each do |name|
      name = name.sub(/\.txt$/, '')
      system(text_to_pdf % [name + '.txt', name + '.pdf'])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parse_capitalone_pdf_statement-1.1.0 Rakefile