omniauth-chatwork 0.1.3 → 0.1.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: a5f990b2a6945c6364fb40f8bf3ccda87d45ef7f159dafb2fbf6fd54de83bef0
4
- data.tar.gz: 33be9fb9400ec0c71ca86b768ce493b80818e81b1b81591d3c0eda2d6f61580e
3
+ metadata.gz: bd90dbf78a88da83762490a832463e10cb440fa67fc0c12aec347c2c727ac606
4
+ data.tar.gz: 9aa52262f0c5bb1b476376019f95cafd97b8e19f52a6c84153b5077f5d06a3f5
5
5
  SHA512:
6
- metadata.gz: 1dbe89fd8e0421c61bd07fe1af19833e923d4cddf07fea4abf727a9af3589e37f7ebac648d4518fad556813bc0693aaaf9d41b1110e748f33e3b963ccebff579
7
- data.tar.gz: 525f4983e370ca24a036d8c3056faaa1ac30b432827c993d6e26244869d35a044a5361c2d98230dc04ceb6586369df1f1fec2255d082530ef66204a3f15742f8
6
+ metadata.gz: 1c50fb19a5ae7664f39fb077657b675a1162da6a7668f3dacacec0a734c8b29b2d99887c7f60aaeea79213c0a44e3e8f7cff47d4046281c02b6a163c68cadd78
7
+ data.tar.gz: 0fe111546bb5ab6c88426d8078fd75537724383d1377315d07fd33c5614d7c5ce135cada1d8462960facc4254f8d012b65ca70f22f3cb75a7bc3f603a9dbfd38
@@ -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@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
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/omniauth-chatwork'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/omniauth-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 }}
@@ -16,8 +16,6 @@ jobs:
16
16
  test:
17
17
  runs-on: ubuntu-latest
18
18
 
19
- container: ${{ matrix.ruby }}
20
-
21
19
  env:
22
20
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
23
21
 
@@ -26,74 +24,57 @@ jobs:
26
24
 
27
25
  matrix:
28
26
  ruby:
29
- - ruby:2.2
30
- - ruby:2.3
31
- - ruby:2.4
32
- - ruby:2.5
33
- - ruby:2.6
34
- - ruby:2.7
35
- - ruby:3.0
36
- - ruby:3.1
37
- - rubylang/ruby:master-nightly-bionic
27
+ - "2.2"
28
+ - "2.3"
29
+ - "2.4"
30
+ - "2.5"
31
+ - "2.6"
32
+ - "2.7"
33
+ - "3.0"
34
+ - "3.1"
35
+ - "3.2"
36
+ - "3.3"
37
+ - "3.4"
38
38
  gemfile:
39
39
  - omniauth_1
40
40
  - omniauth_2
41
- include:
42
- - ruby: rubylang/ruby:master-nightly-bionic
43
- allow_failures: "true"
44
41
 
45
42
  steps:
46
- - uses: actions/checkout@v2
43
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
47
44
 
48
- - name: Cache vendor/bundle
49
- uses: actions/cache@v1
50
- id: cache_gem
45
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
51
46
  with:
52
- path: vendor/bundle
53
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.sha }}
54
- restore-keys: |
55
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-
56
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
47
+ ruby-version: ${{ matrix.ruby }}
48
+ bundler-cache: true
49
+ cache-version: ${{ matrix.gemfile }}
57
50
 
58
- - name: bundle update
59
- run: |
60
- set -xe
61
- bundle config path vendor/bundle
62
- bundle update --jobs $(nproc) --retry 3
63
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
51
+ - run: bundle update --jobs $(nproc) --retry 3
64
52
 
65
53
  - name: Setup Code Climate Test Reporter
66
- uses: aktions/codeclimate-test-reporter@v1
54
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
67
55
  with:
68
56
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
69
57
  command: before-build
70
- if: matrix.ruby >= 'ruby:2.4'
71
58
  continue-on-error: true
72
59
 
73
- - name: Run test
74
- run: |
75
- set -xe
76
- bundle exec rspec
77
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
60
+ - run: bundle exec rspec
78
61
 
79
62
  - name: Teardown Code Climate Test Reporter
80
- uses: aktions/codeclimate-test-reporter@v1
63
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
81
64
  with:
82
65
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
83
66
  command: after-build
