oga/Rakefile

41 lines
674 B
Ruby
Raw Normal View History

2014-02-26 18:50:16 +00:00
require 'bundler/gem_tasks'
require 'digest/sha2'
require 'rake/clean'
require 'rake/extensiontask'
2014-02-26 18:50:16 +00:00
require 'cliver'
GEMSPEC = Gem::Specification.load('oga.gemspec')
PARSER_OUTPUT = 'lib/oga/xml/parser.rb'
2014-02-26 18:50:16 +00:00
CLEAN.include(
'coverage',
'yardoc',
PARSER_OUTPUT,
'benchmark/fixtures/big.xml',
'profile/samples/**/*.txt',
'lib/liboga.*',
'tmp',
'ext/liboga/lexer.c'
)
2014-02-26 18:50:16 +00:00
FILE_LIST = FileList.new(
'checkum/**/*.*',
'doc/**/*.*',
'lib/**/*.rb',
'LICENSE',
'MANIFEST',
'*.gemspec',
2014-04-29 18:42:09 +00:00
'README.md',
'.yardopts',
'ext/**/*.*'
)
2014-02-26 18:50:16 +00:00
Rake::ExtensionTask.new('liboga', GEMSPEC)
2014-02-26 18:50:16 +00:00
Dir['./task/*.rake'].each do |task|
import(task)
end
task :default => :test