spree_core 4.0.0.rc3 → 4.0.0
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/order.rb +8 -0
- data/lib/spree/core/controller_helpers/store.rb +1 -1
- data/lib/spree/core/version.rb +1 -1
- data/spree_core.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c784614a14ca9019dd8effe620628917a726c4b173302a4e96a11cd8dde241
|
4
|
+
data.tar.gz: d50f4eefd34a384068ccb6eb814badec4e0cc829b52785bcafea37caa09e335a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b7df9743323b445496eb6ca7f8d326ef5f28c01d258455d61ccfcdfcf7ade994ba11fe5fca6bb8a83010f0fd571d40f6514adc416e0aab7332fd93be3d4916
|
7
|
+
data.tar.gz: c98509b281dd94ed9bcf13ffdc19bbdc54ac38c3e0027b93b28305f041522d12d23d77cd8cf5299084d7eb8f0b723803d4c1e2aa025299248f37409354f4b77f
|
data/app/models/spree/order.rb
CHANGED
@@ -617,6 +617,14 @@ module Spree
|
|
617
617
|
end
|
618
618
|
end
|
619
619
|
|
620
|
+
def valid_promotions
|
621
|
+
order_promotions.where(promotion_id: valid_promotion_ids).uniq(&:promotion_id)
|
622
|
+
end
|
623
|
+
|
624
|
+
def valid_promotion_ids
|
625
|
+
all_adjustments.eligible.nonzero.promotion.map { |a| a.source.promotion_id }.uniq
|
626
|
+
end
|
627
|
+
|
620
628
|
private
|
621
629
|
|
622
630
|
def link_by_email
|
data/lib/spree/core/version.rb
CHANGED
data/spree_core.gemspec
CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.add_dependency 'state_machines-activemodel', '~> 0.7'
|
41
41
|
s.add_dependency 'stringex'
|
42
42
|
s.add_dependency 'twitter_cldr', '~> 4.3'
|
43
|
+
s.add_dependency 'sprockets', '~> 3.7'
|
43
44
|
s.add_dependency 'sprockets-rails'
|
44
45
|
s.add_dependency 'mini_magick', '~> 4.9.4'
|
45
46
|
s.add_dependency 'image_processing', '~> 1.2'
|
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.0.0
|
4
|
+
version: 4.0.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-09
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -314,6 +314,20 @@ dependencies:
|
|
314
314
|
- - "~>"
|
315
315
|
- !ruby/object:Gem::Version
|
316
316
|
version: '4.3'
|
317
|
+
- !ruby/object:Gem::Dependency
|
318
|
+
name: sprockets
|
319
|
+
requirement: !ruby/object:Gem::Requirement
|
320
|
+
requirements:
|
321
|
+
- - "~>"
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
version: '3.7'
|
324
|
+
type: :runtime
|
325
|
+
prerelease: false
|
326
|
+
version_requirements: !ruby/object:Gem::Requirement
|
327
|
+
requirements:
|
328
|
+
- - "~>"
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
version: '3.7'
|
317
331
|
- !ruby/object:Gem::Dependency
|
318
332
|
name: sprockets-rails
|
319
333
|
requirement: !ruby/object:Gem::Requirement
|