fluent-plugin-chatwork 2.0.3 → 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: e45b5213ff2d74c8887b01bf2f7b35d98caa14afee29e1bcc6b1dddbbc913215
4
- data.tar.gz: 1641a43fd6fcc68b7b541ef466711e4541468d6109ae97074f3d8a36fc1dca5b
3
+ metadata.gz: fb8495bef87f5aa0fc199271bbeb54b0aa3beaccd70be4bd12be2614e87b6218
4
+ data.tar.gz: b029682e3072e87e1d424d3ad84df21dd9731677de02331db13570971101fb8c
5
5
  SHA512:
6
- metadata.gz: ba51d56830461bd000312ac9f9bb2f5ea5395b4b23f702bde79bdc371fc56ddef92c677a6a23cb77b0ece575e4a0e8fe117446d6f60a5158097b6f927deee222
7
- data.tar.gz: 943daf1b1766c5b151f783c529f5dc44b2afaff001920993d74e275c68306a19d9cb42a2fd209773a4c9eb0dab6709e6d8c14d737cd91ffbec483880e7b842ab
6
+ metadata.gz: dd5397c468cc5f5876eaec6b4be99f1e7db3671f20c9de0dc7b9a29c57b432a1bcef351b88d6bf2f088398a5bf2247c997628a9156b8581f84232b1940ece19b
7
+ data.tar.gz: 6a8a722a5382b6c063a65e768b1f03577ac93fbc27c19f43c40f572f576cd8df8c26b5295e4b354e20e8e18b8ec8e5e5c355d8d6149ba8cef5ac48dbadc7acd3
@@ -0,0 +1,20 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ ###########################################################
6
+ # NOTE: following sections are auto generated. DO NOT EDIT!
7
+ ###########################################################
8
+ - package-ecosystem: github-actions
9
+ directory: /
10
+ schedule:
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
14
+ assignees:
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 }}
@@ -0,0 +1,18 @@
1
+ name: Deploy yard to Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ jobs:
15
+ deploy:
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -0,0 +1,14 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
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
12
+ permissions:
13
+ contents: write
14
+ id-token: write
@@ -12,101 +12,93 @@ on:
12
12
  schedule:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
- env:
16
- CI: "true"
17
-
18
15
  jobs:
19
16
  test:
20
17
  runs-on: ubuntu-latest
21
18
 
22
- container: ${{ matrix.ruby }}
23
-
24
19
  strategy:
25
20
  fail-fast: false
26
21
 
27
22
  matrix:
28
23
  ruby:
29
- - ruby:2.1
30
- - ruby:2.2
31
- - ruby:2.3
32
- - ruby:2.4
33
- - ruby:2.5
34
- - ruby:2.6
35
- - ruby:2.7
36
- - ruby:3.0
37
- - rubylang/ruby:master-nightly-bionic
38
- include:
39
- - ruby: rubylang/ruby:master-nightly-bionic
40
- allow_failures: "true"
24
+ - "2.1"
25
+ - "2.2"
26
+ - "2.3"
27
+ - "2.4"
28
+ - "2.5"
29
+ - "2.6"
30
+ - "2.7"
31
+ - "3.0"
32
+ - "3.1"
33
+ - "3.2"
34
+ - "3.3"
35
+ - "3.4"
36
+ - "4.0"
41
37
 
42
38
  steps:
43
- - uses: actions/checkout@v2
39
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40
+
41
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
42
+ with:
43
+ ruby-version: ${{ matrix.ruby }}
44
+ bundler-cache: true
45
+ cache-version: 1
46
+
47
+ - run: bundle update --all --jobs $(nproc) --retry 3
44
48
 
49
+ - run: bundle exec rspec
45
50
 
46
- - name: Cache vendor/bundle
47
- uses: actions/cache@v1
48
- id: cache_gem
51
+ - name: Slack Notification (not success)
52
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
53
+ if: "! success()"
54
+ continue-on-error: true
49
55
  with:
50
- path: vendor/bundle
51
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
52
- restore-keys: |
53
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
54
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
56
+ status: ${{ job.status }}
57
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
58
+ matrix: ${{ toJson(matrix) }}
59
+
60
+ yard:
61
+ runs-on: ubuntu-latest
62
+
63
+ steps:
64
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
65
+
66
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
67
+ with:
68
+ ruby-version: ruby
69
+ bundler-cache: true
55
70
 
56
71
  - name: bundle update
57
72
  run: |
58
73
  set -xe
59
74
  bundle config path vendor/bundle
60
- bundle update --jobs $(nproc) --retry 3
61
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
62
-
63
- - name: Setup Code Climate Test Reporter
64
- uses: aktions/codeclimate-test-reporter@v1
65
- with:
66
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
67
- command: before-build
68
- if: matrix.ruby >= 'ruby:2.4'
69
- continue-on-error: true
75
+ bundle update --all --jobs $(nproc) --retry 3
70
76
 
71
- - name: Run test
77
+ - name: yard generating test
72
78
  run: |
73
79
  set -xe
74
- bundle exec rspec
75
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
76
-
77
- - name: Teardown Code Climate Test Reporter
78
- uses: aktions/codeclimate-test-reporter@v1
79
- with:
80
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
81
- command: after-build
82
- if: matrix.ruby >= 'ruby:2.4' && always()
83
- continue-on-error: true
80
+ bundle exec yard
81
+ ls -ld doc/
84
82
 
85
83
  - name: Slack Notification (not success)
86
- uses: lazy-actions/slatify@master
84
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
87
85
  if: "! success()"
88
86
  continue-on-error: true
89
87
  with:
90
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
91
- type: ${{ job.status }}
92
- icon_emoji: ":octocat:"
93
- url: ${{ secrets.SLACK_WEBHOOK }}
94
- token: ${{ secrets.GITHUB_TOKEN }}
88
+ status: ${{ job.status }}
89
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
90
+
91
+ all-pass:
92
+ if: always()
95
93
 
96
- notify:
97
94
  needs:
98
95
  - test
96
+ - yard
99
97
 
100
- runs-on: ubuntu-latest
98
+ runs-on: ubuntu-slim
101
99
 
102
100
  steps:
103
- - name: Slack Notification (success)
104
- uses: lazy-actions/slatify@master
105
- if: always()
106
- continue-on-error: true
101
+ - name: check dependent jobs
102
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
107
103
  with:
108
- job_name: '*build*'
109
- type: ${{ job.status }}
110
- icon_emoji: ":octocat:"
111
- url: ${{ secrets.SLACK_WEBHOOK }}
112
- token: ${{ secrets.GITHUB_TOKEN }}
104
+ jobs: ${{ toJSON(needs) }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.3...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
10
+
11
+ ## [2.0.4](https://github.com/sue445/fluent-plugin-chatwork/releases/tag/v2.0.4)
12
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.3...v2.0.4)
13
+
14
+ * Release gem from GitHub Actions
15
+ * https://github.com/sue445/fluent-plugin-chatwork/pull/68
4
16
 
5
17
  ## 2.0.3
6
18
  [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.2...v2.0.3)
data/Gemfile CHANGED
@@ -2,3 +2,28 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in fluent-plugin-chatwork.gemspec
4
4
  gemspec
5
+
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
7
+ # faraday v2.0.0+ requires Ruby 2.6.0+
8
+ gem "faraday", "< 2.0.0"
9
+ end
10
+
11
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
12
+ # multipart-post uses `Object.deprecate_constant`, but this available since Ruby 2.3.0+
13
+ # https://github.com/socketry/multipart-post/blob/v2.2.0/lib/multipart/post/parts.rb#L152
14
+ gem "multipart-post", "< 2.2.0"
15
+
16
+ # serverengine uses `&.`, but this available since Ruby 2.3.0+
17
+ # https://github.com/treasure-data/serverengine/blob/v2.3.0/lib/serverengine/server.rb#L83
18
+ gem "serverengine", "< 2.3.0"
19
+ end
20
+
21
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
22
+ # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
23
+ gem "term-ansicolor", "< 1.9.0"
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
@@ -3,9 +3,9 @@
3
3
  fluentd output plugin for post to [ChatWork](http://www.chatwork.com/)
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/fluent-plugin-chatwork.svg)](http://badge.fury.io/rb/fluent-plugin-chatwork)
6
- [![Build Status](https://github.com/sue445/fluent-plugin-chatwork/workflows/test/badge.svg?branch=master)](https://github.com/sue445/fluent-plugin-chatwork/actions?query=workflow%3Atest)
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.3"
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}
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = spec.homepage
17
17
  spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
18
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/fluent-plugin-chatwork/"
18
19
  spec.metadata["rubygems_mfa_required"] = "true"
19
20
 
20
21
  spec.files = `git ls-files -z`.split("\x0")
@@ -26,10 +27,12 @@ Gem::Specification.new do |spec|
26
27
  spec.add_dependency "chatwork", ">= 0.4.0"
27
28
 
28
29
  spec.add_development_dependency "bundler"
29
- spec.add_development_dependency "coveralls"
30
+ spec.add_development_dependency "coveralls_reborn"
30
31
  spec.add_development_dependency "rake"
31
32
  spec.add_development_dependency "rspec"
32
33
  spec.add_development_dependency "simplecov"
34
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
33
35
  spec.add_development_dependency "test-unit"
34
36
  spec.add_development_dependency "webrick"
37
+ spec.add_development_dependency "yard"
35
38
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: fluentd
@@ -59,7 +58,7 @@ dependencies:
59
58
  - !ruby/object:Gem::Version
60
59
  version: '0'
61
60
  - !ruby/object:Gem::Dependency
62
- name: coveralls
61
+ name: coveralls_reborn
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - ">="
@@ -114,6 +113,20 @@ dependencies:
114
113
  - - ">="
115
114
  - !ruby/object:Gem::Version
116
115
  version: '0'
116
+ - !ruby/object:Gem::Dependency
117
+ name: term-ansicolor
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "!="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.11.1
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "!="
128
+ - !ruby/object:Gem::Version
129
+ version: 1.11.1
117
130
  - !ruby/object:Gem::Dependency
118
131
  name: test-unit
119
132
  requirement: !ruby/object:Gem::Requirement
@@ -142,6 +155,20 @@ dependencies:
142
155
  - - ">="
143
156
  - !ruby/object:Gem::Version
144
157
  version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: yard
160
+ requirement: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
145
172
  description: fluentd output plugin for post to chatwork
146
173
  email:
147
174
  - sue445@sue445.net
@@ -150,9 +177,15 @@ extensions: []
150
177
  extra_rdoc_files: []
151
178
  files:
152
179
  - ".coveralls.yml"
180
+ - ".github/dependabot.yml"
181
+ - ".github/release.yml"
182
+ - ".github/workflows/dependabot-manager.yml"
183
+ - ".github/workflows/pages.yml"
184
+ - ".github/workflows/release_gem.yml"
153
185
  - ".github/workflows/test.yml"
154
186
  - ".gitignore"
155
187
  - ".rspec"
188
+ - ".yardopts"
156
189
  - CHANGELOG.md
157
190
  - Gemfile
158
191
  - LICENSE.txt
@@ -169,8 +202,8 @@ metadata:
169
202
  homepage_uri: https://github.com/sue445/fluent-plugin-chatwork
170
203
  source_code_uri: https://github.com/sue445/fluent-plugin-chatwork
171
204
  changelog_uri: https://github.com/sue445/fluent-plugin-chatwork/blob/master/CHANGELOG.md
205
+ documentation_uri: https://sue445.github.io/fluent-plugin-chatwork/
172
206
  rubygems_mfa_required: 'true'
173
- post_install_message:
174
207
  rdoc_options: []
175
208
  require_paths:
176
209
  - lib
@@ -185,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
218
  - !ruby/object:Gem::Version
186
219
  version: '0'
187
220
  requirements: []
188
- rubygems_version: 3.2.22
189
- signing_key:
221
+ rubygems_version: 4.0.16
190
222
  specification_version: 4
191
223
  summary: fluentd output plugin for post to chatwork
192
224
  test_files: