solidus_core 4.0.0 → 4.0.1
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/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/migration_helpers.rb +3 -3
- data/solidus_core.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44891a521a6e6234cbbe33ca506d3bdd09980dc14ee4d2a9a7aa95a69ebe2531
|
|
4
|
+
data.tar.gz: 3500b30068e81ef663d2dc75d3ed8845d066ee30e459bce6175aa2630578898a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf7d5df833dcf6585dd61dafbc51b58e80afd4e9bbdcc362a10ee54bb1494279c269c8d1ea691fba658ce4c2c9ebcc231e959925306f3dfcb8130ac167359963
|
|
7
|
+
data.tar.gz: fbddce40c505c9696564dbdc95192b89ad2ec199276b28e1c759cddda071adff05216614ad5351c3baf3879c6c174cc4fa26ea62e34d1e6dfb1b3eea10c7a0d1
|
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/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
|
@@ -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
|
@@ -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.1
|
|
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-
|
|
11
|
+
date: 2023-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|
|
@@ -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
|
|
@@ -1029,8 +1029,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1029
1029
|
- !ruby/object:Gem::Version
|
|
1030
1030
|
version: 1.8.23
|
|
1031
1031
|
requirements: []
|
|
1032
|
-
rubygems_version: 3.
|
|
1033
|
-
signing_key:
|
|
1032
|
+
rubygems_version: 3.3.7
|
|
1033
|
+
signing_key:
|
|
1034
1034
|
specification_version: 4
|
|
1035
1035
|
summary: Essential models, mailers, and classes for the Solidus e-commerce project.
|
|
1036
1036
|
test_files: []
|