rails-brotli-cache 0.3.9 → 0.3.10

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: 4d2d42ab4cc77a7965e7d04b70b07a672b657d9b4b54be4814f8716595254d8e
4
- data.tar.gz: f81c51e38be663e108538b138fecc80ed726fa701f00e98b658ec028a49528ba
3
+ metadata.gz: 9c5512004d2aecf612e5d79e2b1718466af061f9e4365f2589d767a8d28bf523
4
+ data.tar.gz: 89bffbc70d9cd93e8daf4e65731d4023f82703910b0dc333b3fc07775409ae7b
5
5
  SHA512:
6
- metadata.gz: cd18abde6498cd2fd982deb14eac6150c6cddbad7ec418a24fe5bf8dca78458354b5b5419f572311652369ff0f1c20e9d398c7b340195e48028ef6f3ce39a517
7
- data.tar.gz: a5b278df40d8afd4f48e0bf3f1e2c0487b2b3e66e75ecb2c6c937aac483426ea3309081cce6af946e94a88dd984160b5b91ee318129d8b1c92b3a3e41a33d29f
6
+ metadata.gz: 329a2f361c842187b6c1afc4585dec17638950503908bd9991f83b4243eb8a798903a10a6537650acb6cf229dd1327b79e8bea5467c2abde07f64e926656c08a
7
+ data.tar.gz: fbb555285118d28986c453b2a7c7935ce35a8d06d88d581888f54bff82426e2f8b705a21e42d7b2d63ce18ee20e277c3a08b2e11ff9d1701c41377501faa5088
@@ -42,13 +42,6 @@ module RailsBrotliCache
42
42
  end
43
43
 
44
44
  def write(name, value, options = nil)
45
- if value.is_a?(Integer)
46
- return @core_store.write(
47
- cache_key(name),
48
- value
49
- )
50
- end
51
-
52
45
  options = (options || {}).reverse_merge(compress: true)
53
46
  payload = compressed(value, options)
54
47
 
@@ -126,6 +119,7 @@ module RailsBrotliCache
126
119
  private
127
120
 
128
121
  def compressed(value, options)
122
+ return value if value.is_a?(Integer)
129
123
  options ||= {}
130
124
  serialized = Marshal.dump(value)
131
125
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsBrotliCache
4
- VERSION = "0.3.9"
4
+ VERSION = "0.3.10"
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.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb