nm-gigya 0.1.17 → 0.1.18
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/lib/gigya/user.rb +0 -5
- 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: 2c86a798e71a0be6ee96fae9882537499e4a0c38506f27e9a025f576315b6e77
|
|
4
|
+
data.tar.gz: 5b7dc8adcf500307941bdd7ec10fa6241615ef70fa512f3be18aa478194cc9fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b596f844ec3dfcc822bdd7c0d50d921a7739acec665f3930c2fcc2028f7e22cdd4b0e78ea998fea65facacd766f23f2b1fea7570d215a3ecc79137e6efc44e1e
|
|
7
|
+
data.tar.gz: 084614fa490070e52a28322a4634d8039c9073b769d8d5d7c15ba2b758f76eecd6569d8382fff13cd38e8e9da594960268cd963f4f6dfcb892eaf3618a18b722
|
data/lib/gigya/user.rb
CHANGED
|
@@ -98,20 +98,15 @@ module Gigya
|
|
|
98
98
|
def self.find(uid, opts = {}) # Find a Gigya account record by its UID attribute
|
|
99
99
|
opts = {} if opts.nil?
|
|
100
100
|
opts[:cache] = true if opts[:cache].nil?
|
|
101
|
-
Rails.logger.warn("********~~~~~~~~~~~~~~ OPTS")
|
|
102
|
-
Rails.logger.warn(opts.to_s)
|
|
103
101
|
|
|
104
102
|
cache_info = load_from_cache(uid)
|
|
105
103
|
if cache_info.present? && opts[:cache]
|
|
106
|
-
Rails.logger.warn("!!!!!!!!!!!!!!!!!!! CACHE HIT")
|
|
107
104
|
return self.new(cache_info, false)
|
|
108
105
|
else
|
|
109
106
|
connection = opts[:connection] || Gigya::Connection.shared_connection
|
|
110
107
|
response = connection.api_get("accounts", "getAccountInfo", {UID: uid, include:"profile,data,subscriptions,userInfo,preferences", extraProfileFields:@@extra_profile_fields.join(",")})
|
|
111
108
|
obj = self.new(response)
|
|
112
109
|
obj.gigya_connection = connection
|
|
113
|
-
Rails.logger.warn("!!!!!!!!!!!!!!!!!!! NON HIT")
|
|
114
|
-
Rails.logger.warn(obj.inspect)
|
|
115
110
|
return obj
|
|
116
111
|
end
|
|
117
112
|
end
|