spree_core 3.7.0.rc3 → 3.7.0

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: 4d67e4411295bf73afd62309af2b92174e0cbf53d5fde6cb708556176ca7e061
4
- data.tar.gz: 779f22575add68337aa6e33ecff55452776c125a3f587d4cf481743d294ab9a5
3
+ metadata.gz: 29650107328af4517005d07604fcb0bbb1b320f3b230cf525ea5b5185c6ba9ad
4
+ data.tar.gz: bb2bd5a002a4ea76220267ffce213bee8ada0b1729ff5aaae8b84f52e132905c
5
5
  SHA512:
6
- metadata.gz: 47b6cf3807d3cf870548cb82aae5ceaf7d9befe5e41a784ff63cb319126c5aa4c58a250a12b2de2666f65b3d7b850e9a996173cb1160d36caa483372c35d2bbd
7
- data.tar.gz: 513adfbb880c88d13db7aaf1b60bb1d624195c030e6205279fea2f82b4cc2d6fd7303189d8c826927c27584052eda38321753b032b9c31d6e021bcd16cfb5dc9
6
+ metadata.gz: 455068e019649a50acc0f6a362be017c5255631526f788824be75fa69c3579bcbd53d4338edd454142ec8011ae7a17832f4eed2cb7b52fe0c7424746187b635d
7
+ data.tar.gz: e3071c8e8a693ebad94d06e1bc73b15ffcdcefd809cb052577f3bfc2cfa05a097c423577ff50b093a46ad0d025976f6ab880056edb27b377ffd7282c08cd693e
@@ -23,7 +23,7 @@ module Spree
23
23
  private
24
24
 
25
25
  def item_available?(line_item, quantity)
26
- Stock::Quantifier.new(line_item.variant).can_supply?(quantity)
26
+ Spree::Stock::Quantifier.new(line_item.variant).can_supply?(quantity)
27
27
  end
28
28
  end
29
29
  end
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- '3.7.0.rc3'
3
+ '3.7.0'
4
4
  end
5
5
  end
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.rc3
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-01-28 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant