graphql-fragment_cache 1.18.0 → 1.18.2

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: 4e48196795d709c0be05c78989abeb3cd3f185f6d0545d4fe3719861dabb4456
4
- data.tar.gz: e9efc489b2e3dd907e16db7c63930d8d7251096287c369122401221a97890946
3
+ metadata.gz: 215c608d8efe694c8ef1a29d9b28017a1d3761e1e94ccd6fc4e0537bda1b8147
4
+ data.tar.gz: 6e6e3844588d2609800fdb1457497274ab2d3ef7f8a451453f7de80392b6035c
5
5
  SHA512:
6
- metadata.gz: 3ef9f0b47cf0c465c692d7624db882b99e746be3412345d2ce5e2b77a8c6754323fe7c784eea345b1a7b91cf07b0c2bec4fc737299f0c97fa3dce5fb5bde0797
7
- data.tar.gz: e7024e141fd80a08d30eea830812297b82737c2204c024c4375aacdaff4524baebc44c62506a3df62b947142e57463d0adf714c1f4ff1b4b3ec4d58dee785a5a
6
+ metadata.gz: fb42ddae446779eba82de1b482d244e657bfbde228319c89efe37d3a3a97b0cea77235e3211ca2d82fc885b4f06ffc2933136f739dfe50a6ff3d128d11c8ed16
7
+ data.tar.gz: 85bb1ae8bc9707567757a20fb57bf6824c75b245f79db88fefb8c63e3e3c4fd37f2bbd3cb80c98a394e88f4fb3c13f90f78c27a9db06f02cb65091f5163d2a7e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.18.2 (2023-02-21)
6
+
7
+ - [PR#100](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/100) Fix an error when `path_cache_key` is nil ([@rince][])
8
+
9
+ ## 1.18.1 (2023-01-06)
10
+
11
+ - [PR#96](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/96) Properly pass arguments to `write_multi` ([@DmitryTsepelev][])
12
+
5
13
  ## 1.18.0 (2022-12-28)
6
14
 
7
15
  - [PR#94](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/94) Ruby 3 support ([@DmitryTsepelev][])
@@ -168,3 +176,4 @@
168
176
  [@daukadolt]: https://github.com/daukadolt
169
177
  [@frostmark]: https://github.com/frostmark
170
178
  [@KTSCode]: https://github.com/KTSCode
179
+ [@rince]: https://github.com/rince
@@ -177,6 +177,8 @@ module GraphQL
177
177
  end
178
178
 
179
179
  def simple_path_cache_key
180
+ return if path_cache_key.nil?
181
+
180
182
  path_cache_key.split("(").first
181
183
  end
182
184
 
@@ -177,6 +177,8 @@ module GraphQL
177
177
  end
178
178
 
179
179
  def simple_path_cache_key
180
+ return if path_cache_key.nil?
181
+
180
182
  path_cache_key.split("(").first
181
183
  end
182
184
 
@@ -177,6 +177,8 @@ module GraphQL
177
177
  end
178
178
 
179
179
  def simple_path_cache_key
180
+ return if path_cache_key.nil?
181
+
180
182
  path_cache_key.split("(").first
181
183
  end
182
184
 
@@ -47,7 +47,7 @@ module GraphQL
47
47
  hash = group.map { |fragment| [fragment.cache_key, fragment.value] }.to_h
48
48
 
49
49
  begin
50
- FragmentCache.cache_store.write_multi(*hash, options)
50
+ FragmentCache.cache_store.write_multi(hash, options)
51
51
  rescue => e
52
52
  raise WriteMultiError.new(e, hash)
53
53
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module FragmentCache
5
- VERSION = "1.18.0"
5
+ VERSION = "1.18.2"
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.18.0
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-28 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.4.1
238
+ rubygems_version: 3.4.6
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Fragment cache for graphql-ruby