fluent-plugin-formatter-protobuf 0.0.1 → 0.0.5
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 +4 -4
- data/.github/workflows/build-and-test.yml +54 -0
- data/.github/workflows/publish.yml +96 -0
- data/.gitignore +2 -2
- data/.rubocop.yml +7 -4
- data/.ruby-version +1 -1
- data/README.md +59 -3
- data/RELEASE.md +9 -0
- data/Rakefile +5 -0
- data/fluent-plugin-formatter-protobuf.gemspec +5 -3
- data/lib/fluent/plugin/formatter_protobuf.rb +4 -1
- data/lib/fluent/plugin/version.rb +1 -3
- data/test/integration/Gemfile +6 -0
- data/{Gemfile.lock → test/integration/Gemfile.lock} +7 -15
- data/test/integration/README.md +12 -0
- data/test/integration/fluent.conf +25 -0
- data/test/integration/log.proto +6 -0
- data/test/integration/log_pb.rb +15 -0
- data/test/integration/run.sh +12 -0
- metadata +51 -9
- data/.github/workflows/gem-push.yml +0 -19
- data/package.json +0 -58
- data/yarn.lock +0 -3725
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bcc9a5c80a25b6d30ebbabcbc6596db405738915dad875eb52570df1e793a0b
|
4
|
+
data.tar.gz: c05073cdb7b669ca81aa29b21fc46d2c50846072b38d3cd749f09666babc62f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd71e67d8f9388d487d2d6de036c012a29847960f8eab02c39d8c6d08e7b6a20fb4a1c7d622b8fbdb1a06d67666d9a2885edcef2bbb769fc7f3278400102d46
|
7
|
+
data.tar.gz: 79a3e80a85c12df566a4e59b764487e9cb7e4d66962b0fcb0bbda6f8e840e8c64cc58a407ab948e256e19bf62aea46e0a9fe481b1c445966e9f3c6c2fed39ffe
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: Build and test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
lint:
|
9
|
+
name: Lint
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
permissions:
|
12
|
+
packages: write
|
13
|
+
contents: read
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Set up Ruby 2.5
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
bundler-cache: true
|
21
|
+
- name: "Unit test"
|
22
|
+
run: "bundle exec rake lint:check"
|
23
|
+
|
24
|
+
test:
|
25
|
+
name: Unit test
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
permissions:
|
28
|
+
packages: write
|
29
|
+
contents: read
|
30
|
+
|
31
|
+
steps:
|
32
|
+
- uses: actions/checkout@v2
|
33
|
+
- name: Set up Ruby 2.5
|
34
|
+
uses: ruby/setup-ruby@v1
|
35
|
+
with:
|
36
|
+
bundler-cache: true
|
37
|
+
- name: "Unit test"
|
38
|
+
run: "bundle exec rake test:unit"
|
39
|
+
|
40
|
+
build:
|
41
|
+
name: Build
|
42
|
+
runs-on: ubuntu-latest
|
43
|
+
permissions:
|
44
|
+
packages: write
|
45
|
+
contents: read
|
46
|
+
|
47
|
+
steps:
|
48
|
+
- uses: actions/checkout@v2
|
49
|
+
- name: Set up Ruby 2.5
|
50
|
+
uses: ruby/setup-ruby@v1
|
51
|
+
with:
|
52
|
+
bundler-cache: true
|
53
|
+
- name: "Unit test"
|
54
|
+
run: "bundle exec rake build"
|
@@ -0,0 +1,96 @@
|
|
1
|
+
name: Publish
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v0.*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
lint:
|
10
|
+
name: Lint
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
permissions:
|
13
|
+
packages: write
|
14
|
+
contents: read
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby 2.5
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
bundler-cache: true
|
22
|
+
- name: "Unit test"
|
23
|
+
run: "bundle exec rake lint:check"
|
24
|
+
|
25
|
+
test:
|
26
|
+
name: Unit test
|
27
|
+
runs-on: ubuntu-latest
|
28
|
+
permissions:
|
29
|
+
packages: write
|
30
|
+
contents: read
|
31
|
+
|
32
|
+
steps:
|
33
|
+
- uses: actions/checkout@v2
|
34
|
+
- name: Set up Ruby 2.5
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
bundler-cache: true
|
38
|
+
- name: "Unit test"
|
39
|
+
run: "bundle exec rake test:unit"
|
40
|
+
|
41
|
+
publish-to-gpr:
|
42
|
+
needs:
|
43
|
+
- lint
|
44
|
+
- test
|
45
|
+
name: Build + Publish to GPR
|
46
|
+
runs-on: ubuntu-latest
|
47
|
+
permissions:
|
48
|
+
packages: write
|
49
|
+
contents: read
|
50
|
+
|
51
|
+
steps:
|
52
|
+
- uses: actions/checkout@v2
|
53
|
+
- name: Set up Ruby 2.5
|
54
|
+
uses: ruby/setup-ruby@v1
|
55
|
+
with:
|
56
|
+
bundler-cache: true
|
57
|
+
|
58
|
+
- name: Publish to GPR
|
59
|
+
run: |
|
60
|
+
mkdir -p $HOME/.gem
|
61
|
+
touch $HOME/.gem/credentials
|
62
|
+
chmod 0600 $HOME/.gem/credentials
|
63
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
64
|
+
gem build *.gemspec
|
65
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
66
|
+
env:
|
67
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
68
|
+
OWNER: ${{ github.repository_owner }}
|
69
|
+
|
70
|
+
publish-to-ruby-gems:
|
71
|
+
needs:
|
72
|
+
- lint
|
73
|
+
- test
|
74
|
+
name: Build + Publish to RubyGems
|
75
|
+
runs-on: ubuntu-latest
|
76
|
+
permissions:
|
77
|
+
packages: write
|
78
|
+
contents: read
|
79
|
+
|
80
|
+
steps:
|
81
|
+
- uses: actions/checkout@v2
|
82
|
+
- name: Set up Ruby 2.5
|
83
|
+
uses: ruby/setup-ruby@v1
|
84
|
+
with:
|
85
|
+
bundler-cache: true
|
86
|
+
|
87
|
+
- name: Publish to RubyGems
|
88
|
+
run: |
|
89
|
+
mkdir -p $HOME/.gem
|
90
|
+
touch $HOME/.gem/credentials
|
91
|
+
chmod 0600 $HOME/.gem/credentials
|
92
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
93
|
+
gem build *.gemspec
|
94
|
+
gem push *.gem
|
95
|
+
env:
|
96
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/.gitignore
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
*.gem
|
2
|
+
Gemfile.lock
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,16 @@
|
|
1
|
+
require: rubocop-rake
|
1
2
|
AllCops:
|
2
3
|
NewCops: enable
|
3
4
|
Style/StringLiterals:
|
4
5
|
Exclude:
|
5
|
-
- '
|
6
|
+
- '**/*_pb.rb'
|
6
7
|
Style/HashSyntax:
|
7
8
|
Exclude:
|
8
|
-
- '
|
9
|
+
- '**/*_pb.rb'
|
9
10
|
Style/FrozenStringLiteralComment:
|
10
11
|
Exclude:
|
11
|
-
- '
|
12
|
+
- '**/*_pb.rb'
|
12
13
|
Metrics/MethodLength:
|
13
|
-
Max: 100
|
14
|
+
Max: 100
|
15
|
+
Exclude:
|
16
|
+
- '**/*_pb.rb'
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.0
|
data/README.md
CHANGED
@@ -1,21 +1,40 @@
|
|
1
1
|
# fluent-plugin-formatter-protobuf
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/fluent-plugin-formatter-protobuf)
|
4
|
+
|
3
5
|
[Fluentd](https://fluentd.org/) formatter plugin to format messages into Protobuf v3 encoded binary.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
### RubyGems
|
8
10
|
|
9
|
-
```
|
11
|
+
```shell
|
10
12
|
$ gem install fluent-plugin-formatter-protobuf
|
11
13
|
```
|
12
14
|
|
13
|
-
###
|
15
|
+
### GitHub RubyGems Registry
|
16
|
+
|
17
|
+
```shell
|
18
|
+
$ gem install \
|
19
|
+
fluent-plugin-formatter-protobuf \
|
20
|
+
--version "<version>" \
|
21
|
+
--source "https://rubygems.pkg.github.com/raytung"
|
22
|
+
```
|
23
|
+
|
24
|
+
### Bundler (RubyGems)
|
14
25
|
|
15
26
|
Add following line to your Gemfile:
|
16
27
|
|
17
28
|
```ruby
|
18
|
-
gem "fluent-plugin-formatter-protobuf"
|
29
|
+
gem "fluent-plugin-formatter-protobuf", "<version>"
|
30
|
+
```
|
31
|
+
|
32
|
+
### Bundler (GitHub RubyGems Registry),
|
33
|
+
|
34
|
+
```shell
|
35
|
+
source "https://rubygems.pkg.github.com/raytung" do
|
36
|
+
gem "fluent-plugin-formatter-protobuf", "<version>"
|
37
|
+
end
|
19
38
|
```
|
20
39
|
|
21
40
|
And then execute:
|
@@ -24,6 +43,43 @@ And then execute:
|
|
24
43
|
$ bundle
|
25
44
|
```
|
26
45
|
|
46
|
+
## Not so quick start
|
47
|
+
|
48
|
+
1. Generate the protobuf ruby methods
|
49
|
+
1. e.g `protoc --proto_path=. --ruby_out=. ./log.proto`
|
50
|
+
2. Modify the `<format>` section to include `message_name`, which is your Protobuf message name, and `include_paths`, the path where the generated Ruby types are stored
|
51
|
+
|
52
|
+
|
53
|
+
## Example
|
54
|
+
|
55
|
+
```fluentd
|
56
|
+
<source>
|
57
|
+
@type tcp
|
58
|
+
tag tcp.events
|
59
|
+
port 5170
|
60
|
+
delimiter "\n"
|
61
|
+
<parse>
|
62
|
+
@type json
|
63
|
+
</parse>
|
64
|
+
</source>
|
65
|
+
|
66
|
+
<match tcp.events>
|
67
|
+
@type file
|
68
|
+
|
69
|
+
path /opt/fluent-plugin-formatter-protobuf/out
|
70
|
+
|
71
|
+
<buffer>
|
72
|
+
@type memory
|
73
|
+
</buffer>
|
74
|
+
|
75
|
+
<format>
|
76
|
+
@type protobuf
|
77
|
+
message_name "Log"
|
78
|
+
include_paths ["/opt/fluent-plugin-formatter-protobuf/log_pb.rb"]
|
79
|
+
</format>
|
80
|
+
</match>
|
81
|
+
```
|
82
|
+
|
27
83
|
## Configuration
|
28
84
|
|
29
85
|
You can generate configuration template:
|
data/RELEASE.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Release
|
2
|
+
|
3
|
+
## Instructions
|
4
|
+
To release the gem to Github package manager and Ruby Gems,
|
5
|
+
|
6
|
+
1. Update `lib/fluent/version.rb`
|
7
|
+
2. Update `Gemfile.lock`
|
8
|
+
3. Create a pull request and merge it into `main`
|
9
|
+
4. Manually creating a release on Github with a tag indicating the new version number e.g. `vMAJOR.MINOR.PATCH`
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'fluent/plugin/version'
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'fluent-plugin-formatter-protobuf'
|
9
|
-
spec.version = Fluent::Plugin::
|
9
|
+
spec.version = Fluent::Plugin::VERSION
|
10
10
|
spec.authors = ['Ray Tung']
|
11
11
|
spec.email = ['code@raytung.net']
|
12
12
|
|
@@ -14,11 +14,11 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.description = 'This is a Fluentd formatter plugin designed to convert Protobuf JSON into Protobuf binary'
|
15
15
|
spec.homepage = 'https://github.com/raytung/fluent-plugin-formatter-protobuf'
|
16
16
|
spec.license = 'Apache-2.0'
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new('>=2.
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
|
18
18
|
|
19
19
|
spec.metadata['homepage_uri'] = spec.homepage
|
20
20
|
spec.metadata['source_code_uri'] = 'https://github.com/raytung/fluent-plugin-formatter-protobuf'
|
21
|
-
spec.metadata['changelog_uri'] = 'https://github.com/raytung/fluent-plugin-formatter-protobuf/
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/raytung/fluent-plugin-formatter-protobuf/blob/main/CHANGELOG.md'
|
22
22
|
|
23
23
|
test_files, files = `git ls-files -z`.split("\x0").partition do |f|
|
24
24
|
f.match(%r{^(test|spec|features)/})
|
@@ -30,6 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 2.2.22'
|
32
32
|
spec.add_development_dependency 'rake', '~> 13.0.3'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 1.22.1'
|
34
|
+
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
|
33
35
|
spec.add_development_dependency 'test-unit', '~> 3.3.7'
|
34
36
|
spec.add_runtime_dependency 'fluentd', ['>= 1.0', '< 2']
|
35
37
|
spec.add_runtime_dependency 'google-protobuf', ['~> 3.18']
|
@@ -19,7 +19,6 @@ require 'fluent/plugin/formatter'
|
|
19
19
|
|
20
20
|
require 'pathname'
|
21
21
|
require 'google/protobuf'
|
22
|
-
require 'protocol_buffers'
|
23
22
|
|
24
23
|
require 'fluent/env'
|
25
24
|
require 'fluent/time'
|
@@ -49,6 +48,10 @@ module Fluent
|
|
49
48
|
@protobuf_class = message_lookup.msgclass
|
50
49
|
end
|
51
50
|
|
51
|
+
def formatter_type
|
52
|
+
:binary
|
53
|
+
end
|
54
|
+
|
52
55
|
def format(_tag, _time, record)
|
53
56
|
protobuf_msg = @protobuf_class.new(record)
|
54
57
|
@protobuf_class.encode(protobuf_msg)
|
@@ -1,15 +1,11 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
fluent-plugin-formatter-protobuf (0.0.1)
|
5
|
-
fluentd (>= 1.0, < 2)
|
6
|
-
google-protobuf (~> 3.18)
|
7
|
-
|
8
1
|
GEM
|
9
2
|
remote: https://rubygems.org/
|
10
3
|
specs:
|
11
4
|
concurrent-ruby (1.1.9)
|
12
5
|
cool.io (1.7.1)
|
6
|
+
fluent-plugin-formatter-protobuf (0.0.3)
|
7
|
+
fluentd (>= 1.0, < 2)
|
8
|
+
google-protobuf (~> 3.18)
|
13
9
|
fluentd (1.14.1)
|
14
10
|
bundler
|
15
11
|
cool.io (>= 1.4.5, < 2.0.0)
|
@@ -22,17 +18,14 @@ GEM
|
|
22
18
|
tzinfo-data (~> 1.0)
|
23
19
|
webrick (>= 1.4.2, < 1.8.0)
|
24
20
|
yajl-ruby (~> 1.0)
|
21
|
+
google-protobuf (3.18.1)
|
25
22
|
google-protobuf (3.18.1-x86_64-linux)
|
26
23
|
http_parser.rb (0.7.0)
|
27
24
|
msgpack (1.4.2)
|
28
|
-
power_assert (2.0.1)
|
29
|
-
rake (13.0.6)
|
30
25
|
serverengine (2.2.4)
|
31
26
|
sigdump (~> 0.2.2)
|
32
27
|
sigdump (0.2.4)
|
33
28
|
strptime (0.2.5)
|
34
|
-
test-unit (3.3.9)
|
35
|
-
power_assert
|
36
29
|
tzinfo (2.0.4)
|
37
30
|
concurrent-ruby (~> 1.0)
|
38
31
|
tzinfo-data (1.2021.3)
|
@@ -41,13 +34,12 @@ GEM
|
|
41
34
|
yajl-ruby (1.4.1)
|
42
35
|
|
43
36
|
PLATFORMS
|
37
|
+
ruby
|
44
38
|
x86_64-linux
|
45
39
|
|
46
40
|
DEPENDENCIES
|
47
|
-
|
48
|
-
|
49
|
-
rake (~> 13.0.3)
|
50
|
-
test-unit (~> 3.3.7)
|
41
|
+
fluent-plugin-formatter-protobuf (= 0.0.3)
|
42
|
+
fluentd (= 1.14.1)
|
51
43
|
|
52
44
|
BUNDLED WITH
|
53
45
|
2.2.29
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Integration test
|
2
|
+
|
3
|
+
A _manual_ integration test.
|
4
|
+
|
5
|
+
### Instructions
|
6
|
+
|
7
|
+
1. Open a new terminal and run`$ ./run.sh`
|
8
|
+
2. Open a separate terminal and run `echo '{"timestamp": 1634386250, "message":"hello!"}\n' | netcat 127.0.0.1 5170`
|
9
|
+
3. Somehow flush data (I simply stop the docker container)
|
10
|
+
4. Verify out data (It should look like `out.YYYYMMDD_N.log`) with `protoc`
|
11
|
+
1. `protoc --decode_raw < out.YYYYMMDD_N.log`
|
12
|
+
2. `cat out.YYYYMMDD_N.log | protoc --decode=Log --proto_path=. log.proto`
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<source>
|
2
|
+
@type tcp
|
3
|
+
tag tcp.events
|
4
|
+
port 5170
|
5
|
+
delimiter "\n"
|
6
|
+
<parse>
|
7
|
+
@type json
|
8
|
+
</parse>
|
9
|
+
</source>
|
10
|
+
|
11
|
+
<match tcp.events>
|
12
|
+
@type file
|
13
|
+
|
14
|
+
path /opt/fluent-plugin-formatter-protobuf/out
|
15
|
+
|
16
|
+
<buffer>
|
17
|
+
@type memory
|
18
|
+
</buffer>
|
19
|
+
|
20
|
+
<format>
|
21
|
+
@type protobuf
|
22
|
+
message_name "Log"
|
23
|
+
include_paths ["/opt/fluent-plugin-formatter-protobuf/log_pb.rb"]
|
24
|
+
</format>
|
25
|
+
</match>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: log.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("log.proto", :syntax => :proto3) do
|
8
|
+
add_message "Log" do
|
9
|
+
optional :timestamp, :int64, 1
|
10
|
+
optional :message, :string, 2
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Log = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Log").msgclass
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
set -euo pipefail
|
4
|
+
|
5
|
+
cd "$(dirname "$0")"
|
6
|
+
|
7
|
+
docker run -it --rm \
|
8
|
+
-v "${PWD}:/opt/fluent-plugin-formatter-protobuf/" \
|
9
|
+
-w '/opt/fluent-plugin-formatter-protobuf/' \
|
10
|
+
-e OUT_FILE="./out" \
|
11
|
+
-p 5170:5170 \
|
12
|
+
ruby:2.7.1 sh -c 'bundle install && fluentd -c /opt/fluent-plugin-formatter-protobuf/fluent.conf'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-formatter-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Tung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 13.0.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.22.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.22.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.0
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: test-unit
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,36 +122,42 @@ executables: []
|
|
94
122
|
extensions: []
|
95
123
|
extra_rdoc_files: []
|
96
124
|
files:
|
97
|
-
- ".github/workflows/
|
125
|
+
- ".github/workflows/build-and-test.yml"
|
126
|
+
- ".github/workflows/publish.yml"
|
98
127
|
- ".gitignore"
|
99
128
|
- ".rubocop.yml"
|
100
129
|
- ".ruby-version"
|
101
130
|
- Gemfile
|
102
|
-
- Gemfile.lock
|
103
131
|
- LICENSE
|
104
132
|
- README.md
|
133
|
+
- RELEASE.md
|
105
134
|
- Rakefile
|
106
135
|
- docker-compose.yaml
|
107
136
|
- docker-run.sh
|
108
137
|
- fluent-plugin-formatter-protobuf.gemspec
|
109
138
|
- lib/fluent/plugin/formatter_protobuf.rb
|
110
139
|
- lib/fluent/plugin/version.rb
|
111
|
-
- package.json
|
112
140
|
- test/helper.rb
|
141
|
+
- test/integration/Gemfile
|
142
|
+
- test/integration/Gemfile.lock
|
143
|
+
- test/integration/README.md
|
144
|
+
- test/integration/fluent.conf
|
145
|
+
- test/integration/log.proto
|
146
|
+
- test/integration/log_pb.rb
|
147
|
+
- test/integration/run.sh
|
113
148
|
- test/plugin/test_formatter_protobuf.rb
|
114
149
|
- test/proto/README.md
|
115
150
|
- test/proto/addressbook
|
116
151
|
- test/proto/addressbook.bin
|
117
152
|
- test/proto/addressbook.proto
|
118
153
|
- test/proto/addressbook_pb.rb
|
119
|
-
- yarn.lock
|
120
154
|
homepage: https://github.com/raytung/fluent-plugin-formatter-protobuf
|
121
155
|
licenses:
|
122
156
|
- Apache-2.0
|
123
157
|
metadata:
|
124
158
|
homepage_uri: https://github.com/raytung/fluent-plugin-formatter-protobuf
|
125
159
|
source_code_uri: https://github.com/raytung/fluent-plugin-formatter-protobuf
|
126
|
-
changelog_uri: https://github.com/raytung/fluent-plugin-formatter-protobuf/
|
160
|
+
changelog_uri: https://github.com/raytung/fluent-plugin-formatter-protobuf/blob/main/CHANGELOG.md
|
127
161
|
post_install_message:
|
128
162
|
rdoc_options: []
|
129
163
|
require_paths:
|
@@ -132,19 +166,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
166
|
requirements:
|
133
167
|
- - ">="
|
134
168
|
- !ruby/object:Gem::Version
|
135
|
-
version: 2.
|
169
|
+
version: 2.5.0
|
136
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
171
|
requirements:
|
138
172
|
- - ">="
|
139
173
|
- !ruby/object:Gem::Version
|
140
174
|
version: '0'
|
141
175
|
requirements: []
|
142
|
-
|
176
|
+
rubyforge_project:
|
177
|
+
rubygems_version: 2.7.3
|
143
178
|
signing_key:
|
144
179
|
specification_version: 4
|
145
180
|
summary: Protobuf formatter for Fluentd
|
146
181
|
test_files:
|
147
182
|
- test/helper.rb
|
183
|
+
- test/integration/Gemfile
|
184
|
+
- test/integration/Gemfile.lock
|
185
|
+
- test/integration/README.md
|
186
|
+
- test/integration/fluent.conf
|
187
|
+
- test/integration/log.proto
|
188
|
+
- test/integration/log_pb.rb
|
189
|
+
- test/integration/run.sh
|
148
190
|
- test/plugin/test_formatter_protobuf.rb
|
149
191
|
- test/proto/README.md
|
150
192
|
- test/proto/addressbook
|
@@ -1,19 +0,0 @@
|
|
1
|
-
name: Publish Package
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- "main"
|
6
|
-
pull_request:
|
7
|
-
branches:
|
8
|
-
- "main"
|
9
|
-
jobs:
|
10
|
-
release:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
steps:
|
13
|
-
- uses: actions/checkout@v2.3.5
|
14
|
-
- uses: actions/setup-node@v2.4.1
|
15
|
-
with:
|
16
|
-
node-version: "16"
|
17
|
-
- uses: ruby/setup-ruby@v1.83.0
|
18
|
-
with:
|
19
|
-
ruby-version: "2.7.1"
|