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 +4 -4
- data/CHANGELOG.md +10 -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,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
|
-
|
|
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
|