Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (26 sloc) 0.854 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rubygems'
require 'prawn'
require 'barby'

# local version number file
require 'lib/version'

desc 'Default: run specs.'
task :default => :spec

desc 'Run the specs for the plugin'
Spec::Rake::SpecTask.new(:spec) do |t|
  puts "KillBill specs, versão #{Riopro::KillBill::VERSION}"
  puts "Running on Ruby Version: #{RUBY_VERSION}"
  puts "Running prawn version #{Prawn::VERSION}"
  t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
  t.spec_files = FileList['spec/**/*_spec.rb']
end

desc 'Generate documentation for the plugin'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'KillBill'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
Something went wrong with that request. Please try again.