Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 593 Bytes
# encoding: utf-8
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rdoc/task'
desc 'Default: Run all tests.'
task :default => :test
desc 'Test gem for klarna.'
Rake::TestTask.new(:test) do |test|
test.libs << ['lib', 'test']
test.pattern = 'test/**/*_test.rb'
end
desc 'Generate gem documentation for klarna.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Klarna Ruby API-wrapper Documentation'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.textile')
rdoc.rdoc_files.include('lib/**/*.rb')
end