solidus_core 4.0.0 → 4.0.1

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: 677b2f47102db33dd5b14575dc05d083d724328c5715eb041260fa5eff1888d8
4
- data.tar.gz: 80193fd6f6737c2e3d8e5227ef8bbed008bfd98826a26b73be775402615cdd0b
3
+ metadata.gz: 44891a521a6e6234cbbe33ca506d3bdd09980dc14ee4d2a9a7aa95a69ebe2531
4
+ data.tar.gz: 3500b30068e81ef663d2dc75d3ed8845d066ee30e459bce6175aa2630578898a
5
5
  SHA512:
6
- metadata.gz: 3862a797f6ae51be78ec7115d8becfe0d741f79d84e9f8223661054338f0deba010d438b29ba8bce3d50579490be97054feabf171fe4d0ce3dbddf6cf0e22436
7
- data.tar.gz: 707096c5ad49198707ea0ed90dc11dd0a8debcc845d2b52e30f819cd7b9a22fb473894710db1eb618fe4b7344ca9776af3619378677f5b0b849fdd647d7be96a
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/master/core/app/models/spree),
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
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
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
 
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/master/CHANGELOG.md
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.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-05-08 00:00:00.000000000 Z
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/master/CHANGELOG.md
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.4.9
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: []