fluent-plugin-chatwork 2.0.4 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b34a21a6bb0f43b7822f36d553cc261e03900a4fdc79772cd9f342cf7726768b
4
- data.tar.gz: 93a849d933073898eb7ca81ce1b0ff6a39d76088587265b399f279c5892ddbd9
3
+ metadata.gz: fb8495bef87f5aa0fc199271bbeb54b0aa3beaccd70be4bd12be2614e87b6218
4
+ data.tar.gz: b029682e3072e87e1d424d3ad84df21dd9731677de02331db13570971101fb8c
5
5
  SHA512:
6
- metadata.gz: 8e496f63f1e4d90400d3f522c56f3a0f13f3bf069301866592fb8a912341379334eb6dbb05ce7d1de03a202230bafcf1bc4c9ff55d01c39a223e787480da99d4
7
- data.tar.gz: c5052d552051403ed25ce597fb4f425f2bc3ca7aa7e1b69744ce1a0de0c19ba8332de1f7719dd9a654f52b23bc06b01797bf23828974e0269ec35370413b723b
6
+ metadata.gz: dd5397c468cc5f5876eaec6b4be99f1e7db3671f20c9de0dc7b9a29c57b432a1bcef351b88d6bf2f088398a5bf2247c997628a9156b8581f84232b1940ece19b
7
+ data.tar.gz: 6a8a722a5382b6c063a65e768b1f03577ac93fbc27c19f43c40f572f576cd8df8c26b5295e4b354e20e8e18b8ec8e5e5c355d8d6149ba8cef5ac48dbadc7acd3
@@ -2,11 +2,19 @@
2
2
  version: 2
3
3
 
4
4
  updates:
5
+ ###########################################################
6
+ # NOTE: following sections are auto generated. DO NOT EDIT!
7
+ ###########################################################
5
8
  - package-ecosystem: github-actions
6
9
  directory: /
7
10
  schedule:
8
- interval: weekly
9
- cooldown:
10
- default-days: 7
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
11
14
  assignees:
12
15
  - sue445
16
+ cooldown:
17
+ default-days: 7
18
+ exclude:
19
+ - ruby/setup-ruby
20
+ ###########################################################
@@ -0,0 +1,31 @@
1
+ # ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2
+
3
+ changelog:
4
+ exclude:
5
+ labels:
6
+ - chore
7
+
8
+ categories:
9
+ - title: ":bomb: Breaking Changes"
10
+ labels:
11
+ - breaking change
12
+
13
+ - title: ":lock: Security Fix"
14
+ labels:
15
+ - security
16
+
17
+ - title: ":rocket: Features"
18
+ labels:
19
+ - enhancement
20
+
21
+ - title: ":bug: Bug Fixes"
22
+ labels:
23
+ - bug
24
+
25
+ - title: ":dependabot: Dependency updates"
26
+ labels:
27
+ - dependencies
28
+
29
+ - title: ":pencil: Other Changes"
30
+ labels:
31
+ - "*"
@@ -0,0 +1,28 @@
1
+ name: dependabot-manager
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize # PR branch is rebased
8
+
9
+ jobs:
10
+ dependabot-auto-merge:
11
+ uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
12
+ with:
13
+ repo-name: sue445/fluent-plugin-chatwork
14
+ secrets:
15
+ # TODO: Set secrets to Dependabot secrets
16
+ app-id: ${{ secrets.GH_APP_ID }}
17
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
19
+
20
+ dependabot-security-alert:
21
+ uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
22
+ with:
23
+ repo-name: sue445/fluent-plugin-chatwork
24
+ secrets:
25
+ # TODO: Set secrets to Dependabot secrets
26
+ app-id: ${{ secrets.GH_APP_ID }}
27
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
28
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -1,59 +1,18 @@
1
- # Simple workflow for deploying static content to GitHub Pages
2
- name: Deploy static content to Pages
1
+ name: Deploy yard to Pages
3
2
 
4
3
  on:
5
- # Runs on pushes targeting the default branch
6
4
  push:
7
5
  branches:
8
6
  - master
9
-
10
- # Allows you to run this workflow manually from the Actions tab
11
7
  workflow_dispatch:
12
8
 
13
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
9
  permissions:
15
10
  contents: read
16
11
  pages: write
17
12
  id-token: write
18
13
 
19
- # Allow one concurrent deployment
20
- concurrency:
21
- group: "pages"
22
- cancel-in-progress: true
23
-
24
14
  jobs:
25
- # Single deploy job since we're just deploying
26
15
  deploy:
27
- environment:
28
- name: github-pages
29
- url: ${{ steps.deployment.outputs.page_url }}
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Checkout
33
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
-
35
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
- with:
37
- ruby-version: ruby
38
- bundler-cache: true
39
-
40
- - run: bundle exec yard
41
-
42
- - name: Setup Pages
43
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
44
- - name: Upload artifact
45
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
46
- with:
47
- # Upload entire repository
48
- path: './doc'
49
- - name: Deploy to GitHub Pages
50
- id: deployment
51
- uses: actions/deploy-pages@v4
52
-
53
- - name: Slack Notification (not success)
54
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
55
- if: "! success()"
56
- continue-on-error: true
57
- with:
58
- status: ${{ job.status }}
59
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -5,37 +5,10 @@ on:
5
5
 
6
6
  jobs:
7
7
  release:
8
- if: github.repository == 'sue445/fluent-plugin-chatwork'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/fluent-plugin-chatwork
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/fluent-plugin-chatwork
11
+ gem-name: fluent-plugin-chatwork
15
12
  permissions:
16
13
  contents: write
17
14
  id-token: write
18
-
19
- steps:
20
- - name: Harden Runner
21
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
- with:
23
- egress-policy: audit
24
-
25
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
-
27
- - name: Set up Ruby
28
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
- with:
30
- bundler-cache: true
31
- ruby-version: ruby
32
-
33
- - name: Publish to RubyGems
34
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
-
36
- - name: Create GitHub release
37
- run: |
38
- tag_name="$(git describe --tags --abbrev=0)"
39
- gh release create "${tag_name}" --verify-tag --generate-notes
40
- env:
41
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -33,54 +33,72 @@ jobs:
33
33
  - "3.2"
34
34
  - "3.3"
35
35
  - "3.4"
36
+ - "4.0"
36
37
 
37
38
  steps:
38
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
39
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39
40
 
40
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
41
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
41
42
  with:
42
43
  ruby-version: ${{ matrix.ruby }}
43
44
  bundler-cache: true
45
+ cache-version: 1
44
46
 
45
- - run: bundle update --jobs $(nproc) --retry 3
47
+ - run: bundle update --all --jobs $(nproc) --retry 3
46
48
 
47
- - name: Setup Code Climate Test Reporter
48
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
49
- with:
50
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
51
- command: before-build
49
+ - run: bundle exec rspec
50
+
51
+ - name: Slack Notification (not success)
52
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
53
+ if: "! success()"
52
54
  continue-on-error: true
55
+ with:
56
+ status: ${{ job.status }}
57
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
58
+ matrix: ${{ toJson(matrix) }}
53
59
 
54
- - run: bundle exec rspec
60
+ yard:
61
+ runs-on: ubuntu-latest
55
62
 
56
- - name: Teardown Code Climate Test Reporter
57
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
63
+ steps:
64
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
65
+
66
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
58
67
  with:
59
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
60
- command: after-build
61
- if: always()
62
- continue-on-error: true
68
+ ruby-version: ruby
69
+ bundler-cache: true
70
+
71
+ - name: bundle update
72
+ run: |
73
+ set -xe
74
+ bundle config path vendor/bundle
75
+ bundle update --all --jobs $(nproc) --retry 3
76
+
77
+ - name: yard generating test
78
+ run: |
79
+ set -xe
80
+ bundle exec yard
81
+ ls -ld doc/
63
82
 