84
- if: matrix.ruby >= 'ruby:2.4' && always()
67
+ if: always()
85
68
  continue-on-error: true
86
69
 
87
70
  - name: Slack Notification (not success)
88
- uses: lazy-actions/slatify@master
71
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
89
72
  if: "! success()"
90
73
  continue-on-error: true
91
74
  with:
92
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
93
- type: ${{ job.status }}
94
- icon_emoji: ":octocat:"
95
- url: ${{ secrets.SLACK_WEBHOOK }}
96
- token: ${{ secrets.GITHUB_TOKEN }}
75
+ status: ${{ job.status }}
76
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
77
+ matrix: ${{ toJson(matrix) }}
97
78
 
98
79
  notify:
99
80
  needs:
@@ -103,12 +84,9 @@ jobs:
103
84
 
104
85
  steps:
105
86
  - name: Slack Notification (success)
106
- uses: lazy-actions/slatify@master
87
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
107
88
  if: always()
108
89
  continue-on-error: true
109
90
  with:
110
- job_name: '*build*'
111
- type: ${{ job.status }}
112
- icon_emoji: ":octocat:"
113
- url: ${{ secrets.SLACK_WEBHOOK }}
114
- token: ${{ secrets.GITHUB_TOKEN }}
91
+ status: ${{ job.status }}
92
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --markup markdown
2
+ --no-private
3
+ --asset img/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.3...master)
2
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.4...master)
3
+
4
+ ## [v0.1.4](https://github.com/sue445/omniauth-chatwork/releases/tag/v0.1.4)
5
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.3...v0.1.4)
6
+
7
+ * Release gem from GitHub Actions
8
+ * https://github.com/sue445/omniauth-chatwork/pull/69
3
9
 
4
10
  ## v0.1.3
5
11
  [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.2...v0.1.3)
data/Gemfile CHANGED
@@ -6,3 +6,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
6
  gemspec
7
7
 
8
8
  gem "webrick"
