rack-cache 1.7.1 → 1.7.2
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 +5 -5
- data/CHANGES +4 -0
- data/README.md +3 -4
- data/lib/rack/cache/key.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2deaf65188206af126faafb3511a00fa1eebf7b2cde64dd638045bd84b391c5b
|
4
|
+
data.tar.gz: 8ef7e0dcbb043c049b3f0d27237c8e31b647f6d84e71669d86fd21dd0a138e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd11ceb389f99d43df656f9cd4a8dd68635b1d2ed097decd0985290c2d7f02c5aed4d164a84be1edf86eccdc6398acc10c6e259e7d81447ef7d1e0ff1c50d71a
|
7
|
+
data.tar.gz: 80ba759bd38fc3a6e9fa5047a5a1297643ce4b10019c7e536df1b1776aa6fd13d83c28399eefc4782d69a118fb867dba7b2598087241d7313def24b42fc0ba84
|
data/CHANGES
CHANGED
data/README.md
CHANGED
@@ -55,16 +55,15 @@ caching.
|
|
55
55
|
Using with Rails
|
56
56
|
----------------
|
57
57
|
|
58
|
-
Either of these but not both:
|
59
|
-
|
60
58
|
```Ruby
|
61
59
|
# config/application.rb
|
62
60
|
config.action_dispatch.rack_cache = true
|
63
61
|
# or
|
64
|
-
config.
|
62
|
+
config.action_dispatch.rack_cache = {
|
65
63
|
verbose: true,
|
66
64
|
metastore: 'file:/var/cache/rack/meta',
|
67
65
|
entitystore: 'file:/var/cache/rack/body'
|
66
|
+
}
|
68
67
|
```
|
69
68
|
|
70
69
|
You should now see `Rack::Cache` listed in the middleware pipeline:
|
@@ -111,5 +110,5 @@ run app
|
|
111
110
|
```
|
112
111
|
|
113
112
|
License: MIT<br/>
|
114
|
-
[](https://travis-ci.org/rtomayko/rack-cache)
|
115
114
|
|
data/lib/rack/cache/key.rb
CHANGED
@@ -40,7 +40,7 @@ module Rack::Cache
|
|
40
40
|
# Build a normalized query string by alphabetizing all keys/values
|
41
41
|
# and applying consistent escaping.
|
42
42
|
def query_string
|
43
|
-
return nil if @request.query_string.
|
43
|
+
return nil if @request.query_string.to_s.empty?
|
44
44
|
|
45
45
|
@request.query_string.split(/[&;] */n).
|
46
46
|
map { |p| p.split('=', 2).map{ |s| unescape(s) } }.
|
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.7.
|
4
|
+
version: 1.7.2
|
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: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 2.0.0
|
160
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
162
|
- - ">="
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.7.6
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: HTTP Caching for Rack
|