fluent-plugin-formatter-protobuf 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: 5522a7376f600ab04c25874fed66cf1e3fa80488aff7917a0b4a20f2ae23e5a7
4
- data.tar.gz: 56ff168034323c60b1c6482aa9be5d33540d6e1cdf58e8cb22f92cea5bfd8a6c
3
+ metadata.gz: 3e212013e4ca4c6d50c19b1d2296e06626750039cb0b22f80ea255be37cd4d9f
4
+ data.tar.gz: 30a007dba4d306d022d45cd5cc7230b7c3b9ba3edbb512b9e3924407588af03c
5
5
  SHA512:
6
- metadata.gz: ef2e9c5998ed03fb9d24e5107185107cc37d9b5a803b1ab7fb2cedd624d55db04d62f32a55b4c80fb3422617f427ad48d168788b43891e6883ac908bbc9d90f5
7
- data.tar.gz: 46e42467e1df6ec0c4c9fb45312141882da3a23c181cf408be0eb314edea2eff6708d89629210b41ff3f5d979070f083dd2018cddf45bd2e332d2b8b8d3eb428
6
+ metadata.gz: e3c804a6a7cf38e50fb273e17437c7b14a57351f7e63483a24873b82c78adc7307de33f17c1f33504ac361a9b5b32488aabfcabb157b26c5214a9851f054d234
7
+ data.tar.gz: 21adce1af4c987ddb7b3fbde52e3599cb98a925656550627ae625a8c962c88d67122db3ca55ba0c22a8875e86e7d8b9d6f49dc1d87acf311f6f380eec9c3aad0
@@ -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.7
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.7
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.7
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,107 @@
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.7
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.7
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
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.7
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
+ - name: Publish to RubyGems
71
+ run: |
72
+ mkdir -p $HOME/.gem
73
+ touch $HOME/.gem/credentials
74
+ chmod 0600 $HOME/.gem/credentials
75
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
76
+ gem build *.gemspec
77
+ gem push *.gem
78
+ env:
79
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
80
+
81
+ publish-to-ruby-gems:
82
+ needs:
83
+ - lint
84
+ - test
85
+ name: Build + Publish
86
+ runs-on: ubuntu-latest
87
+ permissions:
88
+ packages: write
89
+ contents: read
90
+
91
+ steps:
92
+ - uses: actions/checkout@v2
93
+ - name: Set up Ruby 2.7
94
+ uses: ruby/setup-ruby@v1
95
+ with:
96
+ bundler-cache: true
97
+
98
+ - name: Publish to RubyGems
99
+ run: |
100
+ mkdir -p $HOME/.gem
101
+ touch $HOME/.gem/credentials
102
+ chmod 0600 $HOME/.gem/credentials
103
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
104
+ gem build *.gemspec
105
+ gem push *.gem
106
+ env:
107
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/.gitignore CHANGED
@@ -1,2 +1 @@
1
- yarn-error.log
2
- node_modules
1
+ *.gem
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
- - 'test/proto/addressbook_pb.rb'
6
+ - '**/*_pb.rb'
6
7
  Style/HashSyntax:
7
8
  Exclude:
8
- - 'test/proto/addressbook_pb.rb'
9
+ - '**/*_pb.rb'
9
10
  Style/FrozenStringLiteralComment:
10
11
  Exclude:
11
- - 'test/proto/addressbook_pb.rb'
12
+ - '**/*_pb.rb'
12
13
  Metrics/MethodLength:
13
- Max: 100
14
+ Max: 100
15
+ Exclude:
16
+ - '**/*_pb.rb'
data/Gemfile.lock CHANGED
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-formatter-protobuf (0.0.3)
4
+ fluent-plugin-formatter-protobuf (0.0.4)
5
5
  fluentd (>= 1.0, < 2)
6
6
  google-protobuf (~> 3.18)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ ast (2.4.2)
11
12
  concurrent-ruby (1.1.9)
12
13
  cool.io (1.7.1)
13
14
  fluentd (1.14.1)
@@ -25,8 +26,28 @@ GEM
25
26
  google-protobuf (3.18.1-x86_64-linux)
26
27
  http_parser.rb (0.7.0)
27
28
  msgpack (1.4.2)
29
+ parallel (1.21.0)
30
+ parser (3.0.2.0)
31
+ ast (~> 2.4.1)
28
32
  power_assert (2.0.1)
33
+ rainbow (3.0.0)
29
34
  rake (13.0.6)
35
+ regexp_parser (2.1.1)
36
+ rexml (3.2.5)
37
+ rubocop (1.22.1)
38
+ parallel (~> 1.10)
39
+ parser (>= 3.0.0.0)
40
+ rainbow (>= 2.2.2, < 4.0)
41
+ regexp_parser (>= 1.8, < 3.0)
42
+ rexml
43
+ rubocop-ast (>= 1.12.0, < 2.0)
44
+ ruby-progressbar (~> 1.7)
45
+ unicode-display_width (>= 1.4.0, < 3.0)
46
+ rubocop-ast (1.12.0)
47
+ parser (>= 3.0.1.1)
48
+ rubocop-rake (0.6.0)
49
+ rubocop (~> 1.0)
50
+ ruby-progressbar (1.11.0)
30
51
  serverengine (2.2.4)
31
52
  sigdump (~> 0.2.2)
32
53
  sigdump (0.2.4)
@@ -37,6 +58,7 @@ GEM
37
58
  concurrent-ruby (~> 1.0)
38
59
  tzinfo-data (1.2021.3)
39
60
  tzinfo (>= 1.0.0)
61
+ unicode-display_width (2.1.0)
40
62
  webrick (1.7.0)
41
63
  yajl-ruby (1.4.1)
42
64
 
@@ -47,6 +69,8 @@ DEPENDENCIES
47
69
  bundler (~> 2.2.22)
48
70
  fluent-plugin-formatter-protobuf!
49
71
  rake (~> 13.0.3)
72
+ rubocop (~> 1.22.1)
73
+ rubocop-rake (~> 0.6.0)
50
74
  test-unit (~> 3.3.7)
51
75
 
52
76
  BUNDLED WITH
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # fluent-plugin-formatter-protobuf
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/fluent-plugin-formatter-protobuf.svg)](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
@@ -24,6 +26,43 @@ And then execute:
24
26
  $ bundle
25
27
  ```
26
28
 
29
+ ## Not so quick start
30
+
31
+ 1. Generate the protobuf ruby methods
32
+ 1. e.g `protoc --proto_path=. --ruby_out=. ./log.proto`
33
+ 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
34
+
35
+
36
+ ## Example
37
+
38
+ ```fluentd
39
+ <source>
40
+ @type tcp
41
+ tag tcp.events
42
+ port 5170
43
+ delimiter "\n"
44
+ <parse>
45
+ @type json
46
+ </parse>
47
+ </source>
48
+
49
+ <match tcp.events>
50
+ @type file
51
+
52
+ path /opt/fluent-plugin-formatter-protobuf/out
53
+
54
+ <buffer>
55
+ @type memory
56
+ </buffer>
57
+
58
+ <format>
59
+ @type protobuf
60
+ message_name "Log"
61
+ include_paths ["/opt/fluent-plugin-formatter-protobuf/log_pb.rb"]
62
+ </format>
63
+ </match>
64
+ ```
65
+
27
66
  ## Configuration
28
67
 
29
68
  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
@@ -44,6 +44,11 @@ namespace :lint do
44
44
  end
45
45
  end
46
46
 
47
+ desc 'Building ruby gem'
48
+ task :build do
49
+ sh 'gem build *.gemspec'
50
+ end
51
+
47
52
  desc 'Listing all tasks'
48
53
  task :help do
49
54
  sh 'rake --tasks'
@@ -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::ProtobufFormatter::VERSION
9
+ spec.version = Fluent::Plugin::VERSION
10
10
  spec.authors = ['Ray Tung']
11
11
  spec.email = ['code@raytung.net']
12
12
 
@@ -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']
@@ -2,8 +2,6 @@
2
2
 
3
3
  module Fluent
4
4
  module Plugin
5
- module ProtobufFormatter
6
- VERSION = '0.0.3'
7
- end
5
+ VERSION = '0.0.4'
8
6
  end
9
7
  end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'fluentd', '1.14.1'
6
+ gem 'fluent-plugin-formatter-protobuf', '0.0.3'
@@ -0,0 +1,45 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ concurrent-ruby (1.1.9)
5
+ cool.io (1.7.1)
6
+ fluent-plugin-formatter-protobuf (0.0.3)
7
+ fluentd (>= 1.0, < 2)
8
+ google-protobuf (~> 3.18)
9
+ fluentd (1.14.1)
10
+ bundler
11
+ cool.io (>= 1.4.5, < 2.0.0)
12
+ http_parser.rb (>= 0.5.1, < 0.8.0)
13
+ msgpack (>= 1.3.1, < 2.0.0)
14
+ serverengine (>= 2.2.2, < 3.0.0)
15
+ sigdump (~> 0.2.2)
16
+ strptime (>= 0.2.2, < 1.0.0)
17
+ tzinfo (>= 1.0, < 3.0)
18
+ tzinfo-data (~> 1.0)
19
+ webrick (>= 1.4.2, < 1.8.0)
20
+ yajl-ruby (~> 1.0)
21
+ google-protobuf (3.18.1)
22
+ google-protobuf (3.18.1-x86_64-linux)
23
+ http_parser.rb (0.7.0)
24
+ msgpack (1.4.2)
25
+ serverengine (2.2.4)
26
+ sigdump (~> 0.2.2)
27
+ sigdump (0.2.4)
28
+ strptime (0.2.5)
29
+ tzinfo (2.0.4)
30
+ concurrent-ruby (~> 1.0)
31
+ tzinfo-data (1.2021.3)
32
+ tzinfo (>= 1.0.0)
33
+ webrick (1.7.0)
34
+ yajl-ruby (1.4.1)
35
+
36
+ PLATFORMS
37
+ ruby
38
+ x86_64-linux
39
+
40
+ DEPENDENCIES
41
+ fluent-plugin-formatter-protobuf (= 0.0.3)
42
+ fluentd (= 1.14.1)
43
+
44
+ BUNDLED WITH
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,6 @@
1
+ syntax = "proto3";
2
+
3
+ message Log {
4
+ int64 timestamp = 1;
5
+ string message = 2;
6
+ }
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-formatter-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Tung
@@ -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,7 +122,8 @@ executables: []
94
122
  extensions: []
95
123
  extra_rdoc_files: []
96
124
  files:
97
- - ".github/workflows/gem-push.yml"
125
+ - ".github/workflows/build-and-test.yml"
126
+ - ".github/workflows/publish.yml"
98
127
  - ".gitignore"
99
128
  - ".rubocop.yml"
100
129
  - ".ruby-version"
@@ -102,21 +131,27 @@ files:
102
131
  - Gemfile.lock
103
132
  - LICENSE
104
133
  - README.md
134
+ - RELEASE.md
105
135
  - Rakefile
106
136
  - docker-compose.yaml
107
137
  - docker-run.sh
108
138
  - fluent-plugin-formatter-protobuf.gemspec
109
139
  - lib/fluent/plugin/formatter_protobuf.rb
110
140
  - lib/fluent/plugin/version.rb
111
- - package.json
112
141
  - test/helper.rb
142
+ - test/integration/Gemfile
143
+ - test/integration/Gemfile.lock
144
+ - test/integration/README.md
145
+ - test/integration/fluent.conf
146
+ - test/integration/log.proto
147
+ - test/integration/log_pb.rb
148
+ - test/integration/run.sh
113
149
  - test/plugin/test_formatter_protobuf.rb
114
150
  - test/proto/README.md
115
151
  - test/proto/addressbook
116
152
  - test/proto/addressbook.bin
117
153
  - test/proto/addressbook.proto
118
154
  - test/proto/addressbook_pb.rb
119
- - yarn.lock
120
155
  homepage: https://github.com/raytung/fluent-plugin-formatter-protobuf
121
156
  licenses:
122
157
  - Apache-2.0
@@ -145,6 +180,13 @@ 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"
data/package.json DELETED
@@ -1,58 +0,0 @@
1
- {
2
- "name": "fluent-plugin-formatter-protobuf",
3
- "version": "0.0.3",
4
- "description": "Protobuf formatter for Fluentd",
5
- "main": "dist/index.js",
6
- "repository": "git@github.com:raytung/fluent-plugin-formatter-protobuf.git",
7
- "author": "Ray Tung <code@raytung.net>",
8
- "license": "Apache-2.0",
9
- "private": false,
10
- "scripts": {
11
- "release": "semantic-release"
12
- },
13
- "devDependencies": {
14
- "@semantic-release/changelog": "^6.0.0",
15
- "@semantic-release/commit-analyzer": "^9.0.1",
16
- "@semantic-release/git": "^10.0.0",
17
- "@semantic-release/github": "^8.0.1",
18
- "@semantic-release/npm": "^8.0.0",
19
- "@semantic-release/release-notes-generator": "^10.0.2",
20
- "semantic-release": "^18.0.0",
21
- "semantic-release-rubygem": "^1.2.0"
22
- },
23
- "release": {
24
- "branches": [
25
- "main"
26
- ],
27
- "plugins": [
28
- "@semantic-release/commit-analyzer",
29
- "@semantic-release/release-notes-generator",
30
- [
31
- "@semantic-release/npm",
32
- {
33
- "npmPublish": false
34
- }
35
- ],
36
- [
37
- "semantic-release-rubygem",
38
- {
39
- "updateGemfileLock": true
40
- }
41
- ],
42
- "@semantic-release/changelog",
43
- [
44
- "@semantic-release/git",
45
- {
46
- "assets": [
47
- "package.json",
48
- "yarn.lock",
49
- "lib/fluent/plugin/version.rb",
50
- "CHANGELOG.md"
51
- ],
52
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
53
- }
54
- ],
55
- "@semantic-release/github"
56
- ]
57
- }
58
- }