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: c3a35f593d6abe9192c15b031170a641bec01aa8
4
- data.tar.gz: 42a3637c7f04786e2e2e26c8e9bf84ecca9eb3f9
3
+ metadata.gz: ae039da685356a9bdb0d13afbb9d632a7c625225
4
+ data.tar.gz: aae94f15481b32301a2eeb4d76bf332e25b79db6
5
5
  SHA512:
6
- metadata.gz: 9a1e0322f94064a74b9e6ea7c01ccac85d72ad9377d0e7473a3b41b442d398d77f87357836f7c56e6bd7062af25e85f98abecbd621da1c9d57bf14edfaa44c2c
7
- data.tar.gz: 7bbdb7cbb840d75c29fc8d946e69d8c0232167ba09449c33db22c293e48ead1f9dadbfde99b7afe79474b46f18ca9d50eaf20ddc0257bb1650a7b37130f709d9
6
+ metadata.gz: b5a8bd7ed3b488e199310404b4fc077c256c11d07f9c86d7e53d11cb2b4fe2ea758490c7296631720f3a44c77648dc4d15379f89871bed94b964fbc5b538fefc
7
+ data.tar.gz: c2a7e1c6cb15358b9237c3603524a477fda73e23b4e05d877ac44cdd8009c4b14ded2d651fd6ec3aa9b6c1f3d514099791e18fffa43fa410919c9583c8bb92bc
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'memory_cache'
2
3
 
3
4
  class FragmentClient
4
5
  attr_accessor :fragment_server_url, :option_params, :cache
@@ -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.blank?
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.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/fragment_client.rb
53
- - lib/fragment_client/memory_cache.rb
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: {}