fragment_client 1.0.0 → 1.0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae039da685356a9bdb0d13afbb9d632a7c625225
|
4
|
+
data.tar.gz: aae94f15481b32301a2eeb4d76bf332e25b79db6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a8bd7ed3b488e199310404b4fc077c256c11d07f9c86d7e53d11cb2b4fe2ea758490c7296631720f3a44c77648dc4d15379f89871bed94b964fbc5b538fefc
|
7
|
+
data.tar.gz: c2a7e1c6cb15358b9237c3603524a477fda73e23b4e05d877ac44cdd8009c4b14ded2d651fd6ec3aa9b6c1f3d514099791e18fffa43fa410919c9583c8bb92bc
|
@@ -14,7 +14,7 @@ class MemoryCache
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def write(key, value)
|
17
|
-
self.cache[key] = { 'created_at' => Time.now, 'entry' => value } unless value
|
17
|
+
self.cache[key] = { 'created_at' => Time.now, 'entry' => value } unless value == '' || value == nil
|
18
18
|
end
|
19
19
|
|
20
20
|
def validate?(key)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fragment_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Atkinson
|
@@ -49,8 +49,8 @@ extensions: []
|
|
49
49
|
extra_rdoc_files: []
|
50
50
|
files:
|
51
51
|
- README.md
|
52
|
-
- lib/fragment_client
|
53
|
-
- lib/
|
52
|
+
- lib/fragment_client.rb
|
53
|
+
- lib/memory_cache.rb
|
54
54
|
homepage: https://github.com/whichdigital/fragment_client
|
55
55
|
licenses: []
|
56
56
|
metadata: {}
|