Files
oga/Rakefile
T
Yorick Peterse 6f1ce17b31 Benchmark for lexer lines/second.
This benchmark uses a fixture file that is automatically downloaded.
2014-04-17 20:06:24 +02:00

28 lines
484 B
Ruby

require 'bundler/gem_tasks'
require 'digest/sha2'
require 'rake/clean'
require 'cliver'
GEMSPEC = Gem::Specification.load('oga.gemspec')
LEXER_OUTPUT = 'lib/oga/xml/lexer.rb'
PARSER_OUTPUT = 'lib/oga/xml/parser.rb'
GENERATED_FILES = [
'coverage',
'yardoc',
LEXER_OUTPUT,
PARSER_OUTPUT,
'benchmark/fixtures/big.xml'
]
GENERATED_FILES.each do |file|
CLEAN << file if File.exist?(file)
end
Dir['./task/*.rake'].each do |task|
import(task)
end
task :default => :test