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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/graphql/fragment_cache/railtie.rb +7 -6
- data/lib/graphql/fragment_cache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 241af11e5f9aa966c8c544a72a4dc2a92f63267e503636962b198b658727c9d8
|
4
|
+
data.tar.gz: 4e4abd9fbc612dcdbd534466e3ea86f72f990117a98970573b1ffc66d4305bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
|
+
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-
|
11
|
+
date: 2024-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|