opener-property-tagger 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd341e6aded0a9e7690a95a6d56ad68fd530df0b55458a54e3831b0b3a743393
|
4
|
+
data.tar.gz: 1ecc43a166b60c8ee56dcd5345efbbb792acfac285a4c2b1d1448c0b5aa91c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb8fb35c77c6886d01929d04e29d590e25ff0ecb70e98110c85c221d4e47557bca951793ea278a994f48660e1016c4c1df08e13c552f7b601b8fb65734f3293
|
7
|
+
data.tar.gz: 6f51528b4be7f5eb5985720914ac555066f7105832e8459db68eb729dfa4d45b8023751f491ce06776ca9af784f27951e6225246c1305324ce2c539452940110
|
@@ -17,10 +17,11 @@ module Opener
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def [] **params
|
20
|
+
existing = @cache[params]
|
21
|
+
return existing if existing and existing.from > UPDATE_INTERVAL.ago
|
22
|
+
|
20
23
|
synchronize do
|
21
|
-
|
22
|
-
break existing if existing and existing.from > UPDATE_INTERVAL.ago
|
23
|
-
@cache[params] = cache_update existing, **params
|
24
|
+
@cache[params] = cache_update @cache[params], **params
|
24
25
|
end
|
25
26
|
end
|
26
27
|
alias_method :get, :[]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-property-tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opener-daemons
|