omniauth-chatwork 0.1.0.beta1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.rspec +0 -1
- data/.travis.yml +22 -1
- data/CHANGELOG.md +5 -0
- data/README.md +14 -2
- data/lib/omniauth/chatwork/version.rb +1 -1
- data/omniauth-chatwork.gemspec +11 -0
- metadata +90 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0777c14710c5739f66724f4951a7d82305fd465
|
4
|
+
data.tar.gz: a48d2807624063370c986420647b4c25fa4bb1f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c754a416ea357c635698603990b55d18a9118b0dd0fe540456c505f56d761577b38fe8a2efa92dcefab6cbecd40e835954b380d5c33a19337e731d579b1f5a64
|
7
|
+
data.tar.gz: 5e83c8ad545f17368a0520cb5333c0b9ec358797055b09005918927e47a00024eb675564f8843e6313954abdf8c974dc666f8fc7c9256c3c0b5679150633c617
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
repo_token: M0E4JNU6ZTd6SI2oGqpLTvH8hq5sQWfVm
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
|
4
|
+
- 2.2
|
5
|
+
- 2.3
|
6
|
+
- 2.4.1
|
7
|
+
- ruby-head
|
8
|
+
bundler_args: "--jobs=2"
|
9
|
+
cache: bundler
|
5
10
|
before_install: gem install bundler -v 1.16.0
|
11
|
+
before_script:
|
12
|
+
- export CODECLIMATE_REPO_TOKEN=57923c0aa656e8d9cf7af9aa9cfbbae06e909e53c8282d2eb428b7b97157e26d
|
13
|
+
- export CI=true
|
14
|
+
script:
|
15
|
+
- bundle exec rspec
|
16
|
+
- bundle exec codeclimate-test-reporter
|
17
|
+
branches:
|
18
|
+
only:
|
19
|
+
- master
|
20
|
+
notifications:
|
21
|
+
email: false
|
22
|
+
slack:
|
23
|
+
secure: lkKMYRHvy+Q/7Hz6M8Ci+Ydu1Y1wuSQ87pQEhMXoIiNuG00sCeV6bPTYrk9A68OCZ8G03dKBOfGTwBKdnuLBMTev3qjS2CBzyjoB8m6M25V+SjWOEElC8IMR+qhF36R3WN42+XTlEKE0o7nRORp7QUZsMGD5nIJsHkoBITACghfJqsXO9lIOI2ZNVYJbiHqXFLo4plbwDCHdZLZ1r6LmjIIjBRiQHUvLCPVRP8mLZVBkMtJPMrIuCT+/syAb53WyjEyvR/ZyqFmkvlZMrujsO4DGGkJGUFXI9moX27NUPf2PJmiW8PPjtUSh6j5uSQq0UQAYt61vMvfsoKxoHTZizhVYJ6Ba7sq83zx+WiNEwuzHgtnCj8v/qAe/ynxRDbm3tz2b4IeE2diif/s4JG9oxhbuwMAo7mJU5nCSAFbEquk6vKq1allN2bUKCKId8zHra+4lWwjdGxdgRkqFOhJBQUb85sSq8VrxwbvfL+kT8qSjr7xBuD3niriO7EsZgw+v4rQq7D9Xtmc8+HvYVFeoIt5EvjnrXB1NFnCGRqkDD2gTMAYJXVPA/XkaU2NcYPos/Xkh5aAbym7n3ikOXkCC42/H6t5yaA8x0iGRE2Bjcf8p1FNg/C2EivdxfFOdJe1f3AHTPiM4EUN0N0l+vAjyVYPfvzqWfPo8o8Kr30dlrzM=
|
24
|
+
matrix:
|
25
|
+
allow_failures:
|
26
|
+
- rvm: ruby-head
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# OmniAuth::Chatwork
|
2
2
|
|
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)
|
7
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/c28dcf54cef09425c10d/maintainability)](https://codeclimate.com/github/sue445/omniauth-chatwork/maintainability)
|
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)
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
@@ -29,6 +33,10 @@ use OmniAuth::Builder do
|
|
29
33
|
end
|
30
34
|
```
|
31
35
|
|
36
|
+
And register `https://YOURSERVER/auth/chatwork/callback` to *Redirect URI*
|
37
|
+
|
38
|
+
![redirect_uri](img/redirect_uri.png)
|
39
|
+
|
32
40
|
## Configuring
|
33
41
|
* `scope` : `String` or `Array`
|
34
42
|
* A list of permissions you want to request from the user
|
@@ -90,6 +98,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
90
98
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
91
99
|
|
92
100
|
### Run dummy app
|
101
|
+
At first, register `https://127.0.0.1:4567/auth/chatwork/callback` to *Redirect URI*
|
102
|
+
|
103
|
+
![redirect_uri](img/redirect_uri.png)
|
104
|
+
|
93
105
|
```bash
|
94
106
|
cp .env.example .env
|
95
107
|
vi .env
|
data/omniauth-chatwork.gemspec
CHANGED
@@ -17,6 +17,11 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
18
|
f.match(%r{^(test|spec|features)/})
|
19
19
|
end
|
20
|
+
|
21
|
+
%w[img/].each do |exclude_dir|
|
22
|
+
spec.files.reject! { |filename| filename.start_with?(exclude_dir) }
|
23
|
+
end
|
24
|
+
|
20
25
|
spec.bindir = "exe"
|
21
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
27
|
spec.require_paths = ["lib"]
|
@@ -24,10 +29,16 @@ Gem::Specification.new do |spec|
|
|
24
29
|
spec.add_dependency "omniauth-oauth2"
|
25
30
|
|
26
31
|
spec.add_development_dependency "bundler", "~> 1.16"
|
32
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
|
33
|
+
spec.add_development_dependency "coveralls"
|
27
34
|
spec.add_development_dependency "dotenv"
|
28
35
|
spec.add_development_dependency "faraday_curl"
|
36
|
+
spec.add_development_dependency "oauth2", ">= 1.3.0"
|
29
37
|
spec.add_development_dependency "pry-byebug"
|
38
|
+
spec.add_development_dependency "rack-test"
|
30
39
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
40
|
spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
+
spec.add_development_dependency "rspec-its"
|
32
42
|
spec.add_development_dependency "sinatra"
|
43
|
+
spec.add_development_dependency "webmock"
|
33
44
|
end
|
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.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -38,6 +38,34 @@ dependencies:
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: dotenv
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +94,20 @@ dependencies:
|
|
66
94
|
- - ">="
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: oauth2
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.3.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.3.0
|
69
111
|
- !ruby/object:Gem::Dependency
|
70
112
|
name: pry-byebug
|
71
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +122,20 @@ dependencies:
|
|
80
122
|
- - ">="
|
81
123
|
- !ruby/object:Gem::Version
|
82
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rack-test
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
83
139
|
- !ruby/object:Gem::Dependency
|
84
140
|
name: rake
|
85
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +164,20 @@ dependencies:
|
|
108
164
|
- - "~>"
|
109
165
|
- !ruby/object:Gem::Version
|
110
166
|
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rspec-its
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
111
181
|
- !ruby/object:Gem::Dependency
|
112
182
|
name: sinatra
|
113
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +192,20 @@ dependencies:
|
|
122
192
|
- - ">="
|
123
193
|
- !ruby/object:Gem::Version
|
124
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: webmock
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
125
209
|
description: OmniAuth strategy for ChatWork
|
126
210
|
email:
|
127
211
|
- sue445@sue445.net
|
@@ -129,10 +213,12 @@ executables: []
|
|
129
213
|
extensions: []
|
130
214
|
extra_rdoc_files: []
|
131
215
|
files:
|
216
|
+
- ".coveralls.yml"
|
132
217
|
- ".env.example"
|
133
218
|
- ".gitignore"
|
134
219
|
- ".rspec"
|
135
220
|
- ".travis.yml"
|
221
|
+
- CHANGELOG.md
|
136
222
|
- Gemfile
|
137
223
|
- LICENSE.txt
|
138
224
|
- README.md
|
@@ -159,9 +245,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
245
|
version: '0'
|
160
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
247
|
requirements:
|
162
|
-
- - "
|
248
|
+
- - ">="
|
163
249
|
- !ruby/object:Gem::Version
|
164
|
-
version:
|
250
|
+
version: '0'
|
165
251
|
requirements: []
|
166
252
|
rubyforge_project:
|
167
253
|
rubygems_version: 2.6.11
|