solidus_core 2.11.14 → 2.11.15
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/address.rb +1 -0
- data/app/models/spree/product.rb +1 -0
- data/app/models/spree/promotion_code.rb +2 -2
- data/lib/spree/core/version.rb +1 -1
- data/solidus_core.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 170be97648ddea982ac1e60483efd0c1c9f335e435e5f800b68610bf23588bf1
|
4
|
+
data.tar.gz: 43b3b39eba6eea77b196bb386d35f21cc6ab0fb4168a46a0ee0a440f9ba3f2ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a873724850ac63a210c93304bbe5f974a85299720677cdec7c67b841728728a42d376adce4685c53b0cfcbdf46c03b27c4e282ef9a626c7e3072e519adc1ec5
|
7
|
+
data.tar.gz: 657463dd2bff50cca895615e6e26660e9f3b36e4a79e6305b211364ea35aa9352eb0f7eeba798c6b339304c062c92965bcffea644b9faf9ef5e49901223d45ac
|
data/app/models/spree/address.rb
CHANGED
@@ -84,6 +84,7 @@ module Spree
|
|
84
84
|
# @return [Hash] hash of attributes contributing to value equality with optional merge
|
85
85
|
def self.value_attributes(base_attributes, merge_attributes = {})
|
86
86
|
base = base_attributes.stringify_keys.merge(merge_attributes.stringify_keys)
|
87
|
+
base.delete("name") unless Spree::Config.use_combined_first_and_last_name_in_address
|
87
88
|
|
88
89
|
name_from_attributes = Spree::Address::Name.from_attributes(base)
|
89
90
|
if base['firstname'].presence || base['first_name'].presence
|
data/app/models/spree/product.rb
CHANGED
@@ -5,12 +5,12 @@ class Spree::PromotionCode < Spree::Base
|
|
5
5
|
belongs_to :promotion_code_batch, class_name: "Spree::PromotionCodeBatch", optional: true
|
6
6
|
has_many :adjustments
|
7
7
|
|
8
|
+
before_validation :normalize_code
|
9
|
+
|
8
10
|
validates :value, presence: true, uniqueness: { allow_blank: true, case_sensitive: true }
|
9
11
|
validates :promotion, presence: true
|
10
12
|
validate :promotion_not_apply_automatically, on: :create
|
11
13
|
|
12
|
-
before_save :normalize_code
|
13
|
-
|
14
14
|
self.whitelisted_ransackable_attributes = ['value']
|
15
15
|
|
16
16
|
# Whether the promotion code has exceeded its usage restrictions
|
data/lib/spree/core/version.rb
CHANGED
data/solidus_core.gemspec
CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.add_dependency 'kaminari-activerecord', '~> 1.1'
|
40
40
|
s.add_dependency 'mini_magick', '~> 4.10'
|
41
41
|
s.add_dependency 'monetize', '~> 1.8'
|
42
|
-
s.add_dependency 'paperclip', '>= 4.
|
42
|
+
s.add_dependency 'kt-paperclip', '>= 4.4.0'
|
43
43
|
s.add_dependency 'paranoia', '~> 2.4'
|
44
44
|
s.add_dependency 'ransack', '~> 2.0'
|
45
45
|
s.add_dependency 'state_machines-activerecord', '~> 0.6'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -331,19 +331,19 @@ dependencies:
|
|
331
331
|
- !ruby/object:Gem::Version
|
332
332
|
version: '1.8'
|
333
333
|
- !ruby/object:Gem::Dependency
|
334
|
-
name: paperclip
|
334
|
+
name: kt-paperclip
|
335
335
|
requirement: !ruby/object:Gem::Requirement
|
336
336
|
requirements:
|
337
337
|
- - ">="
|
338
338
|
- !ruby/object:Gem::Version
|
339
|
-
version:
|
339
|
+
version: 4.4.0
|
340
340
|
type: :runtime
|
341
341
|
prerelease: false
|
342
342
|
version_requirements: !ruby/object:Gem::Requirement
|
343
343
|
requirements:
|
344
344
|
- - ">="
|
345
345
|
- !ruby/object:Gem::Version
|
346
|
-
version:
|
346
|
+
version: 4.4.0
|
347
347
|
- !ruby/object:Gem::Dependency
|
348
348
|
name: paranoia
|
349
349
|
requirement: !ruby/object:Gem::Requirement
|
@@ -986,8 +986,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
986
986
|
- !ruby/object:Gem::Version
|
987
987
|
version: 1.8.23
|
988
988
|
requirements: []
|
989
|
-
rubygems_version: 3.
|
990
|
-
signing_key:
|
989
|
+
rubygems_version: 3.0.3
|
990
|
+
signing_key:
|
991
991
|
specification_version: 4
|
992
992
|
summary: Essential models, mailers, and classes for the Solidus e-commerce project.
|
993
993
|
test_files: []
|