2014-02-26 18:50:16 +00:00
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
require 'digest/sha2'
|
|
|
|
require 'rake/clean'
|
|
|
|
require 'cliver'
|
|
|
|
|
|
|
|
GEMSPEC = Gem::Specification.load('oga.gemspec')
|
|
|
|
|
2014-03-25 08:35:39 +00:00
|
|
|
LEXER_OUTPUT = 'lib/oga/xml/lexer.rb'
|
|
|
|
PARSER_OUTPUT = 'lib/oga/xml/parser.rb'
|
2014-02-26 18:50:16 +00:00
|
|
|
|
2014-04-29 18:39:20 +00:00
|
|
|
CLEAN.include(
|
2014-04-17 18:06:24 +00:00
|
|
|
'coverage',
|
|
|
|
'yardoc',
|
|
|
|
LEXER_OUTPUT,
|
|
|
|
PARSER_OUTPUT,
|
|
|
|
'benchmark/fixtures/big.xml'
|
2014-04-29 18:39:20 +00:00
|
|
|
)
|
2014-02-26 18:50:16 +00:00
|
|
|
|
2014-04-29 18:39:20 +00:00
|
|
|
FILE_LIST = FileList.new(
|
|
|
|
'checkum/**/*.*',
|
|
|
|
'doc/**/*.*',
|
|
|
|
'lib/**/*.*',
|
|
|
|
'LICENSE',
|
|
|
|
'MANIFEST',
|
|
|
|
'*.gemspec',
|
2014-04-29 18:42:09 +00:00
|
|
|
'README.md',
|
|
|
|
'.yardopts'
|
2014-04-29 18:39:20 +00:00
|
|
|
)
|
2014-02-26 18:50:16 +00:00
|
|
|
|
|
|
|
Dir['./task/*.rake'].each do |task|
|
|
|
|
import(task)
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => :test
|