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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc23ad28701bc9e25cd808d4bc42e38f8090ae8e172f9ef6e5df26e928aeb33
|
4
|
+
data.tar.gz: efdb00baa4949466649fcfa6090089d69755b0242ebe926c00004c702b02c575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/rails-brotli-cache.gemspec
CHANGED
@@ -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
|
+
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-
|
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:
|