fluent-plugin-copy_ex 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +5 -0
- data/README.md +1 -3
- data/example/fluent.conf +2 -2
- data/fluent-plugin-copy_ex.gemspec +2 -1
- data/lib/fluent/plugin/out_copy_ex.rb +4 -2
- data/test/plugin/test_out_copy_ex.rb +12 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e5b1573225969efe890856a4a5ab0ecf3e43f4c
|
4
|
+
data.tar.gz: 1f38b29b10d99a69f8d2c30b062d69f06272af84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a2828d7951cda1be2e5ed3952220c46cb670145c76efeacb0607209810259e823e0fa97dda372c9c4a1acacf2e95daeaf5b420d0fc6f3bb7c09ff02afc90df4
|
7
|
+
data.tar.gz: 4717f80509070ccb6f177eb0eb532bc1c9c1900d07c2989f6030903dbfbcc205fe30423d64fb58e8a92d72b31f62a860db8ec673cf67309cc8eb2c26abcecaad
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/example/fluent.conf
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-copy_ex"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.2"
|
7
7
|
s.authors = ["Naotoshi Seo"]
|
8
8
|
s.email = ["sonots@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/sonots/fluent-plugin-copy_ex"
|
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency "rake"
|
23
23
|
s.add_development_dependency "pry"
|
24
24
|
s.add_development_dependency "pry-nav"
|
25
|
+
s.add_development_dependency "test-unit"
|
25
26
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fluent/output'
|
2
|
+
|
1
3
|
module Fluent
|
2
4
|
class CopyExOutput < MultiOutput
|
3
5
|
Plugin.register_output('copy_ex', self)
|
@@ -17,9 +19,9 @@ module Fluent
|
|
17
19
|
conf.elements.select {|e|
|
18
20
|
e.name == 'store'
|
19
21
|
}.each {|e|
|
20
|
-
type = e['type']
|
22
|
+
type = e['@type'] || e['type']
|
21
23
|
unless type
|
22
|
-
raise ConfigError, "Missing 'type' parameter on <store> directive"
|
24
|
+
raise ConfigError, "Missing '@type' parameter on <store> directive"
|
23
25
|
end
|
24
26
|
log.debug "adding store type=#{type.dump}"
|
25
27
|
|
@@ -1,6 +1,18 @@
|
|
1
1
|
require 'fluent/test'
|
2
2
|
|
3
3
|
class CopyExOutputTest < Test::Unit::TestCase
|
4
|
+
class << self
|
5
|
+
def startup
|
6
|
+
spec = Gem::Specification.find { |s| s.name == 'fluentd' }
|
7
|
+
$LOAD_PATH.unshift File.join(spec.full_gem_path, 'test', 'scripts')
|
8
|
+
require 'fluent/plugin/out_test'
|
9
|
+
end
|
10
|
+
|
11
|
+
def shutdown
|
12
|
+
$LOAD_PATH.shift
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
4
16
|
def setup
|
5
17
|
Fluent::Test.setup
|
6
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-copy_ex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: test-unit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Fluentd out_copy extension
|
70
84
|
email:
|
71
85
|
- sonots@gmail.com
|
@@ -105,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
119
|
version: '0'
|
106
120
|
requirements: []
|
107
121
|
rubyforge_project: fluent-plugin-copy_ex
|
108
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.5.1
|
109
123
|
signing_key:
|
110
124
|
specification_version: 4
|
111
125
|
summary: Fluentd out_copy extension
|