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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57aa46885e2bb75fe4ff44a863a074aff252f3f71c9cb12b3c1f40741c4e6c7f
4
- data.tar.gz: 333546da365f2ad15173f70c2911884fb1b769b44fcc015eb57bdcad4504d213
3
+ metadata.gz: 04ce5aea2fe6e4e8f086d416115ba444ac946180f805b489b21d23abd2581ca9
4
+ data.tar.gz: 598c86bd95624e2c49da6080e68738d869e6cb9133c617baac6b269574c9b6aa
5
5
  SHA512:
6
- metadata.gz: 16605a455f5e4f0bb3995f77aabab41485599bbc3ef84228c9d6a72310942bd5b57a96ce568f030aace7af12bf2d5817fd0fc42fa116c57d93440e3dc162be73
7
- data.tar.gz: 43134b8201bc60fe33faa7afef01ad84ec8eb7dbe0a013063108926f60c8dfc4eb62d37f17924b84f01754549830c39708b419803121c6f8148d4c2154396d77
6
+ metadata.gz: f64aed5fd89f83bf66907c22af977902fb2e30ec0d4a1a122351c6c2dbe9858841cd59b1a394897aaedf205d1f05976d9278243cf1ad32ff0e127899bd357b13
7
+ data.tar.gz: 554a0d8f30fd74d823f4301955508800f7e137d8c90a6255d69b2938ebe6f7e3d47a6626b340f11489ac13de067ecc1b6b6ab1e6f6af36aa5e159481bfc092ea
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-ekuaishou (0.3.0)
4
+ omniauth-ekuaishou (0.4.0)
5
5
  omniauth (~> 2.0)
6
6
  omniauth-oauth2 (~> 1.7.1)
7
7
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Ekuaishou
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -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].blank?
17
+ params[:app_id] = options.client_id if params[:app_id].to_s.strip.empty?
18
18
 
19
- if params[:scope].present?
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'].present?
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-ekuaishou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimcheung