workarea 3.4.14 → 3.4.15
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/.rubocop.yml +107 -212
- data/CHANGELOG.md +54 -1
- data/README.md +6 -8
- data/docs/source/release-notes.html.md +1 -0
- data/docs/source/release-notes/workarea-3-4-15.html.md +100 -0
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 366d67673a87a273b72409197fb95efdc64a3b7c2675374c20553cbc4d765e0e
|
|
4
|
+
data.tar.gz: 90a7f9e281be4c82c7d467de96bf5b0462cddd1d4bf28e96288ee21defef0a73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b46ca1dc28f287debd5d2b318fd6f39a2cc98c7f77d4c30dffd5ca1d85146a52bfc12d026de63f1a6be861acba56e4a7ed8ae8826c4f9f70b5fc9aa3495883ec
|
|
7
|
+
data.tar.gz: 3e75a46ce8eb01b0daec08761173ba90b1928a5e0074b0f893880870cfc167cef958ba175dcd4a98b5e646fdb0cbe3dbf8d21a0dd9b5570cb3163df509420318
|
data/.rubocop.yml
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.
|
|
2
|
+
TargetRubyVersion: 2.6
|
|
3
3
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
|
4
4
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
|
5
5
|
DisabledByDefault: true
|
|
6
6
|
|
|
7
|
-
Rails/TimeZone:
|
|
8
|
-
Enabled: true
|
|
9
|
-
|
|
10
7
|
# Prefer &&/|| over and/or.
|
|
11
8
|
Style/AndOr:
|
|
12
9
|
Enabled: true
|
|
13
10
|
Exclude:
|
|
14
11
|
- 'testing/lib/workarea/performance_test.rb'
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
- 'admin/app/controllers/workarea/admin/help_authorization.rb'
|
|
13
|
+
- 'admin/app/controllers/workarea/admin/users_controller.rb'
|
|
14
|
+
- 'core/app/controllers/workarea/authorization.rb'
|
|
15
|
+
- 'core/app/models/workarea/analytics/time_series.rb'
|
|
16
|
+
- 'core/app/models/workarea/payment/operation.rb'
|
|
17
|
+
- 'core/lib/workarea/validators/ip_address_validator.rb'
|
|
18
|
+
- 'script/rename'
|
|
19
|
+
- 'storefront/app/controllers/workarea/storefront/checkout/place_order_controller.rb'
|
|
20
|
+
- 'storefront/app/controllers/workarea/storefront/current_checkout.rb'
|
|
21
|
+
- 'storefront/app/controllers/workarea/storefront/searches_controller.rb'
|
|
22
|
+
- 'storefront/app/controllers/workarea/storefront/users/orders_controller.rb'
|
|
23
|
+
- 'storefront/app/controllers/workarea/storefront/users/passwords_controller.rb'
|
|
21
24
|
|
|
22
25
|
# Align `when` with `case`.
|
|
23
26
|
Layout/CaseIndentation:
|
|
24
27
|
Enabled: true
|
|
28
|
+
Exclude:
|
|
29
|
+
- 'admin/app/helpers/workarea/admin/dashboard_helper.rb'
|
|
25
30
|
|
|
26
31
|
# Align comments with method definitions.
|
|
27
32
|
Layout/CommentIndentation:
|
|
@@ -33,6 +38,50 @@ Layout/EmptyLineAfterMagicComment:
|
|
|
33
38
|
# In a regular class definition, no empty lines around the body.
|
|
34
39
|
Layout/EmptyLinesAroundClassBody:
|
|
35
40
|
Enabled: true
|
|
41
|
+
Exclude:
|
|
42
|
+
- 'admin/app/controllers/workarea/admin/release_sessions_controller.rb'
|
|
43
|
+
- 'admin/app/view_models/workarea/admin/release_calendar_view_model.rb'
|
|
44
|
+
- 'admin/lib/workarea/mailer_previews/admin/comment_mailer_preview.rb'
|
|
45
|
+
- 'admin/test/integration/workarea/admin/content_blocks_integration_test.rb'
|
|
46
|
+
- 'admin/test/view_models/workarea/admin/content_view_model_test.rb'
|
|
47
|
+
- 'core/app/models/workarea/checkout/steps/addresses.rb'
|
|
48
|
+
- 'core/app/models/workarea/pricing/discount/buy_some_get_some/product_application.rb'
|
|
49
|
+
- 'core/app/queries/workarea/metadata/catalog_category.rb'
|
|
50
|
+
- 'core/app/queries/workarea/metadata/content_page.rb'
|
|
51
|
+
- 'core/app/queries/workarea/search/facet.rb'
|
|
52
|
+
- 'core/app/queries/workarea/search/range_filter.rb'
|
|
53
|
+
- 'core/config/initializers/13_rack_attack.rb'
|
|
54
|
+
- 'core/lib/generators/workarea/override/override_generator.rb'
|
|
55
|
+
- 'core/lib/workarea/elasticsearch/query_cache.rb'
|
|
56
|
+
- 'core/lib/workarea/monitoring/elasticsearch_check.rb'
|
|
57
|
+
- 'core/lib/workarea/monitoring/mongoid_check.rb'
|
|
58
|
+
- 'core/lib/workarea/monitoring/sidekiq_queue_size_check.rb'
|
|
59
|
+
- 'core/lib/workarea/validators/email_validator.rb'
|
|
60
|
+
- 'core/test/lib/workarea/mail_interceptor_test.rb'
|
|
61
|
+
- 'core/test/models/workarea/commentable_test.rb'
|
|
62
|
+
- 'core/test/models/workarea/search/settings_test.rb'
|
|
63
|
+
- 'core/test/models/workarea/shipping/rate_lookup_test.rb'
|
|
64
|
+
- 'core/test/queries/workarea/find_pipeline_asset_test.rb'
|
|
65
|
+
- 'core/test/queries/workarea/product_primary_image_url_test.rb'
|
|
66
|
+
- 'core/test/queries/workarea/search/filter_test.rb'
|
|
67
|
+
- 'core/test/workers/workarea/bulk_index_admin_test.rb'
|
|
68
|
+
- 'core/test/workers/workarea/bulk_index_products_test.rb'
|
|
69
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/australia_post.rb'
|
|
70
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post_pws.rb'
|
|
71
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/usps_returns.rb'
|
|
72
|
+
- 'core/vendor/active_shipping/lib/active_shipping/delivery_date_estimates_response.rb'
|
|
73
|
+
- 'core/vendor/active_shipping/lib/active_shipping/rate_response.rb'
|
|
74
|
+
- 'core/vendor/active_shipping/test/remote/australia_post_test.rb'
|
|
75
|
+
- 'core/vendor/active_shipping/test/remote/usps_returns_test.rb'
|
|
76
|
+
- 'core/vendor/active_shipping/test/unit/carriers/australia_post_test.rb'
|
|
77
|
+
- 'core/vendor/active_shipping/test/unit/carriers/canada_post_pws_test.rb'
|
|
78
|
+
- 'core/vendor/active_shipping/test/unit/carriers/usps_returns_test.rb'
|
|
79
|
+
- 'storefront/app/view_models/workarea/storefront/content_blocks/product_list_view_model.rb'
|
|
80
|
+
- 'storefront/app/view_models/workarea/storefront/product_view_model.rb'
|
|
81
|
+
- 'storefront/lib/workarea/mailer_previews/storefront/order_mailer_preview.rb'
|
|
82
|
+
- 'storefront/test/performance/workarea/storefront/categories_performance_test.rb'
|
|
83
|
+
- 'storefront/test/performance/workarea/storefront/search_performance_test.rb'
|
|
84
|
+
- 'storefront/test/view_models/workarea/storefront/user_activity_view_model_test.rb'
|
|
36
85
|
|
|
37
86
|
# In a regular method definition, no empty lines around the body.
|
|
38
87
|
Layout/EmptyLinesAroundMethodBody:
|
|
@@ -41,127 +90,13 @@ Layout/EmptyLinesAroundMethodBody:
|
|
|
41
90
|
# In a regular module definition, no empty lines around the body.
|
|
42
91
|
Layout/EmptyLinesAroundModuleBody:
|
|
43
92
|
Enabled: true
|
|
44
|
-
|
|
45
|
-
Layout/FirstParameterIndentation:
|
|
46
|
-
Enabled: true
|
|
47
|
-
|
|
48
|
-
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
|
49
|
-
Style/HashSyntax:
|
|
50
|
-
Enabled: true
|
|
51
|
-
|
|
52
|
-
# Two spaces, no tabs (for indentation).
|
|
53
|
-
Layout/IndentationWidth:
|
|
54
|
-
Enabled: true
|
|
55
|
-
|
|
56
|
-
Layout/SpaceAfterColon:
|
|
57
|
-
Enabled: true
|
|
58
|
-
|
|
59
|
-
Layout/SpaceAfterComma:
|
|
60
|
-
Enabled: true
|
|
61
|
-
|
|
62
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
63
|
-
Enabled: true
|
|
64
|
-
|
|
65
|
-
Layout/SpaceAroundKeyword:
|
|
66
|
-
Enabled: true
|
|
67
|
-
|
|
68
|
-
Layout/SpaceAroundOperators:
|
|
69
|
-
Enabled: true
|
|
70
|
-
|
|
71
|
-
Layout/SpaceBeforeFirstArg:
|
|
72
|
-
Enabled: true
|
|
73
|
-
|
|
74
|
-
# Defining a method with parameters needs parentheses.
|
|
75
|
-
Style/MethodDefParentheses:
|
|
76
|
-
Enabled: true
|
|
77
|
-
|
|
78
|
-
# Use `foo {}` not `foo{}`.
|
|
79
|
-
Layout/SpaceBeforeBlockBraces:
|
|
80
|
-
Enabled: true
|
|
81
|
-
|
|
82
|
-
# Use `foo { bar }` not `foo {bar}`.
|
|
83
|
-
Layout/SpaceInsideBlockBraces:
|
|
84
|
-
Enabled: true
|
|
85
|
-
|
|
86
|
-
# Use `{ a: 1 }` not `{a:1}`.
|
|
87
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
88
|
-
Enabled: true
|
|
89
|
-
|
|
90
|
-
Layout/SpaceInsideParens:
|
|
91
|
-
Enabled: true
|
|
92
|
-
|
|
93
|
-
# Check quotes usage according to lint rule below.
|
|
94
|
-
Style/StringLiterals:
|
|
95
|
-
Enabled: true
|
|
96
|
-
|
|
97
|
-
# Detect hard tabs, no hard tabs.
|
|
98
|
-
Layout/Tab:
|
|
99
|
-
Enabled: true
|
|
100
|
-
|
|
101
|
-
# Blank lines should not have any spaces.
|
|
102
|
-
Layout/TrailingBlankLines:
|
|
103
|
-
Enabled: true
|
|
104
|
-
|
|
105
|
-
# No trailing whitespace.
|
|
106
|
-
Layout/TrailingWhitespace:
|
|
107
|
-
Enabled: true
|
|
108
|
-
|
|
109
|
-
# Use quotes for string literals when they are enough.
|
|
110
|
-
Style/UnneededPercentQ:
|
|
111
|
-
Enabled: true
|
|
112
|
-
|
|
113
|
-
# Align `end` with the matching keyword or starting expression except for
|
|
114
|
-
# assignments, where it should be aligned with the LHS.
|
|
115
|
-
Layout/EndAlignment:
|
|
116
|
-
Enabled: true
|
|
117
|
-
EnforcedStyleAlignWith: variable
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
# This configuration was generated by
|
|
122
|
-
# `rubocop --auto-gen-config`
|
|
123
|
-
# on 2018-01-09 11:18:02 -0500 using RuboCop version 0.52.1.
|
|
124
|
-
# The point is for the user to remove these configuration records
|
|
125
|
-
# one by one as the offenses are removed from the code base.
|
|
126
|
-
# Note that changes in the inspected code, or installation of new
|
|
127
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
128
|
-
#
|
|
129
|
-
|
|
130
|
-
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
|
131
|
-
Lint/RequireParentheses:
|
|
132
|
-
Enabled: true
|
|
133
|
-
|
|
134
|
-
# Offense count: 5
|
|
135
|
-
# Cop supports --auto-correct.
|
|
136
|
-
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
137
|
-
# SupportedStyles: case, end
|
|
138
|
-
Layout/CaseIndentation:
|
|
139
|
-
Exclude:
|
|
140
|
-
- 'admin/app/helpers/workarea/admin/dashboard_helper.rb'
|
|
141
|
-
|
|
142
|
-
# Offense count: 30
|
|
143
|
-
# Cop supports --auto-correct.
|
|
144
|
-
# Configuration parameters: EnforcedStyle.
|
|
145
|
-
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
146
|
-
Layout/EmptyLinesAroundClassBody:
|
|
147
|
-
Enabled: false
|
|
148
|
-
|
|
149
|
-
# Offense count: 5
|
|
150
|
-
# Cop supports --auto-correct.
|
|
151
|
-
# Configuration parameters: EnforcedStyle.
|
|
152
|
-
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
153
|
-
Layout/EmptyLinesAroundModuleBody:
|
|
154
93
|
Exclude:
|
|
155
|
-
- 'admin/spec/view_models/workarea/admin/product_view_model_spec.rb'
|
|
156
94
|
- 'core/lib/workarea/ext/mongoid/timestamps_timeless.rb'
|
|
157
95
|
- 'storefront/app/view_models/workarea/storefront/search_customization_content.rb'
|
|
158
96
|
- 'testing/lib/workarea/testing/warning_suppressor.rb'
|
|
159
97
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
163
|
-
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
164
|
-
Layout/FirstParameterIndentation:
|
|
98
|
+
Layout/IndentFirstArgument:
|
|
99
|
+
Enabled: true
|
|
165
100
|
Exclude:
|
|
166
101
|
- 'admin/test/helpers/workarea/admin/releases_helper_test.rb'
|
|
167
102
|
- 'admin/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb'
|
|
@@ -171,30 +106,24 @@ Layout/FirstParameterIndentation:
|
|
|
171
106
|
- 'core/app/models/workarea/checkout/auto_complete.rb'
|
|
172
107
|
- 'core/app/models/workarea/content/asset.rb'
|
|
173
108
|
- 'core/app/models/workarea/order.rb'
|
|
174
|
-
- 'core/spec/models/workarea/tax_spec.rb'
|
|
175
109
|
- 'core/test/models/workarea/fulfillment_test.rb'
|
|
176
110
|
- 'storefront/test/system/workarea/storefront/categories_system_test.rb'
|
|
177
111
|
- 'storefront/test/system/workarea/storefront/products_system_test.rb'
|
|
178
112
|
|
|
179
|
-
#
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
Layout/IndentationWidth:
|
|
183
|
-
Enabled: false
|
|
113
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
|
114
|
+
Style/HashSyntax:
|
|
115
|
+
Enabled: true
|
|
184
116
|
|
|
185
|
-
# Offense count: 3
|
|
186
|
-
# Cop supports --auto-correct.
|
|
187
117
|
Layout/SpaceAfterColon:
|
|
118
|
+
Enabled: true
|
|
188
119
|
Exclude:
|
|
189
120
|
- 'testing/lib/workarea/testing/factories/content.rb'
|
|
190
121
|
- 'testing/lib/workarea/testing/factories/pricing.rb'
|
|
191
122
|
|
|
192
|
-
# Offense count: 24
|
|
193
|
-
# Cop supports --auto-correct.
|
|
194
123
|
Layout/SpaceAfterComma:
|
|
124
|
+
Enabled: true
|
|
195
125
|
Exclude:
|
|
196
126
|
- 'admin/app/controllers/workarea/admin/shipping_services_controller.rb'
|
|
197
|
-
- 'admin/spec/view_models/workarea/admin/product_view_model_spec.rb'
|
|
198
127
|
- 'admin/test/helpers/workarea/admin/application_helper_test.rb'
|
|
199
128
|
- 'core/app/models/workarea/payment/credit_card.rb'
|
|
200
129
|
- 'core/app/models/workarea/pricing/request.rb'
|
|
@@ -203,11 +132,8 @@ Layout/SpaceAfterComma:
|
|
|
203
132
|
- 'core/test/queries/workarea/search/range_facet_test.rb'
|
|
204
133
|
- 'storefront/test/view_models/workarea/storefront/package_view_model_test.rb'
|
|
205
134
|
|
|
206
|
-
# Offense count: 6
|
|
207
|
-
# Cop supports --auto-correct.
|
|
208
|
-
# Configuration parameters: EnforcedStyle.
|
|
209
|
-
# SupportedStyles: space, no_space
|
|
210
135
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
136
|
+
Enabled: true
|
|
211
137
|
Exclude:
|
|
212
138
|
- 'admin/app/helpers/workarea/admin/content_block_icon_helper.rb'
|
|
213
139
|
- 'core/app/helpers/workarea/content_assets_helper.rb'
|
|
@@ -215,47 +141,40 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
215
141
|
- 'testing/lib/workarea/system_test.rb'
|
|
216
142
|
- 'testing/lib/workarea/testing/locale_routing_fixes.rb'
|
|
217
143
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
144
|
+
|
|
145
|
+
Layout/SpaceAroundKeyword:
|
|
146
|
+
Enabled: true
|
|
147
|
+
|
|
221
148
|
Layout/SpaceAroundOperators:
|
|
149
|
+
Enabled: true
|
|
222
150
|
Exclude:
|
|
223
151
|
- 'admin/app/controllers/workarea/admin/content_emails_controller.rb'
|
|
224
152
|
- 'admin/app/controllers/workarea/admin/users_controller.rb'
|
|
225
153
|
- 'core/app/helpers/workarea/content_assets_helper.rb'
|
|
154
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post_pws.rb'
|
|
155
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/fedex.rb'
|
|
156
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/stamps.rb'
|
|
226
157
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
#
|
|
231
|
-
|
|
158
|
+
Layout/SpaceBeforeFirstArg:
|
|
159
|
+
Enabled: true
|
|
160
|
+
|
|
161
|
+
# Defining a method with parameters needs parentheses.
|
|
162
|
+
Style/MethodDefParentheses:
|
|
163
|
+
Enabled: true
|
|
164
|
+
|
|
165
|
+
# Use `foo {}` not `foo{}`.
|
|
232
166
|
Layout/SpaceBeforeBlockBraces:
|
|
167
|
+
Enabled: true
|
|
233
168
|
Exclude:
|
|
234
169
|
- 'admin/app/view_models/workarea/admin/release_calendar_view_model.rb'
|
|
235
170
|
|
|
236
|
-
#
|
|
237
|
-
# Cop supports --auto-correct.
|
|
238
|
-
# Configuration parameters: AllowForAlignment.
|
|
239
|
-
Layout/SpaceBeforeFirstArg:
|
|
240
|
-
Exclude:
|
|
241
|
-
- 'core/spec/lib/workarea/swappable_list_spec.rb'
|
|
242
|
-
- 'core/spec/models/workarea/pricing/calculators/discount_calculator_spec.rb'
|
|
243
|
-
|
|
244
|
-
# Offense count: 1
|
|
245
|
-
# Cop supports --auto-correct.
|
|
246
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
247
|
-
# SupportedStyles: space, no_space
|
|
248
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
171
|
+
# Use `foo { bar }` not `foo {bar}`.
|
|
249
172
|
Layout/SpaceInsideBlockBraces:
|
|
250
|
-
|
|
251
|
-
- 'script/convert_to_minitest'
|
|
173
|
+
Enabled: true
|
|
252
174
|
|
|
253
|
-
#
|
|
254
|
-
# Cop supports --auto-correct.
|
|
255
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
256
|
-
# SupportedStyles: space, no_space, compact
|
|
257
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
175
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
|
258
176
|
Layout/SpaceInsideHashLiteralBraces:
|
|
177
|
+
Enabled: true
|
|
259
178
|
Exclude:
|
|
260
179
|
- 'admin/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb'
|
|
261
180
|
- 'admin/test/integration/workarea/admin/shipping_service_integration_test.rb'
|
|
@@ -271,56 +190,32 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
|
271
190
|
- 'core/test/queries/workarea/search/product_rules_test.rb'
|
|
272
191
|
- 'core/test/workers/workarea/generate_content_metadata_test.rb'
|
|
273
192
|
|
|
274
|
-
# Offense count: 4
|
|
275
|
-
# Cop supports --auto-correct.
|
|
276
193
|
Layout/SpaceInsideParens:
|
|
194
|
+
Enabled: true
|
|
277
195
|
Exclude:
|
|
278
196
|
- 'core/app/models/workarea/inventory/collection.rb'
|
|
279
197
|
- 'core/app/models/workarea/pricing/calculators/item_calculator.rb'
|
|
280
198
|
- 'core/spec/models/workarea/order/queries_spec.rb'
|
|
281
199
|
|
|
282
|
-
#
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
286
|
-
Layout/EndAlignment:
|
|
287
|
-
Enabled: false
|
|
288
|
-
|
|
289
|
-
# Offense count: 16
|
|
290
|
-
# Cop supports --auto-correct.
|
|
291
|
-
# Configuration parameters: EnforcedStyle.
|
|
292
|
-
# SupportedStyles: always, conditionals
|
|
293
|
-
Style/AndOr:
|
|
200
|
+
# Detect hard tabs, no hard tabs.
|
|
201
|
+
Layout/Tab:
|
|
202
|
+
Enabled: true
|
|
294
203
|
Exclude:
|
|
295
|
-
- '
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
- 'core/lib/workarea/validators/ip_address_validator.rb'
|
|
301
|
-
- 'script/rename'
|
|
302
|
-
- 'storefront/app/controllers/workarea/storefront/checkout/place_order_controller.rb'
|
|
303
|
-
- 'storefront/app/controllers/workarea/storefront/current_checkout.rb'
|
|
304
|
-
- 'storefront/app/controllers/workarea/storefront/searches_controller.rb'
|
|
305
|
-
- 'storefront/app/controllers/workarea/storefront/users/orders_controller.rb'
|
|
306
|
-
- 'storefront/app/controllers/workarea/storefront/users/passwords_controller.rb'
|
|
204
|
+
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post.rb'
|
|
205
|
+
|
|
206
|
+
# Blank lines should not have any spaces.
|
|
207
|
+
Layout/TrailingBlankLines:
|
|
208
|
+
Enabled: true
|
|
307
209
|
|
|
308
|
-
#
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
210
|
+
# No trailing whitespace.
|
|
211
|
+
Layout/TrailingWhitespace:
|
|
212
|
+
Enabled: true
|
|
213
|
+
|
|
214
|
+
# Use quotes for string literals when they are enough.
|
|
215
|
+
Style/UnneededPercentQ:
|
|
216
|
+
Enabled: true
|
|
314
217
|
|
|
315
|
-
#
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
319
|
-
Style/StringLiterals:
|
|
320
|
-
Enabled: false
|
|
218
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
|
219
|
+
Lint/RequireParentheses:
|
|
220
|
+
Enabled: true
|
|
321
221
|
|
|
322
|
-
# Offense count: 1325
|
|
323
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
324
|
-
# URISchemes: http, https
|
|
325
|
-
Metrics/LineLength:
|
|
326
|
-
Max: 631
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
Workarea 3.4.
|
|
1
|
+
Workarea 3.4.15 (2019-09-04)
|
|
2
|
+
--------------------------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* Customize Search Queries That Return an Exact Match (#22)
|
|
5
|
+
|
|
6
|
+
It's currently possible to customize search queries that return an exact
|
|
7
|
+
match, but instead of seeing the customized results when you run the
|
|
8
|
+
query, you'll be redirected to the product page since the
|
|
9
|
+
`StorefrontSearch::ExactMatches` middleware stops further middleware
|
|
10
|
+
execution and sets a redirect to the product path. To resolve the issue,
|
|
11
|
+
Workarea will now ignore this middleware if a customization is present
|
|
12
|
+
on the search response.
|
|
13
|
+
|
|
14
|
+
Discovered by @ryaan-anthony of **Syatt Media**. Thanks Ryan!
|
|
15
|
+
|
|
16
|
+
* Add Generic Activity Partials (#4)
|
|
17
|
+
|
|
18
|
+
Empty results were still being seen in the trash when a model that
|
|
19
|
+
doesn't explicitly have an activity partial defined is encountered. This
|
|
20
|
+
is due to the `render_activity_entry` helper rescuing an
|
|
21
|
+
`ActionView::TemplateError` to return a blank string. To resolve this
|
|
22
|
+
issue, models that are tracked by `Mongoid::AuditLog`, without an
|
|
23
|
+
explicit activity partial defined will be rendered using a generic
|
|
24
|
+
partial, showing the class name and ID of the audited model, as
|
|
25
|
+
something to render in the listing so that pages of blank results
|
|
26
|
+
aren't shown.
|
|
27
|
+
|
|
28
|
+
* Remove minitest plugin (#12)
|
|
29
|
+
|
|
30
|
+
This existed for CI purposes on Bamboo, and we don't need it here after
|
|
31
|
+
moving to Github. It has been moved the `workarea-ci` gem for backwards
|
|
32
|
+
compatibility.
|
|
33
|
+
|
|
34
|
+
* Fix Deep Duplication of Swappable Lists (#13)
|
|
35
|
+
|
|
36
|
+
The `Workarea::SwappableList` class does not get duplicated correctly
|
|
37
|
+
when `Workarea.config.deep_dup` is used. This was observed while using
|
|
38
|
+
multi-site and attempting to change a swappable list for only one site.
|
|
39
|
+
Define the `#deep_dup` method to return a new object instead of referencing
|
|
40
|
+
the existing one.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* Publish Releases In Background Job
|
|
44
|
+
|
|
45
|
+
When a release is published, but has too many changes, it can cause a
|
|
46
|
+
request timeout because it can't be fully published within the allotted
|
|
47
|
+
15 seconds in production. To prevent this, Workarea now runs all release
|
|
48
|
+
publishing in a background job. The success flash message for when a
|
|
49
|
+
release is published has been updated to inform users that changes may
|
|
50
|
+
take a little while to apply.
|
|
51
|
+
|
|
52
|
+
Fixes #1
|
|
53
|
+
|
|
54
|
+
Workarea 3.4.14 (2019-08-26)
|
|
2
55
|
--------------------------------------------------------------------------------
|
|
3
56
|
|
|
4
57
|
* Fix a test that doesn't reset state
|
data/README.md
CHANGED
|
@@ -68,18 +68,16 @@ Demo
|
|
|
68
68
|
You can run a demo version of workarea by running the following command in your terminal:
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
curl -s https://raw.githubusercontent.com/workarea-commerce/workarea
|
|
71
|
+
curl -s https://raw.githubusercontent.com/workarea-commerce/workarea/master/demo/install | bash
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
It requires you have Docker installed and running. Once complete, you can visit `http://localhost:3000` to view your app.
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
* build a Docker image for the application
|
|
78
|
-
* start containers for the application and required services
|
|
79
|
-
* seed the database
|
|
80
|
-
* start the application server
|
|
76
|
+
The seed data provides an admin user with an email/password of `user@workarea.com/w0rkArea!`.
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
See the [README](demo/README.md) in the `demo` directory for more information.
|
|
79
|
+
|
|
80
|
+
For more information on usage and troubleshooting, see the [workarea-demo](https://github.com/workarea-commerce/workarea-demo) page.
|
|
83
81
|
|
|
84
82
|
Getting Started
|
|
85
83
|
--------------------------------------------------------------------------------
|
|
@@ -37,6 +37,7 @@ Since version 3.4.0, Workarea also provides upgrade guides for minor and major p
|
|
|
37
37
|
|
|
38
38
|
### Workarea 3.4
|
|
39
39
|
|
|
40
|
+
- [Workarea 3.4.15](release-notes/workarea-3-4-15.html)
|
|
40
41
|
- [Workarea 3.4.12](release-notes/workarea-3-4-12.html)
|
|
41
42
|
- [Workarea 3.4.11](release-notes/workarea-3-4-11.html)
|
|
42
43
|
- [Workarea 3.4.10](release-notes/workarea-3-4-10.html)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Workarea 3.4.15
|
|
3
|
+
excerpt: Patch release notes for Workarea 3.4.15.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Workarea 3.4.15
|
|
7
|
+
|
|
8
|
+
Patch release notes for Workarea 3.4.15.
|
|
9
|
+
|
|
10
|
+
## Publish Releases In Background Job
|
|
11
|
+
|
|
12
|
+
When a release is published, but has too many changes, it can cause a
|
|
13
|
+
request timeout because it can't be fully published within the allotted
|
|
14
|
+
15 seconds in production. To prevent this, Workarea now runs all release
|
|
15
|
+
publishing in a background job. The success flash message for when a
|
|
16
|
+
release is published has been updated to inform users that changes may
|
|
17
|
+
take a little while to apply.
|
|
18
|
+
|
|
19
|
+
### Issues
|
|
20
|
+
|
|
21
|
+
- [1](https://github.com/workarea-commerce/workarea/issues/1)
|
|
22
|
+
|
|
23
|
+
### Pull Requests
|
|
24
|
+
|
|
25
|
+
- [1](https://github.com/workarea-commerce/workarea/pull/1)
|
|
26
|
+
|
|
27
|
+
## Fix Incorrect Currency in Mongoid Money Types
|
|
28
|
+
|
|
29
|
+
Workarea's default values for the Money fields in `Pricing::Override`
|
|
30
|
+
didn't previously change currency when `Money.default_currency` is
|
|
31
|
+
re-configured in process (like in the case of a multi-site application
|
|
32
|
+
with multiple currencies). Ensure that the correct currency is used by
|
|
33
|
+
using an Integer type as the default, which will get converted into a
|
|
34
|
+
Money type at runtime.
|
|
35
|
+
|
|
36
|
+
### Issues
|
|
37
|
+
|
|
38
|
+
- [ECOMMERCE-7067](https://jira.tools.weblinc.com/browse/ECOMMERCE-7067)
|
|
39
|
+
|
|
40
|
+
### Pull Requests
|
|
41
|
+
|
|
42
|
+
- [7](https://github.com/workarea-commerce/workarea/pull/7)
|
|
43
|
+
- [9](https://github.com/workarea-commerce/workarea/pull/9)
|
|
44
|
+
|
|
45
|
+
## Remove Minitest Plugin
|
|
46
|
+
|
|
47
|
+
This existed for CI purposes on Bamboo, and we don't need it here after
|
|
48
|
+
moving to Github. It has been moved the `workarea-ci` gem for backwards
|
|
49
|
+
compatibility.
|
|
50
|
+
|
|
51
|
+
### Issues
|
|
52
|
+
|
|
53
|
+
- [12](https://github.com/workarea-commerce/workarea/issues/12)
|
|
54
|
+
|
|
55
|
+
### Pull Requests
|
|
56
|
+
|
|
57
|
+
- [12](https://github.com/workarea-commerce/workarea/pull/12)
|
|
58
|
+
|
|
59
|
+
## Multi-site config swappable lists
|
|
60
|
+
|
|
61
|
+
The `Workarea::SwappableList` class does not get duplicated correctly
|
|
62
|
+
when `Workarea.config.deep_dup` is used. This was observed while using
|
|
63
|
+
multi-site and attempting to change a swappable list for only one site.
|
|
64
|
+
Define the `#deep_dup` method to return a new object instead of referencing
|
|
65
|
+
the existing one.
|
|
66
|
+
|
|
67
|
+
### Issues
|
|
68
|
+
|
|
69
|
+
- [ECOMMERCE-7038](https://jira.tools.weblinc.com/browse/ECOMMERCE-7038)
|
|
70
|
+
|
|
71
|
+
### Pull Requests
|
|
72
|
+
|
|
73
|
+
- [13](https://github.com/workarea-commerce/workarea/pull/13)
|
|
74
|
+
|
|
75
|
+
## Update Default Admin Password
|
|
76
|
+
|
|
77
|
+
Change the default admin password when an app is seeded. #branding
|
|
78
|
+
|
|
79
|
+
### Issues
|
|
80
|
+
|
|
81
|
+
- [10](https://github.com/workarea-commerce/workarea/issues/10)
|
|
82
|
+
|
|
83
|
+
### Pull Requests
|
|
84
|
+
|
|
85
|
+
- [10](https://github.com/workarea-commerce/workarea/pull/10)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## Fix Product Images URL from Seeds
|
|
89
|
+
|
|
90
|
+
Fixes the URL used to download product images in seed data.
|
|
91
|
+
|
|
92
|
+
### Issues
|
|
93
|
+
|
|
94
|
+
- [3](https://github.com/workarea-commerce/workarea/issues/3)
|
|
95
|
+
|
|
96
|
+
### Pull Requests
|
|
97
|
+
|
|
98
|
+
- [3](https://github.com/workarea-commerce/workarea/pull/3)
|
|
99
|
+
|
|
100
|
+
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workarea
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Crouse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: workarea-core
|
|
@@ -16,56 +16,56 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.4.
|
|
19
|
+
version: 3.4.15
|
|
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: 3.4.
|
|
26
|
+
version: 3.4.15
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: workarea-storefront
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 3.4.
|
|
33
|
+
version: 3.4.15
|
|
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: 3.4.
|
|
40
|
+
version: 3.4.15
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: workarea-admin
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.4.
|
|
47
|
+
version: 3.4.15
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 3.4.
|
|
54
|
+
version: 3.4.15
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: workarea-testing
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - '='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 3.4.
|
|
61
|
+
version: 3.4.15
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - '='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 3.4.
|
|
68
|
+
version: 3.4.15
|
|
69
69
|
description: Workarea is an enterprise-grade Ruby on Rails commerce platform.
|
|
70
70
|
email:
|
|
71
71
|
- bcrouse@workarea.com
|
|
@@ -616,6 +616,7 @@ files:
|
|
|
616
616
|
- docs/source/release-notes/workarea-3-4-10.html.md
|
|
617
617
|
- docs/source/release-notes/workarea-3-4-11.html.md
|
|
618
618
|
- docs/source/release-notes/workarea-3-4-12.html.md
|
|
619
|
+
- docs/source/release-notes/workarea-3-4-15.html.md
|
|
619
620
|
- docs/source/release-notes/workarea-3-4-2.html.md
|
|
620
621
|
- docs/source/release-notes/workarea-3-4-3.html.md
|
|
621
622
|
- docs/source/release-notes/workarea-3-4-4.html.md
|