graphql-fragment_cache 1.20.4 → 1.20.5

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: 60e358fe9888ea1f73756e680a2cc7b6182a64986d42f5a59f94b2fca726764e
4
- data.tar.gz: 794e7475d1e224a4f86da8f7326cd060dbfcf875da97b31c7dd6a1b5d17cef58
3
+ metadata.gz: 241af11e5f9aa966c8c544a72a4dc2a92f63267e503636962b198b658727c9d8
4
+ data.tar.gz: 4e4abd9fbc612dcdbd534466e3ea86f72f990117a98970573b1ffc66d4305bfc
5
5
  SHA512:
6
- metadata.gz: 327232242668577406dd4eefc0ed35aa9349e26d77d2b7205814a9456f431785e02e414348c541dd84f9a525f1e9f58766af6698b0b0318b99cd4c01dd0c073a
7
- data.tar.gz: be792187fb433608540d1da350be76353ce14b36137ea9ba25b480805787a3ebcb3500a9077dae0ede01ff8c965732491e63a23157dff2bc5afab89079ae26f9
6
+ metadata.gz: 994673b1241a0de72655671fc7b3de19fa182191ed41263c184138a5a79ef338e8d167d51d54193131bbd3fb4af281caa72df3308748cf98a2f8478fb40b7029
7
+ data.tar.gz: a2d13a3eb6f124cac0e5820afeac651c29e7b087649a350fe92dc29ba719b3bd5257fed7896a15a3e5332ba6502275096f36cd991b2aad0696846bcb52acb840
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.20.5 (2024-11-02)
6
+
7
+ - [PR#120](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/120) Fix warning on ActiveSupport::Cache.format_version ([@Drowze][])
8
+
5
9
  ## 1.20.4 (2024-10-05)
6
10
 
7
11
  - [PR#119](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/119) Fix Rails cache_format_version deprecation ([@noma4i][])
@@ -206,3 +210,4 @@
206
210
  [@camero2734]: https://github.com/camero2734
207
211
  [@diegofigueroa]: https://github.com/diegofigueroa
208
212
  [@noma4i]: https://github.com/noma4i
213
+ [@Drowze]: https://github.com/Drowze
@@ -10,11 +10,6 @@ module GraphQL
10
10
  module Config
11
11
  class << self
12
12
  def store=(store)
13
- if Rails.version.to_f >= 7.0 && Rails.application
14
- cache_format_version = 7.0
15
- ActiveSupport::Cache.format_version = cache_format_version if cache_format_version
16
- end
17
-
18
13
  # Handle both:
19
14
  # store = :memory
20
15
  # store = :mem_cache, ENV['MEMCACHE']
@@ -30,7 +25,13 @@ module GraphQL
30
25
  config.graphql_fragment_cache = Config
31
26
 
32
27
  if ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test"
33
- config.graphql_fragment_cache.store = :null_store
28
+ initializer "graphql-fragment_cache" do
29
+ config.graphql_fragment_cache.store = if Rails.version.to_f >= 7.0
30
+ [:null_store, serializer: :marshal_7_0]
31
+ else
32
+ :null_store
33
+ end
34
+ end
34
35
  end
35
36
  end
36
37
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module FragmentCache
5
- VERSION = "1.20.4"
5
+ VERSION = "1.20.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-fragment_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.4
4
+ version: 1.20.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-05 00:00:00.000000000 Z
11
+ date: 2024-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql