solidus_backend 4.1.4 → 4.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b583f867ee70811853a7da7ee176ed4be1f49dbaa64db5198fbcef8140bc7b37
4
- data.tar.gz: f1599c12faecb7aed5e15200574fd69fdc212547730c4e0328a90f9efcbe4c69
3
+ metadata.gz: 47799b4e6cfa4a22b508007d9e376b73e3bf1bf9c90efc03c670608dfdf28b32
4
+ data.tar.gz: ed4e45939aa747fedc04d0fb38f1207aaedbabab1424b842788a24dab19bd4a8
5
5
  SHA512:
6
- metadata.gz: 925b15044a44ae476e168e9ba6f57a44be4f79ebcb8a61c3b024e45fe37633d5174208818093e586fbc612e0945cdf64883a298d98cf0f1b6afff9b9f8262877
7
- data.tar.gz: 19269df8458cef5a4797ff89496cdbc3e723d720f8f4431c010d1baeb8bdee34c632c11f1a27aeaf208068c8c6f58ea53e1e5aa1e205024b8cff715165cdf9a6
6
+ metadata.gz: 71e75d5b5368003abc415f3db8723a8db13ccfc3155073efc9d37cd501ba36a8efe0ff1c57e7c8a20368d657bafb0b9bc89076afc6f5b982fed8a38dd994d9a2
7
+ data.tar.gz: 0fffbc869695424aa32e1ff616825fd5118b3bef789718b5383f7069d44b4912b4dc1f311daa292883f9d6524795bc5ecb86841e1dc1dbbaf9cf86a9b5ba2b4f
@@ -1,5 +1,5 @@
1
1
  Spree.ready(function() {
2
- if (window.screen.width <= 1024 && !document.cookie.includes("admin_nav_hidden")) {
2
+ if (window.width <= 1024 && !document.cookie.includes("admin_nav_hidden")) {
3
3
  // Set default nav to collapse on small screens - but don't override user preference
4
4
  document.body.classList.add("admin-nav-hidden");
5
5
  document.cookie = "admin_nav_hidden=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
@@ -7,5 +7,5 @@ Spree.formatMoney = function(amount, currency) {
7
7
  var thousand = Spree.t('currency_delimiter');
8
8
  var decimal = Spree.t('currency_separator');
9
9
 
10
- return accounting.formatMoney(amount, currencyInfo[0], currencyInfo[1], thousand, decimal, currencyInfo[2]);
10
+ return accounting.formatMoney(amount, currencyInfo[0], currencyInfo[1], thousand, decimal, currencyInfo[2]).trim();
11
11
  }
@@ -28,7 +28,7 @@ module Spree
28
28
  invoke_callbacks(:update, :before)
29
29
 
30
30
  attributes = payment_method_params
31
- attributes.each do |key, _value|
31
+ attributes.each_key do |key|
32
32
  if key.include?("password") && attributes[key].blank?
33
33
  attributes.delete(key)
34
34
  end
@@ -68,7 +68,7 @@ module Spree
68
68
  if updating_variant_property_rules?
69
69
  url_params = {}
70
70
  url_params[:ovi] = []
71
- params[:product][:variant_property_rules_attributes].each do |_index, param_attrs|
71
+ params[:product][:variant_property_rules_attributes].each_value do |param_attrs|
72
72
  url_params[:ovi] += param_attrs[:option_value_ids]
73
73
  end
74
74
  spree.admin_product_product_properties_url(@product, url_params)
@@ -133,7 +133,7 @@ module Spree
133
133
  def normalize_variant_property_rules
134
134
  return unless updating_variant_property_rules?
135
135
 
136
- params[:product][:variant_property_rules_attributes].each do |_index, param_attrs|
136
+ params[:product][:variant_property_rules_attributes].each_value do |param_attrs|
137
137
  param_attrs[:option_value_ids] = param_attrs[:option_value_ids].split(',')
138
138
  end
139
139
  end
@@ -17,11 +17,14 @@
17
17
  JSON.dump(
18
18
  Spree::Config.available_currencies.map { |c|
19
19
  format =
20
- if c.symbol == "" || c.symbol_first
20
+ if c.format.present?
21
+ c.format.gsub("%u", "%s").gsub("%n", "%v")
22
+ elsif c.symbol == "" || c.symbol_first
21
23
  "%s%v"
22
24
  else
23
25
  "%v %s"
24
26
  end
27
+
25
28
  [c.id.to_s.upcase, [
26
29
  c.symbol || "¤",
27
30
  c.exponent,
@@ -34,7 +34,6 @@ module Spree
34
34
  position: nil,
35
35
  match_path: nil
36
36
  )
37
-
38
37
  @condition = condition || -> { true }
39
38
  @sections = sections
40
39
  @icon = icon
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.4
19
+ version: 4.1.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.4
26
+ version: 4.1.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.1.4
33
+ version: 4.1.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.1.4
40
+ version: 4.1.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: font-awesome-rails
43
43
  requirement: !ruby/object:Gem::Requirement