fluent-plugin-buffered-metrics 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
@@ -171,7 +171,7 @@ module Fluent
171
171
  end
172
172
 
173
173
  def serialize_entry(entry,time)
174
- unless entry.nil? or not entry.key?('name') or not entry.key?('value') or entry['name'].empty? or not entry['value'].is_a?(Numeric)
174
+ if entry.is_a?(Hash) and entry.key?('name') and entry['name'].is_a?(String) and entry.key?('value') and entry['value'].is_a?(Numeric) and time.is_a?(Numeric)
175
175
  return sprintf(
176
176
  '%s%s %s %i',
177
177
  entry.key?('prefix') ? entry['prefix'] + '.' : '',
@@ -190,7 +190,7 @@ module Fluent
190
190
  end
191
191
 
192
192
  def serialize_entry(entry,time)
193
- unless entry.nil? or not entry.key?('name') or not entry.key?('value') or entry['name'].empty? or not entry['value'].is_a?(Numeric)
193
+ if entry.is_a?(Hash) and entry.key?('name') and entry['name'].is_a?(String) and entry.key?('value') and entry['value'].is_a?(Numeric) and time.is_a?(Numeric)
194
194
  return sprintf(
195
195
  '%s%s:%s|c',
196
196
  entry.key?('prefix') ? entry['prefix'] + '.' : '',
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-buffered-metrics
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Yamauchi
metadata.gz.sig CHANGED
Binary file