omniauth-gusto 1.0.0
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 +7 -0
- data/.circleci/config.yml +134 -0
- data/.gitignore +14 -0
- data/.rubocop.yml +16 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +85 -0
- data/LICENSE.txt +21 -0
- data/README.md +108 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/omniauth-gusto.rb +2 -0
- data/lib/omniauth-gusto/version.rb +5 -0
- data/lib/omniauth/strategies/gusto.rb +57 -0
- data/omniauth-gusto.gemspec +30 -0
- metadata +158 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 5b0c7e7e85d01a5ac9c5d3a19f400d3d1f25db73
|
|
4
|
+
data.tar.gz: d6fc44dd339fbe417385bbe87b3362720612a867
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5771200c245678925323bc25957cd30e43db4d0ccf2c8ad0130500d71481d80d12fbb6de3f002b0aabb023dae24bb917609e06b1669288f300709d3dd5e5f65b
|
|
7
|
+
data.tar.gz: 7874c181bfd07825c7e6c7eb71143679cba36dfbd72317fabea2b559031e9aaa29f671df39b39448b6f2f8aa7e5b5b7cbeacca3ec85005d67be89c319535ae9f
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
|
|
3
|
+
orbs:
|
|
4
|
+
omniauth-gusto:
|
|
5
|
+
executors:
|
|
6
|
+
ruby-2-3:
|
|
7
|
+
docker:
|
|
8
|
+
- image: circleci/ruby:2.3-node-browsers
|
|
9
|
+
ruby-2-4:
|
|
10
|
+
docker:
|
|
11
|
+
- image: circleci/ruby:2.4-node-browsers
|
|
12
|
+
ruby-2-5:
|
|
13
|
+
docker:
|
|
14
|
+
- image: circleci/ruby:2.5-node-browsers
|
|
15
|
+
ruby-2-6:
|
|
16
|
+
docker:
|
|
17
|
+
- image: circleci/ruby:2.6-node-browsers
|
|
18
|
+
|
|
19
|
+
commands:
|
|
20
|
+
install:
|
|
21
|
+
steps:
|
|
22
|
+
- checkout
|
|
23
|
+
- run:
|
|
24
|
+
name: Configure Bundler
|
|
25
|
+
command: |
|
|
26
|
+
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
|
|
27
|
+
source $BASH_ENV
|
|
28
|
+
gem install bundler
|
|
29
|
+
# Download and cache dependencies
|
|
30
|
+
- restore_cache:
|
|
31
|
+
keys:
|
|
32
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
33
|
+
# fallback to using the latest cache if no exact match is found
|
|
34
|
+
- v1-dependencies-
|
|
35
|
+
- run:
|
|
36
|
+
name: install dependencies
|
|
37
|
+
command: |
|
|
38
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
39
|
+
- save_cache:
|
|
40
|
+
paths:
|
|
41
|
+
- ./vendor/bundle
|
|
42
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
43
|
+
|
|
44
|
+
jobs:
|
|
45
|
+
test:
|
|
46
|
+
executor: << parameters.executor >>
|
|
47
|
+
parameters:
|
|
48
|
+
executor:
|
|
49
|
+
type: string
|
|
50
|
+
steps:
|
|
51
|
+
- install
|
|
52
|
+
- run:
|
|
53
|
+
name: run tests
|
|
54
|
+
command: |
|
|
55
|
+
mkdir /tmp/test-results
|
|
56
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
|
57
|
+
circleci tests split --split-by=timings)"
|
|
58
|
+
|
|
59
|
+
bundle exec rspec \
|
|
60
|
+
--format progress \
|
|
61
|
+
--format RspecJunitFormatter \
|
|
62
|
+
--out /tmp/test-results/rspec.xml \
|
|
63
|
+
--format progress \
|
|
64
|
+
$TEST_FILES
|
|
65
|
+
- store_test_results:
|
|
66
|
+
path: /tmp/test-results
|
|
67
|
+
- store_artifacts:
|
|
68
|
+
path: /tmp/test-results
|
|
69
|
+
destination: test-results
|
|
70
|
+
|
|
71
|
+
lint:
|
|
72
|
+
executor: ruby-2-6
|
|
73
|
+
steps:
|
|
74
|
+
- install
|
|
75
|
+
- run:
|
|
76
|
+
name: lint
|
|
77
|
+
command: bundle exec rubocop
|
|
78
|
+
|
|
79
|
+
build:
|
|
80
|
+
executor: << parameters.executor >>
|
|
81
|
+
parameters:
|
|
82
|
+
executor:
|
|
83
|
+
type: string
|
|
84
|
+
steps:
|
|
85
|
+
- install
|
|
86
|
+
- run: gem build omniauth-gusto.gemspec
|
|
87
|
+
|
|
88
|
+
publish:
|
|
89
|
+
executor: ruby-2-6
|
|
90
|
+
steps:
|
|
91
|
+
- run: echo 'Publishing'
|
|
92
|
+
|
|
93
|
+
workflows:
|
|
94
|
+
version: 2
|
|
95
|
+
CI:
|
|
96
|
+
jobs:
|
|
97
|
+
- omniauth-gusto/test:
|
|
98
|
+
name: test (Ruby 2.3)
|
|
99
|
+
executor: ruby-2-3
|
|
100
|
+
- omniauth-gusto/test:
|
|
101
|
+
name: test (Ruby 2.4)
|
|
102
|
+
executor: ruby-2-4
|
|
103
|
+
- omniauth-gusto/test:
|
|
104
|
+
name: test (Ruby 2.5)
|
|
105
|
+
executor: ruby-2-5
|
|
106
|
+
- omniauth-gusto/test:
|
|
107
|
+
name: test (Ruby 2.6)
|
|
108
|
+
executor: ruby-2-6
|
|
109
|
+
- omniauth-gusto/lint:
|
|
110
|
+
name: lint
|
|
111
|
+
- omniauth-gusto/build:
|
|
112
|
+
name: build (Ruby 2.3)
|
|
113
|
+
executor: ruby-2-3
|
|
114
|
+
- omniauth-gusto/build:
|
|
115
|
+
name: build (Ruby 2.4)
|
|
116
|
+
executor: ruby-2-4
|
|
117
|
+
- omniauth-gusto/build:
|
|
118
|
+
name: build (Ruby 2.5)
|
|
119
|
+
executor: ruby-2-5
|
|
120
|
+
- omniauth-gusto/build:
|
|
121
|
+
name: build (Ruby 2.6)
|
|
122
|
+
executor: ruby-2-6
|
|
123
|
+
- omniauth-gusto/publish:
|
|
124
|
+
name: publish
|
|
125
|
+
requires:
|
|
126
|
+
- test (Ruby 2.3)
|
|
127
|
+
- test (Ruby 2.4)
|
|
128
|
+
- test (Ruby 2.5)
|
|
129
|
+
- test (Ruby 2.6)
|
|
130
|
+
- lint
|
|
131
|
+
- build (Ruby 2.3)
|
|
132
|
+
- build (Ruby 2.4)
|
|
133
|
+
- build (Ruby 2.5)
|
|
134
|
+
- build (Ruby 2.6)
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Style/FrozenStringLiteralComment:
|
|
2
|
+
Exclude:
|
|
3
|
+
- Gemfile
|
|
4
|
+
- omniauth-gusto.gemspec
|
|
5
|
+
- lib/omniauth-gusto.rb
|
|
6
|
+
|
|
7
|
+
Metrics/LineLength:
|
|
8
|
+
Max: 120
|
|
9
|
+
|
|
10
|
+
Metrics/BlockLength:
|
|
11
|
+
Exclude:
|
|
12
|
+
- ./**/*_spec.rb
|
|
13
|
+
|
|
14
|
+
Naming/FileName:
|
|
15
|
+
Exclude:
|
|
16
|
+
- lib/omniauth-gusto.rb
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
omniauth-gusto (0.1.0)
|
|
5
|
+
omniauth-oauth2 (~> 1.6)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
ast (2.4.0)
|
|
11
|
+
byebug (11.0.1)
|
|
12
|
+
coderay (1.1.2)
|
|
13
|
+
diff-lcs (1.3)
|
|
14
|
+
faraday (0.15.4)
|
|
15
|
+
multipart-post (>= 1.2, < 3)
|
|
16
|
+
hashie (3.6.0)
|
|
17
|
+
jaro_winkler (1.5.3)
|
|
18
|
+
jwt (2.2.1)
|
|
19
|
+
method_source (0.9.2)
|
|
20
|
+
multi_json (1.13.1)
|
|
21
|
+
multi_xml (0.6.0)
|
|
22
|
+
multipart-post (2.1.1)
|
|
23
|
+
oauth2 (1.4.1)
|
|
24
|
+
faraday (>= 0.8, < 0.16.0)
|
|
25
|
+
jwt (>= 1.0, < 3.0)
|
|
26
|
+
multi_json (~> 1.3)
|
|
27
|
+
multi_xml (~> 0.5)
|
|
28
|
+
rack (>= 1.2, < 3)
|
|
29
|
+
omniauth (1.9.0)
|
|
30
|
+
hashie (>= 3.4.6, < 3.7.0)
|
|
31
|
+
rack (>= 1.6.2, < 3)
|
|
32
|
+
omniauth-oauth2 (1.6.0)
|
|
33
|
+
oauth2 (~> 1.1)
|
|
34
|
+
omniauth (~> 1.9)
|
|
35
|
+
parallel (1.17.0)
|
|
36
|
+
parser (2.6.3.0)
|
|
37
|
+
ast (~> 2.4.0)
|
|
38
|
+
pry (0.12.2)
|
|
39
|
+
coderay (~> 1.1.0)
|
|
40
|
+
method_source (~> 0.9.0)
|
|
41
|
+
pry-byebug (3.7.0)
|
|
42
|
+
byebug (~> 11.0)
|
|
43
|
+
pry (~> 0.10)
|
|
44
|
+
rack (2.0.7)
|
|
45
|
+
rainbow (3.0.0)
|
|
46
|
+
rake (10.5.0)
|
|
47
|
+
rspec (3.8.0)
|
|
48
|
+
rspec-core (~> 3.8.0)
|
|
49
|
+
rspec-expectations (~> 3.8.0)
|
|
50
|
+
rspec-mocks (~> 3.8.0)
|
|
51
|
+
rspec-core (3.8.2)
|
|
52
|
+
rspec-support (~> 3.8.0)
|
|
53
|
+
rspec-expectations (3.8.4)
|
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
+
rspec-support (~> 3.8.0)
|
|
56
|
+
rspec-mocks (3.8.1)
|
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
|
+
rspec-support (~> 3.8.0)
|
|
59
|
+
rspec-support (3.8.2)
|
|
60
|
+
rspec_junit_formatter (0.4.1)
|
|
61
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
|
62
|
+
rubocop (0.72.0)
|
|
63
|
+
jaro_winkler (~> 1.5.1)
|
|
64
|
+
parallel (~> 1.10)
|
|
65
|
+
parser (>= 2.6)
|
|
66
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
67
|
+
ruby-progressbar (~> 1.7)
|
|
68
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
69
|
+
ruby-progressbar (1.10.1)
|
|
70
|
+
unicode-display_width (1.6.0)
|
|
71
|
+
|
|
72
|
+
PLATFORMS
|
|
73
|
+
ruby
|
|
74
|
+
|
|
75
|
+
DEPENDENCIES
|
|
76
|
+
bundler (~> 2.0)
|
|
77
|
+
omniauth-gusto!
|
|
78
|
+
pry-byebug
|
|
79
|
+
rake (~> 10.0)
|
|
80
|
+
rspec (~> 3.0)
|
|
81
|
+
rspec_junit_formatter
|
|
82
|
+
rubocop
|
|
83
|
+
|
|
84
|
+
BUNDLED WITH
|
|
85
|
+
2.0.2
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Gusto
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# OmniAuth Gusto
|
|
2
|
+
|
|
3
|
+
Official OmniAuth strategy for authenticating with [Gusto](https://gusto.com/) using [Gusto’s API](https://docs.gusto.com/).
|
|
4
|
+
|
|
5
|
+
[](https://circleci.com/gh/Gusto/omniauth-gusto)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'omniauth-gusto'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install omniauth-gusto
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
Integrate the strategy into your middleware. Refer to [Devise’s documentation](https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview) if using Devise.
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
# config/initializers/omniauth.rb
|
|
29
|
+
|
|
30
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
31
|
+
provider :gusto, ENV['GUSTO_CLIENT_ID'], ENV['GUSTO_CLIENT_SECRET']
|
|
32
|
+
end
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The route `/auth/gusto` will become available to initiate authentication.
|
|
36
|
+
Set up the callback route `/auth/gusto/callback` and tie to a controller action
|
|
37
|
+
to handle any post-authentication actions.
|
|
38
|
+
|
|
39
|
+
```ruby
|
|
40
|
+
# config/routes.rb
|
|
41
|
+
|
|
42
|
+
Rails.application.routes.draw do
|
|
43
|
+
get '/auth/gusto/callback', to: 'sample_controller#gusto'
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
For more information on how to use OmniAuth, refer to the [OmniAuth documentation](https://github.com/omniauth/omniauth).
|
|
49
|
+
|
|
50
|
+
## Gusto’s API
|
|
51
|
+
Use the access token from the Auth Hash `request.env['omniauth.auth']['credentials']['token']` to
|
|
52
|
+
make calls to other [Gusto API](https://docs.gusto.com/) endpoints
|
|
53
|
+
such as [payrolls](https://docs.gusto.com/v1/payrolls).
|
|
54
|
+
To gain access to Gusto’s API, [contact Gusto](https://gusto.com/about/contact) to establish a client id and secret.
|
|
55
|
+
|
|
56
|
+
## Sample Response
|
|
57
|
+
|
|
58
|
+
Below is an example Auth Hash availble in `request.env['omniauth.auth']`. Note `info['name']` is set to the user’s email and that employee names will have to be fetched from the [employees endpoint](https://docs.gusto.com/v1/employees).
|
|
59
|
+
|
|
60
|
+
```ruby
|
|
61
|
+
{
|
|
62
|
+
"provider" => "gusto",
|
|
63
|
+
"uid" => 123,
|
|
64
|
+
"info" => {
|
|
65
|
+
"email" => "example.user@gmail.com",
|
|
66
|
+
"name" => "example.user@gmail.com"
|
|
67
|
+
},
|
|
68
|
+
"credentials" => {
|
|
69
|
+
"token" => "456",
|
|
70
|
+
"refresh_token" => "789",
|
|
71
|
+
"expires_at" => 1561589955,
|
|
72
|
+
"expires" => true
|
|
73
|
+
},
|
|
74
|
+
"extra" => {
|
|
75
|
+
"raw_info" => {
|
|
76
|
+
"id" => 123,
|
|
77
|
+
"email" => "example.user@gmail.com",
|
|
78
|
+
"roles" => {
|
|
79
|
+
"payroll_admin" => {
|
|
80
|
+
"companies" => [
|
|
81
|
+
{
|
|
82
|
+
"id" => 101112,
|
|
83
|
+
"name" => "Poi's Doughnuts",
|
|
84
|
+
"trade_name" => null,
|
|
85
|
+
"locations" => [
|
|
86
|
+
{
|
|
87
|
+
"id" => 131415,
|
|
88
|
+
"street_1" => "1236 Mission St",
|
|
89
|
+
"street_2" => "",
|
|
90
|
+
"city" => "San Francisco",
|
|
91
|
+
"state" => "CA",
|
|
92
|
+
"zip" => "94103",
|
|
93
|
+
"country" => "USA",
|
|
94
|
+
"active" => true
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require 'bundler/setup'
|
|
5
|
+
require 'omniauth/omniauth-gusto'
|
|
6
|
+
|
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
+
|
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
+
# require "pry"
|
|
12
|
+
# Pry.start
|
|
13
|
+
|
|
14
|
+
require 'irb'
|
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'omniauth-oauth2'
|
|
4
|
+
|
|
5
|
+
module OmniAuth
|
|
6
|
+
module Strategies
|
|
7
|
+
# Provides an Omniauth strategy for Gusto
|
|
8
|
+
class Gusto < OmniAuth::Strategies::OAuth2
|
|
9
|
+
option :name, 'gusto'
|
|
10
|
+
|
|
11
|
+
# Options can be overridden in OmniAuth config initialization
|
|
12
|
+
|
|
13
|
+
option(
|
|
14
|
+
:client_options,
|
|
15
|
+
site: 'https://api.gusto.com/',
|
|
16
|
+
authorize_url: '/oauth/authorize',
|
|
17
|
+
token_url: '/oauth/token'
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
option :authorize_options, %i[redirect_uri response_type]
|
|
21
|
+
|
|
22
|
+
# Response phase
|
|
23
|
+
#
|
|
24
|
+
# Following params are returned:
|
|
25
|
+
# uid: Gusto user id of the user that initiated the authentication request
|
|
26
|
+
# info:
|
|
27
|
+
# email: Gusto email of the user
|
|
28
|
+
# name: Gusto email of the user
|
|
29
|
+
# extra:
|
|
30
|
+
# raw_info: User info gained from https://docs.gusto.com/v1/current_user
|
|
31
|
+
#
|
|
32
|
+
# See https://docs.gusto.com/ for detailed info about Gusto's API
|
|
33
|
+
|
|
34
|
+
uid do
|
|
35
|
+
raw_info['id']
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
info do
|
|
39
|
+
{ 'email' => raw_info['email'] }
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
extra do
|
|
43
|
+
{ 'raw_info' => raw_info }
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
private
|
|
47
|
+
|
|
48
|
+
def callback_url
|
|
49
|
+
full_host + script_name + callback_path
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def raw_info
|
|
53
|
+
@raw_info ||= access_token.get('/v1/me').parsed
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require 'omniauth-gusto/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = 'omniauth-gusto'
|
|
7
|
+
spec.version = OmniauthGusto::VERSION
|
|
8
|
+
spec.authors = %w[juliannaroen lisasli]
|
|
9
|
+
spec.email = ['julianna.roen@gusto.com', 'lisa.li@gusto.com']
|
|
10
|
+
|
|
11
|
+
spec.summary = 'Official OmniAuth strategy for Gusto'
|
|
12
|
+
spec.description = 'Official OmniAuth strategy for Gusto'
|
|
13
|
+
spec.homepage = ''
|
|
14
|
+
spec.license = 'MIT'
|
|
15
|
+
|
|
16
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
17
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
|
+
end
|
|
19
|
+
spec.bindir = 'exe'
|
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
21
|
+
spec.require_paths = ['lib']
|
|
22
|
+
|
|
23
|
+
spec.add_dependency 'omniauth-oauth2', '~> 1.6'
|
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
25
|
+
spec.add_development_dependency 'pry-byebug'
|
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
28
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
|
29
|
+
spec.add_development_dependency 'rubocop'
|
|
30
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: omniauth-gusto
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- juliannaroen
|
|
8
|
+
- lisasli
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: exe
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: omniauth-oauth2
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
requirements:
|
|
18
|
+
- - "~>"
|
|
19
|
+
- !ruby/object:Gem::Version
|
|
20
|
+
version: '1.6'
|
|
21
|
+
type: :runtime
|
|
22
|
+
prerelease: false
|
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - "~>"
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: '1.6'
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: bundler
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - "~>"
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '2.0'
|
|
35
|
+
type: :development
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - "~>"
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '2.0'
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: pry-byebug
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
type: :development
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: rake
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '10.0'
|
|
63
|
+
type: :development
|
|
64
|
+
prerelease: false
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - "~>"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '10.0'
|
|
70
|
+
- !ruby/object:Gem::Dependency
|
|
71
|
+
name: rspec
|
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - "~>"
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '3.0'
|
|
77
|
+
type: :development
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - "~>"
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: '3.0'
|
|
84
|
+
- !ruby/object:Gem::Dependency
|
|
85
|
+
name: rspec_junit_formatter
|
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
- - ">="
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: '0'
|
|
91
|
+
type: :development
|
|
92
|
+
prerelease: false
|
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
98
|
+
- !ruby/object:Gem::Dependency
|
|
99
|
+
name: rubocop
|
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
|
101
|
+
requirements:
|
|
102
|
+
- - ">="
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '0'
|
|
105
|
+
type: :development
|
|
106
|
+
prerelease: false
|
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - ">="
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '0'
|
|
112
|
+
description: Official OmniAuth strategy for Gusto
|
|
113
|
+
email:
|
|
114
|
+
- julianna.roen@gusto.com
|
|
115
|
+
- lisa.li@gusto.com
|
|
116
|
+
executables: []
|
|
117
|
+
extensions: []
|
|
118
|
+
extra_rdoc_files: []
|
|
119
|
+
files:
|
|
120
|
+
- ".circleci/config.yml"
|
|
121
|
+
- ".gitignore"
|
|
122
|
+
- ".rubocop.yml"
|
|
123
|
+
- Gemfile
|
|
124
|
+
- Gemfile.lock
|
|
125
|
+
- LICENSE.txt
|
|
126
|
+
- README.md
|
|
127
|
+
- Rakefile
|
|
128
|
+
- bin/console
|
|
129
|
+
- bin/setup
|
|
130
|
+
- lib/omniauth-gusto.rb
|
|
131
|
+
- lib/omniauth-gusto/version.rb
|
|
132
|
+
- lib/omniauth/strategies/gusto.rb
|
|
133
|
+
- omniauth-gusto.gemspec
|
|
134
|
+
homepage: ''
|
|
135
|
+
licenses:
|
|
136
|
+
- MIT
|
|
137
|
+
metadata: {}
|
|
138
|
+
post_install_message:
|
|
139
|
+
rdoc_options: []
|
|
140
|
+
require_paths:
|
|
141
|
+
- lib
|
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
|
+
requirements:
|
|
144
|
+
- - ">="
|
|
145
|
+
- !ruby/object:Gem::Version
|
|
146
|
+
version: '0'
|
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - ">="
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: '0'
|
|
152
|
+
requirements: []
|
|
153
|
+
rubyforge_project:
|
|
154
|
+
rubygems_version: 2.5.2.3
|
|
155
|
+
signing_key:
|
|
156
|
+
specification_version: 4
|
|
157
|
+
summary: Official OmniAuth strategy for Gusto
|
|
158
|
+
test_files: []
|