rails-brotli-cache 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8625763513363be86da9d238d61e3db90c5052e9c15bb4327b0f64b799b5440
4
- data.tar.gz: dd4ad2c3ecb8ddd622dbc202238e535dd6ac28281efba003f07d3b1f6d0add49
3
+ metadata.gz: 2fc23ad28701bc9e25cd808d4bc42e38f8090ae8e172f9ef6e5df26e928aeb33
4
+ data.tar.gz: efdb00baa4949466649fcfa6090089d69755b0242ebe926c00004c702b02c575
5
5
  SHA512:
6
- metadata.gz: 22c8e8dee56147934a6923d908af3c02b30f78194cd15128b0b4fb1f7d015eaae132d0206d73323c4d712bc33fc938175d8a881ad468df52d084cbd99f6b5e4a
7
- data.tar.gz: 2cc953e90c76b4d7e893afe744ebeaff397372ab1b49445aaa524d5ac6ffc9ecc65210a360b0c74850f9c80a29a2807d81d35acf43b93e0b80c8806a8fec35cf
6
+ metadata.gz: 2162ea8442386415372396ef1dbf89241b0d9a03661b6873b1da46b9f83ac9d534efa942eb8786c208acc83c64bef89dfbc802ec4bae5ded41d04b2d29e5e8db
7
+ data.tar.gz: 27b73bd1e0b299e866036962d21e0ba74393d886d82c385ad06b144292c24ec67ce20df918a3074f4407848aa7b8db2d4926585dc85c786e62569df2bdcad7f2
@@ -124,8 +124,8 @@ module RailsBrotliCache
124
124
  @core_store.delete(expanded_cache_key(name), options)
125
125
  end
126
126
 
127
- def clear
128
- @core_store.clear
127
+ def clear(options = {})
128
+ @core_store.clear(**options)
129
129
  end
130
130
 
131
131
  def increment(name, amount = 1, **options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsBrotliCache
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6"
5
5
  end
@@ -211,4 +211,13 @@ describe RailsBrotliCache do
211
211
  expect(cache_store.read("test-key")).to eq nil
212
212
  end
213
213
  end
214
+
215
+ describe "#clear" do
216
+ it "clears the cache" do
217
+ expect(cache_store.write("test-key", 1234))
218
+ expect(cache_store.read("test-key")).to eq 1234
219
+ cache_store.clear
220
+ expect(cache_store.read("test-key")).to eq nil
221
+ end
222
+ end
214
223
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-brotli-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails