rack-cache 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +4 -0
  3. data/lib/rack/cache/context.rb +3 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b8c0717cec69415537569ff314785477abb57fa
4
- data.tar.gz: 46986ca62b90b9824014895ad532f418c57e052d
3
+ metadata.gz: caafc3db00d7eb7bbbecad87bd98f48da57836c0
4
+ data.tar.gz: c565b38cc44f573c71e8a1f2af12db1c72663ce0
5
5
  SHA512:
6
- metadata.gz: 258bb98c7d13c4d64f9e200ceec7a6d1c3c619c7691c2e85dcca029a9d2fb378f488d9901fa55ebd625c29e09bb76f783eae5f9bc11fd407899353751dfbbdca
7
- data.tar.gz: ccf41967f25622f90f17634771ead0692e8e44525dd8328fa5762917808ca078ccb8274ccf33987b4fb04a29f96f30547a89e3805548b2bbfd414e3736e3669d
6
+ metadata.gz: 133d4a9464c350865274066aadf478368c1fe18b07a46e12edbc19a18c9fb8df5f4591f943f9ffe75337f14061c651a1fa27f0a99846d2d4e88a1570f4a60e0d
7
+ data.tar.gz: cf9a2710c7c16b3745ae37ca2000a84852a7ee7a328f548b7fa26398478b9acd007873d4d98005a51e983c849b4604a82d9a87204633fcadbdc6b32df5aee5a3
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.5.0
2
+
3
+ * only catch StandardError and not Exception
4
+
1
5
  ## 1.4.3
2
6
 
3
7
  * After overriding the REQUEST_METHOD, store the original request method in "rack.methodoverride.original_method"
@@ -151,7 +151,7 @@ module Rack::Cache
151
151
  # See RFC2616 13.10
152
152
  def invalidate
153
153
  metastore.invalidate(@request, entitystore)
154
- rescue Exception => e
154
+ rescue => e
155
155
  log_error(e)
156
156
  pass
157
157
  else
@@ -171,7 +171,7 @@ module Rack::Cache
171
171
  else
172
172
  begin
173
173
  entry = metastore.lookup(@request, entitystore)
174
- rescue Exception => e
174
+ rescue => e
175
175
  log_error(e)
176
176
  return pass
177
177
  end
@@ -270,7 +270,7 @@ module Rack::Cache
270
270
  strip_ignore_headers(response)
271
271
  metastore.store(@request, response, entitystore)
272
272
  response.headers['Age'] = response.age.to_s
273
- rescue Exception => e
273
+ rescue => e
274
274
  log_error(e)
275
275
  nil
276
276
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko