omniauth-chatwork 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bd3b42359827027b0b588801f1c70c179b4dcd27
4
- data.tar.gz: 4c34ff62f7035e52c798d44a87b5b77589652014
2
+ SHA256:
3
+ metadata.gz: c555f931346a8be75930bec850b25b881d1a71b8981a5605d209b8831a7d0056
4
+ data.tar.gz: a893e973970daf1a000f2fb7e31f66909767e2eb59ff4351448a6f8c5e6e3247
5
5
  SHA512:
6
- metadata.gz: 6a3563901a23344d105d21bcad54723d674846461a67820476fc02da16593d02875a85e13da6f38e7c4b081e026532011e31f1b3b46004a941d15c26a6ab3130
7
- data.tar.gz: e47a9674bc1dbe76226e6bcaf1378d425fc5ae2ebb69f110789f4f19eed8c5e36b15c6074321441b88b84662a36f55fcfad85d0fef0493d222ea07a85853f8b6
6
+ metadata.gz: 5b89a15a2b958fecbc16e627cff0b5cc2ed3ed896444497e6ab1389ee5c426be83842ad740aa0be404ec32a53a7b01709641aebc08b6e13f89a4a29416ce5e69
7
+ data.tar.gz: 2f0d3d1a4b207fab8ef14f1caf251acb09e2ab8ac6cef97b4d322a10f34fc45e8076f68988eaee7b4cb35ec8218bb800a5da6eb2f97089636dfb01238e788cad
data/.env.example CHANGED
@@ -1,6 +1,2 @@
1
1
  CLIENT_ID=
2
2
  CLIENT_SECRET=
3
-
4
- # verbose logging for faraday
5
- # ref. https://github.com/intridea/oauth2/blob/v1.4.0/lib/oauth2/client.rb#L95
6
- # OAUTH_DEBUG=true
@@ -0,0 +1,113 @@
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
+ container: ${{ matrix.ruby }}
20
+
21
+ env:
22
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ 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
+ - rubylang/ruby:master-nightly-bionic
37
+ gemfile:
38
+ - omniauth_1
39
+ - omniauth_2
40
+ include:
41
+ - ruby: rubylang/ruby:master-nightly-bionic
42
+ allow_failures: "true"
43
+
44
+ steps:
45
+ - uses: actions/checkout@v2
46
+
47
+ - name: Cache vendor/bundle
48
+ uses: actions/cache@v1
49
+ id: cache_gem
50
+ with:
51
+ path: vendor/bundle
52
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.sha }}
53
+ restore-keys: |
54
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-
55
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
56
+
57
+ - name: bundle update
58
+ run: |
59
+ set -xe
60
+ bundle config path vendor/bundle
61
+ bundle update --jobs $(nproc) --retry 3
62
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
63
+
64
+ - name: Setup Code Climate Test Reporter
65
+ uses: aktions/codeclimate-test-reporter@v1
66
+ with:
67
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
68
+ command: before-build
69
+ if: matrix.ruby >= 'ruby:2.4'
70
+ continue-on-error: true
71
+
72
+ - name: Run test
73
+ run: |
74
+ set -xe
75
+ bundle exec rspec
76
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
77
+
78
+ - name: Teardown Code Climate Test Reporter
79
+ uses: aktions/codeclimate-test-reporter@v1
80
+ with:
81
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
82
+ command: after-build
83
+ if: matrix.ruby >= 'ruby:2.4' && always()
84
+ continue-on-error: true
85
+
86
+ - name: Slack Notification (not success)
87
+ uses: lazy-actions/slatify@master
88
+ if: "! success()"
89
+ continue-on-error: true
90
+ with:
91
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
92
+ type: ${{ job.status }}
93
+ icon_emoji: ":octocat:"
94
+ url: ${{ secrets.SLACK_WEBHOOK }}
95
+ token: ${{ secrets.GITHUB_TOKEN }}
96
+
97
+ notify:
98
+ needs:
99
+ - test
100
+
101
+ runs-on: ubuntu-latest
102
+
103
+ steps:
104
+ - name: Slack Notification (success)
105
+ uses: lazy-actions/slatify@master
106
+ if: always()
107
+ continue-on-error: true
108
+ with:
109
+ job_name: '*build*'
110
+ type: ${{ job.status }}
111
+ icon_emoji: ":octocat:"
112
+ url: ${{ secrets.SLACK_WEBHOOK }}
113
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.1...master)
2
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.2...master)
3
+
4
+ ## v0.1.2
5
+ [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.1...v0.1.2)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/omniauth-chatwork/pull/29
3
9
 
4
10
  ## v0.1.1
5
11
  [full changelog](https://github.com/sue445/omniauth-chatwork/compare/v0.1.0...v0.1.1)
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in omniauth-chatwork.gemspec
6
6
  gemspec
7
+
8
+ gem "webrick"
data/README.md CHANGED
@@ -3,10 +3,9 @@
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://travis-ci.org/sue445/omniauth-chatwork.svg?branch=master)](https://travis-ci.org/sue445/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)
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
- [![Dependency Status](https://gemnasium.com/badges/github.com/sue445/omniauth-chatwork.svg)](https://gemnasium.com/github.com/sue445/omniauth-chatwork)
10
9
 
11
10
  ## Installation
12
11
 
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in omniauth-chatwork.gemspec
6
+ gemspec path: "../"
7
+
8
+ gem "omniauth", "~> 1.9"
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in omniauth-chatwork.gemspec
6
+ gemspec path: "../"
7
+
8
+ gem "omniauth", "~> 2.0"
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Chatwork
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/omniauth-chatwork"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
23
  f.match(%r{^(test|spec|features)/})
19
24
  end
@@ -28,15 +33,14 @@ Gem::Specification.new do |spec|
28
33
 
29
34
  spec.add_dependency "omniauth-oauth2"
30
35
 
31
- spec.add_development_dependency "bundler", "~> 1.16"
32
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
36
+ spec.add_development_dependency "bundler", ">= 1.16"
33
37
  spec.add_development_dependency "coveralls"
34
38
  spec.add_development_dependency "dotenv"
35
39
  spec.add_development_dependency "faraday_curl"
36
40
  spec.add_development_dependency "oauth2", ">= 1.3.0"
37
41
  spec.add_development_dependency "pry-byebug"
38
42
  spec.add_development_dependency "rack-test"
39
- spec.add_development_dependency "rake", "~> 10.0"
43
+ spec.add_development_dependency "rake", ">= 10.0"
40
44
  spec.add_development_dependency "rspec", "~> 3.0"
41
45
  spec.add_development_dependency "rspec-its"
42
46
  spec.add_development_dependency "sinatra"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -28,30 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.16'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.16'
41
- - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: coveralls
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -140,14 +126,14 @@ dependencies:
140
126
  name: rake
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - "~>"
129
+ - - ">="
144
130
  - !ruby/object:Gem::Version
145
131
  version: '10.0'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - "~>"
136
+ - - ">="
151
137
  - !ruby/object:Gem::Version
152
138
  version: '10.0'
153
139
  - !ruby/object:Gem::Dependency
@@ -215,9 +201,9 @@ extra_rdoc_files: []
215
201
  files:
216
202
  - ".coveralls.yml"
217
203
  - ".env.example"
204
+ - ".github/workflows/test.yml"
218
205
  - ".gitignore"
219
206
  - ".rspec"
220
- - ".travis.yml"
221
207
  - CHANGELOG.md
222
208
  - Gemfile
223
209
  - LICENSE.txt
@@ -225,6 +211,8 @@ files:
225
211
  - Rakefile
226
212
  - bin/console
227
213
  - bin/setup
214
+ - gemfiles/omniauth_1.gemfile
215
+ - gemfiles/omniauth_2.gemfile
228
216
  - lib/omniauth-chatwork.rb
229
217
  - lib/omniauth/chatwork.rb
230
218
  - lib/omniauth/chatwork/version.rb
@@ -233,8 +221,12 @@ files:
233
221
  homepage: https://github.com/sue445/omniauth-chatwork
234
222
  licenses:
235
223
  - MIT
236
- metadata: {}
237
- post_install_message:
224
+ metadata:
225
+ homepage_uri: https://github.com/sue445/omniauth-chatwork
226
+ source_code_uri: https://github.com/sue445/omniauth-chatwork
227
+ changelog_uri: https://github.com/sue445/omniauth-chatwork/blob/master/CHANGELOG.md
228
+ rubygems_mfa_required: 'true'
229
+ post_install_message:
238
230
  rdoc_options: []
239
231
  require_paths:
240
232
  - lib
@@ -249,9 +241,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
241
  - !ruby/object:Gem::Version
250
242
  version: '0'
251
243
  requirements: []
252
- rubyforge_project:
253
- rubygems_version: 2.6.11
254
- signing_key:
244
+ rubygems_version: 3.2.22
245
+ signing_key:
255
246
  specification_version: 4
256
247
  summary: OmniAuth strategy for ChatWork
257
248
  test_files: []
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2
5
- - 2.3
6
- - 2.4.1
7
- - 2.5.0
8
- - ruby-head
9
- bundler_args: "--jobs=2"
10
- cache: bundler
11
- before_install:
12
- - gem update --system --no-document
13
- - gem install bundler -v 1.16.1 --no-document
14
- before_script:
15
- - export CODECLIMATE_REPO_TOKEN=57923c0aa656e8d9cf7af9aa9cfbbae06e909e53c8282d2eb428b7b97157e26d
16
- - export CI=true
17
- script:
18
- - bundle exec rspec
19
- - bundle exec codeclimate-test-reporter
20
- branches:
21
- only:
22
- - master
23
- notifications:
24
- email: false
25
- slack:
26
- secure: lkKMYRHvy+Q/7Hz6M8Ci+Ydu1Y1wuSQ87pQEhMXoIiNuG00sCeV6bPTYrk9A68OCZ8G03dKBOfGTwBKdnuLBMTev3qjS2CBzyjoB8m6M25V+SjWOEElC8IMR+qhF36R3WN42+XTlEKE0o7nRORp7QUZsMGD5nIJsHkoBITACghfJqsXO9lIOI2ZNVYJbiHqXFLo4plbwDCHdZLZ1r6LmjIIjBRiQHUvLCPVRP8mLZVBkMtJPMrIuCT+/syAb53WyjEyvR/ZyqFmkvlZMrujsO4DGGkJGUFXI9moX27NUPf2PJmiW8PPjtUSh6j5uSQq0UQAYt61vMvfsoKxoHTZizhVYJ6Ba7sq83zx+WiNEwuzHgtnCj8v/qAe/ynxRDbm3tz2b4IeE2diif/s4JG9oxhbuwMAo7mJU5nCSAFbEquk6vKq1allN2bUKCKId8zHra+4lWwjdGxdgRkqFOhJBQUb85sSq8VrxwbvfL+kT8qSjr7xBuD3niriO7EsZgw+v4rQq7D9Xtmc8+HvYVFeoIt5EvjnrXB1NFnCGRqkDD2gTMAYJXVPA/XkaU2NcYPos/Xkh5aAbym7n3ikOXkCC42/H6t5yaA8x0iGRE2Bjcf8p1FNg/C2EivdxfFOdJe1f3AHTPiM4EUN0N0l+vAjyVYPfvzqWfPo8o8Kr30dlrzM=
27
- matrix:
28
- allow_failures:
29
- - rvm: ruby-head