fluent-plugin-config-expander 0.2.0 → 0.2.1

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: 5ad6529782532130678cbbd6bc03aa335e8564f9
4
- data.tar.gz: a639204ce86d477002d5f126fc721e3a12e1a27f
3
+ metadata.gz: 6b7eccf9f3a0d3b56837e0fec4a558463d5e807c
4
+ data.tar.gz: 371c9510751723c5f95586f612a5bbb19c5a1fac
5
5
  SHA512:
6
- metadata.gz: e174212a0444eae13a6c3d737f9afb3cb4eaa2ee05642f433ffc00c3d60f188a2c59668a03e4750543d1f0e7aa408655cb8e1265148aaea828c8f3f52680718b
7
- data.tar.gz: 116d14ebd7709762c41853d8f76d56a3f2cb3d3daddddae7ef2946eb9fed885d725c585748a3c331b726e6dad5d56229e9025f28229086edaaa82dd8c7f4ea2d
6
+ metadata.gz: 6955d0fa408b21455f66d265b3177bd51979ce9125488db89b529933298daaa2c528a6530c8bbb0fc4341560baa484fcb44db3534d171f90804b33b48de99259
7
+ data.tar.gz: eb0f0b181ed65b6f6111ad01460985b8a146c62080517536938ec5e5a07325d105af0aee9be6d4f902ff0be58f6cabe69673b740920a5f246845f071a1c39a3a
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-config-expander"
5
- gem.version = "0.2.0"
5
+ gem.version = "0.2.1"
6
6
  gem.authors = ["TAGOMORI Satoshi"]
7
7
  gem.email = ["tagomoris@gmail.com"]
8
8
  gem.description = %q{This plugin provides directives for loop extraction}
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
16
  gem.require_paths = ["lib"]
17
17
 
18
+ gem.add_runtime_dependency "fluentd", "< 0.14.0"
18
19
  gem.add_development_dependency "rake"
19
- gem.add_development_dependency "test-unit", "~> 3.1.7"
20
- gem.add_runtime_dependency "fluentd"
20
+ gem.add_development_dependency "test-unit", "~> 3.1"
21
21
  end
data/test/helper.rb CHANGED
@@ -12,6 +12,7 @@ require 'test/unit'
12
12
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
13
13
  $LOAD_PATH.unshift(File.dirname(__FILE__))
14
14
  require 'fluent/test'
15
+ require 'fluent/input'
15
16
  unless ENV.has_key?('VERBOSE')
16
17
  nulllogger = Object.new
17
18
  nulllogger.instance_eval {|obj|
@@ -78,7 +78,7 @@ EOL
78
78
  <config>
79
79
  type forward
80
80
  flush_interval 1s
81
- <for nodenum in 01 02 >
81
+ <for nodenum in 01 02>
82
82
  <for portnum in 24221 24222 24223 24224>
83
83
  <server>
84
84
  host node__nodenum__.local
data/test/plugins.rb CHANGED
@@ -49,9 +49,14 @@ class Fluent::ConfigExpanderTestOutput < Fluent::Output
49
49
  @stopped = true
50
50
  end
51
51
 
52
+ # Define `router` method of v0.12 to support v0.10 or earlier
53
+ unless method_defined?(:router)
54
+ define_method("router") { Fluent::Engine }
55
+ end
56
+
52
57
  def emit(tag, es, chain)
53
58
  es.each do |time, record|
54
- Fluent::Engine.emit(@tag, time, record.merge({'over' => 'expander'}))
59
+ router.emit(@tag, time, record.merge({'over' => 'expander'}))
55
60
  end
56
61
  chain.next
57
62
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-config-expander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-03 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fluentd
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.14.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "<"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.14.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,28 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 3.1.7
47
+ version: '3.1'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 3.1.7
41
- - !ruby/object:Gem::Dependency
42
- name: fluentd
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.1'
55
55
  description: This plugin provides directives for loop extraction
56
56
  email:
57
57
  - tagomoris@gmail.com
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.6.8
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Fluentd plugin to serve some DSL directives in configuration
@@ -104,4 +104,3 @@ test_files:
104
104
  - test/plugin/test_in_config_expander.rb
105
105
  - test/plugin/test_out_config_expander.rb
106
106
  - test/plugins.rb
107
- has_rdoc: