decidim-dev 0.27.6 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/dummy_resources/create_dummy_resource.rb +0 -1
  3. data/app/events/decidim/dummy_resources/dummy_resource_event.rb +10 -0
  4. data/app/jobs/decidim/dummy_resources/hide_all_created_by_author_job.rb +13 -0
  5. data/app/models/decidim/dummy_resources/application_record.rb +9 -0
  6. data/app/models/decidim/dummy_resources/coauthorable_dummy_resource.rb +10 -0
  7. data/app/models/decidim/dummy_resources/dummy_resource.rb +93 -0
  8. data/app/models/decidim/dummy_resources/nested_dummy_resource.rb +10 -0
  9. data/app/packs/src/decidim/dev/accessibility.js +3 -3
  10. data/app/packs/src/decidim/dev/test/custom_map_factory.js +1 -1
  11. data/app/packs/stylesheets/decidim/dev/_accessibility.scss +24 -24
  12. data/app/packs/stylesheets/decidim/dev/_map.scss +10 -0
  13. data/app/packs/stylesheets/decidim/dev.scss +1 -0
  14. data/app/presenters/decidim/dummy_resources/official_author_presenter.rb +33 -0
  15. data/app/serializers/decidim/dummy_resources/dummy_serializer.rb +21 -0
  16. data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +22 -12
  17. data/config/locales/ar.yml +0 -1
  18. data/config/locales/bg.yml +0 -1
  19. data/config/locales/de.yml +1 -1
  20. data/config/locales/el.yml +0 -1
  21. data/config/locales/en.yml +1 -1
  22. data/config/locales/es-MX.yml +1 -1
  23. data/config/locales/es-PY.yml +1 -1
  24. data/config/locales/eu.yml +3 -3
  25. data/config/locales/gl.yml +0 -1
  26. data/config/locales/hu.yml +2 -3
  27. data/config/locales/id-ID.yml +0 -1
  28. data/config/locales/it.yml +0 -1
  29. data/config/locales/lv.yml +0 -1
  30. data/config/locales/nl.yml +0 -1
  31. data/config/locales/no.yml +0 -1
  32. data/config/locales/pl.yml +0 -9
  33. data/config/locales/pt-BR.yml +0 -9
  34. data/config/locales/pt.yml +0 -1
  35. data/config/locales/ru.yml +0 -1
  36. data/config/locales/sk.yml +0 -1
  37. data/config/locales/sv.yml +0 -1
  38. data/config/locales/tr-TR.yml +0 -1
  39. data/config/locales/zh-CN.yml +0 -1
  40. data/config/rubocop/disabled.yml +11 -0
  41. data/config/rubocop/faker.yml +480 -0
  42. data/config/rubocop/rails.yml +105 -0
  43. data/config/rubocop/rspec.yml +69 -0
  44. data/config/rubocop/ruby.yml +1207 -0
  45. data/lib/decidim/dev/assets/import_participatory_space_private_users.csv +2 -2
  46. data/lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv +2 -0
  47. data/lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv +2 -2
  48. data/lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv +1 -1
  49. data/lib/decidim/dev/assets/iso-8859-15.md +1 -1
  50. data/lib/decidim/dev/assets/participatory_text.md +4 -2
  51. data/lib/decidim/dev/assets/verify_user_groups.csv +22 -22
  52. data/lib/decidim/dev/engine.rb +4 -3
  53. data/lib/decidim/dev/test/factories.rb +3 -5
  54. data/lib/decidim/dev/test/form_to_param_shared_examples.rb +1 -1
  55. data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +9 -9
  56. data/lib/decidim/dev/test/rspec_support/accessibility_examples.rb +119 -1
  57. data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +2 -2
  58. data/lib/decidim/dev/test/rspec_support/bullet.rb +32 -0
  59. data/lib/decidim/dev/test/rspec_support/capybara.rb +26 -25
  60. data/lib/decidim/dev/test/rspec_support/cell_matchers.rb +1 -1
  61. data/lib/decidim/dev/test/rspec_support/component.rb +1 -311
  62. data/lib/decidim/dev/test/rspec_support/component_context.rb +10 -10
  63. data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +18 -14
  64. data/lib/decidim/dev/test/rspec_support/data_consent.rb +2 -2
  65. data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +19 -4
  66. data/lib/decidim/dev/test/rspec_support/editor_context.rb +35 -0
  67. data/lib/decidim/dev/test/rspec_support/engine_examples.rb +15 -0
  68. data/lib/decidim/dev/test/rspec_support/filters.rb +11 -0
  69. data/lib/decidim/dev/test/rspec_support/forms_validations.rb +20 -0
  70. data/lib/decidim/dev/test/rspec_support/geocoder.rb +3 -3
  71. data/lib/decidim/dev/test/rspec_support/helpers.rb +187 -34
  72. data/lib/decidim/dev/test/rspec_support/imports_controller_shared_examples.rb +11 -11
  73. data/lib/decidim/dev/test/rspec_support/tom_select.rb +26 -0
  74. data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +8 -8
  75. data/lib/decidim/dev/test/rspec_support/warden.rb +1 -1
  76. data/lib/decidim/dev/test/rspec_support/webpacker.rb +4 -22
  77. data/lib/decidim/dev/test/spec_helper.rb +14 -3
  78. data/lib/decidim/dev/test/w3c_rspec_validators_overrides.rb +1 -5
  79. data/lib/decidim/dev/version.rb +1 -1
  80. data/lib/decidim/dev.rb +9 -0
  81. data/lib/decidim/dummy_resources/admin.rb +8 -0
  82. data/lib/decidim/dummy_resources/admin_engine.rb +43 -0
  83. data/lib/decidim/dummy_resources/component.rb +94 -0
  84. data/lib/decidim/dummy_resources/engine.rb +28 -0
  85. data/lib/decidim/dummy_resources.rb +20 -0
  86. data/lib/tasks/lighthouse_report.rake +29 -7
  87. data/rubocop-decidim.yml +13 -0
  88. metadata +122 -70
  89. data/config/locales/he-IL.yml +0 -1
  90. data/decidim-dev.gemspec +0 -56
  91. data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +0 -36
  92. data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +0 -92
  93. data/lib/decidim/dev/test/rspec_support/concurrency.rb +0 -23
  94. data/lib/decidim/dev/test/rspec_support/decidim_sanitization.rb +0 -5
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.6
4
+ version: 0.28.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-30 00:00:00.000000000 Z
13
+ date: 2023-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -18,182 +18,194 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '3.24'
21
+ version: '3.39'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '3.24'
28
+ version: '3.39'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.27.6
35
+ version: 0.28.0.rc4
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.27.6
42
+ version: 0.28.0.rc4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '4.8'
49
+ version: '6.2'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '4.8'
56
+ version: '6.2'
57
57
  - !ruby/object:Gem::Dependency
58
- name: axe-core-rspec
58
+ name: faker
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 4.1.0
63
+ version: '3.2'
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 4.1.0
70
+ version: '3.2'
71
71
  - !ruby/object:Gem::Dependency
72
- name: byebug
72
+ name: bullet
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '11.0'
77
+ version: '7.0'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '11.0'
84
+ version: '7.0'
85
85
  - !ruby/object:Gem::Dependency
86
- name: db-query-matchers
86
+ name: byebug
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - "~>"
90
90
  - !ruby/object:Gem::Version
91
- version: 0.10.0
91
+ version: '11.0'
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - "~>"
97
97
  - !ruby/object:Gem::Version
98
- version: 0.10.0
98
+ version: '11.0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: erb_lint
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 0.0.35
105
+ version: 0.4.0
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 0.0.35
112
+ version: 0.4.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: i18n-tasks
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: 0.9.18
119
+ version: '1.0'
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - "~>"
125
125
  - !ruby/object:Gem::Version
126
- version: 0.9.18
126
+ version: '1.0'
127
127
  - !ruby/object:Gem::Dependency
128
- name: mdl
128
+ name: nokogiri
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '0.5'
133
+ version: '1.14'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 1.14.3
134
137
  type: :runtime
135
138
  prerelease: false
136
139
  version_requirements: !ruby/object:Gem::Requirement
137
140
  requirements:
138
141
  - - "~>"
139
142
  - !ruby/object:Gem::Version
140
- version: '0.5'
143
+ version: '1.14'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 1.14.3
141
147
  - !ruby/object:Gem::Dependency
142
- name: nokogiri
148
+ name: parallel_tests
143
149
  requirement: !ruby/object:Gem::Requirement
144
150
  requirements:
145
151
  - - "~>"
146
152
  - !ruby/object:Gem::Version
147
- version: '1.13'
153
+ version: '4.2'
148
154
  type: :runtime
149
155
  prerelease: false
150
156
  version_requirements: !ruby/object:Gem::Requirement
151
157
  requirements:
152
158
  - - "~>"
153
159
  - !ruby/object:Gem::Version
154
- version: '1.13'
160
+ version: '4.2'
155
161
  - !ruby/object:Gem::Dependency
156
- name: parallel_tests
162
+ name: puma
157
163
  requirement: !ruby/object:Gem::Requirement
158
164
  requirements:
159
165
  - - "~>"
160
166
  - !ruby/object:Gem::Version
161
- version: '3.7'
167
+ version: '6.2'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 6.3.1
162
171
  type: :runtime
163
172
  prerelease: false
164
173
  version_requirements: !ruby/object:Gem::Requirement
165
174
  requirements:
166
175
  - - "~>"
167
176
  - !ruby/object:Gem::Version
168
- version: '3.7'
177
+ version: '6.2'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 6.3.1
169
181
  - !ruby/object:Gem::Dependency
170
- name: puma
182
+ name: rails-controller-testing
171
183
  requirement: !ruby/object:Gem::Requirement
172
184
  requirements:
173
185
  - - "~>"
174
186
  - !ruby/object:Gem::Version
175
- version: '5.0'
187
+ version: '1.0'
176
188
  type: :runtime
177
189
  prerelease: false
178
190
  version_requirements: !ruby/object:Gem::Requirement
179
191
  requirements:
180
192
  - - "~>"
181
193
  - !ruby/object:Gem::Version
182
- version: '5.0'
194
+ version: '1.0'
183
195
  - !ruby/object:Gem::Dependency
184
- name: rails-controller-testing
196
+ name: rspec
185
197
  requirement: !ruby/object:Gem::Requirement
186
198
  requirements:
187
199
  - - "~>"
188
200
  - !ruby/object:Gem::Version
189
- version: '1.0'
201
+ version: '3.12'
190
202
  type: :runtime
191
203
  prerelease: false
192
204
  version_requirements: !ruby/object:Gem::Requirement
193
205
  requirements:
194
206
  - - "~>"
195
207
  - !ruby/object:Gem::Version
196
- version: '1.0'
208
+ version: '3.12'
197
209
  - !ruby/object:Gem::Dependency
198
210
  name: rspec-cells
199
211
  requirement: !ruby/object:Gem::Requirement
@@ -214,42 +226,42 @@ dependencies:
214
226
  requirements:
215
227
  - - "~>"
216
228
  - !ruby/object:Gem::Version
217
- version: 0.9.1
229
+ version: '0.10'
218
230
  type: :runtime
219
231
  prerelease: false
220
232
  version_requirements: !ruby/object:Gem::Requirement
221
233
  requirements:
222
234
  - - "~>"
223
235
  - !ruby/object:Gem::Version
224
- version: 0.9.1
236
+ version: '0.10'
225
237
  - !ruby/object:Gem::Dependency
226
238
  name: rspec_junit_formatter
227
239
  requirement: !ruby/object:Gem::Requirement
228
240
  requirements:
229
241
  - - "~>"
230
242
  - !ruby/object:Gem::Version
231
- version: 0.3.0
243
+ version: 0.6.0
232
244
  type: :runtime
233
245
  prerelease: false
234
246
  version_requirements: !ruby/object:Gem::Requirement
235
247
  requirements:
236
248
  - - "~>"
237
249
  - !ruby/object:Gem::Version
238
- version: 0.3.0
250
+ version: 0.6.0
239
251
  - !ruby/object:Gem::Dependency
240
252
  name: rspec-rails
241
253
  requirement: !ruby/object:Gem::Requirement
242
254
  requirements:
243
255
  - - "~>"
244
256
  - !ruby/object:Gem::Version
245
- version: '4.0'
257
+ version: '6.0'
246
258
  type: :runtime
247
259
  prerelease: false
248
260
  version_requirements: !ruby/object:Gem::Requirement
249
261
  requirements:
250
262
  - - "~>"
251
263
  - !ruby/object:Gem::Version
252
- version: '4.0'
264
+ version: '6.0'
253
265
  - !ruby/object:Gem::Dependency
254
266
  name: rspec-retry
255
267
  requirement: !ruby/object:Gem::Requirement
@@ -270,70 +282,84 @@ dependencies:
270
282
  requirements:
271
283
  - - "~>"
272
284
  - !ruby/object:Gem::Version
273
- version: 1.28.0
285
+ version: 1.50.0
274
286
  type: :runtime
275
287
  prerelease: false
276
288
  version_requirements: !ruby/object:Gem::Requirement
277
289
  requirements:
278
290
  - - "~>"
279
291
  - !ruby/object:Gem::Version
280
- version: 1.28.0
292
+ version: 1.50.0
293
+ - !ruby/object:Gem::Dependency
294
+ name: rubocop-faker
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '1.1'
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: '1.1'
281
307
  - !ruby/object:Gem::Dependency
282
308
  name: rubocop-rails
283
309
  requirement: !ruby/object:Gem::Requirement
284
310
  requirements:
285
311
  - - "~>"
286
312
  - !ruby/object:Gem::Version
287
- version: '2.14'
313
+ version: '2.19'
288
314
  type: :runtime
289
315
  prerelease: false
290
316
  version_requirements: !ruby/object:Gem::Requirement
291
317
  requirements:
292
318
  - - "~>"
293
319
  - !ruby/object:Gem::Version
294
- version: '2.14'
320
+ version: '2.19'
295
321
  - !ruby/object:Gem::Dependency
296
322
  name: rubocop-rspec
297
323
  requirement: !ruby/object:Gem::Requirement
298
324
  requirements:
299
325
  - - "~>"
300
326
  - !ruby/object:Gem::Version
301
- version: '2.10'
327
+ version: '2.20'
302
328
  type: :runtime
303
329
  prerelease: false
304
330
  version_requirements: !ruby/object:Gem::Requirement
305
331
  requirements:
306
332
  - - "~>"
307
333
  - !ruby/object:Gem::Version
308
- version: '2.10'
334
+ version: '2.20'
309
335
  - !ruby/object:Gem::Dependency
310
336
  name: selenium-webdriver
311
337
  requirement: !ruby/object:Gem::Requirement
312
338
  requirements:
313
339
  - - "~>"
314
340
  - !ruby/object:Gem::Version
315
- version: 4.1.0
341
+ version: '4.9'
316
342
  type: :runtime
317
343
  prerelease: false
318
344
  version_requirements: !ruby/object:Gem::Requirement
319
345
  requirements:
320
346
  - - "~>"
321
347
  - !ruby/object:Gem::Version
322
- version: 4.1.0
348
+ version: '4.9'
323
349
  - !ruby/object:Gem::Dependency
324
350
  name: simplecov
325
351
  requirement: !ruby/object:Gem::Requirement
326
352
  requirements:
327
353
  - - "~>"
328
354
  - !ruby/object:Gem::Version
329
- version: 0.21.0
355
+ version: 0.22.0
330
356
  type: :runtime
331
357
  prerelease: false
332
358
  version_requirements: !ruby/object:Gem::Requirement
333
359
  requirements:
334
360
  - - "~>"
335
361
  - !ruby/object:Gem::Version
336
- version: 0.21.0
362
+ version: 0.22.0
337
363
  - !ruby/object:Gem::Dependency
338
364
  name: simplecov-cobertura
339
365
  requirement: !ruby/object:Gem::Requirement
@@ -368,14 +394,14 @@ dependencies:
368
394
  requirements:
369
395
  - - "~>"
370
396
  - !ruby/object:Gem::Version
371
- version: '3.6'
397
+ version: '3.18'
372
398
  type: :runtime
373
399
  prerelease: false
374
400
  version_requirements: !ruby/object:Gem::Requirement
375
401
  requirements:
376
402
  - - "~>"
377
403
  - !ruby/object:Gem::Version
378
- version: '3.6'
404
+ version: '3.18'
379
405
  - !ruby/object:Gem::Dependency
380
406
  name: wisper-rspec
381
407
  requirement: !ruby/object:Gem::Requirement
@@ -404,8 +430,14 @@ files:
404
430
  - app/commands/decidim/dummy_resources/create_dummy_resource.rb
405
431
  - app/controllers/concerns/decidim/dev/needs_development_tools.rb
406
432
  - app/controllers/decidim/dummy_resources/dummy_resources_controller.rb
433
+ - app/events/decidim/dummy_resources/dummy_resource_event.rb
407
434
  - app/forms/decidim/dummy_resources/dummy_resource_form.rb
435
+ - app/jobs/decidim/dummy_resources/hide_all_created_by_author_job.rb
408
436
  - app/mailers/decidim/dummy_resources/dummy_resource_mailer.rb
437
+ - app/models/decidim/dummy_resources/application_record.rb
438
+ - app/models/decidim/dummy_resources/coauthorable_dummy_resource.rb
439
+ - app/models/decidim/dummy_resources/dummy_resource.rb
440
+ - app/models/decidim/dummy_resources/nested_dummy_resource.rb
409
441
  - app/packs/entrypoints/decidim_dev.js
410
442
  - app/packs/entrypoints/decidim_dev.scss
411
443
  - app/packs/entrypoints/decidim_dev_test_custom_map.js
@@ -415,6 +447,9 @@ files:
415
447
  - app/packs/src/decidim/dev/test/custom_map_factory.js
416
448
  - app/packs/stylesheets/decidim/dev.scss
417
449
  - app/packs/stylesheets/decidim/dev/_accessibility.scss
450
+ - app/packs/stylesheets/decidim/dev/_map.scss
451
+ - app/presenters/decidim/dummy_resources/official_author_presenter.rb
452
+ - app/serializers/decidim/dummy_resources/dummy_serializer.rb
418
453
  - app/views/decidim/dummy_resource/_linked_dummys.html.erb
419
454
  - app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
420
455
  - app/views/decidim/dummy_resources/dummy_resources/show.html.erb
@@ -451,7 +486,6 @@ files:
451
486
  - config/locales/ga-IE.yml
452
487
  - config/locales/gl.yml
453
488
  - config/locales/gn-PY.yml
454
- - config/locales/he-IL.yml
455
489
  - config/locales/hr-HR.yml
456
490
  - config/locales/hr.yml
457
491
  - config/locales/hu.yml
@@ -499,7 +533,11 @@ files:
499
533
  - config/locales/vi.yml
500
534
  - config/locales/zh-CN.yml
501
535
  - config/locales/zh-TW.yml
502
- - decidim-dev.gemspec
536
+ - config/rubocop/disabled.yml
537
+ - config/rubocop/faker.yml
538
+ - config/rubocop/rails.yml
539
+ - config/rubocop/rspec.yml
540
+ - config/rubocop/ruby.yml
503
541
  - lib/decidim-dev.rb
504
542
  - lib/decidim/dev.rb
505
543
  - lib/decidim/dev/assets/5000x5000.png
@@ -521,6 +559,7 @@ files:
521
559
  - lib/decidim/dev/assets/icon.png
522
560
  - lib/decidim/dev/assets/id.jpg
523
561
  - lib/decidim/dev/assets/import_participatory_space_private_users.csv
562
+ - lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv
524
563
  - lib/decidim/dev/assets/import_participatory_space_private_users_iso8859-1.csv
525
564
  - lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv
526
565
  - lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv
@@ -566,22 +605,23 @@ files:
566
605
  - lib/decidim/dev/test/rspec_support/attachment_helpers.rb
567
606
  - lib/decidim/dev/test/rspec_support/authorization.rb
568
607
  - lib/decidim/dev/test/rspec_support/autocomplete_select.rb
608
+ - lib/decidim/dev/test/rspec_support/bullet.rb
569
609
  - lib/decidim/dev/test/rspec_support/caching.rb
570
610
  - lib/decidim/dev/test/rspec_support/capybara.rb
571
- - lib/decidim/dev/test/rspec_support/capybara_data_picker.rb
572
- - lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb
573
611
  - lib/decidim/dev/test/rspec_support/cell_matchers.rb
574
612
  - lib/decidim/dev/test/rspec_support/comments.rb
575
613
  - lib/decidim/dev/test/rspec_support/component.rb
576
614
  - lib/decidim/dev/test/rspec_support/component_context.rb
577
- - lib/decidim/dev/test/rspec_support/concurrency.rb
578
615
  - lib/decidim/dev/test/rspec_support/confirmation_helpers.rb
579
616
  - lib/decidim/dev/test/rspec_support/content_processing.rb
580
617
  - lib/decidim/dev/test/rspec_support/controller_example_group.rb
581
618
  - lib/decidim/dev/test/rspec_support/data_consent.rb
582
- - lib/decidim/dev/test/rspec_support/decidim_sanitization.rb
583
619
  - lib/decidim/dev/test/rspec_support/dynamic_attach.rb
620
+ - lib/decidim/dev/test/rspec_support/editor_context.rb
621
+ - lib/decidim/dev/test/rspec_support/engine_examples.rb
584
622
  - lib/decidim/dev/test/rspec_support/factory_bot.rb
623
+ - lib/decidim/dev/test/rspec_support/filters.rb
624
+ - lib/decidim/dev/test/rspec_support/forms_validations.rb
585
625
  - lib/decidim/dev/test/rspec_support/frontend.rb
586
626
  - lib/decidim/dev/test/rspec_support/gamification.rb
587
627
  - lib/decidim/dev/test/rspec_support/geocoder.rb
@@ -598,6 +638,7 @@ files:
598
638
  - lib/decidim/dev/test/rspec_support/screenshot_helper.rb
599
639
  - lib/decidim/dev/test/rspec_support/time_helpers.rb
600
640
  - lib/decidim/dev/test/rspec_support/timezone.rb
641
+ - lib/decidim/dev/test/rspec_support/tom_select.rb
601
642
  - lib/decidim/dev/test/rspec_support/translation_helpers.rb
602
643
  - lib/decidim/dev/test/rspec_support/warden.rb
603
644
  - lib/decidim/dev/test/rspec_support/webmock.rb
@@ -608,30 +649,41 @@ files:
608
649
  - lib/decidim/dev/test/spec_helper.rb
609
650
  - lib/decidim/dev/test/w3c_rspec_validators_overrides.rb
610
651
  - lib/decidim/dev/version.rb
652
+ - lib/decidim/dummy_resources.rb
653
+ - lib/decidim/dummy_resources/admin.rb
654
+ - lib/decidim/dummy_resources/admin_engine.rb
655
+ - lib/decidim/dummy_resources/component.rb
656
+ - lib/decidim/dummy_resources/engine.rb
611
657
  - lib/tasks/generators.rake
612
658
  - lib/tasks/lighthouse_report.rake
613
659
  - lib/tasks/locale_checker.rake
614
- homepage: https://github.com/decidim/decidim
660
+ - rubocop-decidim.yml
661
+ homepage: https://decidim.org
615
662
  licenses:
616
663
  - AGPL-3.0
617
- metadata: {}
618
- post_install_message:
664
+ metadata:
665
+ bug_tracker_uri: https://github.com/decidim/decidim/issues
666
+ documentation_uri: https://docs.decidim.org/
667
+ funding_uri: https://opencollective.com/decidim
668
+ homepage_uri: https://decidim.org
669
+ source_code_uri: https://github.com/decidim/decidim
670
+ post_install_message:
619
671
  rdoc_options: []
620
672
  require_paths:
621
673
  - lib
622
674
  required_ruby_version: !ruby/object:Gem::Requirement
623
675
  requirements:
624
- - - "~>"
676
+ - - ">="
625
677
  - !ruby/object:Gem::Version
626
- version: 3.0.0
678
+ version: '3.1'
627
679
  required_rubygems_version: !ruby/object:Gem::Requirement
628
680
  requirements:
629
- - - ">="
681
+ - - ">"
630
682
  - !ruby/object:Gem::Version
631
- version: '0'
683
+ version: 1.3.1
632
684
  requirements: []
633
- rubygems_version: 3.2.22
634
- signing_key:
685
+ rubygems_version: 3.4.20
686
+ signing_key:
635
687
  specification_version: 4
636
688
  summary: Decidim dev tools
637
689
  test_files: []
@@ -1 +0,0 @@
1
- he:
data/decidim-dev.gemspec DELETED
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path("lib", __dir__)
4
-
5
- # Maintain your gem's version:
6
- require "decidim/dev/version"
7
-
8
- # Describe your gem and declare its dependencies:
9
- Gem::Specification.new do |s|
10
- s.version = Decidim::Dev.version
11
- s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
12
- s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
13
- s.license = "AGPL-3.0"
14
- s.homepage = "https://github.com/decidim/decidim"
15
- s.required_ruby_version = "~> 3.0.0"
16
-
17
- s.name = "decidim-dev"
18
- s.summary = "Decidim dev tools"
19
- s.description = "Utilities and tools we need to develop Decidim"
20
-
21
- s.files = Dir.chdir(__dir__) do
22
- `git ls-files -z`.split("\x0").select do |f|
23
- (File.expand_path(f) == __FILE__) ||
24
- f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
25
- end
26
- end
27
-
28
- s.add_dependency "capybara", "~> 3.24"
29
- s.add_dependency "decidim", Decidim::Dev.version
30
- s.add_dependency "factory_bot_rails", "~> 4.8"
31
-
32
- s.add_dependency "axe-core-rspec", "~> 4.1.0"
33
- s.add_dependency "byebug", "~> 11.0"
34
- s.add_dependency "db-query-matchers", "~> 0.10.0"
35
- s.add_dependency "erb_lint", "~> 0.0.35"
36
- s.add_dependency "i18n-tasks", "~> 0.9.18"
37
- s.add_dependency "mdl", "~> 0.5"
38
- s.add_dependency "nokogiri", "~> 1.13"
39
- s.add_dependency "parallel_tests", "~> 3.7"
40
- s.add_dependency "puma", "~> 5.0"
41
- s.add_dependency "rails-controller-testing", "~> 1.0"
42
- s.add_dependency "rspec-cells", "~> 0.3.7"
43
- s.add_dependency "rspec-html-matchers", "~> 0.9.1"
44
- s.add_dependency "rspec_junit_formatter", "~> 0.3.0"
45
- s.add_dependency "rspec-rails", "~> 4.0"
46
- s.add_dependency "rspec-retry", "~> 0.6.2"
47
- s.add_dependency "rubocop", "~> 1.28.0"
48
- s.add_dependency "rubocop-rails", "~> 2.14"
49
- s.add_dependency "rubocop-rspec", "~> 2.10"
50
- s.add_dependency "selenium-webdriver", "~> 4.1.0"
51
- s.add_dependency "simplecov", "~> 0.21.0"
52
- s.add_dependency "simplecov-cobertura", "~> 2.1.0"
53
- s.add_dependency "w3c_rspec_validators", "~> 0.3.0"
54
- s.add_dependency "webmock", "~> 3.6"
55
- s.add_dependency "wisper-rspec", "~> 1.0"
56
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Capybara
4
- module DataPicker
5
- def select_data_picker(id, multiple: nil, global_value: "")
6
- Struct.new(:data_picker, :global_value).new(find_data_picker(id, multiple: multiple), global_value)
7
- end
8
-
9
- def find_data_picker(id, multiple: nil)
10
- if multiple.nil?
11
- expect(page).to have_selector("div.data-picker[id$='#{id}']")
12
- else
13
- expect(page).to have_selector("div.data-picker.picker-#{multiple ? "multiple" : "single"}[id$='#{id}']")
14
- end
15
- first("div.data-picker[id$='#{id}']")
16
- end
17
-
18
- def data_picker_pick_current
19
- body = find(:xpath, "//body")
20
- expect(body).to have_selector("#data_picker-modal .picker-footer a[data-picker-choose]", wait: 2)
21
- body.find("#data_picker-modal .picker-footer a[data-picker-choose]").click
22
- end
23
-
24
- def data_picker_choose_value(value)
25
- body = find(:xpath, "//body")
26
- expect(body).to have_selector("#data_picker-modal input[data-picker-choose][type=checkbox][value=\"#{value}\"]")
27
- body.find("#data_picker-modal input[data-picker-choose][type=checkbox][value=\"#{value}\"]").click
28
- end
29
-
30
- def data_picker_close
31
- body = find(:xpath, "//body")
32
- expect(body).to have_selector("#data_picker-modal .picker-footer a[data-close]")
33
- body.find("#data_picker-modal .picker-footer a[data-close]").click
34
- end
35
- end
36
- end