solidus_core 3.4.1 → 3.4.3

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: 10fc58987e4d927c58e1ccf307b4c803cc8b3dfc69ef8150c43f6e6980a5c1ac
4
- data.tar.gz: 0dc0209b2e614d79d92a2f895825e834e8f0373b410f03f4f73991f05338a9c6
3
+ metadata.gz: d24b79b7f633f151791eb5eeea95672897f053865d9f31eaee7ebb63d74e80d4
4
+ data.tar.gz: 929888d4ad005c670e628b712e63ec84704b1dfb5020b7c49d5d41d6069d37fb
5
5
  SHA512:
6
- metadata.gz: 80529e718fa3d90dfd3d862f977d37ebc1fb563a34cbc0f73e6936f3249b3025eb6ad67c06a972d7f7da385f7ea9a8267f413e90cea25e407b76d39468ece5b1
7
- data.tar.gz: f1aaf2263db6674695d932e6ddedf731eb04f8ee12c4795ff6ca5de3523193632724997ba5f8f95753ca728fc2742330328a0b5805cadf20df76b9614efb7b42
6
+ metadata.gz: 2b5aa98cb160249b72efc190f5aa604ee0d23efaa6debd6cb43e47c03c30231abb7a8d791a01b80f6d7f0292b64c466baf5b559ef4f72ba73007720fa8bb2cb0
7
+ data.tar.gz: 7f44dbf4e1f197cec358dbdf5362247e4f39e1b860e1267709bcb88ac82fb5d2eb6b1e847ca1058017cdbd20ae14b9461587b3b58afccf5dba9cf6bce2d277a9
@@ -22,7 +22,7 @@ module Spree
22
22
  validates :meta_keywords, length: { maximum: 255 }
23
23
  validates :meta_description, length: { maximum: 255 }
24
24
  validates :meta_title, length: { maximum: 255 }
25
- validates :taxonomy_id, uniqueness: { message: :can_have_only_one_root }, if: -> { Spree::Config.extra_taxon_validations && root? }
25
+ validates :taxonomy_id, uniqueness: { scope: :parent_id, message: :can_have_only_one_root }, if: -> { Spree::Config.extra_taxon_validations && root? }
26
26
 
27
27
  after_save :touch_ancestors_and_taxonomy
28
28
  after_touch :touch_ancestors_and_taxonomy
@@ -119,7 +119,7 @@ module Solidus
119
119
  rake 'active_storage:install'
120
120
  else
121
121
  say_status :assets, "Paperclip", :green
122
- gsub_file 'config/initializers/spree.rb', "ActiveStorageAttachment", "PaperclipAttachment"
122
+ gsub_file 'config/initializers/spree.rb', "::ActiveStorageAttachment", "::PaperclipAttachment"
123
123
  end
124
124
  end
125
125
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "3.4.1"
4
+ VERSION = "3.4.3"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
@@ -6,9 +6,9 @@ module Spree
6
6
  remove_index(table, column) if index_exists?(table, column)
7
7
  end
8
8
 
9
- def safe_add_index(table, column, options = {})
10
- if columns_exist?(table, column) && !index_exists?(table, column, options)
11
- add_index(table, column, options)
9
+ def safe_add_index(table, column, **options)
10
+ if columns_exist?(table, column) && !index_exists?(table, column, **options)
11
+ add_index(table, column, **options)
12
12
  end
13
13
  end
14
14
 
@@ -54,6 +54,7 @@ module Spree
54
54
  )
55
55
  end
56
56
  end
57
+ deprecate :check_version, deprecator: Spree::Deprecation
57
58
 
58
59
  def self.add_definitions!
59
60
  ::FactoryBot.definition_file_paths.unshift(*definition_file_paths).uniq!
@@ -1,11 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'spree/testing_support/factory_bot'
4
+ require 'spree/deprecation'
5
+
6
+ Spree::Deprecation.warn <<-WARN
7
+ Using `require 'spree/testing_support'` is deprecated and will be removed in
8
+ Solidus 4.0.
9
+ WARN
4
10
 
5
11
  module Spree
6
12
  module TestingSupport
7
13
  autoload :FactoryBot, "spree/testing_support/factory_bot"
8
-
9
14
  autoload :SEQUENCES, "spree/testing_support/factory_bot"
10
15
  autoload :FACTORIES, "spree/testing_support/factory_bot"
11
16
 
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: 3.4.1
4
+ version: 3.4.3
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: 2023-04-27 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -1037,8 +1037,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1037
1037
  - !ruby/object:Gem::Version
1038
1038
  version: 1.8.23
1039
1039
  requirements: []
1040
- rubygems_version: 3.4.6
1041
- signing_key:
1040
+ rubygems_version: 3.3.7
1041
+ signing_key:
1042
1042
  specification_version: 4
1043
1043
  summary: Essential models, mailers, and classes for the Solidus e-commerce project.
1044
1044
  test_files: []