rails-brotli-cache 0.3.11 → 0.3.12

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: 2870c72930bbed4f3ccdc807cf5f62e692bc56456a1c456c123fc4d3b14b537c
4
- data.tar.gz: c12a04062bdae8ca70535ca15aad9a77953dff01618d544f9bd28408e222cfde
3
+ metadata.gz: 473f7e06756e422c9c3644f6eb8fbd97fb3c6929d74d5ede901c037c93df7db1
4
+ data.tar.gz: 25ce534d47267870cb70eb49ac849f4dc60073944372b3d26fd81a01dd360834
5
5
  SHA512:
6
- metadata.gz: 5683b7363fc845e04739e077315fc0d0e363d8dda8fc6dcc9d3f44eb2d0ec5e8a4dc4d45ef8e6d1354f7ba669c9befae4cd30dda3f1da553eec1ed73d4e41076
7
- data.tar.gz: 636786c88da156a5938cb8a637deebb916c354b0e0171ae0389085dae69dce5dbe10a627468432f217aaa3aba74fbdc03f957284607ab658713f2c6bbfa320fe
6
+ metadata.gz: e13c7a3fb0c0591dbb9dd4ccac8bf97aaf9d51ce1ec1d793fd08c678f6d8ba75b65f45f6612a12bbf8a76fc49d7865f591d466753b0d699f474fd33cc8413ab0
7
+ data.tar.gz: 4f0d2fc6e0e2e17e3212a53709fc31831bc62394daad757e1060a323dd46031daaa3ac72be67df254cfd4df8dd71751d31c70567eb217e25ec614dadc29792d3
@@ -62,6 +62,7 @@ module RailsBrotliCache
62
62
  end
63
63
 
64
64
  def write_multi(hash, options = nil)
65
+ options ||= {}
65
66
  new_hash = hash.map do |key, val|
66
67
  [
67
68
  cache_key(key),
@@ -69,7 +70,10 @@ module RailsBrotliCache
69
70
  ]
70
71
  end
71
72
 
72
- @core_store.write_multi(new_hash, options)
73
+ @core_store.write_multi(
74
+ new_hash,
75
+ options.merge(compress: false)
76
+ )
73
77
  end
74
78
 
75
79
  def read_multi(*names)
@@ -85,7 +89,9 @@ module RailsBrotliCache
85
89
  options = names.extract_options!
86
90
  names = names.map { |name| cache_key(name) }
87
91
 
88
- @core_store.fetch_multi(*names, options) do |name|
92
+ @core_store.fetch_multi(
93
+ *names, options.merge(compress: false)
94
+ ) do |name|
89
95
  compressed(yield(name), options)
90
96
  end
91
97
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsBrotliCache
4
- VERSION = "0.3.11"
4
+ VERSION = "0.3.12"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-brotli-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb