identity_cache 1.5.4 → 1.5.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: 8a7b8ac895d1bdef7695e310042d3699d5d9b279c12d538eb3a577b51cc27acd
4
- data.tar.gz: a423c92964c108f8038202ac4ef996697023b39c2db445635d4365a7d81e19fb
3
+ metadata.gz: 43aca383629f04c700149023fc492f57bd999c1a6ff46b48284d63860921bd19
4
+ data.tar.gz: 4c83589f1f2ce435af22b232178983183bb70c3ec0bd4d02e52b955267e4f9c5
5
5
  SHA512:
6
- metadata.gz: 65487956cfd97f17abcf90bf6055283fe0b3840a5f01a82d69e570638c4f8cd10a75cda05a9b80c1eb0f6013d8f41a3f5b94a451417cd16c57e16b7ef4fa6081
7
- data.tar.gz: aa8ec598d2854332aa7054be7c4af26ec7c85271f15cd26b9967a74493e5ec7f91e636369ff0f144699f0ab9f1c719477713c5f069b7379f224c1e67d0c7c561
6
+ metadata.gz: a408644ef8964d9858fa67186f683310189323255e07a11af0b6d98719ca6ebd0743197c6a913b7545103c86630aba3bacbed993cd1d34e54488953206da4173
7
+ data.tar.gz: 1dd4579508796c4891f86d4f2f088a4c59ac02bbcf9b0d79a8363c57f71e327e5a4962b232b300c6713101e035efbcbb93d5b0d426f96ad54b05735a36cf4a37
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IdentityCache
4
- VERSION = "1.5.4"
4
+ VERSION = "1.5.5"
5
5
  CACHE_VERSION = 8
6
6
  end
@@ -151,6 +151,8 @@ module IdentityCache
151
151
  ensure_base_model
152
152
  raise_if_scoped
153
153
  ids.flatten!(1)
154
+ return [] if ids.none?
155
+
154
156
  records = cached_primary_index.fetch_multi(ids)
155
157
  prefetch_associations(includes, records) if includes
156
158
  records
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: identity_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Lopez
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2024-02-20 00:00:00.000000000 Z
17
+ date: 2024-02-27 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activerecord