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-03-25 08:35:39 +00:00
|
|
|
GENERATED_FILES = ['coverage', 'yardoc', LEXER_OUTPUT, PARSER_OUTPUT]
|
2014-02-26 18:50:16 +00:00
|
|
|
|
|
|
|
GENERATED_FILES.each do |file|
|
|
|
|
CLEAN << file if File.exist?(file)
|
|
|
|
end
|
|
|
|
|
|
|
|
Dir['./task/*.rake'].each do |task|
|
|
|
|
import(task)
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => :test
|