response_bank 1.3.2 → 1.3.3

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: a2fbaca21dd928ad2b387d10300acbbb61dedca00a8cdab23247484af8c749bf
4
- data.tar.gz: a4f81948c53b5e574e5bd3cb3a3c9d621c387a3040706aa0ee873ffc5dab5362
3
+ metadata.gz: 14d74ea69a9a1c0eb4ff335172ac6b20f558faffbd3ae24dd6e93efcfd2a5384
4
+ data.tar.gz: e3cb5932250dae24d430c7db27b624da90057ddf92b3b2b51a5c3a98c6bc8e4f
5
5
  SHA512:
6
- metadata.gz: b3a0956f4ab5b627d4e80f4349c16cc830b49eecb602357b52aedc3e60703ddd2547bca663656d28b4525dfd9f47a4b67d226f9eaca4322ff9da1acfa1351c00
7
- data.tar.gz: 602e5ed4aca5b96d30b61fed0d90c814689424b986374f9f6030ee4f03c6c41db6138cd7542be475bd86c3cb94fcd77453d52a6e7b58c5d954f50ca2a25ead3b
6
+ metadata.gz: d784ab262b7643c9accc237eed90dd533492f5cb40b2b4b80d9e1a64b7ae244d5afc376a7e35adec4f0e5e8f7973339a9df432b8c7eae32fe8b785bd5c13ff4c
7
+ data.tar.gz: 99fd39c21b6323ca73d0d170ee991f6130982fea56654d12a9c76a4e62427e99bb026bb09462796e53be391a0634167fb4697a99c0dce2ab96381dd603949fcf
@@ -59,7 +59,7 @@ module ResponseBank
59
59
  end
60
60
 
61
61
  def entity_tag
62
- @entity_tag ||= ResponseBank.cache_key_for(key: @key_data, version: @version_data, key_schema_version: @key_schema_version)
62
+ @entity_tag ||= ResponseBank.cache_key_for(key: @key_data, version: @version_data, key_schema_version: @key_schema_version, encoding: @env['response_bank.server_cache_encoding'])
63
63
  end
64
64
 
65
65
  def cache_key
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ResponseBank
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
data/lib/response_bank.rb CHANGED
@@ -30,7 +30,7 @@ module ResponseBank
30
30
  backing_cache_store.read(cache_key, raw: true)
31
31
  end
32
32
 
33
- def compress(content, encoding = "gzip")
33
+ def compress(content, encoding = "br")
34
34
  case encoding
35
35
  when 'gzip'
36
36
  Zlib.gzip(content, level: Zlib::BEST_COMPRESSION)
@@ -41,7 +41,7 @@ module ResponseBank
41
41
  end
42
42
  end
43
43
 
44
- def decompress(content, encoding = "gzip")
44
+ def decompress(content, encoding = "br")
45
45
  case encoding
46
46
  when 'gzip'
47
47
  Zlib.gunzip(content)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: response_bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Lütke