solidus_backend 4.2.3 → 4.2.5
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/app/assets/javascripts/spree/backend/format_money.js +1 -1
- data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +2 -2
- data/app/controllers/spree/admin/stock_items_controller.rb +1 -1
- data/app/views/spree/admin/shared/_js_locale_data.html.erb +4 -1
- data/lib/spree/backend_configuration/menu_item.rb +11 -12
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c96093feaa6ba9261f595b553b0f468980377dd35613593e72f8e33b52a79b4
|
4
|
+
data.tar.gz: d7c3390eb838055f27a0628cb6104d519088900d1ff2dcd43a5329f1c5212db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0921a2ebe34b7b8f8e16d7188ec2d214df75aea411b642e2bfc9115de25e61e5cd11e7bc12bdf524a38d6f16fc6785abc0e16ebd12524862498b91485ad8e5fa'
|
7
|
+
data.tar.gz: dec66e87eb65a8710784367445b26af350810b9d9f357a85659160580be93d3827922dedda4a10d72d6a2c915878312ff6a604b53c31e756c9edd7c84d5e816e
|
@@ -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
|
}
|
@@ -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].
|
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].
|
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.
|
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,
|
@@ -78,18 +78,17 @@ module Spree
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def match_path?(request)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
matches
|
81
|
+
if match_path.is_a? Regexp
|
82
|
+
request.fullpath =~ match_path
|
83
|
+
elsif match_path.respond_to?(:call)
|
84
|
+
match_path.call(request)
|
85
|
+
elsif match_path
|
86
|
+
request.fullpath.starts_with?("#{spree.admin_path}#{match_path}")
|
87
|
+
elsif url.present?
|
88
|
+
request.fullpath.to_s.starts_with?(url.to_s)
|
89
|
+
elsif @sections.present?
|
90
|
+
@sections.include?(request.controller_class.controller_name.to_sym)
|
91
|
+
end
|
93
92
|
end
|
94
93
|
|
95
94
|
def url
|
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.2.
|
4
|
+
version: 4.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-19 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.2.
|
19
|
+
version: 4.2.5
|
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.2.
|
26
|
+
version: 4.2.5
|
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.2.
|
33
|
+
version: 4.2.5
|
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.2.
|
40
|
+
version: 4.2.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: font-awesome-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -930,7 +930,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
930
930
|
- !ruby/object:Gem::Version
|
931
931
|
version: 1.8.23
|
932
932
|
requirements: []
|
933
|
-
rubygems_version: 3.4.
|
933
|
+
rubygems_version: 3.4.19
|
934
934
|
signing_key:
|
935
935
|
specification_version: 4
|
936
936
|
summary: Admin interface for the Solidus e-commerce framework.
|