require "bundler/gem_tasks" require "rake/testtask" task :default => [:test] Rake::TestTask.new do |t| t.libs.push "lib" t.test_files = FileList['test/test_*.rb'] t.verbose = true end THRIFT_FILES = FileList['./thrift/*.thrift'] GENNED_FILES = FileList['./lib/impala/protocol/*'] # eden only works on 1.8, unfortunately =( task :gen do THRIFT_FILES.each do |f| sh "thrift -out lib/impala/protocol --gen rb #{f}" end sh "eden rewrite lib/impala/protocol/*.rb" end task :clean do GENNED_FILES.each { |f| rm f } end