graphql-fragment_cache 1.20.3 → 1.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f580417b89128378d1b76c5ea11b24bb272a8f7fa30713b42d5c81a212d9cd67
4
- data.tar.gz: 837c9cec653c5dbdd6a25932576d9e4abf5c82650c0b9610515e640307f715f4
3
+ metadata.gz: 241af11e5f9aa966c8c544a72a4dc2a92f63267e503636962b198b658727c9d8
4
+ data.tar.gz: 4e4abd9fbc612dcdbd534466e3ea86f72f990117a98970573b1ffc66d4305bfc
5
5
  SHA512:
6
- metadata.gz: bf0aa30ceea8cbec00ce47340886812b770fb933a82256089255eb537639a5db239818b694a53fd687a5b8208030855f872058b0df6d3e07852a0cd2aaa6bbe4
7
- data.tar.gz: cb8e62a66a20c271843f477e73422e9564f74a097cc08e74436ef0af76640a954158ff145b139ae86261a267670a7a55a67e498a6c6289b14797abaadcb3ff2b
6
+ metadata.gz: 994673b1241a0de72655671fc7b3de19fa182191ed41263c184138a5a79ef338e8d167d51d54193131bbd3fb4af281caa72df3308748cf98a2f8478fb40b7029
7
+ data.tar.gz: a2d13a3eb6f124cac0e5820afeac651c29e7b087649a350fe92dc29ba719b3bd5257fed7896a15a3e5332ba6502275096f36cd991b2aad0696846bcb52acb840
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
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
+
9
+ ## 1.20.4 (2024-10-05)
10
+
11
+ - [PR#119](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/119) Fix Rails cache_format_version deprecation ([@noma4i][])
12
+
5
13
  ## 1.20.3 (2024-09-06)
6
14
 
7
15
  - [PR#117](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/117) Deprecate old ruby and gql versions ([@DmitryTsepelev][])
@@ -201,3 +209,5 @@
201
209
  [@rince]: https://github.com/rince
202
210
  [@camero2734]: https://github.com/camero2734
203
211
  [@diegofigueroa]: https://github.com/diegofigueroa
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 = Rails.application.config.active_support.cache_format_version
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.3"
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.3
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-09-06 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