rack-cache 1.8.0 → 1.9.0

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: a52edf08cd4dca09954d3269805b240539a240f89df89e2bdda063077a4f826f
4
- data.tar.gz: 3474fecb6a64d70e47531d5c9978673cf0c67a5d276aa7ccb35d5368d9be0960
3
+ metadata.gz: d5127a4c26d9bf722dffb6743e6d0231f623ce59348ba3eba525867cb2cc3fc9
4
+ data.tar.gz: 474db5a34c1ac449c871e76f5716f717102d4adf27af5fe7190d3523293202e6
5
5
  SHA512:
6
- metadata.gz: 3e83d8956c8c5e25a8c4f0109e50a39f7175b46edda89e41b9d62939779439c0880b7f17fcd9aae63c47e2a4715ce7ea0678d7231135f009cffbe6b588c772af
7
- data.tar.gz: 4351bd9ae5eb974590e8d39b8328a083a9bd2be4456d6966e2d0c12b35d3c28a7c367b8335296827e6490c3513cffc5b2b45b9231ec45b93f541ed61a9676c57
6
+ metadata.gz: f66cdddd9326db331ac3bfc50eda836ae87ae1f596803bee7203a232d457bcf97c2b26c6a0575cee69252c5e9c8122bed4e6fd00b387002127300b17bb0a4cae
7
+ data.tar.gz: ee479aacff602c4ca20856b73508a9a795ad1eabf1d08e7221be4b5877fd16ab6d31fb4f91b39f38d599ba934022a722b3bf15106e34c765e667f6a9b67b5bf7
data/CHANGES CHANGED
@@ -1,4 +1,8 @@
1
- ## next
1
+ ## 1.9.0
2
+
3
+ * make purge not raise when not implemented
4
+
5
+ ## 1.8.0
2
6
 
3
7
  * Meta stores will purge keys when no entity store entries are found
4
8
 
@@ -43,7 +43,15 @@ module Rack::Cache
43
43
  else
44
44
  # the metastore referenced an entity that doesn't exist in
45
45
  # the entitystore, purge the entry from the meta-store
46
- purge(key)
46
+ begin
47
+ purge(key)
48
+ rescue NotImplementedError
49
+ @@warned_on_purge ||= begin
50
+ warn "WARNING: Future releases may require purge implementation for #{self.class.name}"
51
+ true
52
+ end
53
+ nil
54
+ end
47
55
  end
48
56
  end
49
57
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack