rails-brotli-cache 0.4.4 → 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: 25d1a71b5e57f6f4c61612ff8c4cfb99d88aba2ed41b8f2436191c5c3e31904b
4
- data.tar.gz: c9305dc9477b54c0072395d6e55ede962b9c311e907025c84d1ab5dc6fdf648d
3
+ metadata.gz: 2fc23ad28701bc9e25cd808d4bc42e38f8090ae8e172f9ef6e5df26e928aeb33
4
+ data.tar.gz: efdb00baa4949466649fcfa6090089d69755b0242ebe926c00004c702b02c575
5
5
  SHA512:
6
- metadata.gz: b890c5e6b89cd6150fb5e965adecfa2963cce3de9ef4a474c70a66ba7e91f5dc21bba69eed3963e7ec84ddece396cc22be18150a2d0dc54fcf0ea92c4b7be877
7
- data.tar.gz: 00d8463045555382d2d59bfff056470c6066042860332d30b9cd127166be119a70c28bf39241c144413a032a6fbc87127872945213d56fbb8bf52bf86d36a73c
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.4"
4
+ VERSION = "0.4.6"
5
5
  end
@@ -21,4 +21,8 @@ Gem::Specification.new do |gem|
21
21
  gem.add_development_dependency "redis"
22
22
  gem.add_development_dependency "dalli"
23
23
  gem.add_development_dependency "byebug"
24
+
25
+ if gem.respond_to?(:metadata=)
26
+ gem.metadata = { "rubygems_mfa_required" => "true" }
27
+ end
24
28
  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.4
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-05 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
@@ -167,7 +167,8 @@ files:
167
167
  homepage: https://github.com/pawurb/rails-brotli-cache
168
168
  licenses:
169
169
  - MIT
170
- metadata: {}
170
+ metadata:
171
+ rubygems_mfa_required: 'true'
171
172
  post_install_message:
172
173
  rdoc_options: []
173
174
  require_paths: