fluent-plugin-chatwork 2.0.3 → 2.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: e45b5213ff2d74c8887b01bf2f7b35d98caa14afee29e1bcc6b1dddbbc913215
4
- data.tar.gz: 1641a43fd6fcc68b7b541ef466711e4541468d6109ae97074f3d8a36fc1dca5b
3
+ metadata.gz: b34a21a6bb0f43b7822f36d553cc261e03900a4fdc79772cd9f342cf7726768b
4
+ data.tar.gz: 93a849d933073898eb7ca81ce1b0ff6a39d76088587265b399f279c5892ddbd9
5
5
  SHA512:
6
- metadata.gz: ba51d56830461bd000312ac9f9bb2f5ea5395b4b23f702bde79bdc371fc56ddef92c677a6a23cb77b0ece575e4a0e8fe117446d6f60a5158097b6f927deee222
7
- data.tar.gz: 943daf1b1766c5b151f783c529f5dc44b2afaff001920993d74e275c68306a19d9cb42a2fd209773a4c9eb0dab6709e6d8c14d737cd91ffbec483880e7b842ab
6
+ metadata.gz: 8e496f63f1e4d90400d3f522c56f3a0f13f3bf069301866592fb8a912341379334eb6dbb05ce7d1de03a202230bafcf1bc4c9ff55d01c39a223e787480da99d4
7
+ data.tar.gz: c5052d552051403ed25ce597fb4f425f2bc3ca7aa7e1b69744ce1a0de0c19ba8332de1f7719dd9a654f52b23bc06b01797bf23828974e0269ec35370413b723b
@@ -0,0 +1,12 @@
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
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,59 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ # Single deploy job since we're just deploying
26
+ 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 }}
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
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
+
15
+ permissions:
16
+ contents: write
17
+ 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 }}
@@ -12,86 +12,63 @@ 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"
41
36
 
42
37
  steps:
43
- - uses: actions/checkout@v2
38
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
44
39
 
45
-
46
- - name: Cache vendor/bundle
47
- uses: actions/cache@v1
48
- id: cache_gem
40
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
49
41
  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' }}
42
+ ruby-version: ${{ matrix.ruby }}
43
+ bundler-cache: true
55
44
 
56
- - name: bundle update
57
- run: |
58
- set -xe
59
- bundle config path vendor/bundle
60
- bundle update --jobs $(nproc) --retry 3
61
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
45
+ - run: bundle update --jobs $(nproc) --retry 3
62
46
 
63
47
  - name: Setup Code Climate Test Reporter
64
- uses: aktions/codeclimate-test-reporter@v1
48
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
65
49
  with:
66
50
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
67
51
  command: before-build
68
- if: matrix.ruby >= 'ruby:2.4'
69
52
  continue-on-error: true
70
53
 
71
- - name: Run test
72
- run: |
73
- set -xe
74
- bundle exec rspec
75
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
54
+ - run: bundle exec rspec
76
55
 
77
56
  - name: Teardown Code Climate Test Reporter
78
- uses: aktions/codeclimate-test-reporter@v1
57
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
79
58
  with:
80
59
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
81
60
  command: after-build
82
- if: matrix.ruby >= 'ruby:2.4' && always()
61
+ if: always()
83
62
  continue-on-error: true
84
63
 
85
64
  - name: Slack Notification (not success)
86
- uses: lazy-actions/slatify@master
65
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
87
66
  if: "! success()"
88
67
  continue-on-error: true
89
68
  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 }}
69
+ status: ${{ job.status }}
70
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
71
+ matrix: ${{ toJson(matrix) }}
95
72
 
96
73
  notify:
97
74
  needs:
@@ -101,12 +78,9 @@ jobs:
101
78
 
102
79
  steps:
103
80
  - name: Slack Notification (success)
104
- uses: lazy-actions/slatify@master
81
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
105
82
  if: always()
106
83
  continue-on-error: true
107
84
  with:
108
- job_name: '*build*'
109
- type: ${{ job.status }}
110
- icon_emoji: ":octocat:"
111
- url: ${{ secrets.SLACK_WEBHOOK }}
112
- token: ${{ secrets.GITHUB_TOKEN }}
85
+ status: ${{ job.status }}
86
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
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.3...master)
3
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.4...master)
4
+
5
+ ## [2.0.4](https://github.com/sue445/fluent-plugin-chatwork/releases/tag/v2.0.4)
6
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.3...v2.0.4)
7
+
8
+ * Release gem from GitHub Actions
9
+ * https://github.com/sue445/fluent-plugin-chatwork/pull/68
4
10
 
5
11
  ## 2.0.3
6
12
  [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.2...v2.0.3)
data/Gemfile CHANGED
@@ -2,3 +2,23 @@ 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
data/README.md CHANGED
@@ -3,7 +3,7 @@
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
8
  [![Code Climate](https://codeclimate.com/github/sue445/fluent-plugin-chatwork.png)](https://codeclimate.com/github/sue445/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)
@@ -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.4"
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.4
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,13 @@ extensions: []
150
177
  extra_rdoc_files: []
151
178
  files:
152
179
  - ".coveralls.yml"
180
+ - ".github/dependabot.yml"
181
+ - ".github/workflows/pages.yml"
182
+ - ".github/workflows/release_gem.yml"
153
183
  - ".github/workflows/test.yml"
154
184
  - ".gitignore"
155
185
  - ".rspec"
186
+ - ".yardopts"
156
187
  - CHANGELOG.md
157
188
  - Gemfile
158
189
  - LICENSE.txt
@@ -169,8 +200,8 @@ metadata:
169
200
  homepage_uri: https://github.com/sue445/fluent-plugin-chatwork
170
201
  source_code_uri: https://github.com/sue445/fluent-plugin-chatwork
171
202
  changelog_uri: https://github.com/sue445/fluent-plugin-chatwork/blob/master/CHANGELOG.md
203
+ documentation_uri: https://sue445.github.io/fluent-plugin-chatwork/
172
204
  rubygems_mfa_required: 'true'
173
- post_install_message:
174
205
  rdoc_options: []
175
206
  require_paths:
176
207
  - lib
@@ -185,8 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
216
  - !ruby/object:Gem::Version
186
217
  version: '0'
187
218
  requirements: []
188
- rubygems_version: 3.2.22
189
- signing_key:
219
+ rubygems_version: 3.6.7
190
220
  specification_version: 4
191
221
  summary: fluentd output plugin for post to chatwork
192
222
  test_files: