omniauth-gab 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/README.md +4 -2
- data/lib/omniauth-gab/version.rb +1 -1
- data/omniauth-gab.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a027c7d8cbd74c420c4fd549fe387f09b943d0d75daf5e39de2d12270db562
|
4
|
+
data.tar.gz: 8a333d4297f57c8e391f9da05ecfaef23370635fa4e2ca4e4390716c3b81a6b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0db19661bd6fff5efa63ecf44f1befe55cbc68938b9e734462f81ef18aab00a7eccc42ab823a30e3007a2019225a73446e1438627e1f12489ef46181e71e42c
|
7
|
+
data.tar.gz: c1186b0d1cf99c63485e6cd5a404331032bbca3f400bbd38e3b3b0a1cbd0c6a30aa89a360d4160e3990cadd158250acbeb209cd626672fae9d8bd637f44fe964
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-gab (0.1.
|
4
|
+
omniauth-gab (0.1.1)
|
5
5
|
omniauth
|
6
6
|
omniauth-oauth2
|
7
7
|
|
@@ -9,16 +9,16 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
diff-lcs (1.3)
|
12
|
-
faraday (0.
|
12
|
+
faraday (0.15.3)
|
13
13
|
multipart-post (>= 1.2, < 3)
|
14
14
|
hashie (3.5.7)
|
15
|
-
jwt (1.
|
15
|
+
jwt (2.1.0)
|
16
16
|
multi_json (1.13.1)
|
17
17
|
multi_xml (0.6.0)
|
18
18
|
multipart-post (2.0.0)
|
19
|
-
oauth2 (1.4.
|
20
|
-
faraday (>= 0.8, < 0.
|
21
|
-
jwt (
|
19
|
+
oauth2 (1.4.1)
|
20
|
+
faraday (>= 0.8, < 0.16.0)
|
21
|
+
jwt (>= 1.0, < 3.0)
|
22
22
|
multi_json (~> 1.3)
|
23
23
|
multi_xml (~> 0.5)
|
24
24
|
rack (>= 1.2, < 3)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
omniauth-oauth2 (1.5.0)
|
29
29
|
oauth2 (~> 1.1)
|
30
30
|
omniauth (~> 1.2)
|
31
|
-
rack (2.0.
|
31
|
+
rack (2.0.6)
|
32
32
|
rake (10.5.0)
|
33
33
|
rspec (3.8.0)
|
34
34
|
rspec-core (~> 3.8.0)
|
@@ -54,4 +54,4 @@ DEPENDENCIES
|
|
54
54
|
rspec (~> 3.0)
|
55
55
|
|
56
56
|
BUNDLED WITH
|
57
|
-
1.
|
57
|
+
1.17.1
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ Register your Gab App by logging into your account and going to [Settings > Deve
|
|
26
26
|
|
27
27
|
### Configuration
|
28
28
|
|
29
|
-
In Rails add `config/initializers/omniauth.rb` with the following:
|
29
|
+
In your Rails app, add `config/initializers/omniauth.rb` with the following:
|
30
30
|
|
31
31
|
If you are using environment variables or [dotenv](https://github.com/bkeepers/dotenv) (recommended):
|
32
32
|
|
@@ -39,7 +39,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
39
39
|
end
|
40
40
|
```
|
41
41
|
|
42
|
-
Or you can hardcode your credentials:
|
42
|
+
Or you can hardcode your credentials (not recommended):
|
43
43
|
|
44
44
|
```ruby
|
45
45
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
@@ -52,6 +52,8 @@ end
|
|
52
52
|
|
53
53
|
### Routing
|
54
54
|
|
55
|
+
You'll need to configure the following routes or something similar, in `routes.rb`.
|
56
|
+
|
55
57
|
```ruby
|
56
58
|
get '/auth/:provider/callback' => 'sessions#create'
|
57
59
|
get '/signin' => 'sessions#new', as: :signin
|
data/lib/omniauth-gab/version.rb
CHANGED
data/omniauth-gab.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = 'Omniauth provider for Gab Oauth2'
|
14
14
|
spec.description = spec.summary
|
15
|
-
spec.homepage = 'https://
|
15
|
+
spec.homepage = 'https://github.com/midwire/omniauth-gab'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
18
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-gab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Michael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,7 +101,7 @@ files:
|
|
101
101
|
- lib/omniauth-gab/version.rb
|
102
102
|
- lib/omniauth/strategies/gab.rb
|
103
103
|
- omniauth-gab.gemspec
|
104
|
-
homepage: https://
|
104
|
+
homepage: https://github.com/midwire/omniauth-gab
|
105
105
|
licenses:
|
106
106
|
- MIT
|
107
107
|
metadata: {}
|