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.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +4 -0
  3. data/README.md +3 -4
  4. data/lib/rack/cache/key.rb +1 -1
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1e47b46344d3ab3b5ff9993516e85a8c840a0d35
4
- data.tar.gz: 44c3a6c1a3f31f304d2c38eaea81d4b253d5e43c
2
+ SHA256:
3
+ metadata.gz: 2deaf65188206af126faafb3511a00fa1eebf7b2cde64dd638045bd84b391c5b
4
+ data.tar.gz: 8ef7e0dcbb043c049b3f0d27237c8e31b647f6d84e71669d86fd21dd0a138e60
5
5
  SHA512:
6
- metadata.gz: 47949eee685d0b35d4e16fb5e321fca7c027e1f940c6e1c7132b0d42612595a0541faa12d03361030f1dad5bfbf453c23cf82488cc376c3bd12ffdbb99c6239a
7
- data.tar.gz: c2e0a5bea5febf551273d9681c00bc824bdd41c6a7b36f80b09475feaccd7e7705c2ec946270dd94435c55eeb43aaff7dea82f6d26e56a216f5d8f864d8fabe7
6
+ metadata.gz: fd11ceb389f99d43df656f9cd4a8dd68635b1d2ed097decd0985290c2d7f02c5aed4d164a84be1edf86eccdc6398acc10c6e259e7d81447ef7d1e0ff1c50d71a
7
+ data.tar.gz: 80ba759bd38fc3a6e9fa5047a5a1297643ce4b10019c7e536df1b1776aa6fd13d83c28399eefc4782d69a118fb867dba7b2598087241d7313def24b42fc0ba84
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.7.2
2
+
3
+ * fix key generation for requests with no query strings
4
+
1
5
  ## 1.7.0
2
6
 
3
7
  * Meta stores now receive a third ttl argument to write when use_native_ttl is used.
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.middleware.use Rack::Cache,
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
- [![Build Status](https://travis-ci.org/rtomayko/rack-cache.png)](https://travis-ci.org/rtomayko/rack-cache)
113
+ [![Build Status](https://travis-ci.org/rtomayko/rack-cache.svg)](https://travis-ci.org/rtomayko/rack-cache)
115
114
 
@@ -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.nil?
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.1
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: 2017-09-06 00:00:00.000000000 Z
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: 1.9.3
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.5.1
167
+ rubygems_version: 2.7.6
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: HTTP Caching for Rack