spree_core 3.7.0.rc3 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29650107328af4517005d07604fcb0bbb1b320f3b230cf525ea5b5185c6ba9ad
|
|
4
|
+
data.tar.gz: bb2bd5a002a4ea76220267ffce213bee8ada0b1729ff5aaae8b84f52e132905c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 455068e019649a50acc0f6a362be017c5255631526f788824be75fa69c3579bcbd53d4338edd454142ec8011ae7a17832f4eed2cb7b52fe0c7424746187b635d
|
|
7
|
+
data.tar.gz: e3071c8e8a693ebad94d06e1bc73b15ffcdcefd809cb052577f3bfc2cfa05a097c423577ff50b093a46ad0d025976f6ab880056edb27b377ffd7282c08cd693e
|
|
@@ -38,9 +38,9 @@ module Spree
|
|
|
38
38
|
# correct rate amounts in the future. For example:
|
|
39
39
|
# https://github.com/spree/spree/issues/4318#issuecomment-34723428
|
|
40
40
|
def self.store_pre_tax_amount(item, rates)
|
|
41
|
-
pre_tax_amount = case item
|
|
42
|
-
when Spree::LineItem then item.discounted_amount
|
|
43
|
-
when Spree::Shipment then item.discounted_cost
|
|
41
|
+
pre_tax_amount = case item.class.to_s
|
|
42
|
+
when 'Spree::LineItem' then item.discounted_amount
|
|
43
|
+
when 'Spree::Shipment' then item.discounted_cost
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
included_rates = rates.select(&:included_in_price)
|
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: 3.7.0
|
|
4
|
+
version: 3.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Schofield
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemerchant
|