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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gigya/user.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc9284b633d3b5e07b80c55cff2cae42059b64f8c40d9e04290f6ec3860e435d
4
- data.tar.gz: eb1200322429c1616776ebd85287c1d24ed3544c60a444b37933e00e6551e765
3
+ metadata.gz: ce7e91385a56dec2227476c0f448a1e416cd9e0635735df86235a8b870a564e0
4
+ data.tar.gz: f8b0f6242e12b604448bccd4054170e2c3c19efa32c9e7779eb5e6f15e90ab47
5
5
  SHA512:
6
- metadata.gz: 847fadd0aa9197fd21c27ae490bd04546e60e417bfe0164fb70a24949f6f62b458ae60784c40a84ba4cc77b973ddf0ac37ea0143272f739102172b3270cc42f5
7
- data.tar.gz: 74265c0dd978251e9cf5f462720ecee156706b7ba4dbf96093ff6c4001e6f3ba8814be4d004c75b457d72c47d0ead328e6e5107c198909dd3c46c2a4442c17a6
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? || opts["cache"] != false
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nm-gigya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bartlett