alchemy-solidus 7.2.0 → 7.2.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: 77954ca9d6174ea4262e2e3c4f0dbaf12bedcb73cf0e6c8e7bf9a494a21137d9
4
- data.tar.gz: 49a502cf77db1d3de5e97c5c6daec8969634d4a6824de0fa8eac2a3431e1cd1b
3
+ metadata.gz: 7e50bb72fd9136b75ae2b8ea66ca80acb37edf3322f2aa750e0ca1f9bc5e1071
4
+ data.tar.gz: b6cbccde4616f51672baf1b45df5f06d11ad63edf13fdb0c1a6f100ee0b9e819
5
5
  SHA512:
6
- metadata.gz: c5170fe4efea30461da729cf74fdec25ea150672fb5f11a9523483454b6bdf7c54cdd42fa1bf9ae275ca188a8cfb87169217f283052fe7629d9842184f8825dc
7
- data.tar.gz: 26cf50a9d2592b0f92a3bcc6e1a3b0f7e4392a5d1e971b045aafa832789793c8febf599662c30c1401e68befb5b5a2383e5ec20ae9c119a4d6d74d7257fe9d65
6
+ metadata.gz: a8324f5ffbf7fc02fd449f30d6b3bb80378cf188b3b4f6f966bcf95b467437160f0511e37eabf1e19ee6a6ae4bf970fb4491b5f6c99989dff9abf1fdedc59fb1
7
+ data.tar.gz: 5dd149df193cfe5638e9abd2d73d127d6c334de0d2a7ab7cebc868b98e34249af41796b4ad3518b9b1a35d50796c616f8609da2d1fee924df41c7c8288369365
@@ -7,6 +7,21 @@ module Spree
7
7
  base.has_many :alchemy_ingredients, class_name: "Alchemy::Ingredients::SpreeProduct", as: :related_object, dependent: :nullify
8
8
  end
9
9
 
10
+ private
11
+
12
+ # Overwritten Solidus' default behavior
13
+ #
14
+ # The Solidus implementation did not trigger `touch` on taxons, but
15
+ # updated the `updated_at` timestamp in an `update_all`.
16
+ #
17
+ # Since we want to invalidate ingredient spree taxons cache as well
18
+ # we need to use `touch` here and use the `after_touch` callback of
19
+ # Spree::Taxon
20
+ #
21
+ def touch_taxons
22
+ taxons.each(&:touch)
23
+ end
24
+
10
25
  ::Spree::Product.prepend self
11
26
  end
12
27
  end
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module Solidus
3
- VERSION = "7.2.0"
3
+ VERSION = "7.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-solidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 7.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '7.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 7.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: solidus_core
35
35
  requirement: !ruby/object:Gem::Requirement