rack-cache 1.15.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/cache/entity_store.rb +1 -7
- data/lib/rack/cache/meta_store.rb +3 -4
- data/lib/rack/cache/version.rb +1 -1
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28431bb2846ad3498dbd9f76803a132d630f836d149f18edae0856ffda2e05e6
|
4
|
+
data.tar.gz: 22e842331fcdcbd53363140da22aa06d4d09b2fc8acc47b7536c110f7fa13586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eea5f65e0f3a1f33c6a48b7584412296ace827394bd1b5e4f1c5f949de5bc00977fa16862941582096871f3f7efd21be08969d7e4bfc9561ab2ba827efb47951
|
7
|
+
data.tar.gz: 9966e29e7d2f9e888c720a7ddffd9d083807562805d3081f072839abf0d76fb5e5c0f272747ef5ec1aa50f7bdb364a144eb57c603745d06f7bdc7fd7f0363a96
|
@@ -38,7 +38,8 @@ module Rack::Cache
|
|
38
38
|
return nil if match.nil?
|
39
39
|
|
40
40
|
_, res = match
|
41
|
-
|
41
|
+
entity_key = res['x-content-digest']
|
42
|
+
if entity_key && body = entity_store.open(entity_key)
|
42
43
|
restore_response(res, body)
|
43
44
|
else
|
44
45
|
# the metastore referenced an entity that doesn't exist in
|
@@ -123,10 +124,8 @@ module Rack::Cache
|
|
123
124
|
if response.fresh?
|
124
125
|
response.expire!
|
125
126
|
modified = true
|
126
|
-
[req, persist_response(response)]
|
127
|
-
else
|
128
|
-
[req, res]
|
129
127
|
end
|
128
|
+
[req, persist_response(response)]
|
130
129
|
end
|
131
130
|
write key, entries if modified
|
132
131
|
end
|
data/lib/rack/cache/version.rb
CHANGED
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.
|
4
|
+
version: 1.17.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:
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: mocha
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: mutex_m
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rdiscount
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: hanna-nouveau
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,14 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
172
|
requirements:
|
187
173
|
- - ">="
|
188
174
|
- !ruby/object:Gem::Version
|
189
|
-
version: 2.
|
175
|
+
version: 2.7.7
|
190
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
178
|
- - ">="
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '0'
|
195
181
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.5.3
|
197
183
|
signing_key:
|
198
184
|
specification_version: 4
|
199
185
|
summary: HTTP Caching for Rack
|