decidim-dev 0.27.7 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) 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 -9
  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/webmock.rb +1 -1
  77. data/lib/decidim/dev/test/rspec_support/webpacker.rb +4 -22
  78. data/lib/decidim/dev/test/spec_helper.rb +14 -3
  79. data/lib/decidim/dev/test/w3c_rspec_validators_overrides.rb +1 -5
  80. data/lib/decidim/dev/version.rb +1 -1
  81. data/lib/decidim/dev.rb +9 -0
  82. data/lib/decidim/dummy_resources/admin.rb +8 -0
  83. data/lib/decidim/dummy_resources/admin_engine.rb +43 -0
  84. data/lib/decidim/dummy_resources/component.rb +94 -0
  85. data/lib/decidim/dummy_resources/engine.rb +28 -0
  86. data/lib/decidim/dummy_resources.rb +20 -0
  87. data/lib/tasks/lighthouse_report.rake +29 -7
  88. data/rubocop-decidim.yml +13 -0
  89. metadata +119 -81
  90. data/config/locales/he-IL.yml +0 -1
  91. data/decidim-dev.gemspec +0 -57
  92. data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +0 -36
  93. data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +0 -92
  94. data/lib/decidim/dev/test/rspec_support/concurrency.rb +0 -23
  95. data/lib/decidim/dev/test/rspec_support/decidim_sanitization.rb +0 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.7
4
+ version: 0.28.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-07-16 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,196 +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.7
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.7
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
113
- - !ruby/object:Gem::Dependency
114
- name: faker
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - '='
118
- - !ruby/object:Gem::Version
119
- version: 2.19.0
120
- type: :runtime
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - '='
125
- - !ruby/object:Gem::Version
126
- version: 2.19.0
112
+ version: 0.4.0
127
113
  - !ruby/object:Gem::Dependency
128
114
  name: i18n-tasks
129
115
  requirement: !ruby/object:Gem::Requirement
130
116
  requirements:
131
117
  - - "~>"
132
118
  - !ruby/object:Gem::Version
133
- version: 0.9.18
119
+ version: '1.0'
134
120
  type: :runtime
135
121
  prerelease: false
136
122
  version_requirements: !ruby/object:Gem::Requirement
137
123
  requirements:
138
124
  - - "~>"
139
125
  - !ruby/object:Gem::Version
140
- version: 0.9.18
126
+ version: '1.0'
141
127
  - !ruby/object:Gem::Dependency
142
- name: mdl
128
+ name: nokogiri
143
129
  requirement: !ruby/object:Gem::Requirement
144
130
  requirements:
145
131
  - - "~>"
146
132
  - !ruby/object:Gem::Version
147
- version: '0.5'
133
+ version: '1.14'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 1.14.3
148
137
  type: :runtime
149
138
  prerelease: false
150
139
  version_requirements: !ruby/object:Gem::Requirement
151
140
  requirements:
152
141
  - - "~>"
153
142
  - !ruby/object:Gem::Version
154
- version: '0.5'
143
+ version: '1.14'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 1.14.3
155
147
  - !ruby/object:Gem::Dependency
156
- name: nokogiri
148
+ name: parallel_tests
157
149
  requirement: !ruby/object:Gem::Requirement
158
150
  requirements:
159
151
  - - "~>"
160
152
  - !ruby/object:Gem::Version
161
- version: '1.13'
153
+ version: '4.2'
162
154
  type: :runtime
163
155
  prerelease: false
164
156
  version_requirements: !ruby/object:Gem::Requirement
165
157
  requirements:
166
158
  - - "~>"
167
159
  - !ruby/object:Gem::Version
168
- version: '1.13'
160
+ version: '4.2'
169
161
  - !ruby/object:Gem::Dependency
170
- name: parallel_tests
162
+ name: puma
171
163
  requirement: !ruby/object:Gem::Requirement
172
164
  requirements:
173
165
  - - "~>"
174
166
  - !ruby/object:Gem::Version
175
- version: '3.7'
167
+ version: '6.2'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 6.3.1
176
171
  type: :runtime
177
172
  prerelease: false
178
173
  version_requirements: !ruby/object:Gem::Requirement
179
174
  requirements:
180
175
  - - "~>"
181
176
  - !ruby/object:Gem::Version
182
- version: '3.7'
177
+ version: '6.2'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 6.3.1
183
181
  - !ruby/object:Gem::Dependency
184
- name: puma
182
+ name: rails-controller-testing
185
183
  requirement: !ruby/object:Gem::Requirement
186
184
  requirements:
187
185
  - - "~>"
188
186
  - !ruby/object:Gem::Version
189
- version: '5.0'
187
+ version: '1.0'
190
188
  type: :runtime
191
189
  prerelease: false
192
190
  version_requirements: !ruby/object:Gem::Requirement
193
191
  requirements:
194
192
  - - "~>"
195
193
  - !ruby/object:Gem::Version
196
- version: '5.0'
194
+ version: '1.0'
197
195
  - !ruby/object:Gem::Dependency
198
- name: rails-controller-testing
196
+ name: rspec
199
197
  requirement: !ruby/object:Gem::Requirement
200
198
  requirements:
201
199
  - - "~>"
202
200
  - !ruby/object:Gem::Version
203
- version: '1.0'
201
+ version: '3.12'
204
202
  type: :runtime
205
203
  prerelease: false
206
204
  version_requirements: !ruby/object:Gem::Requirement
207
205
  requirements:
208
206
  - - "~>"
209
207
  - !ruby/object:Gem::Version
210
- version: '1.0'
208
+ version: '3.12'
211
209
  - !ruby/object:Gem::Dependency
212
210
  name: rspec-cells
213
211
  requirement: !ruby/object:Gem::Requirement
@@ -228,42 +226,42 @@ dependencies:
228
226
  requirements:
229
227
  - - "~>"
230
228
  - !ruby/object:Gem::Version
231
- version: 0.9.1
229
+ version: '0.10'
232
230
  type: :runtime
233
231
  prerelease: false
234
232
  version_requirements: !ruby/object:Gem::Requirement
235
233
  requirements:
236
234
  - - "~>"
237
235
  - !ruby/object:Gem::Version
238
- version: 0.9.1
236
+ version: '0.10'
239
237
  - !ruby/object:Gem::Dependency
240
238
  name: rspec_junit_formatter
241
239
  requirement: !ruby/object:Gem::Requirement
242
240
  requirements:
243
241
  - - "~>"
244
242
  - !ruby/object:Gem::Version
245
- version: 0.3.0
243
+ version: 0.6.0
246
244
  type: :runtime
247
245
  prerelease: false
248
246
  version_requirements: !ruby/object:Gem::Requirement
249
247
  requirements:
250
248
  - - "~>"
251
249
  - !ruby/object:Gem::Version
252
- version: 0.3.0
250
+ version: 0.6.0
253
251
  - !ruby/object:Gem::Dependency
254
252
  name: rspec-rails
255
253
  requirement: !ruby/object:Gem::Requirement
256
254
  requirements:
257
255
  - - "~>"
258
256
  - !ruby/object:Gem::Version
259
- version: '4.0'
257
+ version: '6.0'
260
258
  type: :runtime
261
259
  prerelease: false
262
260
  version_requirements: !ruby/object:Gem::Requirement
263
261
  requirements:
264
262
  - - "~>"
265
263
  - !ruby/object:Gem::Version
266
- version: '4.0'
264
+ version: '6.0'
267
265
  - !ruby/object:Gem::Dependency
268
266
  name: rspec-retry
269
267
  requirement: !ruby/object:Gem::Requirement
@@ -284,70 +282,84 @@ dependencies:
284
282
  requirements:
285
283
  - - "~>"
286
284
  - !ruby/object:Gem::Version
287
- version: 1.28.0
285
+ version: 1.50.0
288
286
  type: :runtime
289
287
  prerelease: false
290
288
  version_requirements: !ruby/object:Gem::Requirement
291
289
  requirements:
292
290
  - - "~>"
293
291
  - !ruby/object:Gem::Version
294
- 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'
295
307
  - !ruby/object:Gem::Dependency
296
308
  name: rubocop-rails
297
309
  requirement: !ruby/object:Gem::Requirement
298
310
  requirements:
299
311
  - - "~>"
300
312
  - !ruby/object:Gem::Version
301
- version: '2.14'
313
+ version: '2.19'
302
314
  type: :runtime
303
315
  prerelease: false
304
316
  version_requirements: !ruby/object:Gem::Requirement
305
317
  requirements:
306
318
  - - "~>"
307
319
  - !ruby/object:Gem::Version
308
- version: '2.14'
320
+ version: '2.19'
309
321
  - !ruby/object:Gem::Dependency
310
322
  name: rubocop-rspec
311
323
  requirement: !ruby/object:Gem::Requirement
312
324
  requirements:
313
325
  - - "~>"
314
326
  - !ruby/object:Gem::Version
315
- version: '2.10'
327
+ version: '2.20'
316
328
  type: :runtime
317
329
  prerelease: false
318
330
  version_requirements: !ruby/object:Gem::Requirement
319
331
  requirements:
320
332
  - - "~>"
321
333
  - !ruby/object:Gem::Version
322
- version: '2.10'
334
+ version: '2.20'
323
335
  - !ruby/object:Gem::Dependency
324
336
  name: selenium-webdriver
325
337
  requirement: !ruby/object:Gem::Requirement
326
338
  requirements:
327
339
  - - "~>"
328
340
  - !ruby/object:Gem::Version
329
- version: 4.1.0
341
+ version: '4.9'
330
342
  type: :runtime
331
343
  prerelease: false
332
344
  version_requirements: !ruby/object:Gem::Requirement
333
345
  requirements:
334
346
  - - "~>"
335
347
  - !ruby/object:Gem::Version
336
- version: 4.1.0
348
+ version: '4.9'
337
349
  - !ruby/object:Gem::Dependency
338
350
  name: simplecov
339
351
  requirement: !ruby/object:Gem::Requirement
340
352
  requirements:
341
353
  - - "~>"
342
354
  - !ruby/object:Gem::Version
343
- version: 0.21.0
355
+ version: 0.22.0
344
356
  type: :runtime
345
357
  prerelease: false
346
358
  version_requirements: !ruby/object:Gem::Requirement
347
359
  requirements:
348
360
  - - "~>"
349
361
  - !ruby/object:Gem::Version
350
- version: 0.21.0
362
+ version: 0.22.0
351
363
  - !ruby/object:Gem::Dependency
352
364
  name: simplecov-cobertura
353
365
  requirement: !ruby/object:Gem::Requirement
@@ -382,14 +394,14 @@ dependencies:
382
394
  requirements:
383
395
  - - "~>"
384
396
  - !ruby/object:Gem::Version
385
- version: '3.6'
397
+ version: '3.18'
386
398
  type: :runtime
387
399
  prerelease: false
388
400
  version_requirements: !ruby/object:Gem::Requirement
389
401
  requirements:
390
402
  - - "~>"
391
403
  - !ruby/object:Gem::Version
392
- version: '3.6'
404
+ version: '3.18'
393
405
  - !ruby/object:Gem::Dependency
394
406
  name: wisper-rspec
395
407
  requirement: !ruby/object:Gem::Requirement
@@ -418,8 +430,14 @@ files:
418
430
  - app/commands/decidim/dummy_resources/create_dummy_resource.rb
419
431
  - app/controllers/concerns/decidim/dev/needs_development_tools.rb
420
432
  - app/controllers/decidim/dummy_resources/dummy_resources_controller.rb
433
+ - app/events/decidim/dummy_resources/dummy_resource_event.rb
421
434
  - app/forms/decidim/dummy_resources/dummy_resource_form.rb
435
+ - app/jobs/decidim/dummy_resources/hide_all_created_by_author_job.rb
422
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
423
441
  - app/packs/entrypoints/decidim_dev.js
424
442
  - app/packs/entrypoints/decidim_dev.scss
425
443
  - app/packs/entrypoints/decidim_dev_test_custom_map.js
@@ -429,6 +447,9 @@ files:
429
447
  - app/packs/src/decidim/dev/test/custom_map_factory.js
430
448
  - app/packs/stylesheets/decidim/dev.scss
431
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
432
453
  - app/views/decidim/dummy_resource/_linked_dummys.html.erb
433
454
  - app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
434
455
  - app/views/decidim/dummy_resources/dummy_resources/show.html.erb
@@ -465,7 +486,6 @@ files:
465
486
  - config/locales/ga-IE.yml
466
487
  - config/locales/gl.yml
467
488
  - config/locales/gn-PY.yml
468
- - config/locales/he-IL.yml
469
489
  - config/locales/hr-HR.yml
470
490
  - config/locales/hr.yml
471
491
  - config/locales/hu.yml
@@ -513,7 +533,11 @@ files:
513
533
  - config/locales/vi.yml
514
534
  - config/locales/zh-CN.yml
515
535
  - config/locales/zh-TW.yml
516
- - 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
517
541
  - lib/decidim-dev.rb
518
542
  - lib/decidim/dev.rb
519
543
  - lib/decidim/dev/assets/5000x5000.png
@@ -535,6 +559,7 @@ files:
535
559
  - lib/decidim/dev/assets/icon.png
536
560
  - lib/decidim/dev/assets/id.jpg
537
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
538
563
  - lib/decidim/dev/assets/import_participatory_space_private_users_iso8859-1.csv
539
564
  - lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv
540
565
  - lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv
@@ -580,22 +605,23 @@ files:
580
605
  - lib/decidim/dev/test/rspec_support/attachment_helpers.rb
581
606
  - lib/decidim/dev/test/rspec_support/authorization.rb
582
607
  - lib/decidim/dev/test/rspec_support/autocomplete_select.rb
608
+ - lib/decidim/dev/test/rspec_support/bullet.rb
583
609
  - lib/decidim/dev/test/rspec_support/caching.rb
584
610
  - lib/decidim/dev/test/rspec_support/capybara.rb
585
- - lib/decidim/dev/test/rspec_support/capybara_data_picker.rb
586
- - lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb
587
611
  - lib/decidim/dev/test/rspec_support/cell_matchers.rb
588
612
  - lib/decidim/dev/test/rspec_support/comments.rb
589
613
  - lib/decidim/dev/test/rspec_support/component.rb
590
614
  - lib/decidim/dev/test/rspec_support/component_context.rb
591
- - lib/decidim/dev/test/rspec_support/concurrency.rb
592
615
  - lib/decidim/dev/test/rspec_support/confirmation_helpers.rb
593
616
  - lib/decidim/dev/test/rspec_support/content_processing.rb
594
617
  - lib/decidim/dev/test/rspec_support/controller_example_group.rb
595
618
  - lib/decidim/dev/test/rspec_support/data_consent.rb
596
- - lib/decidim/dev/test/rspec_support/decidim_sanitization.rb
597
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
598
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
599
625
  - lib/decidim/dev/test/rspec_support/frontend.rb
600
626
  - lib/decidim/dev/test/rspec_support/gamification.rb
601
627
  - lib/decidim/dev/test/rspec_support/geocoder.rb
@@ -612,6 +638,7 @@ files:
612
638
  - lib/decidim/dev/test/rspec_support/screenshot_helper.rb
613
639
  - lib/decidim/dev/test/rspec_support/time_helpers.rb
614
640
  - lib/decidim/dev/test/rspec_support/timezone.rb
641
+ - lib/decidim/dev/test/rspec_support/tom_select.rb
615
642
  - lib/decidim/dev/test/rspec_support/translation_helpers.rb
616
643
  - lib/decidim/dev/test/rspec_support/warden.rb
617
644
  - lib/decidim/dev/test/rspec_support/webmock.rb
@@ -622,29 +649,40 @@ files:
622
649
  - lib/decidim/dev/test/spec_helper.rb
623
650
  - lib/decidim/dev/test/w3c_rspec_validators_overrides.rb
624
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
625
657
  - lib/tasks/generators.rake
626
658
  - lib/tasks/lighthouse_report.rake
627
659
  - lib/tasks/locale_checker.rake
628
- homepage: https://github.com/decidim/decidim
660
+ - rubocop-decidim.yml
661
+ homepage: https://decidim.org
629
662
  licenses:
630
663
  - AGPL-3.0
631
- metadata: {}
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
632
670
  post_install_message:
633
671
  rdoc_options: []
634
672
  require_paths:
635
673
  - lib
636
674
  required_ruby_version: !ruby/object:Gem::Requirement
637
675
  requirements:
638
- - - "~>"
676
+ - - ">="
639
677
  - !ruby/object:Gem::Version
640
- version: 3.0.0
678
+ version: '3.1'
641
679
  required_rubygems_version: !ruby/object:Gem::Requirement
642
680
  requirements:
643
- - - ">="
681
+ - - ">"
644
682
  - !ruby/object:Gem::Version
645
- version: '0'
683
+ version: 1.3.1
646
684
  requirements: []
647
- rubygems_version: 3.5.14
685
+ rubygems_version: 3.4.20
648
686
  signing_key:
649
687
  specification_version: 4
650
688
  summary: Decidim dev tools
@@ -1 +0,0 @@
1
- he:
data/decidim-dev.gemspec DELETED
@@ -1,57 +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 "faker", "= 2.19.0"
37
- s.add_dependency "i18n-tasks", "~> 0.9.18"
38
- s.add_dependency "mdl", "~> 0.5"
39
- s.add_dependency "nokogiri", "~> 1.13"
40
- s.add_dependency "parallel_tests", "~> 3.7"
41
- s.add_dependency "puma", "~> 5.0"
42
- s.add_dependency "rails-controller-testing", "~> 1.0"
43
- s.add_dependency "rspec-cells", "~> 0.3.7"
44
- s.add_dependency "rspec-html-matchers", "~> 0.9.1"
45
- s.add_dependency "rspec_junit_formatter", "~> 0.3.0"
46
- s.add_dependency "rspec-rails", "~> 4.0"
47
- s.add_dependency "rspec-retry", "~> 0.6.2"
48
- s.add_dependency "rubocop", "~> 1.28.0"
49
- s.add_dependency "rubocop-rails", "~> 2.14"
50
- s.add_dependency "rubocop-rspec", "~> 2.10"
51
- s.add_dependency "selenium-webdriver", "~> 4.1.0"
52
- s.add_dependency "simplecov", "~> 0.21.0"
53
- s.add_dependency "simplecov-cobertura", "~> 2.1.0"
54
- s.add_dependency "w3c_rspec_validators", "~> 0.3.0"
55
- s.add_dependency "webmock", "~> 3.6"
56
- s.add_dependency "wisper-rspec", "~> 1.0"
57
- 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