fluent-plugin-chatwork 2.0.2 → 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
- SHA1:
3
- metadata.gz: 72b9074700991322749b868e02b33720856f4970
4
- data.tar.gz: 13807e97370d73b831464d21be1d2a20cd44896f
2
+ SHA256:
3
+ metadata.gz: b34a21a6bb0f43b7822f36d553cc261e03900a4fdc79772cd9f342cf7726768b
4
+ data.tar.gz: 93a849d933073898eb7ca81ce1b0ff6a39d76088587265b399f279c5892ddbd9
5
5
  SHA512:
6
- metadata.gz: f8e6f5100431c60c8edcf25026c644839da746828bce1868e5260901a55d5a643c43d2bea97ec8aa02ee416a2b55bc5ce51f318902e777e2fd67bf26662a0e2c
7
- data.tar.gz: c569290c67eb66bbb8c0a2c9b61222d7434405baa18bb61a4864c71721301f2a726dcccdea2bd16aa921c9cebe8afe66082c99cf9d223cf3d50d72d1f6c7b93d
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 }}
@@ -0,0 +1,86 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ fail-fast: false
21
+
22
+ matrix:
23
+ ruby:
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
+
37
+ steps:
38
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
39
+
40
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
41
+ with:
42
+ ruby-version: ${{ matrix.ruby }}
43
+ bundler-cache: true
44
+
45
+ - run: bundle update --jobs $(nproc) --retry 3
46
+
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
52
+ continue-on-error: true
53
+
54
+ - run: bundle exec rspec
55
+
56
+ - name: Teardown Code Climate Test Reporter
57
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
58
+ with:
59
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
60
+ command: after-build
61
+ if: always()
62
+ continue-on-error: true
63
+
64
+ - name: Slack Notification (not success)
65
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
66
+ if: "! success()"
67
+ continue-on-error: true
68
+ with:
69
+ status: ${{ job.status }}
70
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
71
+ matrix: ${{ toJson(matrix) }}
72
+
73
+ notify:
74
+ needs:
75
+ - test
76
+
77
+ runs-on: ubuntu-latest
78
+
79
+ steps:
80
+ - name: Slack Notification (success)
81
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
82
+ if: always()
83
+ continue-on-error: true
84
+ with:
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,18 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.2...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
10
+
11
+ ## 2.0.3
12
+ [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.2...v2.0.3)
13
+
14
+ * Enable MFA requirement for gem releasing
15
+ * https://github.com/sue445/fluent-plugin-chatwork/pull/34
4
16
 
5
17
  ## 2.0.2
6
18
  [full changelog](https://github.com/sue445/fluent-plugin-chatwork/compare/v2.0.1...v2.0.2)
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,8 +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://travis-ci.org/sue445/fluent-plugin-chatwork.svg?branch=master)](https://travis-ci.org/sue445/fluent-plugin-chatwork)
7
- [![Dependency Status](https://gemnasium.com/sue445/fluent-plugin-chatwork.svg)](https://gemnasium.com/sue445/fluent-plugin-chatwork)
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)
8
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)
9
8
  [![Code Climate](https://codeclimate.com/github/sue445/fluent-plugin-chatwork.png)](https://codeclimate.com/github/sue445/fluent-plugin-chatwork)
10
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.2"
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}
@@ -12,6 +12,12 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://github.com/sue445/fluent-plugin-chatwork"
13
13
  spec.license = "MIT"
14
14
 
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = spec.homepage
17
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
18
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/fluent-plugin-chatwork/"
19
+ spec.metadata["rubygems_mfa_required"] = "true"
20
+
15
21
  spec.files = `git ls-files -z`.split("\x0")
16
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -21,10 +27,12 @@ Gem::Specification.new do |spec|
21
27
  spec.add_dependency "chatwork", ">= 0.4.0"
22
28
 
23
29
  spec.add_development_dependency "bundler"
24
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
25
- spec.add_development_dependency "coveralls"
30
+ spec.add_development_dependency "coveralls_reborn"
26
31
  spec.add_development_dependency "rake"
27
32
  spec.add_development_dependency "rspec"
28
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
29
35
  spec.add_development_dependency "test-unit"
36
+ spec.add_development_dependency "webrick"
37
+ spec.add_development_dependency "yard"
30
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.2
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: 2017-08-18 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,21 +58,21 @@ dependencies:
59
58
  - !ruby/object:Gem::Version
60
59
  version: '0'
61
60
  - !ruby/object:Gem::Dependency
62
- name: codeclimate-test-reporter
61
+ name: coveralls_reborn
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
- - - "~>"
64
+ - - ">="
66
65
  - !ruby/object:Gem::Version
67
- version: 1.0.0
66
+ version: '0'
68
67
  type: :development
69
68
  prerelease: false
70
69
  version_requirements: !ruby/object:Gem::Requirement
71
70
  requirements:
72
- - - "~>"
71
+ - - ">="
73
72
  - !ruby/object:Gem::Version
74
- version: 1.0.0
73
+ version: '0'
75
74
  - !ruby/object:Gem::Dependency
76
- name: coveralls
75
+ name: rake
77
76
  requirement: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - ">="
@@ -87,7 +86,7 @@ dependencies:
87
86
  - !ruby/object:Gem::Version
88
87
  version: '0'
89
88
  - !ruby/object:Gem::Dependency
90
- name: rake
89
+ name: rspec
91
90
  requirement: !ruby/object:Gem::Requirement
92
91
  requirements:
93
92
  - - ">="
@@ -101,7 +100,7 @@ dependencies:
101
100
  - !ruby/object:Gem::Version
102
101
  version: '0'
103
102
  - !ruby/object:Gem::Dependency
104
- name: rspec
103
+ name: simplecov
105
104
  requirement: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - ">="
@@ -115,7 +114,21 @@ dependencies:
115
114
  - !ruby/object:Gem::Version
116
115
  version: '0'
117
116
  - !ruby/object:Gem::Dependency
118
- name: simplecov
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
130
+ - !ruby/object:Gem::Dependency
131
+ name: test-unit
119
132
  requirement: !ruby/object:Gem::Requirement
120
133
  requirements:
121
134
  - - ">="
@@ -129,7 +142,21 @@ dependencies:
129
142
  - !ruby/object:Gem::Version
130
143
  version: '0'
131
144
  - !ruby/object:Gem::Dependency
132
- name: test-unit
145
+ name: webrick
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: yard
133
160
  requirement: !ruby/object:Gem::Requirement
134
161
  requirements:
135
162
  - - ">="
@@ -150,10 +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"
183
+ - ".github/workflows/test.yml"
153
184
  - ".gitignore"
154
185
  - ".rspec"
155
- - ".tachikoma.yml"
156
- - ".travis.yml"
186
+ - ".yardopts"
157
187
  - CHANGELOG.md
158
188
  - Gemfile
159
189
  - LICENSE.txt
@@ -166,8 +196,12 @@ files:
166
196
  homepage: https://github.com/sue445/fluent-plugin-chatwork
167
197
  licenses:
168
198
  - MIT
169
- metadata: {}
170
- post_install_message:
199
+ metadata:
200
+ homepage_uri: https://github.com/sue445/fluent-plugin-chatwork
201
+ source_code_uri: https://github.com/sue445/fluent-plugin-chatwork
202
+ changelog_uri: https://github.com/sue445/fluent-plugin-chatwork/blob/master/CHANGELOG.md
203
+ documentation_uri: https://sue445.github.io/fluent-plugin-chatwork/
204
+ rubygems_mfa_required: 'true'
171
205
  rdoc_options: []
172
206
  require_paths:
173
207
  - lib
@@ -182,9 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
216
  - !ruby/object:Gem::Version
183
217
  version: '0'
184
218
  requirements: []
185
- rubyforge_project:
186
- rubygems_version: 2.6.12
187
- signing_key:
219
+ rubygems_version: 3.6.7
188
220
  specification_version: 4
189
221
  summary: fluentd output plugin for post to chatwork
190
222
  test_files:
data/.tachikoma.yml DELETED
@@ -1 +0,0 @@
1
- strategy: 'bundler'
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.2
5
- - 2.3.3
6
- - 2.4.0
7
- - ruby-head
8
- cache: bundler
9
- bundler_args: "--jobs=2"
10
- before_script:
11
- - export CODECLIMATE_REPO_TOKEN=586f55fe847c8d296adc6a00e2adf651cd63f4ea3c6ae79e7d723ad2c1f86ffc
12
- - export COVERAGE=true
13
- script:
14
- - bundle exec rspec
15
- - bundle exec codeclimate-test-reporter
16
- branches:
17
- only:
18
- - master
19
- notifications:
20
- email: false
21
- slack:
22
- secure: i04GzZS8Xbq0ZGjz5EvTref5UgH6Z8RfJjFzGf8d841Z54WHpBOPy3aXIiMCVmk1yyB7AKul41l50QgaQenWKeizKhr+Adg6tIGYdrjX5m5tq4tDlpgNR+osYBCyDGgC5PJkF1nMmYMUnI8O1kLKbwE0cqigWTRnyWBTuD+LQ4s=
23
- matrix:
24
- allow_failures:
25
- - rvm: ruby-head
26
- sudo: false