solidus_core 3.2.5 → 3.2.6

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: 1ca291cd7b979dea71a53e089ec1f5582fd29606135be6802668e6a249655295
4
- data.tar.gz: 35c97c39d287f13bd2330fef96e59eefa5d82869e49563a32706b827087a936a
3
+ metadata.gz: 44848f344bbc0758db56eaebe0aeeac5f6fe11a130fa745dfd79675e26db52ba
4
+ data.tar.gz: c56e74d595de71a9d4fa74c4220d1ae91d7af38ed9e7132766bcb4608eb5f080
5
5
  SHA512:
6
- metadata.gz: dcd03d7fe00dade48a32ff5862579eed61115afe17e225e0378ea83fb1af3c502467dbef833619159742b2b7cef998e53d47cde357d6e2b57beb73daa80708f2
7
- data.tar.gz: cea864acea70b4d18b208481ffa8d0587ce5bc721f2de5d83c653b2125e7dbf1e9da81ef0cb211180d48df93a53daaf813e5d8d7ecd9181c5c0f9de2efd239ba
6
+ metadata.gz: 7ed3a7e4f5d99f0c114b78182920af674eca75b6367f4ce93e0b683e65743e3e077eecdb27f1f02c3b65fa5cf4ec1a842f82363c4e66becad01b50b22f92cf98
7
+ data.tar.gz: a35530c9833699ad3cfee06f1c9474e67762b29ad6e57665790f1b310b5859d9dd173fb239ee68467c2e6c6ddc686e03dae62b8b80f543ab1d4272853fb971ee
@@ -113,8 +113,7 @@ module Spree
113
113
  def amount_for_adjustment_label
114
114
  ActiveSupport::NumberHelper::NumberToPercentageConverter.convert(
115
115
  amount * 100,
116
- locale: I18n.locale,
117
- precision: nil
116
+ locale: I18n.locale
118
117
  )
119
118
  end
120
119
 
@@ -751,6 +751,10 @@ en:
751
751
  not_saved:
752
752
  one: '1 error prohibited this %{resource} from being saved:'
753
753
  other: "%{count} errors prohibited this %{resource} from being saved:"
754
+ number:
755
+ percentage:
756
+ format:
757
+ precision: 1
754
758
  spree:
755
759
  abbreviation: Abbreviation
756
760
  accept: Accept
data/lib/spree/bus.rb CHANGED
@@ -9,12 +9,12 @@ module Spree
9
9
  # It has some modifications to support internal usage of the legacy event
10
10
  # system {see Spree::AppConfiguration#use_legacy_events}.
11
11
  Bus = Omnes::Bus.new
12
- Bus.define_singleton_method(:publish) do |*args, **kwargs, &block|
12
+ def Bus.publish(event, **kwargs)
13
13
  if Spree::Config.use_legacy_events
14
- Spree::Event.fire(*args, **kwargs, &block)
14
+ Spree::Event.fire(event, **kwargs)
15
15
  else
16
16
  # Override caller_location to point to the actual event publisher
17
- super(*args, **kwargs, caller_location: caller_locations(1)[0], &block)
17
+ super(event, **kwargs, caller_location: caller_locations(1)[0])
18
18
  end
19
19
  end
20
20
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "3.2.5"
4
+ VERSION = "3.2.6"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
@@ -90,7 +90,7 @@ module DummyApp
90
90
  config.active_record.dump_schema_after_migration = false
91
91
 
92
92
  # Configure active storage to use storage within tmp folder
93
- unless ENV['DISABLE_ACTIVE_STORAGE']
93
+ unless (ENV['DISABLE_ACTIVE_STORAGE'] == 'true')
94
94
  initializer 'solidus.active_storage' do
95
95
  config.active_storage.service_configurations = {
96
96
  test: {
@@ -138,9 +138,9 @@ Spree.user_class = 'Spree::LegacyUser'
138
138
  Spree.load_defaults(Spree.solidus_version)
139
139
  Spree.config do |config|
140
140
  config.mails_from = "store@example.com"
141
- config.use_legacy_events = ENV['USE_LEGACY_EVENTS'].present?
141
+ config.use_legacy_events = (ENV['USE_LEGACY_EVENTS'] == 'true')
142
142
 
143
- if ENV['DISABLE_ACTIVE_STORAGE']
143
+ if (ENV['DISABLE_ACTIVE_STORAGE'] == 'true')
144
144
  config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
145
145
  config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
146
146
  end
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.2.5
4
+ version: 3.2.6
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: 2022-12-23 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -1023,8 +1023,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1023
1023
  - !ruby/object:Gem::Version
1024
1024
  version: 1.8.23
1025
1025
  requirements: []
1026
- rubygems_version: 3.3.26
1027
- signing_key:
1026
+ rubygems_version: 3.3.7
1027
+ signing_key:
1028
1028
  specification_version: 4
1029
1029
  summary: Essential models, mailers, and classes for the Solidus e-commerce project.
1030
1030
  test_files: []