9
+
10
+ eval_gemfile "#{__dir__}/gemfiles/common.gemfile"
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  OmniAuth strategy for ChatWork
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/omniauth-chatwork.svg)](https://badge.fury.io/rb/omniauth-chatwork)
6
- [![Build Status](https://github.com/sue445/omniauth-chatwork/workflows/test/badge.svg?branch=master)](https://github.com/sue445/omniauth-chatwork/actions?query=workflow%3Atest)
6
+ [![test](https://github.com/sue445/omniauth-chatwork/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/omniauth-chatwork/actions/workflows/test.yml)
7
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/c28dcf54cef09425c10d/maintainability)](https://codeclimate.com/github/sue445/omniauth-chatwork/maintainability)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/omniauth-chatwork/badge.svg)](https://coveralls.io/github/sue445/omniauth-chatwork)
9
9
 
@@ -0,0 +1,16 @@
1
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
2
+ # multipart-post v2.2.0 uses `Object.deprecate_constant`, but this available since Ruby 2.3.0+
3
+ # https://github.com/socketry/multipart-post/blob/v2.2.0/lib/multipart/post/parts.rb#L152
4
+ gem "multipart-post", "< 2.2.0"
5
+
6
+ # NOTE: webmock v3.15.0+ requires Ruby 2.3+
7
+ gem "webmock", "< 3.15.0"
8
+
9
+ # NOTE: logger v1.3.0+ requires Ruby 2.3+
10
+ gem "logger", "< 1.3.0"
11
+ end
12
+
13
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
14
+ # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
15
+ gem "term-ansicolor", "< 1.9.0"
16
+ end
@@ -6,3 +6,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
6
  gemspec path: "../"
7
7
 
8
8
  gem "omniauth", "~> 1.9"
9
+
10
+ eval_gemfile "#{__dir__}/common.gemfile"
@@ -6,3 +6,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
6
  gemspec path: "../"
7
7
 
8
8
  gem "omniauth", "~> 2.0"
9
+
10
+ eval_gemfile "#{__dir__}/common.gemfile"
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Chatwork
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
19
19
  spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/omniauth-chatwork/"
20
21
  spec.metadata["rubygems_mfa_required"] = "true"
21
22
 
22
23
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -35,14 +36,15 @@ Gem::Specification.new do |spec|
35
36
  spec.add_dependency "omniauth-oauth2"
36
37
 
37
38
  spec.add_development_dependency "bundler", ">= 1.16"
38
- spec.add_development_dependency "coveralls"
39
+ spec.add_development_dependency "coveralls_reborn"
39
40
  spec.add_development_dependency "dotenv"
40
41
  spec.add_development_dependency "faraday_curl"
41
- spec.add_development_dependency "pry-byebug"
42
42
  spec.add_development_dependency "rack-test"
43
43
  spec.add_development_dependency "rake", ">= 10.0"
44
44
  spec.add_development_dependency "rspec", "~> 3.0"
45
45
  spec.add_development_dependency "rspec-its"
46
46
  spec.add_development_dependency "sinatra"
47
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
47
48
  spec.add_development_dependency "webmock"
49
+ spec.add_development_dependency "yard"
48
50
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-02-20 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: oauth2
@@ -59,7 +58,7 @@ dependencies:
59
58
  - !ruby/object:Gem::Version
60
59
  version: '1.16'
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
  - - ">="
@@ -100,20 +99,6 @@ dependencies:
100
99
  - - ">="
101
100
  - !ruby/object:Gem::Version
102
101
  version: '0'
103
- - !ruby/object:Gem::Dependency
104
- name: pry-byebug
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
102
  - !ruby/object:Gem::Dependency
118
103
  name: rack-test
119
104
  requirement: !ruby/object:Gem::Requirement
@@ -184,6 +169,20 @@ dependencies:
184
169
  - - ">="
185
170
  - !ruby/object:Gem::Version
186
171
  version: '0'
172
+ - !ruby/object:Gem::Dependency
173
+ name: term-ansicolor
174
+ requirement: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - "!="
177
+ - !ruby/object:Gem::Version
178
+ version: 1.11.1
179
+ type: :development
180
+ prerelease: false
181
+ version_requirements: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "!="
184
+ - !ruby/object:Gem::Version
185
+ version: 1.11.1
187
186
  - !ruby/object:Gem::Dependency
188
187
  name: webmock
189
188
  requirement: !ruby/object:Gem::Requirement
@@ -198,6 +197,20 @@ dependencies:
198
197
  - - ">="
199
198
  - !ruby/object:Gem::Version
200
199
  version: '0'
200
+ - !ruby/object:Gem::Dependency
201
+ name: yard
202
+ requirement: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ type: :development
208
+ prerelease: false
209
+ version_requirements: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
201
214
  description: OmniAuth strategy for ChatWork
202
215
  email:
203
216
  - sue445@sue445.net
@@ -207,9 +220,13 @@ extra_rdoc_files: []
207
220
  files:
208
221
  - ".coveralls.yml"
209
222
  - ".env.example"
223
+ - ".github/dependabot.yml"
224
+ - ".github/workflows/pages.yml"
225
+ - ".github/workflows/release_gem.yml"
210
226
  - ".github/workflows/test.yml"
211
227
  - ".gitignore"
212
228
  - ".rspec"
229
+ - ".yardopts"
213
230
  - CHANGELOG.md
214
231
  - Gemfile
215
232
  - LICENSE.txt
@@ -217,6 +234,7 @@ files:
217
234
  - Rakefile
218
235
  - bin/console
219
236
  - bin/setup
237
+ - gemfiles/common.gemfile
220
238
  - gemfiles/omniauth_1.gemfile
221
239
  - gemfiles/omniauth_2.gemfile
222
240
  - lib/omniauth-chatwork.rb
@@ -231,8 +249,8 @@ metadata:
231
249
  homepage_uri: https://github.com/sue445/omniauth-chatwork
232
250
  source_code_uri: https://github.com/sue445/omniauth-chatwork
233
251
  changelog_uri: https://github.com/sue445/omniauth-chatwork/blob/master/CHANGELOG.md
252
+ documentation_uri: https://sue445.github.io/omniauth-chatwork/
234
253
  rubygems_mfa_required: 'true'
235
- post_install_message:
236
254
  rdoc_options: []
237
255
  require_paths:
238
256
  - lib
@@ -247,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
265
  - !ruby/object:Gem::Version
248
266
  version: '0'
249
267
  requirements: []
250
- rubygems_version: 3.3.3
251
- signing_key:
268
+ rubygems_version: 3.6.7
252
269
  specification_version: 4
253
270
  summary: OmniAuth strategy for ChatWork
254
271
  test_files: []