rack-cache 1.11.0 → 1.11.1

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/key.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e2ca34b16edeb06ab8ce7df32ad78b273b600cd950ce3b56d03b898bf00e53f
4
- data.tar.gz: 5d35c87987859feb36e5f24b3b065ac790c6dc4f3df0969e41aaa6f15819ab94
3
+ metadata.gz: 72c6863d1ab30f180c440983790218237cb542bf35a9636a7de7ac05696a5849
4
+ data.tar.gz: 684819d0453cd2dda5484614710953e8bc195ff754aab219bc2c86ea6ced068a
5
5
  SHA512:
6
- metadata.gz: 1d156a65178883329c11d00024f60af8d013cd4fe2a3def6d930c43d822c76dd1bd9b6d26d965209fbfdc038e79cff96a5efd973deadace39e0b83097c332ec5
7
- data.tar.gz: 9a3b6fdc70f24de95a8cc02d3d9180c5c59f277156605ddca2b295e56542f81b0433fb8da279d0f337d49d4352e0e2500be4a468fc75a61c5b13eadccf1b3cc7
6
+ metadata.gz: 1ada4b8f869a5c8bb0308d2270351a42c280f2e1d6cba6553666d70878672ce702e132ace809ac7f5b30fb5704bfa8570b041d5fd00d5e1d7e479b9d445095c3
7
+ data.tar.gz: 4faff3e9359720d9328db752a14f4cf321ccf752806c07afbceca7fe476a389e4b23923f3819caa0fe568a56c235a5a3476a93bb502c5709a1403f316fff5f36
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.11.1
2
+
3
+ * when ignoring parts of the query, remove query in key when all params are ignored
4
+
1
5
  ## 1.11.0
2
6
 
3
7
  * Add a proc to allow ignoring parts of the query string in the key
@@ -62,7 +62,7 @@ module Rack::Cache
62
62
  parts.sort!
63
63
  parts.reject!(&self.class.query_string_ignore)
64
64
  parts.map! { |k,v| "#{escape(k)}=#{escape(v)}" }
65
- parts.join('&')
65
+ parts.empty? ? nil : parts.join('&')
66
66
  end
67
67
  end
68
68
  end
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.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-06 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack