spree_core 4.1.8 → 4.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/variant.rb +5 -1
- data/lib/spree/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 735a7c4cad6166518bb05cc45fcc5a2f303e1b4a11f5ec9ae1e17a6df5916142
|
4
|
+
data.tar.gz: a62c2b5fec62e7c9bf7971198f3805c573785c9e9768d88c61b3ae89b578c31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b68dc35a114eaa937dc25fc06576065d8b56baa23d4839cdfa401c08fb5f85638e65d924cba0f9f84b9585761eb3855cf938811c288578968aee2d0ef3e2bb
|
7
|
+
data.tar.gz: 67270a8f7d20847ddcced170c3ebb82b419d89ffff202905d4a9161b13cd526a954b67367bf925133822a0903e5a7a41e81f2f11e4abadf7d9b375b5bdf54793
|
data/app/models/spree/variant.rb
CHANGED
@@ -232,7 +232,11 @@ module Spree
|
|
232
232
|
end
|
233
233
|
|
234
234
|
def in_stock?
|
235
|
-
|
235
|
+
# Issue 10280
|
236
|
+
# Check if model responds to cache version and fall back to updated_at for older rails versions
|
237
|
+
# This makes sure a version is supplied when recyclable cache keys are disabled.
|
238
|
+
version = respond_to?(:cache_version) ? cache_version : updated_at.to_i
|
239
|
+
Rails.cache.fetch(in_stock_cache_key, version: version) do
|
236
240
|
total_on_hand > 0
|
237
241
|
end
|
238
242
|
end
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -1085,9 +1085,9 @@ licenses:
|
|
1085
1085
|
- BSD-3-Clause
|
1086
1086
|
metadata:
|
1087
1087
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
1088
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.1.
|
1088
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.1.9
|
1089
1089
|
documentation_uri: https://guides.spreecommerce.org/
|
1090
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.1.
|
1090
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.1.9
|
1091
1091
|
post_install_message:
|
1092
1092
|
rdoc_options: []
|
1093
1093
|
require_paths:
|