fluent-plugin-input-gelf 0.1.1 → 0.2.0

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: 7100acddd4910c56b36af50f13695d2773b4ff6b
4
- data.tar.gz: e1d860e9bc6541e7b0a35afad2b7149eee717b7b
3
+ metadata.gz: eee1b338888b0ca1ec6f85012c47afbf14266fd4
4
+ data.tar.gz: 7d0557b52f33d68de6e1469f9e184a96e43de44d
5
5
  SHA512:
6
- metadata.gz: 9ae80360cd1ad43d94601711aae40b753cd78f2257d274554532af22d634ac1a5e92ac82a23757bd597307f5444ad9d559ded507a9af692ab66839df681a7c8b
7
- data.tar.gz: cb307f962df7291b71e24a8f351bdb3266a3bd40ec7d392e94a5cd52add9fdb2e90259499de2d58e8c62bd3cc505e537ae715add132f27d4cad3eb6277da2d76
6
+ metadata.gz: bb91d66ad6039147e5f795a9037e61f41541e7f1b0309ff0d0ebcc8ef15f0dbbdc6e2437f24254bbad67cec5c61da7fcf8f7c67cbf3535ff8d7fc5ee19b0f967
7
+ data.tar.gz: b69d7aa70c1b58b28604c8c3f566197e4ded4928975c6a07d2be38c90a837a908a4c0f9e3b9cbfd55b74b326b1c20df011957a4faeb16f9495ad05e6be003f4f
@@ -1,11 +1,10 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0
6
4
  - 2.1
7
5
  - 2.2.2
8
6
  - 2.3.0
7
+ - 2.4.0
9
8
 
10
9
  gemfile:
11
10
  - Gemfile
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.license = "MIT"
8
8
  gem.homepage = "https://github.com/MerlinDMC/fluent-plugin-input-gelf"
9
9
  gem.summary = gem.description
10
- gem.version = "0.1.1"
10
+ gem.version = "0.2.0"
11
11
  gem.authors = ["Daniel Malon"]
12
12
  gem.email = "daniel.malon@me.com"
13
13
  gem.has_rdoc = false
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.require_paths = ['lib']
18
18
 
19
19
  gem.add_runtime_dependency "fluentd"
20
- gem.add_runtime_dependency "gelfd", ">= 0.2.0"
20
+ gem.add_runtime_dependency "gelfd2", ">= 0.3.0"
21
21
 
22
22
  gem.add_development_dependency "bundler"
23
23
  gem.add_development_dependency "rake"
@@ -13,7 +13,7 @@ module Fluent
13
13
  def initialize
14
14
  super
15
15
  require 'fluent/plugin/socket_util'
16
- require 'gelfd'
16
+ require 'gelfd2'
17
17
  end
18
18
 
19
19
  desc "The value is the tag assigned to the generated events."
@@ -70,7 +70,7 @@ module Fluent
70
70
 
71
71
  def receive_data(data, addr)
72
72
  begin
73
- msg = Gelfd::Parser.parse(data)
73
+ msg = Gelfd2::Parser.parse(data)
74
74
  rescue => e
75
75
  log.warn 'Gelfd failed to parse a message', error: e.to_s
76
76
  log.warn_backtrace
@@ -89,7 +89,7 @@ module Fluent
89
89
  time = record.delete('timestamp').to_i if record.key?('timestamp')
90
90
 
91
91
  # Postprocess recorded event
92
- strip_leading_underscore(record) if @strip_leading_underscore
92
+ strip_leading_underscore_(record) if @strip_leading_underscore
93
93
 
94
94
  emit(time, record)
95
95
  }
@@ -117,7 +117,7 @@ module Fluent
117
117
 
118
118
  private
119
119
 
120
- def strip_leading_underscore(record)
120
+ def strip_leading_underscore_(record)
121
121
  record.keys.each { |k|
122
122
  next unless k[0,1] == '_'
123
123
  record[k[1..-1]] = record.delete(k)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-input-gelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Malon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-27 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: gelfd
28
+ name: gelfd2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.0
33
+ version: 0.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 0.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.5.1
133
+ rubygems_version: 2.6.8
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A GELF input plugin for fluentd