solidus_backend 4.2.3 → 4.2.4

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: b6267a01ab8a45958e1f7df1632238e14de1544ac777187e7e2eaa58d36ec054
4
- data.tar.gz: 01b2e9db90f1474080ede9a684eda4b5fc958fbba0899c6a1fc32bea8a3b8b9f
3
+ metadata.gz: 84c83661263b961d0698d1feb7a4141432fcf725d79ccbce458502126b23e0d7
4
+ data.tar.gz: 1f2fc2f40cd54290fa8499ec6247b48a22fee8934f7183d44d120ce54e660c43
5
5
  SHA512:
6
- metadata.gz: b6017f2fa9ea50ca39efaf4e1110236404be68cd5a06b318804ffae31e53d634fa27de2d1acc655fc0e20472335384baba4d49bd6e3c05ab858356a3df17038f
7
- data.tar.gz: 1c62f8dbc04d83d7a90d3e0b1034a6bf2c48e740859a21891d28348cc1cda0c590cd9f9407a85055fa6d4e0981a37820c2b05ec9948be3b6bb1eb535706132ee
6
+ metadata.gz: 8681196d43fbd06609c700f0c2214a72ccc190277a047feae547cd1ca9926836de85a6d5717ec2ea66d9461bd2c9624e1c05b9ab199e192f60077eac807a98c4
7
+ data.tar.gz: 8fea9733fc3f6466afb7cafc40020f1b9a9d2d87515d9e3321403e46241ca2b5960ae582fbf441a2819ff3780e021d00dcb824120f54424c57e6a2c5e8b496e1
@@ -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
@@ -56,7 +56,7 @@ module Spree
56
56
  def variant_scope
57
57
  scope = Spree::Variant
58
58
  .accessible_by(current_ability)
59
- .distinct.order(:sku)
59
+ .distinct
60
60
  .includes(
61
61
  :images,
62
62
  stock_items: :stock_location,
@@ -78,18 +78,17 @@ module Spree
78
78
  end
79
79
 
80
80
  def match_path?(request)
81
- matches =
82
- if match_path.is_a? Regexp
83
- request.fullpath =~ match_path
84
- elsif match_path.respond_to?(:call)
85
- match_path.call(request)
86
- elsif match_path
87
- request.fullpath.starts_with?("#{spree.admin_path}#{match_path}")
88
- end
89
- matches ||= request.fullpath.to_s.starts_with?(url.to_s) if url.present?
90
- matches ||= @sections.include?(request.controller_class.controller_name.to_sym) if @sections.present?
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.3
4
+ version: 4.2.4
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-11-02 00:00:00.000000000 Z
11
+ date: 2024-04-05 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.3
19
+ version: 4.2.4
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.3
26
+ version: 4.2.4
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.3
33
+ version: 4.2.4
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.3
40
+ version: 4.2.4
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.17
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.