identity_cache 1.0.0 → 1.0.1

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: 9236be16375bc831c91f69bcc86968cf036c361c173e79cfd8ea4eb43d707787
4
- data.tar.gz: 45e4acef2ef66d7262ce1b4c6d7b7fa33762c26fa99f31700cd44a4091dde8c4
3
+ metadata.gz: 158f781c33b7598cf11e055a5364c11135ed9b327fdfed43cc9e158e80e60859
4
+ data.tar.gz: 99ec56a2252eeecb2093ded56cc4d24bd4834f3c3a4ea66f6fcba282b1b69415
5
5
  SHA512:
6
- metadata.gz: 7f9c79056ccbb938299b3fb6fd3e62af44f9117140df1b714a758be2aa4d864ffb1df589ba0a6220786db3bdb005326e794ea9340629146e478ffb2f3a3574cf
7
- data.tar.gz: abc0e209fe35c8fc5ed6e470221a3e86cdeca23e81fc5c294d817cf3011c9ccf3a8dbf58096414c84be4b6b1e40ce4816b36703ed2b72da7dbafa4a78235e51d
6
+ metadata.gz: 67b74b2f97d860715191015a98ac031be4bd4d32acb42dfd536ed60d7a821095bbb141055acd0b69b6b58bf82b3be89d496d545097d9286d70645705a1f8a419
7
+ data.tar.gz: aec8463264ca83de413a99691424f5a22cb01e3c78fa31ab42b5f413745040a135b32007dbd5a786e9efafad4651412d53305e4b860b5fd0b8a783f876f4d305
@@ -1,5 +1,9 @@
1
1
  # IdentityCache changelog
2
2
 
3
+ #### 1.0.1
4
+
5
+ - Fix expiry of cache_has_one association with scope and `embed: :id` (#442)
6
+
3
7
  #### 1.0.0
4
8
 
5
9
  - Remove inverse_name option. Specify inverse_of on the Active Record association instead. (#439)
@@ -16,7 +16,7 @@ module IdentityCache
16
16
  attr_reader :cached_association
17
17
 
18
18
  def only_on_foreign_key_change?
19
- cached_association.embedded_by_reference?
19
+ cached_association.embedded_by_reference? && !cached_association.reflection.has_scope?
20
20
  end
21
21
 
22
22
  def inverse_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module IdentityCache
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  CACHE_VERSION = 8
5
5
  end
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.0.0
4
+ version: 1.0.1
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: 2020-02-13 00:00:00.000000000 Z
17
+ date: 2020-02-14 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: ar_transaction_changes