2014-02-26 18:50:16 +00:00
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
require 'digest/sha2'
|
|
|
|
require 'rake/clean'
|
2014-05-04 22:25:34 +00:00
|
|
|
require 'rake/extensiontask'
|
2014-02-26 18:50:16 +00:00
|
|
|
require 'cliver'
|
|
|
|
|
|
|
|
GEMSPEC = Gem::Specification.load('oga.gemspec')
|
|
|
|
|
2014-03-25 08:35:39 +00:00
|
|
|
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',
|
|
|
|
PARSER_OUTPUT,
|
2014-05-01 18:57:17 +00:00
|
|
|
'benchmark/fixtures/big.xml',
|
2014-05-04 22:25:34 +00:00
|
|
|
'profile/samples/**/*.txt',
|
|
|
|
'lib/liboga.*',
|
|
|
|
'tmp',
|
|
|
|
'ext/liboga/lexer.c'
|
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/**/*.*',
|
2014-05-04 22:25:34 +00:00
|
|
|
'lib/**/*.rb',
|
2014-04-29 18:39:20 +00:00
|
|
|
'LICENSE',
|
|
|
|
'MANIFEST',
|
|
|
|
'*.gemspec',
|
2014-04-29 18:42:09 +00:00
|
|
|
'README.md',
|
2014-05-04 22:25:34 +00:00
|
|
|
'.yardopts',
|
|
|
|
'ext/**/*.*'
|
2014-04-29 18:39:20 +00:00
|
|
|
)
|
2014-02-26 18:50:16 +00:00
|
|
|
|
2014-05-04 22:25:34 +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
|