Files
oga/Rakefile
T
Yorick Peterse 59dae873e4 Don't rely on Git for generating the MANIFEST.
When using Git the resulting Gem will contain far too many useless files. For
example, the profile/ and spec/ directories are not needed when building Gems.
2014-04-29 20:39:20 +02:00

34 lines
543 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'
CLEAN.include(
'coverage',
'yardoc',
LEXER_OUTPUT,
PARSER_OUTPUT,
'benchmark/fixtures/big.xml'
)
FILE_LIST = FileList.new(
'checkum/**/*.*',
'doc/**/*.*',
'lib/**/*.*',
'LICENSE',
'MANIFEST',
'*.gemspec',
'README.md'
)
Dir['./task/*.rake'].each do |task|
import(task)
end
task :default => :test