Skip to content

Commit

Permalink
code style fix and revert version change
Browse files Browse the repository at this point in the history
  • Loading branch information
evman182 committed Feb 26, 2024
1 parent 7e94fc1 commit 70282c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rack/cache/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Rack
module Cache
VERSION = '1.15.1'
VERSION = '1.15.0'
end
end
2 changes: 1 addition & 1 deletion test/meta_store_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def self.call(request); request.path_info.reverse end
it 'purges meta store entry when the entry does not contain the digest header' do
cache_key = store_simple_entry
meta_entry = @store.read(cache_key)
meta_entry.select { |e| e.is_a?(Array) }.flatten.each { |h| h.is_a?(Hash) && h.delete('x-content-digest') }
meta_entry.grep(Array).flatten.each { |h| h.is_a?(Hash) && h.delete('x-content-digest') }
@store.write(cache_key, meta_entry)
mock = Minitest::Mock.new
mock.expect :call, nil, [@store.cache_key(@request)]
Expand Down

0 comments on commit 70282c9

Please sign in to comment.