Sha256: ca9612a0cad88a4426dd76028aa390fff70256bc473a3143336c3b8f007b2055

Contents?: true

Size: 939 Bytes

Versions: 5

Compression:

Stored size: 939 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

require 'rake'
require 'rake/clean'

task "thrift_gen" do
  system "rm -f common.thrift jobtracker.thrift"
  system "wget https://raw.github.com/facebook/scribe/master/if/scribe.thrift"
  system "wget https://raw.github.com/apache/thrift/trunk/contrib/fb303/if/fb303.thrift"
  system "mv scribe.thrift lib/fluent/plugin/thrift/"
  system "mv fb303.thrift lib/fluent/plugin/thrift/"
  system "mkdir -p tmp"
  system "sed -i '' 's/fb303\\/if\\///g' lib/fluent/plugin/thrift/scribe.thrift"
  system "thrift --gen rb -o tmp lib/fluent/plugin/thrift/fb303.thrift"
  system "thrift --gen rb -o tmp lib/fluent/plugin/thrift/scribe.thrift"
  system "mv tmp/gen-rb/* lib/fluent/plugin/thrift/"
  system "rm -fR tmp"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end

task :default => :test

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluent-plugin-scribe-1.0.0 Rakefile
fluent-plugin-scribe-0.10.14 Rakefile
fluent-plugin-scribe-0.10.13 Rakefile
fluent-plugin-scribe-0.10.12 Rakefile
fluent-plugin-scribe-0.10.11 Rakefile