fluent-plugin-barito 0.1.9 → 0.1.10

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: a929ac745d1147fe4f117dbf6c6bd6e57bd62a0b
4
- data.tar.gz: 9d2d374bc1f6ffd61cd5a8eb596a7c7b1e4088bb
3
+ metadata.gz: bed716866d230da6c6be384b855d783803a7bef2
4
+ data.tar.gz: 60463ec82d959f37aa733fd572572fa60c5e0634
5
5
  SHA512:
6
- metadata.gz: ccc8400bef024b7de718fc3bd726578f582a22eb68f5cd2b81a6a06fceef6cb6af1925b8b1d828eb7da8d17fe54106580c26364efa1e6fdb79820e4a9006e143
7
- data.tar.gz: 68f14b651871dbe6bb9065e656bb7435a4c0f1992eba6c68ff655c689e158b0fd84cb8d419f7a9934dee44c1077a1b14ef746156e3411ba184396172345fbb11
6
+ metadata.gz: 76ca397a0037497a536d9193f9933cbc6d078c8e2731ca43bdd1682d83f50bd0c055074ba066d4e86c5b3a678cedf5073b6212bee79e7a8bb9d4e964bbf2d251
7
+ data.tar.gz: f35eb8952499925b14c1d4c94277ce411e9fcd04ab2f87983330d8f6f4052b39064c577e002c7618a6fcde7ed0c7d5e716d5045ac7cd7d9aac72aebd3506ca06
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-barito"
6
- spec.version = "0.1.9"
6
+ spec.version = "0.1.10"
7
7
  spec.authors = ["BaritoLog"]
8
8
  spec.email = ["pushm0v.development@gmail.com", "iman.tung@gmail.com"]
9
9
 
@@ -6,7 +6,7 @@ class Fluent::Plugin::TimberFactory
6
6
 
7
7
  def self.create_timber(tag, time, record, trail)
8
8
  begin
9
- timber = JSON.parse(record)
9
+ timber = JSON.parse(record['message'])
10
10
  rescue
11
11
  end
12
12
 
@@ -9,7 +9,7 @@ describe 'Fluent::Plugin::TimberFactory' do
9
9
  it 'is json' do
10
10
  trail = Fluent::Plugin::ClientTrail.new(true)
11
11
  tag = "some_tag"
12
- record = '{"booking_id":1234, "foo":"bar"}'
12
+ record = {'message' => '{"booking_id":1234,"foo":"bar"}'}
13
13
 
14
14
  timber = Fluent::Plugin::TimberFactory::create_timber(tag, nil, record, trail)
15
15
  expect(timber['booking_id']).to eq(1234)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-barito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BaritoLog