64
83
  - name: Slack Notification (not success)
65
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
84
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
66
85
  if: "! success()"
67
86
  continue-on-error: true
68
87
  with:
69
88
  status: ${{ job.status }}
70
89
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
71
- matrix: ${{ toJson(matrix) }}
72
90
 
73
- notify:
91
+ all-pass:
92
+ if: always()
93
+
74
94
  needs:
75
95
  - test
96
+ - yard
76
97
 
77
- runs-on: ubuntu-latest
98
+ runs-on: ubuntu-slim
78
99
 
79
100
  steps:
80
- - name: Slack Notification (success)
81
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
82
- if: always()
83
- continue-on-error: true
101
+ - name: check dependent jobs
102
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
84
103
  with:
85
- status: ${{ job.status }}
86
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
104
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.4...master)
3
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.5...master)
4
+
5
+ ## [2.0.5](https://github.com/sue445/fluent-plugin-chatwork/releases/tag/v2.0.5)
6
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.4...v2.0.5)
7
+
8
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
9
+ * https://github.com/sue445/fluent-plugin-chatwork/pull/108
4
10
 
5
11
  ## [2.0.4](https://github.com/sue445/fluent-plugin-chatwork/releases/tag/v2.0.4)
6
12
  [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.3...v2.0.4)
data/Gemfile CHANGED
@@ -22,3 +22,8 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
22
22
  # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
23
23
  gem "term-ansicolor", "< 1.9.0"
24
24
  end
25
+
26
+ if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("4.0.0")
27
+ # rdoc is bundled gem since ruby 4.0
28
+ gem "rdoc"
29
+ end
data/README.md CHANGED
@@ -5,7 +5,7 @@ fluentd output plugin for post to [ChatWork](http://www.chatwork.com/)
5
5
  [![Gem Version](https://badge.fury.io/rb/fluent-plugin-chatwork.svg)](http://badge.fury.io/rb/fluent-plugin-chatwork)
6
6
  [![test](https://github.com/sue445/fluent-plugin-chatwork/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/fluent-plugin-chatwork/actions/workflows/test.yml)
7
7
  [![Coverage Status](https://coveralls.io/repos/github/sue445/fluent-plugin-chatwork/badge.svg?branch=master)](https://coveralls.io/github/sue445/fluent-plugin-chatwork?branch=master)
8
- [![Code Climate](https://codeclimate.com/github/sue445/fluent-plugin-chatwork.png)](https://codeclimate.com/github/sue445/fluent-plugin-chatwork)
8
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/fluent-plugin-chatwork/maintainability.svg)](https://qlty.sh/gh/sue445/projects/fluent-plugin-chatwork)
9
9
  [![Inline docs](http://inch-ci.org/github/sue445/fluent-plugin-chatwork.svg?branch=master)](http://inch-ci.org/github/sue445/fluent-plugin-chatwork)
10
10
 
11
11
  ## Requirements
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-chatwork"
7
- spec.version = "2.0.4"
7
+ spec.version = "2.0.5"
8
8
  spec.authors = ["sue445"]
9
9
  spec.email = ["sue445@sue445.net"]
10
10
  spec.summary = %q{fluentd output plugin for post to chatwork}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -178,6 +178,8 @@ extra_rdoc_files: []
178
178
  files:
179
179
  - ".coveralls.yml"
180
180
  - ".github/dependabot.yml"
181
+ - ".github/release.yml"
182
+ - ".github/workflows/dependabot-manager.yml"
181
183
  - ".github/workflows/pages.yml"
182
184
  - ".github/workflows/release_gem.yml"
183
185
  - ".github/workflows/test.yml"
@@ -216,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
218
  - !ruby/object:Gem::Version
217
219
  version: '0'
218
220
  requirements: []
219
- rubygems_version: 3.6.7
221
+ rubygems_version: 4.0.16
220
222
  specification_version: 4
221
223
  summary: fluentd output plugin for post to chatwork
222
224
  test_files: