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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1e151381e092c35c7a9cf8860afc569afee679c44465209bbe1760ada4dd716
4
- data.tar.gz: 71cb114b3a96d8e865c1d9bbed17e95c54764f71db1c1ca002d05510d27455cc
3
+ metadata.gz: 60f1421b7468857f6c74fd7ab214f09a14c886b13e42110b53c6a22529691343
4
+ data.tar.gz: 5d64b1bb1fa0866edd1778e6e01f79d1af23391633faf8cc08afbead4d519fcc
5
5
  SHA512:
6
- metadata.gz: e7a25734d828b63ffa3ea6db68681ddf0c590c7a516583f76b2c9b8eb300ab4943dbba82e0beac67f2ad1a7915e6bdbe6656c4382df2cc56981d34b98cbd23e1
7
- data.tar.gz: 073535b1a83ada55a42a391ee4a68f74cd600e0ec41f2fdf7deb2c6657218aba51221cf09a451fe18d14c45003499ac4046ea7ce438c0bd56a0ca99b500eee4b
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
 
@@ -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
@@ -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
@@ -26,7 +26,7 @@ module Spree
26
26
  before_validation :set_cost_zero_when_nil
27
27
 
28
28
  validates :stock_location, presence: true
29
- validates :number, uniqueness: true
29
+ validates :number, uniqueness: { case_sensitive: true }
30
30
 
31
31
  attr_accessor :special_instructions
32
32
 
@@ -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) }
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- '4.0.0.rc1'
3
+ '4.0.0.rc2'
4
4
  end
5
5
  end
@@ -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.rc1
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-10 00:00:00.000000000 Z
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