fluent-plugin-tcp_mc 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 575473355c9c062d0a3aa68ae639adf0bcedb9bc
4
- data.tar.gz: 65237ee57a6a55b4a5b24b613d473c3f46f1d18b
3
+ metadata.gz: 8df52939c4bb4d2d866eb7cf26ebfbc6a22aec57
4
+ data.tar.gz: 756844a808fbc3767577976197282da871fd9fe3
5
5
  SHA512:
6
- metadata.gz: cd6014c6000c8eedbb6cc59065f0549d8e2dc793aafcc3c457dbc13a8ca56767889cfd2a83a66f91208f75fbc9642aee6b4a6f5672590df1b12edefa091be8bd
7
- data.tar.gz: 72d3deb8236ca4da40c9e0593c4d4b6b218caa9a4442e8143669c3a92f3d688366aee34f2b7fbbac69917a1206adea6479f8f6b4d285bb697dcf749c40099b4a
6
+ metadata.gz: 28e11dcc9dea483ee98215bc2afdaa5c3592a380964972c128aea83ae526add23d079961547d9174c511aec333125213d31777bab3484183dbbcc62ddd18d8f7
7
+ data.tar.gz: 929eb7cffc7b01dca3f1cfbda22b57b793a2fca507e84224dbce5f8155d0d84ee4f41644f78606916d68ee2f27e73cf146e6b1aa7ac4c27fea145d682c26e0fe
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # fluent-plugin-tcp_multi
1
+ # fluent-plugin-tcp_mc
2
2
 
3
3
  [Fluentd](http://fluentd.org/) output to send to generic tcp endpoints
4
4
 
@@ -11,7 +11,7 @@ The plugin currently only supports JSON output and I think buffering is kinda wo
11
11
  ### RubyGems
12
12
 
13
13
  ```
14
- $ gem install fluent-plugin-tcp_multi
14
+ $ gem install fluent-plugin-tcp_mc
15
15
  ```
16
16
 
17
17
  ### Bundler
@@ -19,7 +19,7 @@ $ gem install fluent-plugin-tcp_multi
19
19
  Add following line to your Gemfile:
20
20
 
21
21
  ```ruby
22
- gem "fluent-plugin-tcp_multi"
22
+ gem "fluent-plugin-tcp_mc"
23
23
  ```
24
24
 
25
25
  And then execute:
@@ -33,7 +33,7 @@ $ bundle
33
33
  You can generate configuration template:
34
34
 
35
35
  ```
36
- $ fluent-plugin-format-config output tcp_multi
36
+ $ fluent-plugin-format-config output tcp_mc
37
37
  ```
38
38
 
39
39
  You can copy and paste generated documents here.
@@ -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-tcp_mc"
6
- spec.version = "0.1.0"
6
+ spec.version = "0.2.0"
7
7
  spec.authors = ["David Pippenger"]
8
8
  spec.email = ["riven@particle-man.com"]
9
9
 
@@ -15,6 +15,7 @@
15
15
 
16
16
  require 'fluent/plugin/output'
17
17
  require 'time'
18
+ require 'yajl'
18
19
 
19
20
  module Fluent
20
21
  class Tcp_mcOutput < BufferedOutput
@@ -107,7 +108,7 @@ module Fluent
107
108
  chunk.msgpack_each do |tag, time, record|
108
109
  next unless record.is_a? Hash
109
110
  #log.debug ("#{record}")
110
- sock.write("#{record.to_json}\n")
111
+ sock.write("#{Yajl.dump(record)}\n")
111
112
  end
112
113
  ensure
113
114
  sock.close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-tcp_mc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Pippenger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.5.1
110
+ rubygems_version: 2.5.2.1
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Purpose built plugin for fluentd to send json over tcp.