omniauth-chatwork 0.1.4 → 0.1.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: bd90dbf78a88da83762490a832463e10cb440fa67fc0c12aec347c2c727ac606
4
- data.tar.gz: 9aa52262f0c5bb1b476376019f95cafd97b8e19f52a6c84153b5077f5d06a3f5
3
+ metadata.gz: 0c5778f85bbee3ff1869661f1f0ed2b0d5080779088d0eddca180f8dc2ce327a
4
+ data.tar.gz: b084c04d9281ce02db5e815266252c0b66b2ebb544da8fe95337343ea12293af
5
5
  SHA512:
6
- metadata.gz: 1c50fb19a5ae7664f39fb077657b675a1162da6a7668f3dacacec0a734c8b29b2d99887c7f60aaeea79213c0a44e3e8f7cff47d4046281c02b6a163c68cadd78
7
- data.tar.gz: 0fe111546bb5ab6c88426d8078fd75537724383d1377315d07fd33c5614d7c5ce135cada1d8462960facc4254f8d012b65ca70f22f3cb75a7bc3f603a9dbfd38
6
+ metadata.gz: 522ef2cbbc42f265fb043ee1cbfed4117eb4f0ce5affba35fbe18c5e8f88c82068cac524c720e59ba841fc7c76bdfbf0daf9756a27ba49ca70ba00816aec06c5
7
+ data.tar.gz: 20668098dd0408a0c4fab18750c43517a5bb691c213a5d7eaa425e6754d25cdb0a9b70e6bc10c11a72dd111e8f03d63eeddb8549ad2c6a9eb14cddeccf538b50
@@ -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/omniauth-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/omniauth-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@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 }}
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/omniauth-chatwork'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/omniauth-chatwork
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/omniauth-chatwork
11
+ gem-name: omniauth-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 }}
@@ -35,58 +35,89 @@ jobs:
35
35
  - "3.2"
36
36
  - "3.3"
37
37
  - "3.4"
38
+ - "4.0"
38
39
  gemfile:
39
40
  - omniauth_1
40
41
  - omniauth_2
41
42
 
43
+ include:
44
+ # FIXME: Workaround for "ArgumentError: wrong number of arguments (given 4, expected 1)"
45
+ # c.f. https://github.com/ruby/setup-ruby#rubygems
46
+ - ruby: "2.5"
47
+ rubygems: "3.0.0"
48
+
42
49
  steps:
43
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
50
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
51
+
52
+ # FIXME: Workaround for error in `bundle clean`
53
+ # /opt/hostedtoolcache/Ruby/2.5.9/x64/bin/bundle clean
54
+ # Cleaning all the gems on your system is dangerous! If you're sure you want to
55
+ # remove every system gem not in this bundle, run `bundle clean --force`.
56
+ - name: export BUNDLE_PATH
57
+ run: echo "BUNDLE_PATH=vendor/bundle" >> $GITHUB_ENV
58
+ if: matrix.ruby == '2.5'
44
59
 
45
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
60
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
46
61
  with:
47
62
  ruby-version: ${{ matrix.ruby }}
48
63
  bundler-cache: true
49
- cache-version: ${{ matrix.gemfile }}
64
+ rubygems: ${{ matrix.rubygems || 'default' }}
50
65
 
51
- - run: bundle update --jobs $(nproc) --retry 3
66
+ - run: bundle update --all --jobs $(nproc) --retry 3
52
67
 
53
- - name: Setup Code Climate Test Reporter
54
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
55
- with:
56
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
57
- command: before-build
68
+ - run: bundle exec rspec
69
+
70
+ - name: Slack Notification (not success)
71
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
72
+ if: "! success()"
58
73
  continue-on-error: true
74
+ with:
75
+ status: ${{ job.status }}
76
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
77
+ matrix: ${{ toJson(matrix) }}
59
78
 
60
- - run: bundle exec rspec
79
+ yard:
80
+ runs-on: ubuntu-latest
61
81
 
62
- - name: Teardown Code Climate Test Reporter
63
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
82
+ steps:
83
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
84
+
85
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
64
86
  with:
65
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
66
- command: after-build
67
- if: always()
68
- continue-on-error: true
87
+ ruby-version: ruby
88
+ bundler-cache: true
89
+
90
+ - name: bundle update
91
+ run: |
92
+ set -xe
93
+ bundle config path vendor/bundle
94
+ bundle update --all --jobs $(nproc) --retry 3
95
+
96
+ - name: yard generating test
97
+ run: |
98
+ set -xe
99
+ bundle exec yard
100
+ ls -ld doc/
69
101
 
70
102
  - name: Slack Notification (not success)
71
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
103
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
72
104
  if: "! success()"
73
105
  continue-on-error: true
74
106
  with:
75
107
  status: ${{ job.status }}
