fluent-plugin-amplifier-filter 0.1.5 → 0.1.6

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: 1a57b34226fa0cc904593f9d3c11ec7e1ff6a529
4
- data.tar.gz: b4021c85e02fca814daae21e08120e91f1c570f8
3
+ metadata.gz: 4c418acc02e375c36620d6731b7d65e95435ee36
4
+ data.tar.gz: d5958fe64969a439d70019f67af14918a8fe073e
5
5
  SHA512:
6
- metadata.gz: 3a5d4a2a3a82759b88c5d5ab38120cbffd18f820c267a04504d725f108160c8d5b36911b2b1800dbc0371d3d4c4383ac4c235345927bc71b4f8e7d10cab55595
7
- data.tar.gz: b5ffcb5ded641ccf4dab2098a70ec9eec42b182549f49de2a61831ad05594afb48c83e2cdef10cc98e5ac8fd22b829e04b83b9bdb95de3b5b6daa746da74a68c
6
+ metadata.gz: 2373ab79ff181e64694f0b2118234a451db8be96bcb4b2e755d2e3a86228e978798072978523d2b70cd05d3d007a49b32d5f23dd0e065d044f626044e56a4774
7
+ data.tar.gz: 044566f36afe08bfa9e3ada239c863ed7153d638ee1b8d87a1d76395f91d0d9b33b642167f2de96dc8119ce0bafba2a29e96372215c199fa140dbc49547958c0
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-amplifier-filter"
4
- gem.version = "0.1.5"
4
+ gem.version = "0.1.6"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.summary = %q{plugin to re-emit messages with amplified values}
@@ -83,8 +83,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
83
83
  next unless val
84
84
  updated[key] = amp(val)
85
85
  }
86
- $log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
87
- $log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
86
+ log.debug "amplifier tag:#{tag} floor:#{@floor} ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
88
87
  if updated.size > 0
89
88
  pairs.push [time, record.merge(updated)]
90
89
  else
@@ -100,8 +99,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
100
99
  next unless @key_pattern.match(key)
101
100
  updated[key] = amp(val)
102
101
  }
103
- $log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
104
- $log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
102
+ log.debug "amplifier tag:#{tag} floor:#{@floor} ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
105
103
  if updated.size > 0
106
104
  pairs.push [time, record.merge(updated)]
107
105
  else
data/test/helper.rb CHANGED
@@ -12,7 +12,9 @@ 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
- unless ENV.has_key?('VERBOSE')
15
+ if ENV.has_key?('VERBOSE')
16
+ $log = Fluent::Log.new(Fluent::Test::DummyLogDevice.new, Fluent::Log::LEVEL_TRACE)
17
+ else
16
18
  nulllogger = Object.new
17
19
  nulllogger.instance_eval {|obj|
18
20
  def method_missing(method, *args)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-amplifier-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd