nm-gigya 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gigya/user.rb +2 -2
- 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: ce7e91385a56dec2227476c0f448a1e416cd9e0635735df86235a8b870a564e0
|
4
|
+
data.tar.gz: f8b0f6242e12b604448bccd4054170e2c3c19efa32c9e7779eb5e6f15e90ab47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d393bd6deaeb2e6e69ca7f7858903980a3dbde16c4ef7d00e516aebb5b07a8c35155bb7a898bd4d1cb68d16ff6b74709bbb4f262773ec0d3bf342e0cb9bcf45b
|
7
|
+
data.tar.gz: 4a45b53f6aad4d2badd9e53bdceb32da90383416da99b1ae84de8dd52c0db94b5a4e3d9bd9b73435b1f6f2cc17d0036f56f20d0c9b29a61e56392075a3b17c1d
|
data/lib/gigya/user.rb
CHANGED
@@ -95,11 +95,11 @@ module Gigya
|
|
95
95
|
return self.find(uid, opts)
|
96
96
|
end
|
97
97
|
|
98
|
-
def self.find(uid, opts = {}) # Find a Gigya account record by its UID attribute
|
98
|
+
def self.find(uid, opts = {}, needs_caching = true) # Find a Gigya account record by its UID attribute
|
99
99
|
opts = {} if opts.nil?
|
100
100
|
|
101
101
|
cache_info = load_from_cache(uid)
|
102
|
-
if cache_info.present? ||
|
102
|
+
if cache_info.present? || needs_caching
|
103
103
|
return self.new(cache_info, false)
|
104
104
|
else
|
105
105
|
connection = opts[:connection] || Gigya::Connection.shared_connection
|