Rakefile in impala-0.1.2 vs Rakefile in impala-0.1.3
- old
+ new
@@ -1,19 +1,19 @@
require "bundler/gem_tasks"
+require "rake/testtask"
task :default => [:test]
-task :test do
- ret = true
- Dir["test/**/*.rb"].each do |f|
- ret = ret && ruby(f, '')
- end
- exit(ret)
+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"