omniauth-ekuaishou 0.3.0 → 0.4.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/omniauth-ekuaishou/version.rb +1 -1
- data/lib/omniauth/strategies/ekuaishou.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ce5aea2fe6e4e8f086d416115ba444ac946180f805b489b21d23abd2581ca9
|
4
|
+
data.tar.gz: 598c86bd95624e2c49da6080e68738d869e6cb9133c617baac6b269574c9b6aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f64aed5fd89f83bf66907c22af977902fb2e30ec0d4a1a122351c6c2dbe9858841cd59b1a394897aaedf205d1f05976d9278243cf1ad32ff0e127899bd357b13
|
7
|
+
data.tar.gz: 554a0d8f30fd74d823f4301955508800f7e137d8c90a6255d69b2938ebe6f7e3d47a6626b340f11489ac13de067ecc1b6b6ab1e6f6af36aa5e159481bfc092ea
|
data/Gemfile.lock
CHANGED
@@ -14,9 +14,9 @@ module OmniAuth
|
|
14
14
|
|
15
15
|
def authorize_params
|
16
16
|
super.tap do |params|
|
17
|
-
params[:app_id] = options.client_id if params[:app_id].
|
17
|
+
params[:app_id] = options.client_id if params[:app_id].to_s.strip.empty?
|
18
18
|
|
19
|
-
if params[:scope]
|
19
|
+
if params[:scope]
|
20
20
|
scope = params[:scope]
|
21
21
|
scope = JSON.parse(params[:scope]) && params[:scope] rescue params[:scope].split(',') if scope.is_a?(String)
|
22
22
|
params[:scope] = scope.is_a?(Array) ? scope.to_json : scope
|
@@ -51,7 +51,7 @@ module OmniAuth
|
|
51
51
|
hash["refresh_token"] = access_token.refresh_token if access_token.expires? && access_token.refresh_token
|
52
52
|
hash["expires_at"] = access_token.expires_at if access_token.expires?
|
53
53
|
hash["expires"] = access_token.expires?
|
54
|
-
hash["refresh_token_expires_at"] = access_token['refresh_token_expires_at'] if access_token['refresh_token_expires_at']
|
54
|
+
hash["refresh_token_expires_at"] = access_token['refresh_token_expires_at'] if access_token['refresh_token_expires_at']
|
55
55
|
hash
|
56
56
|
end
|
57
57
|
|