Sha256: 3e618ec8a3106ca2f3dc9c1d908bea89959739205db4834823276397366d61ad

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
impala-0.1.6 Rakefile
impala-0.1.5 Rakefile
impala-0.1.4 Rakefile
impala-0.1.3 Rakefile