omniauth-google-oauth2 1.2.1 → 1.2.3
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 +4 -4
- data/.github/workflows/ci.yml +5 -4
- data/.github/workflows/rubocop.yml +19 -0
- data/.rubocop.yml +10 -3
- data/CHANGELOG.md +180 -1
- data/Gemfile +2 -0
- data/README.md +148 -127
- data/_config.yml +3 -0
- data/examples/Gemfile +1 -0
- data/examples/config.ru +96 -62
- data/examples/omni_auth.rb +7 -15
- data/lib/omniauth/google_oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/google_oauth2.rb +251 -27
- data/omniauth-google-oauth2.gemspec +7 -8
- data/spec/omniauth/strategies/google_oauth2_spec.rb +643 -19
- data/spec/spec_helper.rb +9 -0
- metadata +16 -26
- data/spec/rubocop_spec.rb +0 -9
data/spec/spec_helper.rb
CHANGED
|
@@ -2,3 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
require File.join('bundler', 'setup')
|
|
4
4
|
require 'rspec'
|
|
5
|
+
|
|
6
|
+
RSpec.configure do |config|
|
|
7
|
+
config.mock_with :rspec do |mocks|
|
|
8
|
+
# Without this, a stub or expectation naming a method the object does not
|
|
9
|
+
# have is silently accepted, so a renamed method leaves a spec that cannot
|
|
10
|
+
# fail behind it.
|
|
11
|
+
mocks.verify_partial_doubles = true
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-google-oauth2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Ellithorpe
|
|
8
8
|
- Yury Korolev
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: jwt
|
|
@@ -18,6 +17,9 @@ dependencies:
|
|
|
18
17
|
- - ">="
|
|
19
18
|
- !ruby/object:Gem::Version
|
|
20
19
|
version: 2.9.2
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '4'
|
|
21
23
|
type: :runtime
|
|
22
24
|
prerelease: false
|
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -25,6 +27,9 @@ dependencies:
|
|
|
25
27
|
- - ">="
|
|
26
28
|
- !ruby/object:Gem::Version
|
|
27
29
|
version: 2.9.2
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '4'
|
|
28
33
|
- !ruby/object:Gem::Dependency
|
|
29
34
|
name: oauth2
|
|
30
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -73,14 +78,14 @@ dependencies:
|
|
|
73
78
|
requirements:
|
|
74
79
|
- - "~>"
|
|
75
80
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '
|
|
81
|
+
version: '13.3'
|
|
77
82
|
type: :development
|
|
78
83
|
prerelease: false
|
|
79
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
85
|
requirements:
|
|
81
86
|
- - "~>"
|
|
82
87
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '
|
|
88
|
+
version: '13.3'
|
|
84
89
|
- !ruby/object:Gem::Dependency
|
|
85
90
|
name: rspec
|
|
86
91
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -95,22 +100,8 @@ dependencies:
|
|
|
95
100
|
- - "~>"
|
|
96
101
|
- !ruby/object:Gem::Version
|
|
97
102
|
version: '3.6'
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
|
101
|
-
requirements:
|
|
102
|
-
- - "~>"
|
|
103
|
-
- !ruby/object:Gem::Version
|
|
104
|
-
version: '0.49'
|
|
105
|
-
type: :development
|
|
106
|
-
prerelease: false
|
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
-
requirements:
|
|
109
|
-
- - "~>"
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '0.49'
|
|
112
|
-
description: A Google OAuth2 strategy for OmniAuth 1.x. This allows you to login to
|
|
113
|
-
Google with your ruby app.
|
|
103
|
+
description: A Google OAuth2 strategy for OmniAuth. This allows you to login to Google
|
|
104
|
+
with your ruby app.
|
|
114
105
|
email:
|
|
115
106
|
- quest@mac.com
|
|
116
107
|
executables: []
|
|
@@ -119,12 +110,14 @@ extra_rdoc_files: []
|
|
|
119
110
|
files:
|
|
120
111
|
- ".github/FUNDING.yml"
|
|
121
112
|
- ".github/workflows/ci.yml"
|
|
113
|
+
- ".github/workflows/rubocop.yml"
|
|
122
114
|
- ".gitignore"
|
|
123
115
|
- ".rubocop.yml"
|
|
124
116
|
- CHANGELOG.md
|
|
125
117
|
- Gemfile
|
|
126
118
|
- README.md
|
|
127
119
|
- Rakefile
|
|
120
|
+
- _config.yml
|
|
128
121
|
- examples/Gemfile
|
|
129
122
|
- examples/config.ru
|
|
130
123
|
- examples/omni_auth.rb
|
|
@@ -134,13 +127,11 @@ files:
|
|
|
134
127
|
- lib/omniauth/strategies/google_oauth2.rb
|
|
135
128
|
- omniauth-google-oauth2.gemspec
|
|
136
129
|
- spec/omniauth/strategies/google_oauth2_spec.rb
|
|
137
|
-
- spec/rubocop_spec.rb
|
|
138
130
|
- spec/spec_helper.rb
|
|
139
131
|
homepage: https://github.com/zquestz/omniauth-google-oauth2
|
|
140
132
|
licenses:
|
|
141
133
|
- MIT
|
|
142
134
|
metadata: {}
|
|
143
|
-
post_install_message:
|
|
144
135
|
rdoc_options: []
|
|
145
136
|
require_paths:
|
|
146
137
|
- lib
|
|
@@ -155,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
146
|
- !ruby/object:Gem::Version
|
|
156
147
|
version: '0'
|
|
157
148
|
requirements: []
|
|
158
|
-
rubygems_version: 3.
|
|
159
|
-
signing_key:
|
|
149
|
+
rubygems_version: 3.6.9
|
|
160
150
|
specification_version: 4
|
|
161
|
-
summary: A Google OAuth2 strategy for OmniAuth
|
|
151
|
+
summary: A Google OAuth2 strategy for OmniAuth
|
|
162
152
|
test_files: []
|