omniauth-gab 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.rubocop.yml +157 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +57 -0
- data/LICENSE.txt +21 -0
- data/README.md +128 -0
- data/Rakefile +6 -0
- data/lib/omniauth/strategies/gab.rb +54 -0
- data/lib/omniauth-gab/version.rb +7 -0
- data/lib/omniauth-gab.rb +4 -0
- data/omniauth-gab.gemspec +32 -0
- metadata +128 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 80d7a86752512a8c766e6f40218d969b3b742507a3cb99c6e55095d33ebd88f6
|
4
|
+
data.tar.gz: f39f7e99299f56574f3de4ca891dce499fc97217fbf90c72aa1ee809c97550b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6d9101116ca00c638b85e987912bad2e6d3c4d43061f198983cbfada2c9eea88a17d77df68d0ff724f21e32379a7b97d35aac9b32c1a6a2fd7d7392bc27d6de3
|
7
|
+
data.tar.gz: 7e485a35fd88f10c4789fdf2ba34cd786404d27e8d190839019a9402269016f28c01bcb340163b4b9925f6153c23cc00bc41a85446fbd4af5b997c1098e04054
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop/rspec/focused
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.4
|
6
|
+
TargetRailsVersion: 5.2
|
7
|
+
|
8
|
+
Include:
|
9
|
+
- '**/*.gemspec'
|
10
|
+
- '**/*.podspec'
|
11
|
+
- '**/*.jbuilder'
|
12
|
+
- '**/*.rake'
|
13
|
+
- '**/Gemfile'
|
14
|
+
- '**/Rakefile'
|
15
|
+
- '**/Capfile'
|
16
|
+
- '**/Guardfile'
|
17
|
+
- '**/Podfile'
|
18
|
+
- '**/Thorfile'
|
19
|
+
- '**/Vagrantfile'
|
20
|
+
Exclude:
|
21
|
+
- 'Capfile'
|
22
|
+
- 'tmp/**/*'
|
23
|
+
- 'log/**/*'
|
24
|
+
- 'db/**/*'
|
25
|
+
- 'vendor/**/*'
|
26
|
+
- 'stubs/**/*'
|
27
|
+
- 'bin/**/*'
|
28
|
+
- 'node_modules/**/*'
|
29
|
+
- 'features/step_definitions/*'
|
30
|
+
|
31
|
+
# Checks formatting of special comments
|
32
|
+
CommentAnnotation:
|
33
|
+
Keywords:
|
34
|
+
- TODO
|
35
|
+
- FIXME
|
36
|
+
- OPTIMIZE
|
37
|
+
- HACK
|
38
|
+
- REVIEW
|
39
|
+
|
40
|
+
########################################
|
41
|
+
# Style Cops
|
42
|
+
|
43
|
+
Style/Documentation:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/RegexpLiteral:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/RaiseArgs:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/DoubleNegation:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Style/SignalException:
|
56
|
+
EnforcedStyle: semantic
|
57
|
+
|
58
|
+
Style/ClassAndModuleChildren:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Style/TrivialAccessors:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/NumericLiterals:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/EmptyMethod:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/MixinUsage:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/AndOr:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/FrozenStringLiteralComment:
|
77
|
+
EnforcedStyle: when_needed
|
78
|
+
|
79
|
+
# String#format is private now
|
80
|
+
Style/FormatString:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
Style/Alias:
|
84
|
+
EnforcedStyle: prefer_alias_method
|
85
|
+
|
86
|
+
########################################
|
87
|
+
# Layout Cops
|
88
|
+
|
89
|
+
Layout/AlignParameters:
|
90
|
+
EnforcedStyle: with_fixed_indentation
|
91
|
+
|
92
|
+
Layout/EmptyLinesAroundBlockBody:
|
93
|
+
Enabled: false
|
94
|
+
|
95
|
+
Layout/MultilineMethodCallIndentation:
|
96
|
+
EnforcedStyle: indented
|
97
|
+
IndentationWidth: 4
|
98
|
+
|
99
|
+
Layout/CaseIndentation:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
Layout/ElseAlignment:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
########################################
|
106
|
+
# Naming Cops
|
107
|
+
|
108
|
+
Naming/FileName:
|
109
|
+
Enabled: false
|
110
|
+
|
111
|
+
########################################
|
112
|
+
# Security Cops
|
113
|
+
|
114
|
+
Security/Eval:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
########################################
|
118
|
+
# Lint Cops
|
119
|
+
|
120
|
+
Lint/AssignmentInCondition:
|
121
|
+
Enabled: false
|
122
|
+
|
123
|
+
Lint/EndAlignment:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
########################################
|
127
|
+
# Metrics Cops
|
128
|
+
|
129
|
+
Metrics/LineLength:
|
130
|
+
Max: 110
|
131
|
+
|
132
|
+
Metrics/MethodLength:
|
133
|
+
CountComments: false # count full line comments?
|
134
|
+
Max: 20
|
135
|
+
|
136
|
+
Metrics/ClassLength:
|
137
|
+
Max: 120
|
138
|
+
|
139
|
+
Metrics/AbcSize:
|
140
|
+
Max: 20
|
141
|
+
|
142
|
+
Metrics/BlockLength:
|
143
|
+
Enabled: true
|
144
|
+
Exclude:
|
145
|
+
- spec/**/*
|
146
|
+
|
147
|
+
########################################
|
148
|
+
# Bundler Cops
|
149
|
+
|
150
|
+
Bundler/OrderedGems:
|
151
|
+
Enabled: false
|
152
|
+
|
153
|
+
########################################
|
154
|
+
# Bundler Cops
|
155
|
+
|
156
|
+
RSpec/Focused:
|
157
|
+
Enabled: true
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at 87a1779b@opayq.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
omniauth-gab (0.1.0)
|
5
|
+
omniauth
|
6
|
+
omniauth-oauth2
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.3)
|
12
|
+
faraday (0.12.2)
|
13
|
+
multipart-post (>= 1.2, < 3)
|
14
|
+
hashie (3.5.7)
|
15
|
+
jwt (1.5.6)
|
16
|
+
multi_json (1.13.1)
|
17
|
+
multi_xml (0.6.0)
|
18
|
+
multipart-post (2.0.0)
|
19
|
+
oauth2 (1.4.0)
|
20
|
+
faraday (>= 0.8, < 0.13)
|
21
|
+
jwt (~> 1.0)
|
22
|
+
multi_json (~> 1.3)
|
23
|
+
multi_xml (~> 0.5)
|
24
|
+
rack (>= 1.2, < 3)
|
25
|
+
omniauth (1.8.1)
|
26
|
+
hashie (>= 3.4.6, < 3.6.0)
|
27
|
+
rack (>= 1.6.2, < 3)
|
28
|
+
omniauth-oauth2 (1.5.0)
|
29
|
+
oauth2 (~> 1.1)
|
30
|
+
omniauth (~> 1.2)
|
31
|
+
rack (2.0.5)
|
32
|
+
rake (10.5.0)
|
33
|
+
rspec (3.8.0)
|
34
|
+
rspec-core (~> 3.8.0)
|
35
|
+
rspec-expectations (~> 3.8.0)
|
36
|
+
rspec-mocks (~> 3.8.0)
|
37
|
+
rspec-core (3.8.0)
|
38
|
+
rspec-support (~> 3.8.0)
|
39
|
+
rspec-expectations (3.8.2)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.8.0)
|
42
|
+
rspec-mocks (3.8.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.8.0)
|
45
|
+
rspec-support (3.8.0)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
bundler (~> 1.16)
|
52
|
+
omniauth-gab!
|
53
|
+
rake (~> 10.0)
|
54
|
+
rspec (~> 3.0)
|
55
|
+
|
56
|
+
BUNDLED WITH
|
57
|
+
1.16.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Chris Blackburn
|
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,128 @@
|
|
1
|
+
# Omniauth for Gab
|
2
|
+
|
3
|
+
Ruby gem for authenticating with [Gab](https://gab.com), using an OAuth2 strategy.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'omniauth-gab'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install omniauth-gab
|
20
|
+
|
21
|
+
## Pre-requisites
|
22
|
+
|
23
|
+
Register your Gab App by logging into your account and going to [Settings > Developer Apps](https://gab.com/settings/clients). Click `Create app` and fill in the requested information. Make note of the `REDIRECT URL` as you will need the exact url for your configuration.
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
### Configuration
|
28
|
+
|
29
|
+
In Rails add `config/initializers/omniauth.rb` with the following:
|
30
|
+
|
31
|
+
If you are using environment variables or [dotenv](https://github.com/bkeepers/dotenv) (recommended):
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
35
|
+
provider :gab, ENV['GAB_CLIENT_ID'], ENV['GAB_CLIENT_SECRET'],
|
36
|
+
scope: ENV['GAB_SCOPES'],
|
37
|
+
redirect_uri: ENV['GAB_REDIRECT_URI'],
|
38
|
+
provider_ignores_state: true
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
Or you can hardcode your credentials:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
46
|
+
provider :gab, 'your-app-client-id', 'your-app-secret-id',
|
47
|
+
scope: 'your scopes separated with a single space',
|
48
|
+
redirect_uri: 'the redirect uri from above',
|
49
|
+
provider_ignores_state: true
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Routing
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
get '/auth/:provider/callback' => 'sessions#create'
|
57
|
+
get '/signin' => 'sessions#new', as: :signin
|
58
|
+
get '/signout' => 'sessions#destroy', as: :signout
|
59
|
+
get '/auth/failure' => 'sessions#failure'
|
60
|
+
```
|
61
|
+
|
62
|
+
### Model
|
63
|
+
|
64
|
+
Make sure to add at least the following columns to your `User` model:
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
t.string :provider
|
68
|
+
t.string :uid
|
69
|
+
```
|
70
|
+
|
71
|
+
### Controller
|
72
|
+
|
73
|
+
You can create a sessions controller something like this:
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
# app/controllers/sessions_controller.rb
|
77
|
+
class SessionsController < ApplicationController
|
78
|
+
def new
|
79
|
+
redirect_to '/auth/gab'
|
80
|
+
end
|
81
|
+
|
82
|
+
def create
|
83
|
+
auth = request.env['omniauth.auth']
|
84
|
+
user = User.where(
|
85
|
+
provider: auth['provider'],
|
86
|
+
uid: auth['uid'].to_s
|
87
|
+
).first || User.create_with_omniauth(auth)
|
88
|
+
reset_session
|
89
|
+
session[:user_id] = user.id
|
90
|
+
redirect_to root_url, notice: 'Signed in!'
|
91
|
+
end
|
92
|
+
|
93
|
+
def destroy
|
94
|
+
reset_session
|
95
|
+
redirect_to root_url, notice: 'Signed out!'
|
96
|
+
end
|
97
|
+
|
98
|
+
def failure
|
99
|
+
redirect_to root_url, alert: "Authentication error: #{params[:message].humanize}"
|
100
|
+
end
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### View
|
105
|
+
|
106
|
+
For a sign-in link:
|
107
|
+
|
108
|
+
```haml
|
109
|
+
= link_to 'Login to Gab', signin_path
|
110
|
+
```
|
111
|
+
|
112
|
+
## Resources
|
113
|
+
|
114
|
+
* [The Gab API Docs](https://developers.gab.com/)
|
115
|
+
* [OmniAuth](https://github.com/omniauth/omniauth)
|
116
|
+
|
117
|
+
|
118
|
+
## Contributing
|
119
|
+
|
120
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/midwire/omniauth-gab. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
121
|
+
|
122
|
+
## License
|
123
|
+
|
124
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
125
|
+
|
126
|
+
## Code of Conduct
|
127
|
+
|
128
|
+
Everyone interacting in the Omniauth::Gab project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/midwire/omniauth-gab/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'omniauth-oauth2'
|
4
|
+
|
5
|
+
module OmniAuth
|
6
|
+
module Strategies
|
7
|
+
class Gab < OmniAuth::Strategies::OAuth2
|
8
|
+
option :name, 'gab'
|
9
|
+
|
10
|
+
option :client_options,
|
11
|
+
site: 'https://api.gab.com',
|
12
|
+
authorize_url: 'https://api.gab.com/oauth/authorize',
|
13
|
+
token_url: 'https://api.gab.com/oauth/token',
|
14
|
+
grant_type: 'authorization_code'
|
15
|
+
|
16
|
+
uid { raw_info['id'].to_s }
|
17
|
+
|
18
|
+
info do
|
19
|
+
{
|
20
|
+
name: raw_info['name'],
|
21
|
+
username: raw_info['username'],
|
22
|
+
verified: raw_info['verified'],
|
23
|
+
image: raw_info['picture_url_full']
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
extra do
|
28
|
+
{ raw_info: raw_info }
|
29
|
+
end
|
30
|
+
|
31
|
+
def raw_info
|
32
|
+
access_token.options[:parse] = :json
|
33
|
+
@raw_info ||= access_token.get('/v1.0/me/').parsed
|
34
|
+
end
|
35
|
+
|
36
|
+
def authorize_params(params = {})
|
37
|
+
params.merge(
|
38
|
+
'response_type' => 'code',
|
39
|
+
'client_id' => options.client_id,
|
40
|
+
'redirect_uri' => options.redirect_uri,
|
41
|
+
'scope' => options.scope
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def callback_url
|
48
|
+
options['redirect_uri'] || (full_host + script_name + callback_path)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
OmniAuth.config.add_camelization 'gab', 'Gab'
|
data/lib/omniauth-gab.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'omniauth-gab/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'omniauth-gab'
|
9
|
+
spec.version = Omniauth::Gab::VERSION
|
10
|
+
spec.authors = ['Christopher Michael']
|
11
|
+
spec.email = ['87a1779b@opayq.com']
|
12
|
+
|
13
|
+
spec.summary = 'Omniauth provider for Gab Oauth2'
|
14
|
+
spec.description = spec.summary
|
15
|
+
spec.homepage = 'https://midwiretech.com'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
|
+
|
30
|
+
spec.add_dependency 'omniauth'
|
31
|
+
spec.add_dependency 'omniauth-oauth2'
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omniauth-gab
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Christopher Michael
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: omniauth
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: omniauth-oauth2
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Omniauth provider for Gab Oauth2
|
84
|
+
email:
|
85
|
+
- 87a1779b@opayq.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".rubocop.yml"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- Gemfile.lock
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- lib/omniauth-gab.rb
|
101
|
+
- lib/omniauth-gab/version.rb
|
102
|
+
- lib/omniauth/strategies/gab.rb
|
103
|
+
- omniauth-gab.gemspec
|
104
|
+
homepage: https://midwiretech.com
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata: {}
|
108
|
+
post_install_message:
|
109
|
+
rdoc_options: []
|
110
|
+
require_paths:
|
111
|
+
- lib
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 2.7.6
|
125
|
+
signing_key:
|
126
|
+
specification_version: 4
|
127
|
+
summary: Omniauth provider for Gab Oauth2
|
128
|
+
test_files: []
|