solidus_core 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/spree/order.rb +1 -1
- data/app/models/spree/taxon.rb +1 -1
- data/lib/generators/solidus/install/install_generator.rb +1 -1
- data/lib/spree/core/version.rb +1 -1
- data/lib/spree/deprecation.rb +1 -1
- data/lib/spree/migration_helpers.rb +3 -3
- data/solidus_core.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1741ff18b0f37074fde9a4d3a85f6255d588460e93f905314791def8dcdb141d
|
|
4
|
+
data.tar.gz: e5f8cdd5f73371b64671d7454ab6a9f022ef2d7cde5a7899c430e3a875b58cf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d2e1af809c2c429016cb4e049f60b95a79b39ec56510009365111a0669518377ad4ed1f3c2df162202af0ae604041fcad8adeb5703392c2ec32f3b6b013ad37
|
|
7
|
+
data.tar.gz: 64f0d298914bdc45307d6bbf1613f8ac6765d4ba4bab70ed8a103859836acc54eeaa57908697403fcfc6e0766cefcd1365b90d734a0d2ff003ebc1c2130ddab3
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Solidus system depends.
|
|
|
5
5
|
|
|
6
6
|
Core models
|
|
7
7
|
-----------
|
|
8
|
-
Solidus implements over 200 [models](https://github.com/solidusio/solidus/tree/
|
|
8
|
+
Solidus implements over 200 [models](https://github.com/solidusio/solidus/tree/main/core/app/models/spree),
|
|
9
9
|
and thus a deep inspection of each in this README would be overkill. Instead,
|
|
10
10
|
let's take a quick look at the fundamental models upon which all else depend.
|
|
11
11
|
Currently, these models remain in the Spree namespace as part of the legacy of
|
data/app/models/spree/order.rb
CHANGED
data/app/models/spree/taxon.rb
CHANGED
|
@@ -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: -> { root? }
|
|
25
|
+
validates :taxonomy_id, uniqueness: { scope: :parent_id, message: :can_have_only_one_root }, if: -> { root? }
|
|
26
26
|
|
|
27
27
|
after_save :touch_ancestors_and_taxonomy
|
|
28
28
|
after_touch :touch_ancestors_and_taxonomy
|
|
@@ -96,7 +96,7 @@ module Solidus
|
|
|
96
96
|
rake 'active_storage:install'
|
|
97
97
|
else
|
|
98
98
|
say_status :assets, "Paperclip", :green
|
|
99
|
-
gsub_file 'config/initializers/spree.rb', "ActiveStorageAttachment", "PaperclipAttachment"
|
|
99
|
+
gsub_file 'config/initializers/spree.rb', "::ActiveStorageAttachment", "::PaperclipAttachment"
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
data/lib/spree/core/version.rb
CHANGED
data/lib/spree/deprecation.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require 'active_support/deprecation'
|
|
4
4
|
|
|
5
5
|
module Spree
|
|
6
|
-
Deprecation = ActiveSupport::Deprecation.new('
|
|
6
|
+
Deprecation = ActiveSupport::Deprecation.new('5.0', 'Solidus')
|
|
7
7
|
|
|
8
8
|
# This DeprecatedInstanceVariableProxy transforms instance variable to
|
|
9
9
|
# deprecated instance variable.
|
|
@@ -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
|
|
data/solidus_core.gemspec
CHANGED
|
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
|
42
42
|
s.add_dependency 'mini_magick', '~> 4.10'
|
|
43
43
|
s.add_dependency 'monetize', '~> 1.8'
|
|
44
44
|
s.add_dependency 'kt-paperclip', ['>= 6.3', '< 8']
|
|
45
|
-
s.add_dependency 'psych', ['>=
|
|
45
|
+
s.add_dependency 'psych', ['>= 4.0.1', '< 5.0']
|
|
46
46
|
s.add_dependency 'ransack', '~> 2.0'
|
|
47
47
|
s.add_dependency 'sprockets-rails'
|
|
48
48
|
s.add_dependency 'state_machines-activerecord', '~> 0.6'
|
|
@@ -65,7 +65,7 @@ $ bin/rails g solidus:update
|
|
|
65
65
|
Please, don't forget to look at the CHANGELOG to see what has changed and
|
|
66
66
|
whether you need to perform other tasks.
|
|
67
67
|
|
|
68
|
-
https://github.com/solidusio/solidus/blob/
|
|
68
|
+
https://github.com/solidusio/solidus/blob/main/CHANGELOG.md
|
|
69
69
|
|
|
70
70
|
Please report any issues at:
|
|
71
71
|
- https://github.com/solidusio/solidus/issues
|
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: 4.0.
|
|
4
|
+
version: 4.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Solidus Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|
|
@@ -356,7 +356,7 @@ dependencies:
|
|
|
356
356
|
requirements:
|
|
357
357
|
- - ">="
|
|
358
358
|
- !ruby/object:Gem::Version
|
|
359
|
-
version:
|
|
359
|
+
version: 4.0.1
|
|
360
360
|
- - "<"
|
|
361
361
|
- !ruby/object:Gem::Version
|
|
362
362
|
version: '5.0'
|
|
@@ -366,7 +366,7 @@ dependencies:
|
|
|
366
366
|
requirements:
|
|
367
367
|
- - ">="
|
|
368
368
|
- !ruby/object:Gem::Version
|
|
369
|
-
version:
|
|
369
|
+
version: 4.0.1
|
|
370
370
|
- - "<"
|
|
371
371
|
- !ruby/object:Gem::Version
|
|
372
372
|
version: '5.0'
|
|
@@ -1009,7 +1009,7 @@ post_install_message: |
|
|
|
1009
1009
|
Please, don't forget to look at the CHANGELOG to see what has changed and
|
|
1010
1010
|
whether you need to perform other tasks.
|
|
1011
1011
|
|
|
1012
|
-
https://github.com/solidusio/solidus/blob/
|
|
1012
|
+
https://github.com/solidusio/solidus/blob/main/CHANGELOG.md
|
|
1013
1013
|
|
|
1014
1014
|
Please report any issues at:
|
|
1015
1015
|
- https://github.com/solidusio/solidus/issues
|