fluent-plugin-gelf-hs 1.0.3 → 1.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
@@ -1,3 +1,4 @@
1
+ # encoding=utf-8
1
2
  module Fluent
2
3
  module GelfUtil
3
4
 
@@ -87,6 +88,12 @@ module Fluent
87
88
  def make_json(gelfentry,conf)
88
89
  gelfentry['version'] = '1.0'
89
90
 
91
+ gelfentry.each_pair do |k,v|
92
+ if v.is_a?(String)
93
+ gelfentry[k] = v.force_encoding('UTF-8')
94
+ end
95
+ end
96
+
90
97
  gelfentry.to_json + ( conf.is_a?(Hash) and conf.key?(:record_separator) ? conf[:record_separator] : "\0" )
91
98
  end
92
99
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-gelf-hs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Yamauchi
@@ -42,7 +42,7 @@ cert_chain:
42
42
  2Zk648Ep9HVPKmwoVuB75+xEQw==
43
43
  -----END CERTIFICATE-----
44
44
 
45
- date: 2017-06-15 00:00:00 Z
45
+ date: 2017-08-08 00:00:00 Z
46
46
  dependencies:
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fluentd
metadata.gz.sig CHANGED
Binary file