76
108
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
77
- matrix: ${{ toJson(matrix) }}
78
109
 
79
- notify:
110
+ all-pass:
111
+ if: always()
112
+
80
113
  needs:
81
114
  - test
115
+ - yard
82
116
 
83
- runs-on: ubuntu-latest
117
+ runs-on: ubuntu-slim
84
118
 
85
119
  steps:
86
- - name: Slack Notification (success)
87
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
88
- if: always()
89
- continue-on-error: true
120
+ - name: check dependent jobs
121
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
90
122
  with:
91
- status: ${{ job.status }}
92
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
123
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.4...master)
2
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.5...master)
3
+
4
+ ## [v0.1.5](https://github.com/sue445/omniauth-chatwork/releases/tag/v0.1.5)
5
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.4...v0.1.5)
6
+
7
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
8
+ * https://github.com/sue445/omniauth-chatwork/pull/114
3
9
 
4
10
  ## [v0.1.4](https://github.com/sue445/omniauth-chatwork/releases/tag/v0.1.4)
5
11
  [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.3...v0.1.4)
data/README.md CHANGED
@@ -4,7 +4,7 @@ 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
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
- [![Maintainability](https://api.codeclimate.com/v1/badges/c28dcf54cef09425c10d/maintainability)](https://codeclimate.com/github/sue445/omniauth-chatwork/maintainability)
7
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/omniauth-chatwork/maintainability.svg)](https://qlty.sh/gh/sue445/projects/omniauth-chatwork)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/omniauth-chatwork/badge.svg)](https://coveralls.io/github/sue445/omniauth-chatwork)
9
9
 
10
10
  ## Installation
@@ -8,6 +8,21 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
8
8
 
9
9
  # NOTE: logger v1.3.0+ requires Ruby 2.3+
10
10
  gem "logger", "< 1.3.0"
11
+
12
+ # NOTE: Workaround for following error on Ruby 2.2
13
+ # LoadError:
14
+ # cannot load such file -- cgi/escape
15
+ # # ./vendor/bundle/ruby/2.2.0/gems/oauth2-2.0.20/lib/oauth2.rb:4:in `require'
16
+ # # ./vendor/bundle/ruby/2.2.0/gems/oauth2-2.0.20/lib/oauth2.rb:4:in `<top (required)>'
17
+ # # ./vendor/bundle/ruby/2.2.0/gems/omniauth-oauth2-1.7.3/lib/omniauth/strategies/oauth2.rb:1:in `require'
18
+ # # ./vendor/bundle/ruby/2.2.0/gems/omniauth-oauth2-1.7.3/lib/omniauth/strategies/oauth2.rb:1:in `<top (required)>'
19
+ # # ./lib/omniauth/strategies/chatwork.rb:1:in `require'
20
+ # # ./lib/omniauth/strategies/chatwork.rb:1:in `<top (required)>'
21
+ # # ./lib/omniauth/chatwork.rb:2:in `require'
22
+ # # ./lib/omniauth/chatwork.rb:2:in `<top (required)>'
23
+ # # ./spec/spec_helper.rb:18:in `require'
24
+ # # ./spec/spec_helper.rb:18:in `<top (required)>'
25
+ gem "oauth2", "< 2.0.19"
11
26
  end
12
27
 
13
28
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Chatwork
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency "faraday_curl"
42
42
  spec.add_development_dependency "rack-test"
43
43
  spec.add_development_dependency "rake", ">= 10.0"
44
+ spec.add_development_dependency "rdoc"
44
45
  spec.add_development_dependency "rspec", "~> 3.0"
45
46
  spec.add_development_dependency "rspec-its"
46
47
  spec.add_development_dependency "sinatra"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -127,6 +127,20 @@ dependencies:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
129
  version: '10.0'
130
+ - !ruby/object:Gem::Dependency
131
+ name: rdoc
132
+ requirement: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ type: :development
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
130
144
  - !ruby/object:Gem::Dependency
131
145
  name: rspec
132
146
  requirement: !ruby/object:Gem::Requirement
@@ -221,6 +235,8 @@ files:
221
235
  - ".coveralls.yml"
222
236
  - ".env.example"
223
237
  - ".github/dependabot.yml"
238
+ - ".github/release.yml"
239
+ - ".github/workflows/dependabot-manager.yml"
224
240
  - ".github/workflows/pages.yml"
225
241
  - ".github/workflows/release_gem.yml"
226
242
  - ".github/workflows/test.yml"
@@ -265,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
281
  - !ruby/object:Gem::Version
266
282
  version: '0'
267
283
  requirements: []
268
- rubygems_version: 3.6.7
284
+ rubygems_version: 4.0.16
269
285
  specification_version: 4
270
286
  summary: OmniAuth strategy for ChatWork
271
287
  test_files: []