solidus_core 4.0.0 → 4.0.2

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: 1741ff18b0f37074fde9a4d3a85f6255d588460e93f905314791def8dcdb141d
4
+ data.tar.gz: e5f8cdd5f73371b64671d7454ab6a9f022ef2d7cde5a7899c430e3a875b58cf1
5
5
  SHA512:
6
- metadata.gz: 3862a797f6ae51be78ec7115d8becfe0d741f79d84e9f8223661054338f0deba010d438b29ba8bce3d50579490be97054feabf171fe4d0ce3dbddf6cf0e22436
7
- data.tar.gz: 707096c5ad49198707ea0ed90dc11dd0a8debcc845d2b52e30f819cd7b9a22fb473894710db1eb618fe4b7344ca9776af3619378677f5b0b849fdd647d7be96a
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/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
@@ -522,7 +522,7 @@ module Spree
522
522
  state: 'cart',
523
523
  updated_at: Time.current
524
524
  )
525
- self.next
525
+ self.next if line_items.any?
526
526
  end
527
527
 
528
528
  def refresh_shipment_rates
@@ -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.2"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
@@ -3,7 +3,7 @@
3
3
  require 'active_support/deprecation'
4
4
 
5
5
  module Spree
6
- Deprecation = ActiveSupport::Deprecation.new('4.0', 'Solidus')
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', ['>= 3.1.0', '< 5.0']
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/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.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-05-08 00:00:00.000000000 Z
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: 3.1.0
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: 3.1.0
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/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