spree_core 4.0.0.rc1 → 4.0.0.rc2
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/customer_return.rb +1 -1
- data/app/models/spree/option_value.rb +1 -1
- data/app/models/spree/payment.rb +1 -1
- data/app/models/spree/product.rb +1 -1
- data/app/models/spree/shipment.rb +1 -1
- data/app/models/spree/stock_location.rb +1 -1
- data/app/models/spree/taxon.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: 60f1421b7468857f6c74fd7ab214f09a14c886b13e42110b53c6a22529691343
|
4
|
+
data.tar.gz: 5d64b1bb1fa0866edd1778e6e01f79d1af23391633faf8cc08afbead4d519fcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd4e217e4a314c1aafd05a682bd8e7b98107581e81d16419002b385f40ff633ee4c40ebd6b5a174e80e004c4b6aa0596b8d90bcc3ec5c09ae74da0850c8fd43
|
7
|
+
data.tar.gz: fee6d187478f871e2b3cccda29eae1410a2b67eb709cd584217c9e8eeaae95dce886f3a2eea8d421de2cf3276f7d4642986d7a2929194025558f24dd432e45e4
|
@@ -9,7 +9,7 @@ module Spree
|
|
9
9
|
|
10
10
|
after_create :process_return!
|
11
11
|
|
12
|
-
validates :number, uniqueness: true
|
12
|
+
validates :number, uniqueness: { case_sensitive: true }
|
13
13
|
validates :return_items, :stock_location, presence: true
|
14
14
|
validate :must_have_return_authorization, on: :create
|
15
15
|
validate :return_items_belong_to_same_order
|
@@ -7,7 +7,7 @@ module Spree
|
|
7
7
|
has_many :variants, through: :option_value_variants, class_name: 'Spree::Variant'
|
8
8
|
|
9
9
|
with_options presence: true do
|
10
|
-
validates :name, uniqueness: { scope: :option_type_id }
|
10
|
+
validates :name, uniqueness: { scope: :option_type_id, case_sensitive: false }
|
11
11
|
validates :presentation
|
12
12
|
end
|
13
13
|
|
data/app/models/spree/payment.rb
CHANGED
@@ -25,7 +25,7 @@ module Spree
|
|
25
25
|
has_many :refunds, inverse_of: :payment
|
26
26
|
|
27
27
|
validates :payment_method, presence: true
|
28
|
-
validates :number, uniqueness: true
|
28
|
+
validates :number, uniqueness: { case_sensitive: true }
|
29
29
|
validates :source, presence: true, if: -> { payment_method&.source_required? }
|
30
30
|
|
31
31
|
before_validation :validate_source
|
data/app/models/spree/product.rb
CHANGED
@@ -101,7 +101,7 @@ module Spree
|
|
101
101
|
validates :price, if: proc { Spree::Config[:require_master_price] }
|
102
102
|
end
|
103
103
|
|
104
|
-
validates :slug, presence: true, uniqueness: { allow_blank: true }
|
104
|
+
validates :slug, presence: true, uniqueness: { allow_blank: true, case_sensitive: false }
|
105
105
|
validate :discontinue_on_must_be_later_than_available_on, if: -> { available_on && discontinue_on }
|
106
106
|
|
107
107
|
attr_accessor :option_values_hash
|
@@ -7,7 +7,7 @@ module Spree
|
|
7
7
|
belongs_to :state, class_name: 'Spree::State', optional: true
|
8
8
|
belongs_to :country, class_name: 'Spree::Country'
|
9
9
|
|
10
|
-
validates :name, presence: true, uniqueness: { allow_blank: true }
|
10
|
+
validates :name, presence: true, uniqueness: { allow_blank: true, case_sensitive: false }
|
11
11
|
|
12
12
|
scope :active, -> { where(active: true) }
|
13
13
|
scope :order_default, -> { order(default: :desc, name: :asc) }
|
data/app/models/spree/taxon.rb
CHANGED
@@ -19,7 +19,7 @@ module Spree
|
|
19
19
|
has_many :promotion_rule_taxons, class_name: 'Spree::PromotionRuleTaxon', dependent: :destroy
|
20
20
|
has_many :promotion_rules, through: :promotion_rule_taxons, class_name: 'Spree::PromotionRule'
|
21
21
|
|
22
|
-
validates :name, presence: true, uniqueness: { scope: [:parent_id, :taxonomy_id], allow_blank: true }
|
22
|
+
validates :name, presence: true, uniqueness: { scope: [:parent_id, :taxonomy_id], allow_blank: true, case_sensitive: false }
|
23
23
|
validates :permalink, uniqueness: { case_sensitive: false }
|
24
24
|
validates_associated :icon
|
25
25
|
validate :check_for_root, on: :create
|
data/lib/spree/core/version.rb
CHANGED
data/spree_core.gemspec
CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_dependency 'twitter_cldr', '~> 4.3'
|
43
43
|
s.add_dependency 'sprockets-rails'
|
44
44
|
s.add_dependency 'mini_magick', '~> 4.9.4'
|
45
|
+
s.add_dependency 'image_processing', '~> 1.2'
|
45
46
|
|
46
47
|
s.add_development_dependency 'email_spec', '~> 2.2'
|
47
48
|
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: 4.0.0.
|
4
|
+
version: 4.0.0.rc2
|
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-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -336,6 +336,20 @@ dependencies:
|
|
336
336
|
- - "~>"
|
337
337
|
- !ruby/object:Gem::Version
|
338
338
|
version: 4.9.4
|
339
|
+
- !ruby/object:Gem::Dependency
|
340
|
+
name: image_processing
|
341
|
+
requirement: !ruby/object:Gem::Requirement
|
342
|
+
requirements:
|
343
|
+
- - "~>"
|
344
|
+
- !ruby/object:Gem::Version
|
345
|
+
version: '1.2'
|
346
|
+
type: :runtime
|
347
|
+
prerelease: false
|
348
|
+
version_requirements: !ruby/object:Gem::Requirement
|
349
|
+
requirements:
|
350
|
+
- - "~>"
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: '1.2'
|
339
353
|
- !ruby/object:Gem::Dependency
|
340
354
|
name: email_spec
|
341
355
|
requirement: !ruby/object:Gem::Requirement
|