fastentry 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb94033e8b366c93d7b9437d13c8c77f4685db115de2a4b3b15e21cecd6058a7
4
- data.tar.gz: 177c4c0f76aa36ac189899c3a617e9f6a9c7ef062602802b8d126f23685cb628
3
+ metadata.gz: 6f27ca9619d62710c4732d4e63e1ba78ff5ec2afb34011410dfa584ae6873f46
4
+ data.tar.gz: ca201d30c18a9120c40ee1b952bd8139585ef23ef094182b56026f8c6f4ea511
5
5
  SHA512:
6
- metadata.gz: f3f1cbb0e4b9f2394708e6c9c201d0494a1fe01860f6745498cdd843f894a99d2a597081096acdbd9b36b9d969dcb74b1eaf5bfe2cccee87454ecfb34dc005c4
7
- data.tar.gz: 4511ad9c38cc3c9c4f62cdfcf0337d8462904a3f5684ffb25018c9765b7adf20f53a6dd3952d13db31e827cc6b140ee4b92b0ceb0fa384c370fe8e09e8d238e4
6
+ metadata.gz: 94f81be650c101f6c0dc6fae64fc3bc34e04e196d227b96306ac36dc20adbdf0aca61e02ec856bc7fc131f74892c537c8a83a74afa21cf2c631f740faf29f40a
7
+ data.tar.gz: '0599a68ddb0f0133643bc5c358bebfd1f9481f34834b6c99256517e1525f853e751b821ca23dcebd74469f352355b1191256241da8313957cf525d88e2d0bd6a'
@@ -15,7 +15,13 @@ module Fastentry
15
15
 
16
16
  @cached = []
17
17
  @keys.each do |key|
18
- expiration_date = Rails.cache.send(:read_entry, key, {}).expires_at
18
+ # Prevent from crashing if expiration can't be read (temporary fix)
19
+ begin
20
+ expiration_date = Rails.cache.send(:read_entry, key, {}).expires_at
21
+ rescue
22
+ expiration_date = nil
23
+ end
24
+
19
25
  @cached << {
20
26
  cache_key: key,
21
27
  cache_value: Rails.cache.read(key.to_s),
@@ -1,3 +1,3 @@
1
1
  module Fastentry
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Alves