fluent-plugin-logdna 0.1.2 → 0.1.3

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: 9189e971acb40583781624c73a74aadfecc4e5f8
4
- data.tar.gz: a49e7a6dedd3661e9b132c26db9c399c7ed6df85
3
+ metadata.gz: 648846b6bd22ad3f59cfda299bb332afb04c34de
4
+ data.tar.gz: 34a990c6f507fd99b882b9ac2f2505b6d1efc497
5
5
  SHA512:
6
- metadata.gz: d51983bcaf7b4ba1e5a982ed1404dbbfd460b7df16acc265a0dff03d93512fd96d2380a74dc994a85d67a691c5212580383b9fab4bb6ad0bd06ca49a562aae2d
7
- data.tar.gz: 44c21531a14bc88e09da0ca88395a4c00d5b51e43bc7843c38d2842c7c6497eadb77a6dc3be4eb4b6392d17ab5579ff4ebbe3782da88482f40d9a58edf7ef362
6
+ metadata.gz: b8d31df536495d7f1557ae26cd722c7a6a7682858bc66d6cf97264336268a1f51b910720338139de5db7c80c146bf371d4c45b652ffb35bb848600f7fc76356c
7
+ data.tar.gz: ab1c1eea79e4b20f65088aa662c3d9e64f94e16b6dc0780ec7268c6c626a4840e477e49deb250a1f0bc27e3d36f44208ee7adc176b8101054ff6ec2476a90884
@@ -1,9 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ require 'date'
2
3
 
3
4
  Gem::Specification.new do |s|
4
5
  s.name = 'fluent-plugin-logdna'
5
- s.version = '0.1.2'
6
- s.date = '2017-03-08'
6
+ s.version = '0.1.3'
7
+ s.date = Date.today.to_s
7
8
  s.summary = 'LogDNA plugin for Fluentd'
8
9
  s.description = 'Fluentd plugin for supplying output to LogDNA.'
9
10
  s.authors = ['Edwin Lai']
@@ -59,7 +59,9 @@ module Fluent
59
59
  timestamp: time,
60
60
  line: record['message'] || record.to_json
61
61
  }
62
- line[:app] = @app if @app
62
+ line[:app] = record['_app'] || record['app']
63
+ line[:app] ||= @app if @app
64
+ line.delete(:app) if line[:app].nil?
63
65
  line
64
66
  end
65
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logdna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http