-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRakefile
More file actions
56 lines (50 loc) · 1.77 KB
/
Copy pathRakefile
File metadata and controls
56 lines (50 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "fluent-plugin-hoop"
gem.description = "This plugin doesn't support Apache Hadoop's HttpFs. See fluent-plugin-webhdfs."
gem.homepage = "https://github.com/fluent/fluent-plugin-hoop"
gem.summary = "Cloudera Hoop (Hadoop HDFS HTTP Proxy) plugin for Fluent event collector"
# gem.version = File.read("VERSION").strip
gem.authors = ["TAGOMORI Satoshi"]
gem.email = "tagomoris@gmail.com"
gem.has_rdoc = false
# gem.license = "Apache License v2.0"
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.require_paths = ['lib']
gem.add_dependency "fluentd", "~> 0.10.8"
gem.add_development_dependency "rake", ">= 0.9.2"
gem.add_development_dependency "simplecov", ">= 0.5.4"
end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
unless ENV['DEBUG']
ENV['FLUENT_TEST_DEBUG'] = 'TRUE'
end
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "fluent-plugin-hoop #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end