workarea-upgrade 3.0.2

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0a76175896dda7e7ad7d89c1db46757e72c7c9b715f6e98f321438349bf71533
4
+ data.tar.gz: 26867462c3befb4b594edaa664bf6a1eea7153d3d275ef8afd729a4493417653
5
+ SHA512:
6
+ metadata.gz: 3f179afcccdd2d925fd4e95171554d56317109df61e26efc27717ea2771319e27d8421a2027ae63d5fafe3785cc32856bba0b546c7ac114fa1e4dfccef355020
7
+ data.tar.gz: 3a40bf7258dd0570370bc08c4644a0faad3f528138711e4eca0fe4685e70a16bb8d92eb4ccfc6b0da50b0beb616c9fa594ffafb9617e266f24948aa3c79a1442
@@ -0,0 +1,20 @@
1
+ # editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ end_of_line = lf
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [{*.rb,*.haml,*.decorator,*.yml,*.yaml,*.jbuilder}]
12
+ indent_size = 2
13
+ indent_style = space
14
+
15
+ [{*.js,*.jst,*.ejs,*.scss}]
16
+ indent_size = 4
17
+
18
+ [*.md]
19
+ indent_size = 4
20
+ trim_trailing_whitespace = false
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve Workarea
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ⚠️**Before you create**⚠️
11
+ Please verify the issue you're experiencing is not part of your Workarea project customizations. The best way to do this is with a [vanilla Workarea installation](https://developer.workarea.com/articles/create-a-new-host-application.html). This will help us spend time on fixes/improvements for the whole community. Thank you!
12
+
13
+ **Describe the bug**
14
+ A clear and concise description of what the bug is.
15
+
16
+ **To Reproduce**
17
+ Steps to reproduce the behavior:
18
+ 1. Go to '...'
19
+ 2. Click on '....'
20
+ 3. Scroll down to '....'
21
+ 4. See error
22
+
23
+ **Expected behavior**
24
+ A clear and concise description of what you expected to happen.
25
+
26
+ **Workarea Setup (please complete the following information):**
27
+ - Workarea Version: [e.g. v3.4.6]
28
+ - Plugins [e.g. workarea-blog, workarea-sitemaps]
29
+
30
+ **Attachments**
31
+ If applicable, add any attachments to help explain your problem, things like:
32
+ - screenshots
33
+ - Gemfile.lock
34
+ - test cases
35
+
36
+ **Additional context**
37
+ Add any other context about the problem here.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: Documentation request
3
+ about: Suggest documentation
4
+ title: ''
5
+ labels: documentation
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your documentation related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm confused by [...]
12
+
13
+ **Describe the article you'd like**
14
+ A clear and concise description of what would be in the documentation article.
15
+
16
+ **Additional context**
17
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for Workarea
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,11 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ spec/dummy/db/*.sqlite3
5
+ spec/dummy/db/*.sqlite3-journal
6
+ spec/dummy/log/*.log
7
+ spec/dummy/tmp/
8
+ spec/dummy/.sass-cache
9
+ Gemfile.lock
10
+ spec/dummy/public/system/dragonfly
11
+ .DS_STORE
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --failure-exit-code 0
@@ -0,0 +1,327 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+ # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
4
+ # to ignore them, so only the ones explicitly set in this file are enabled.
5
+ DisabledByDefault: true
6
+
7
+ Rails/TimeZone:
8
+ Enabled: true
9
+
10
+ # Prefer &&/|| over and/or.
11
+ Style/AndOr:
12
+ Enabled: true
13
+ Exclude:
14
+ - 'testing/lib/workarea/performance_test.rb'
15
+
16
+ # Do not use braces for hash literals when they are the last argument of a
17
+ # method call.
18
+ Style/BracesAroundHashParameters:
19
+ Enabled: true
20
+ EnforcedStyle: context_dependent
21
+
22
+ # Align `when` with `case`.
23
+ Layout/CaseIndentation:
24
+ Enabled: true
25
+
26
+ # Align comments with method definitions.
27
+ Layout/CommentIndentation:
28
+ Enabled: true
29
+
30
+ Layout/EmptyLineAfterMagicComment:
31
+ Enabled: true
32
+
33
+ # In a regular class definition, no empty lines around the body.
34
+ Layout/EmptyLinesAroundClassBody:
35
+ Enabled: true
36
+
37
+ # In a regular method definition, no empty lines around the body.
38
+ Layout/EmptyLinesAroundMethodBody:
39
+ Enabled: true
40
+
41
+ # In a regular module definition, no empty lines around the body.
42
+ Layout/EmptyLinesAroundModuleBody:
43
+ 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
+ Exclude:
155
+ - 'admin/spec/view_models/workarea/admin/product_view_model_spec.rb'
156
+ - 'core/lib/workarea/ext/mongoid/timestamps_timeless.rb'
157
+ - 'storefront/app/view_models/workarea/storefront/search_customization_content.rb'
158
+ - 'testing/lib/workarea/testing/warning_suppressor.rb'
159
+
160
+ # Offense count: 19
161
+ # Cop supports --auto-correct.
162
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
163
+ # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
164
+ Layout/FirstParameterIndentation:
165
+ Exclude:
166
+ - 'admin/test/helpers/workarea/admin/releases_helper_test.rb'
167
+ - 'admin/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb'
168
+ - 'admin/test/integration/workarea/admin/products_integration_test.rb'
169
+ - 'admin/test/system/workarea/admin/users_system_test.rb'
170
+ - 'core/app/models/workarea/catalog/product_placeholder_image.rb'
171
+ - 'core/app/models/workarea/checkout/auto_complete.rb'
172
+ - 'core/app/models/workarea/content/asset.rb'
173
+ - 'core/app/models/workarea/order.rb'
174
+ - 'core/spec/models/workarea/tax_spec.rb'
175
+ - 'core/test/models/workarea/fulfillment_test.rb'
176
+ - 'storefront/test/system/workarea/storefront/categories_system_test.rb'
177
+ - 'storefront/test/system/workarea/storefront/products_system_test.rb'
178
+
179
+ # Offense count: 70
180
+ # Cop supports --auto-correct.
181
+ # Configuration parameters: Width, IgnoredPatterns.
182
+ Layout/IndentationWidth:
183
+ Enabled: false
184
+
185
+ # Offense count: 3
186
+ # Cop supports --auto-correct.
187
+ Layout/SpaceAfterColon:
188
+ Exclude:
189
+ - 'testing/lib/workarea/testing/factories/content.rb'
190
+ - 'testing/lib/workarea/testing/factories/pricing.rb'
191
+
192
+ # Offense count: 24
193
+ # Cop supports --auto-correct.
194
+ Layout/SpaceAfterComma:
195
+ Exclude:
196
+ - 'admin/app/controllers/workarea/admin/shipping_services_controller.rb'
197
+ - 'admin/spec/view_models/workarea/admin/product_view_model_spec.rb'
198
+ - 'admin/test/helpers/workarea/admin/application_helper_test.rb'
199
+ - 'core/app/models/workarea/payment/credit_card.rb'
200
+ - 'core/app/models/workarea/pricing/request.rb'
201
+ - 'core/spec/lib/workarea/swappable_list_spec.rb'
202
+ - 'core/test/models/workarea/inventory_test.rb'
203
+ - 'core/test/queries/workarea/search/range_facet_test.rb'
204
+ - 'docs/guides/source/app_template.rb'
205
+ - 'storefront/test/view_models/workarea/storefront/package_view_model_test.rb'
206
+
207
+ # Offense count: 6
208
+ # Cop supports --auto-correct.
209
+ # Configuration parameters: EnforcedStyle.
210
+ # SupportedStyles: space, no_space
211
+ Layout/SpaceAroundEqualsInParameterDefault:
212
+ Exclude:
213
+ - 'admin/app/helpers/workarea/admin/content_block_icon_helper.rb'
214
+ - 'core/app/helpers/workarea/content_assets_helper.rb'
215
+ - 'core/lib/workarea/elasticsearch/query_cache.rb'
216
+ - 'testing/lib/workarea/system_test.rb'
217
+ - 'testing/lib/workarea/testing/locale_routing_fixes.rb'
218
+
219
+ # Offense count: 3
220
+ # Cop supports --auto-correct.
221
+ # Configuration parameters: AllowForAlignment.
222
+ Layout/SpaceAroundOperators:
223
+ Exclude:
224
+ - 'admin/app/controllers/workarea/admin/content_emails_controller.rb'
225
+ - 'admin/app/controllers/workarea/admin/users_controller.rb'
226
+ - 'core/app/helpers/workarea/content_assets_helper.rb'
227
+
228
+ # Offense count: 1
229
+ # Cop supports --auto-correct.
230
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
231
+ # SupportedStyles: space, no_space
232
+ # SupportedStylesForEmptyBraces: space, no_space
233
+ Layout/SpaceBeforeBlockBraces:
234
+ Exclude:
235
+ - 'admin/app/view_models/workarea/admin/release_calendar_view_model.rb'
236
+
237
+ # Offense count: 4
238
+ # Cop supports --auto-correct.
239
+ # Configuration parameters: AllowForAlignment.
240
+ Layout/SpaceBeforeFirstArg:
241
+ Exclude:
242
+ - 'core/spec/lib/workarea/swappable_list_spec.rb'
243
+ - 'core/spec/models/workarea/pricing/calculators/discount_calculator_spec.rb'
244
+
245
+ # Offense count: 1
246
+ # Cop supports --auto-correct.
247
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
248
+ # SupportedStyles: space, no_space
249
+ # SupportedStylesForEmptyBraces: space, no_space
250
+ Layout/SpaceInsideBlockBraces:
251
+ Exclude:
252
+ - 'script/convert_to_minitest'
253
+
254
+ # Offense count: 28
255
+ # Cop supports --auto-correct.
256
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
257
+ # SupportedStyles: space, no_space, compact
258
+ # SupportedStylesForEmptyBraces: space, no_space
259
+ Layout/SpaceInsideHashLiteralBraces:
260
+ Exclude:
261
+ - 'admin/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb'
262
+ - 'admin/test/integration/workarea/admin/shipping_service_integration_test.rb'
263
+ - 'admin/test/integration/workarea/admin/tax_categories_integration_test.rb'
264
+ - 'admin/test/view_models/workarea/admin/changeset_view_model_test.rb'
265
+ - 'core/app/models/workarea/release/changeset.rb'
266
+ - 'core/app/queries/workarea/search/product_rules.rb'
267
+ - 'core/app/queries/workarea/search/term_filter.rb'
268
+ - 'core/lib/workarea/configuration.rb'
269
+ - 'core/spec/models/workarea/order_spec.rb'
270
+ - 'core/test/models/workarea/application_document_test.rb'
271
+ - 'core/test/models/workarea/fulfillment_test.rb'
272
+ - 'core/test/queries/workarea/search/product_rules_test.rb'
273
+ - 'core/test/workers/workarea/generate_content_metadata_test.rb'
274
+
275
+ # Offense count: 4
276
+ # Cop supports --auto-correct.
277
+ Layout/SpaceInsideParens:
278
+ Exclude:
279
+ - 'core/app/models/workarea/inventory/collection.rb'
280
+ - 'core/app/models/workarea/pricing/calculators/item_calculator.rb'
281
+ - 'core/spec/models/workarea/order/queries_spec.rb'
282
+
283
+ # Offense count: 59
284
+ # Cop supports --auto-correct.
285
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect.
286
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
287
+ Layout/EndAlignment:
288
+ Enabled: false
289
+
290
+ # Offense count: 16
291
+ # Cop supports --auto-correct.
292
+ # Configuration parameters: EnforcedStyle.
293
+ # SupportedStyles: always, conditionals
294
+ Style/AndOr:
295
+ Exclude:
296
+ - 'admin/app/controllers/workarea/admin/help_authorization.rb'
297
+ - 'admin/app/controllers/workarea/admin/users_controller.rb'
298
+ - 'core/app/controllers/workarea/authorization.rb'
299
+ - 'core/app/models/workarea/analytics/time_series.rb'
300
+ - 'core/app/models/workarea/payment/operation.rb'
301
+ - 'core/lib/workarea/validators/ip_address_validator.rb'
302
+ - 'script/rename'
303
+ - 'storefront/app/controllers/workarea/storefront/checkout/place_order_controller.rb'
304
+ - 'storefront/app/controllers/workarea/storefront/current_checkout.rb'
305
+ - 'storefront/app/controllers/workarea/storefront/searches_controller.rb'
306
+ - 'storefront/app/controllers/workarea/storefront/users/orders_controller.rb'
307
+ - 'storefront/app/controllers/workarea/storefront/users/passwords_controller.rb'
308
+
309
+ # Offense count: 89
310
+ # Cop supports --auto-correct.
311
+ # Configuration parameters: EnforcedStyle.
312
+ # SupportedStyles: braces, no_braces, context_dependent
313
+ Style/BracesAroundHashParameters:
314
+ Enabled: false
315
+
316
+ # Offense count: 216
317
+ # Cop supports --auto-correct.
318
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
319
+ # SupportedStyles: single_quotes, double_quotes
320
+ Style/StringLiterals:
321
+ Enabled: false
322
+
323
+ # Offense count: 1325
324
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
325
+ # URISchemes: http, https
326
+ Metrics/LineLength:
327
+ Max: 631