fluent-plugin-msgpack-parser 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e572eb9a30aaf51a5036e91425c4831703e5199d
4
+ data.tar.gz: 3a7ca5444dbb7526c2c34a7b611097d03b550e26
5
+ SHA512:
6
+ metadata.gz: 1150eab062caf426d909b41aa81001eaf94ad7b022c342c935cdf1b462823db44f00f485710744012f0584d7fd5f0d982dcdbe901b59c5adc949a5f2120064a0
7
+ data.tar.gz: e3aaee45666aee5f470a2f359714b9ad8d131ad826ed84e1bf9c9c9370bdb9b80750700a7f0a4d096463b462949b825d346c3051e45a7ea69af85c048d19a58d
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.swp
11
+ *.swo
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in fluent-plugin-msgpack-parser.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Fluent::TextParser::MsgPackParser
2
+
3
+ [MessagePack](http://msgpack.org/) parser for Fluentd.
4
+ Useful for Inputs that don't support this format, namely [in\_udp](http://docs.fluentd.org/articles/in_udp), [in\_tcp](http://docs.fluentd.org/articles/in_tcp) and [in\_tail](http://docs.fluentd.org/articles/in_tail)
5
+
6
+ ## Installation
7
+
8
+ Please check [Plugin management docs](http://docs.fluentd.org/articles/plugin-management)
9
+
10
+ ## Usage
11
+ ### Example configuration
12
+ ```
13
+ <source>
14
+ @type udp
15
+ port 12201
16
+ tag system
17
+ format msgpack
18
+ </source>
19
+ ```
20
+
21
+ ### Wire protocol
22
+ The parser is wire protocol agnostic, meaning it will just `yield` whatever is fed to it, assuming it's a valid MessagePack string.
23
+
24
+ ## Contributing
25
+
26
+ 1. Fork it ( https://github.com/bitex-la/fluent-plugin-msgpack-parser/fork )
27
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
28
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
29
+ 4. Push to the branch (`git push origin my-new-feature`)
30
+ 5. Create a new Pull Request
31
+
32
+ ## TODO
33
+ * Specs?
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "fluent-plugin-msgpack-parser"
5
+ spec.version = File.read("VERSION").strip
6
+ spec.authors = ["Tomás Rojas"]
7
+ spec.email = ["tmsrjs@gmail.com"]
8
+
9
+ spec.summary = %q{MessagePack parser for Fluentd}
10
+ spec.homepage = "https://github.com/bitex-la/fluent-plugin-msgpack-parser"
11
+
12
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
13
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
14
+ spec.require_paths = ["lib"]
15
+
16
+ spec.add_runtime_dependency "fluentd"
17
+ spec.add_runtime_dependency "msgpack"
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.9"
20
+ spec.add_development_dependency "rake", "~> 10.0"
21
+ end
@@ -0,0 +1,11 @@
1
+ module Fluent
2
+ class TextParser
3
+ class MsgPackParser < Parser
4
+ Plugin.register_parser("msgpack", self)
5
+
6
+ def parse(text)
7
+ yield MessagePack.unpack(text)
8
+ end
9
+ end
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fluent-plugin-msgpack-parser
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tomás Rojas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fluentd
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: msgpack
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description:
70
+ email:
71
+ - tmsrjs@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".ruby-version"
79
+ - Gemfile
80
+ - README.md
81
+ - Rakefile
82
+ - VERSION
83
+ - fluent-plugin-msgpack-parser.gemspec
84
+ - lib/fluent/plugin/parser_msgpack.rb
85
+ homepage: https://github.com/bitex-la/fluent-plugin-msgpack-parser
86
+ licenses: []
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.4.5
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: MessagePack parser for Fluentd
108
+ test_files: []