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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e55e9309b56820ce9c6e3889d78a7adef469a666
4
- data.tar.gz: 819fd35752ace0455f78083abfb998fa6dbd0a78
3
+ metadata.gz: 9e5b1573225969efe890856a4a5ab0ecf3e43f4c
4
+ data.tar.gz: 1f38b29b10d99a69f8d2c30b062d69f06272af84
5
5
  SHA512:
6
- metadata.gz: afb6a9e80ba971b9a2b7916f797f1a15e82e8c45da068819e6af2badd5dc7cfed789b587444e2eac9f7d275919aeef3890e5c201d11d93311d640cb577c0c285
7
- data.tar.gz: f2aefd89cbb13156b6b14215f8e3b32a7f6f85e406c8d71a508f98f0f1e3f223a85e64f7065f3c5d25608799f684b7b6fb5e21790ad3c2c29428e85c7241261d
6
+ metadata.gz: 2a2828d7951cda1be2e5ed3952220c46cb670145c76efeacb0607209810259e823e0fa97dda372c9c4a1acacf2e95daeaf5b420d0fc6f3bb7c09ff02afc90df4
7
+ data.tar.gz: 4717f80509070ccb6f177eb0eb532bc1c9c1900d07c2989f6030903dbfbcc205fe30423d64fb58e8a92d72b31f62a860db8ec673cf67309cc8eb2c26abcecaad
@@ -1,6 +1,8 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
2
  - 2.1.*
3
+ - 2.2.*
4
+ - 2.3.0
5
5
  gemfile:
6
6
  - Gemfile
7
+ before_install:
8
+ - gem update bundler
@@ -1,4 +1,9 @@
1
+ ## 0.0.2 (2016-09-08)
2
+
3
+ * Support `@type`
4
+
1
5
  ## 0.0.1
2
6
 
3
7
  First version
4
8
 
9
+
data/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # fluent-plugin-copy_ex
2
2
 
3
- ## About
4
-
5
3
  Fluentd out\_copy extension
6
4
 
7
5
  ## What is this for?
8
6
 
9
- Think of `out_copy` configuration as folloings:
7
+ Think of `out_copy` configuration as followings:
10
8
 
11
9
  ```apache
12
10
  <match **>
@@ -1,9 +1,9 @@
1
1
  <match **>
2
2
  type copy_ex
3
- <store ignore-failure>
3
+ <store ignore_error>
4
4
  type stdout
5
5
  </store>
6
- <store ignore-failure>
6
+ <store ignore_error>
7
7
  type stdout
8
8
  </store>
9
9
  </match>
@@ -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.1"
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.1
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: 2014-04-30 00:00:00.000000000 Z
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.2.2
122
+ rubygems_version: 2.5.1
109
123
  signing_key:
110
124
  specification_version: 4
111
125
  summary: Fluentd out_copy extension