decidim-cdtb 0.5.3 → 0.5.5
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/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +129 -128
- data/README.md +2 -2
- data/lib/decidim/cdtb/fixes/you_tube_embeds_fixer.rb +20 -11
- data/lib/decidim/cdtb/users/remover.rb +3 -5
- data/lib/decidim/cdtb/version.rb +1 -1
- data/lib/generators/cdtb/github_actions/templates/ci_app.yml +1 -1
- data/lib/generators/cdtb/github_actions/templates/linters.yml +1 -1
- data/lib/generators/cdtb/github_actions/templates/validate_migrations.yml +1 -1
- data/lib/generators/cdtb/github_actions/templates/zeitwerk.yml +1 -1
- data/lib/tasks/users.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47f434b218d1fb88fbf6a390e15eca202aa3e667c4d4736a21e559809045a4c2
|
4
|
+
data.tar.gz: d9f75458764ad9876bd895fdf2b5bb3c921026ae25ce2b0fa2eeeb72bfbbc146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07f9b4824276022f7f5f6b971317209865e63e80ecc43131b40d54580075afae4cdfce1c0de1f93137595f89a34c150d9945371fc2f034cf14acd89c0c89e90a
|
7
|
+
data.tar.gz: adf5a07bfcb857aa18f602537e67fd5c3376352452550e69d32aa5014ce65f1b6c631b128fdf989913b950a7dca8beb3193cc68d69aad5aaa2093539846b09c1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.5.5] - 2025-08-03 (patch - Esqueletic pero frenetic)
|
4
|
+
|
5
|
+
- Fix params in Users::Remover task
|
6
|
+
|
7
|
+
## [0.5.4] - 2025-07-10 (patch - Una festa que no resta)
|
8
|
+
|
9
|
+
- Use `main` as default git branch in CI generators
|
10
|
+
- Expand YouTube embeds fixer covered cases. Take into account embeds added via 'video' button and now also via 'embed' button.
|
11
|
+
|
3
12
|
## [0.5.3] - 2025-07-10 (patch - Aperitius explosius)
|
4
13
|
|
5
14
|
- Add "cdtb" in RackAttack logs to ease finding them.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,56 +1,56 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/CodiTramuntana/decidim.git
|
3
|
-
revision:
|
3
|
+
revision: b033090746db23530f2f41fc89efb1993fc2f7ea
|
4
4
|
branch: release/0.28-stable
|
5
5
|
specs:
|
6
|
-
decidim (0.28.
|
7
|
-
decidim-accountability (= 0.28.
|
8
|
-
decidim-admin (= 0.28.
|
9
|
-
decidim-api (= 0.28.
|
10
|
-
decidim-assemblies (= 0.28.
|
11
|
-
decidim-blogs (= 0.28.
|
12
|
-
decidim-budgets (= 0.28.
|
13
|
-
decidim-comments (= 0.28.
|
14
|
-
decidim-core (= 0.28.
|
15
|
-
decidim-debates (= 0.28.
|
16
|
-
decidim-forms (= 0.28.
|
17
|
-
decidim-generators (= 0.28.
|
18
|
-
decidim-meetings (= 0.28.
|
19
|
-
decidim-pages (= 0.28.
|
20
|
-
decidim-participatory_processes (= 0.28.
|
21
|
-
decidim-proposals (= 0.28.
|
22
|
-
decidim-sortitions (= 0.28.
|
23
|
-
decidim-surveys (= 0.28.
|
24
|
-
decidim-system (= 0.28.
|
25
|
-
decidim-verifications (= 0.28.
|
26
|
-
decidim-accountability (0.28.
|
27
|
-
decidim-comments (= 0.28.
|
28
|
-
decidim-core (= 0.28.
|
29
|
-
decidim-admin (0.28.
|
6
|
+
decidim (0.28.6)
|
7
|
+
decidim-accountability (= 0.28.6)
|
8
|
+
decidim-admin (= 0.28.6)
|
9
|
+
decidim-api (= 0.28.6)
|
10
|
+
decidim-assemblies (= 0.28.6)
|
11
|
+
decidim-blogs (= 0.28.6)
|
12
|
+
decidim-budgets (= 0.28.6)
|
13
|
+
decidim-comments (= 0.28.6)
|
14
|
+
decidim-core (= 0.28.6)
|
15
|
+
decidim-debates (= 0.28.6)
|
16
|
+
decidim-forms (= 0.28.6)
|
17
|
+
decidim-generators (= 0.28.6)
|
18
|
+
decidim-meetings (= 0.28.6)
|
19
|
+
decidim-pages (= 0.28.6)
|
20
|
+
decidim-participatory_processes (= 0.28.6)
|
21
|
+
decidim-proposals (= 0.28.6)
|
22
|
+
decidim-sortitions (= 0.28.6)
|
23
|
+
decidim-surveys (= 0.28.6)
|
24
|
+
decidim-system (= 0.28.6)
|
25
|
+
decidim-verifications (= 0.28.6)
|
26
|
+
decidim-accountability (0.28.6)
|
27
|
+
decidim-comments (= 0.28.6)
|
28
|
+
decidim-core (= 0.28.6)
|
29
|
+
decidim-admin (0.28.6)
|
30
30
|
active_link_to (~> 1.0)
|
31
|
-
decidim-core (= 0.28.
|
31
|
+
decidim-core (= 0.28.6)
|
32
32
|
devise (~> 4.7)
|
33
33
|
devise-i18n (~> 1.2)
|
34
34
|
devise_invitable (~> 2.0, >= 2.0.9)
|
35
|
-
decidim-api (0.28.
|
35
|
+
decidim-api (0.28.6)
|
36
36
|
commonmarker (~> 0.23.0, >= 0.23.9)
|
37
|
-
decidim-core (= 0.28.
|
37
|
+
decidim-core (= 0.28.6)
|
38
38
|
graphql (~> 2.0.0)
|
39
39
|
graphql-docs (~> 3.0.1)
|
40
40
|
rack-cors (~> 1.0)
|
41
|
-
decidim-assemblies (0.28.
|
42
|
-
decidim-core (= 0.28.
|
43
|
-
decidim-blogs (0.28.
|
44
|
-
decidim-admin (= 0.28.
|
45
|
-
decidim-comments (= 0.28.
|
46
|
-
decidim-core (= 0.28.
|
47
|
-
decidim-budgets (0.28.
|
48
|
-
decidim-comments (= 0.28.
|
49
|
-
decidim-core (= 0.28.
|
50
|
-
decidim-comments (0.28.
|
51
|
-
decidim-core (= 0.28.
|
41
|
+
decidim-assemblies (0.28.6)
|
42
|
+
decidim-core (= 0.28.6)
|
43
|
+
decidim-blogs (0.28.6)
|
44
|
+
decidim-admin (= 0.28.6)
|
45
|
+
decidim-comments (= 0.28.6)
|
46
|
+
decidim-core (= 0.28.6)
|
47
|
+
decidim-budgets (0.28.6)
|
48
|
+
decidim-comments (= 0.28.6)
|
49
|
+
decidim-core (= 0.28.6)
|
50
|
+
decidim-comments (0.28.6)
|
51
|
+
decidim-core (= 0.28.6)
|
52
52
|
redcarpet (~> 3.5, >= 3.5.1)
|
53
|
-
decidim-core (0.28.
|
53
|
+
decidim-core (0.28.6)
|
54
54
|
active_link_to (~> 1.0)
|
55
55
|
acts_as_list (~> 1.0)
|
56
56
|
batch-loader (~> 1.2)
|
@@ -100,48 +100,48 @@ GIT
|
|
100
100
|
valid_email2 (~> 4.0)
|
101
101
|
web-push (~> 3.0)
|
102
102
|
wisper (~> 2.0)
|
103
|
-
decidim-debates (0.28.
|
104
|
-
decidim-comments (= 0.28.
|
105
|
-
decidim-core (= 0.28.
|
106
|
-
decidim-forms (0.28.
|
107
|
-
decidim-core (= 0.28.
|
103
|
+
decidim-debates (0.28.6)
|
104
|
+
decidim-comments (= 0.28.6)
|
105
|
+
decidim-core (= 0.28.6)
|
106
|
+
decidim-forms (0.28.6)
|
107
|
+
decidim-core (= 0.28.6)
|
108
108
|
wicked_pdf (~> 2.1)
|
109
|
-
decidim-generators (0.28.
|
110
|
-
decidim-core (= 0.28.
|
111
|
-
decidim-meetings (0.28.
|
112
|
-
decidim-core (= 0.28.
|
113
|
-
decidim-forms (= 0.28.
|
109
|
+
decidim-generators (0.28.6)
|
110
|
+
decidim-core (= 0.28.6)
|
111
|
+
decidim-meetings (0.28.6)
|
112
|
+
decidim-core (= 0.28.6)
|
113
|
+
decidim-forms (= 0.28.6)
|
114
114
|
icalendar (~> 2.5)
|
115
|
-
decidim-pages (0.28.
|
116
|
-
decidim-core (= 0.28.
|
117
|
-
decidim-participatory_processes (0.28.
|
118
|
-
decidim-core (= 0.28.
|
119
|
-
decidim-proposals (0.28.
|
120
|
-
decidim-comments (= 0.28.
|
121
|
-
decidim-core (= 0.28.
|
115
|
+
decidim-pages (0.28.6)
|
116
|
+
decidim-core (= 0.28.6)
|
117
|
+
decidim-participatory_processes (0.28.6)
|
118
|
+
decidim-core (= 0.28.6)
|
119
|
+
decidim-proposals (0.28.6)
|
120
|
+
decidim-comments (= 0.28.6)
|
121
|
+
decidim-core (= 0.28.6)
|
122
122
|
doc2text (~> 0.4.6)
|
123
123
|
redcarpet (~> 3.5, >= 3.5.1)
|
124
|
-
decidim-sortitions (0.28.
|
125
|
-
decidim-admin (= 0.28.
|
126
|
-
decidim-comments (= 0.28.
|
127
|
-
decidim-core (= 0.28.
|
128
|
-
decidim-proposals (= 0.28.
|
129
|
-
decidim-surveys (0.28.
|
130
|
-
decidim-core (= 0.28.
|
131
|
-
decidim-forms (= 0.28.
|
132
|
-
decidim-system (0.28.
|
124
|
+
decidim-sortitions (0.28.6)
|
125
|
+
decidim-admin (= 0.28.6)
|
126
|
+
decidim-comments (= 0.28.6)
|
127
|
+
decidim-core (= 0.28.6)
|
128
|
+
decidim-proposals (= 0.28.6)
|
129
|
+
decidim-surveys (0.28.6)
|
130
|
+
decidim-core (= 0.28.6)
|
131
|
+
decidim-forms (= 0.28.6)
|
132
|
+
decidim-system (0.28.6)
|
133
133
|
active_link_to (~> 1.0)
|
134
|
-
decidim-core (= 0.28.
|
134
|
+
decidim-core (= 0.28.6)
|
135
135
|
devise (~> 4.7)
|
136
136
|
devise-i18n (~> 1.2)
|
137
137
|
devise_invitable (~> 2.0, >= 2.0.9)
|
138
|
-
decidim-verifications (0.28.
|
139
|
-
decidim-core (= 0.28.
|
138
|
+
decidim-verifications (0.28.6)
|
139
|
+
decidim-core (= 0.28.6)
|
140
140
|
|
141
141
|
PATH
|
142
142
|
remote: .
|
143
143
|
specs:
|
144
|
-
decidim-cdtb (0.5.
|
144
|
+
decidim-cdtb (0.5.5)
|
145
145
|
decidim (>= 0.28.0)
|
146
146
|
rails (>= 6)
|
147
147
|
ruby-progressbar
|
@@ -217,7 +217,7 @@ GEM
|
|
217
217
|
addressable (2.8.7)
|
218
218
|
public_suffix (>= 2.0.2, < 7.0)
|
219
219
|
ast (2.4.3)
|
220
|
-
base64 (0.
|
220
|
+
base64 (0.3.0)
|
221
221
|
batch-loader (1.5.0)
|
222
222
|
bcrypt (3.1.20)
|
223
223
|
better_html (2.1.1)
|
@@ -227,8 +227,8 @@ GEM
|
|
227
227
|
erubi (~> 1.4)
|
228
228
|
parser (>= 2.4)
|
229
229
|
smart_properties
|
230
|
-
bigdecimal (3.
|
231
|
-
bootsnap (1.18.
|
230
|
+
bigdecimal (3.2.2)
|
231
|
+
bootsnap (1.18.6)
|
232
232
|
msgpack (~> 1.2)
|
233
233
|
browser (2.7.1)
|
234
234
|
builder (3.3.0)
|
@@ -275,16 +275,16 @@ GEM
|
|
275
275
|
crass (1.0.6)
|
276
276
|
css_parser (1.21.1)
|
277
277
|
addressable
|
278
|
-
csv (3.3.
|
278
|
+
csv (3.3.5)
|
279
279
|
date (3.4.1)
|
280
280
|
date_validator (0.12.0)
|
281
281
|
activemodel (>= 3)
|
282
282
|
activesupport (>= 3)
|
283
|
-
decidim-dev (0.28.
|
283
|
+
decidim-dev (0.28.6)
|
284
284
|
bullet (~> 7.0)
|
285
285
|
byebug (~> 11.0)
|
286
286
|
capybara (~> 3.39)
|
287
|
-
decidim (= 0.28.
|
287
|
+
decidim (= 0.28.6)
|
288
288
|
erb_lint (~> 0.4.0)
|
289
289
|
factory_bot_rails (~> 6.2)
|
290
290
|
faker (~> 3.2)
|
@@ -322,11 +322,11 @@ GEM
|
|
322
322
|
warden (~> 1.2.3)
|
323
323
|
devise-i18n (1.11.0)
|
324
324
|
devise (>= 4.9.0)
|
325
|
-
devise_invitable (2.0.
|
325
|
+
devise_invitable (2.0.11)
|
326
326
|
actionmailer (>= 5.0)
|
327
327
|
devise (>= 4.6)
|
328
|
-
diff-lcs (1.6.
|
329
|
-
diffy (3.4.
|
328
|
+
diff-lcs (1.6.2)
|
329
|
+
diffy (3.4.4)
|
330
330
|
doc2text (0.4.8)
|
331
331
|
nokogiri (>= 1.18.2)
|
332
332
|
rubyzip (~> 2.3.0)
|
@@ -345,22 +345,22 @@ GEM
|
|
345
345
|
temple
|
346
346
|
erubi (1.13.1)
|
347
347
|
escape_utils (1.2.2)
|
348
|
-
excon (1.2.
|
348
|
+
excon (1.2.8)
|
349
349
|
logger
|
350
350
|
extended-markdown-filter (0.7.0)
|
351
351
|
html-pipeline (~> 2.9)
|
352
|
-
factory_bot (6.5.
|
352
|
+
factory_bot (6.5.4)
|
353
353
|
activesupport (>= 6.1.0)
|
354
|
-
factory_bot_rails (6.
|
354
|
+
factory_bot_rails (6.5.0)
|
355
355
|
factory_bot (~> 6.5)
|
356
|
-
railties (>=
|
357
|
-
faker (3.5.
|
356
|
+
railties (>= 6.1.0)
|
357
|
+
faker (3.5.2)
|
358
358
|
i18n (>= 1.8.11, < 2)
|
359
|
-
faraday (2.13.
|
359
|
+
faraday (2.13.2)
|
360
360
|
faraday-net_http (>= 2.0, < 3.5)
|
361
361
|
json
|
362
362
|
logger
|
363
|
-
faraday-net_http (3.4.
|
363
|
+
faraday-net_http (3.4.1)
|
364
364
|
net-http (>= 0.5.0)
|
365
365
|
ffi (1.17.2-x86_64-linux-gnu)
|
366
366
|
file_validators (3.0.0)
|
@@ -373,7 +373,7 @@ GEM
|
|
373
373
|
mime-types
|
374
374
|
fog-local (0.9.0)
|
375
375
|
fog-core (>= 1.27, < 3.0)
|
376
|
-
formatador (1.1.
|
376
|
+
formatador (1.1.1)
|
377
377
|
foundation_rails_helper (4.0.1)
|
378
378
|
actionpack (>= 4.1, < 7.1)
|
379
379
|
activemodel (>= 4.1, < 7.1)
|
@@ -395,7 +395,7 @@ GEM
|
|
395
395
|
graphql (~> 2.0)
|
396
396
|
html-pipeline (~> 2.9)
|
397
397
|
sass (~> 3.4)
|
398
|
-
hashdiff (1.
|
398
|
+
hashdiff (1.2.0)
|
399
399
|
hashie (5.0.0)
|
400
400
|
highline (3.1.2)
|
401
401
|
reline
|
@@ -416,7 +416,7 @@ GEM
|
|
416
416
|
rainbow (>= 2.2.2, < 4.0)
|
417
417
|
ruby-progressbar (~> 1.8, >= 1.8.1)
|
418
418
|
terminal-table (>= 1.5.1)
|
419
|
-
icalendar (2.11.
|
419
|
+
icalendar (2.11.2)
|
420
420
|
base64
|
421
421
|
ice_cube (~> 0.16)
|
422
422
|
logger
|
@@ -427,9 +427,9 @@ GEM
|
|
427
427
|
ruby-vips (>= 2.0.17, < 3)
|
428
428
|
invisible_captcha (0.13.0)
|
429
429
|
rails (>= 3.2.0)
|
430
|
-
io-console (0.8.
|
431
|
-
json (2.
|
432
|
-
jwt (
|
430
|
+
io-console (0.8.1)
|
431
|
+
json (2.13.0)
|
432
|
+
jwt (3.1.2)
|
433
433
|
base64
|
434
434
|
kaminari (1.2.2)
|
435
435
|
activesupport (>= 4.1.0)
|
@@ -458,7 +458,7 @@ GEM
|
|
458
458
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
459
459
|
rb-inotify (~> 0.9, >= 0.9.10)
|
460
460
|
logger (1.7.0)
|
461
|
-
loofah (2.24.
|
461
|
+
loofah (2.24.1)
|
462
462
|
crass (~> 1.0.2)
|
463
463
|
nokogiri (>= 1.12.0)
|
464
464
|
mail (2.8.1)
|
@@ -467,12 +467,12 @@ GEM
|
|
467
467
|
net-pop
|
468
468
|
net-smtp
|
469
469
|
marcel (1.0.4)
|
470
|
-
matrix (0.4.
|
470
|
+
matrix (0.4.3)
|
471
471
|
method_source (1.1.0)
|
472
|
-
mime-types (3.
|
472
|
+
mime-types (3.7.0)
|
473
473
|
logger
|
474
|
-
mime-types-data (~> 3.
|
475
|
-
mime-types-data (3.2025.
|
474
|
+
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
475
|
+
mime-types-data (3.2025.0715)
|
476
476
|
mini_magick (4.13.2)
|
477
477
|
mini_mime (1.1.5)
|
478
478
|
minitest (5.25.5)
|
@@ -481,7 +481,7 @@ GEM
|
|
481
481
|
bigdecimal (~> 3.1)
|
482
482
|
net-http (0.6.0)
|
483
483
|
uri
|
484
|
-
net-imap (0.5.
|
484
|
+
net-imap (0.5.9)
|
485
485
|
date
|
486
486
|
net-protocol
|
487
487
|
net-pop (0.1.2)
|
@@ -499,13 +499,14 @@ GEM
|
|
499
499
|
version_gem (~> 1.1)
|
500
500
|
oauth-tty (1.0.5)
|
501
501
|
version_gem (~> 1.1, >= 1.1.1)
|
502
|
-
oauth2 (2.0.
|
503
|
-
faraday (>= 0.17.3, <
|
504
|
-
jwt (>= 1.0, <
|
502
|
+
oauth2 (2.0.12)
|
503
|
+
faraday (>= 0.17.3, < 4.0)
|
504
|
+
jwt (>= 1.0, < 4.0)
|
505
|
+
logger (~> 1.2)
|
505
506
|
multi_xml (~> 0.5)
|
506
507
|
rack (>= 1.2, < 4)
|
507
|
-
snaky_hash (~> 2.0)
|
508
|
-
version_gem (
|
508
|
+
snaky_hash (~> 2.0, >= 2.0.3)
|
509
|
+
version_gem (>= 1.1.8, < 3)
|
509
510
|
omniauth (2.1.3)
|
510
511
|
hashie (>= 3.4.6)
|
511
512
|
rack (>= 2.2.3)
|
@@ -532,7 +533,7 @@ GEM
|
|
532
533
|
rack
|
533
534
|
openssl (3.3.0)
|
534
535
|
orm_adapter (0.5.0)
|
535
|
-
ostruct (0.6.
|
536
|
+
ostruct (0.6.3)
|
536
537
|
paper_trail (12.3.0)
|
537
538
|
activerecord (>= 5.2)
|
538
539
|
request_store (~> 1.1)
|
@@ -557,11 +558,11 @@ GEM
|
|
557
558
|
prism (1.4.0)
|
558
559
|
psych (4.0.6)
|
559
560
|
stringio
|
560
|
-
public_suffix (6.0.
|
561
|
+
public_suffix (6.0.2)
|
561
562
|
puma (6.6.0)
|
562
563
|
nio4r (~> 2.0)
|
563
564
|
racc (1.8.1)
|
564
|
-
rack (2.2.
|
565
|
+
rack (2.2.17)
|
565
566
|
rack-attack (6.7.0)
|
566
567
|
rack (>= 1.0, < 4)
|
567
568
|
rack-cors (1.1.1)
|
@@ -592,7 +593,7 @@ GEM
|
|
592
593
|
actionpack (>= 5.0.1.rc1)
|
593
594
|
actionview (>= 5.0.1.rc1)
|
594
595
|
activesupport (>= 5.0.1.rc1)
|
595
|
-
rails-dom-testing (2.
|
596
|
+
rails-dom-testing (2.3.0)
|
596
597
|
activesupport (>= 5.0.0)
|
597
598
|
minitest
|
598
599
|
nokogiri (>= 1.6)
|
@@ -609,7 +610,7 @@ GEM
|
|
609
610
|
rake (>= 12.2)
|
610
611
|
thor (~> 1.0)
|
611
612
|
rainbow (3.1.1)
|
612
|
-
rake (13.
|
613
|
+
rake (13.3.0)
|
613
614
|
ransack (3.2.1)
|
614
615
|
activerecord (>= 6.1.5)
|
615
616
|
activesupport (>= 6.1.5)
|
@@ -628,22 +629,22 @@ GEM
|
|
628
629
|
actionpack (>= 5.2)
|
629
630
|
railties (>= 5.2)
|
630
631
|
rexml (3.4.1)
|
631
|
-
rspec (3.13.
|
632
|
+
rspec (3.13.1)
|
632
633
|
rspec-core (~> 3.13.0)
|
633
634
|
rspec-expectations (~> 3.13.0)
|
634
635
|
rspec-mocks (~> 3.13.0)
|
635
636
|
rspec-cells (0.3.10)
|
636
637
|
cells (>= 4.0.0, < 6.0.0)
|
637
638
|
rspec-rails (>= 3.0.0)
|
638
|
-
rspec-core (3.13.
|
639
|
+
rspec-core (3.13.5)
|
639
640
|
rspec-support (~> 3.13.0)
|
640
|
-
rspec-expectations (3.13.
|
641
|
+
rspec-expectations (3.13.5)
|
641
642
|
diff-lcs (>= 1.2.0, < 2.0)
|
642
643
|
rspec-support (~> 3.13.0)
|
643
644
|
rspec-html-matchers (0.10.0)
|
644
645
|
nokogiri (~> 1)
|
645
646
|
rspec (>= 3.0.0.a)
|
646
|
-
rspec-mocks (3.13.
|
647
|
+
rspec-mocks (3.13.5)
|
647
648
|
diff-lcs (>= 1.2.0, < 2.0)
|
648
649
|
rspec-support (~> 3.13.0)
|
649
650
|
rspec-rails (6.1.5)
|
@@ -656,7 +657,7 @@ GEM
|
|
656
657
|
rspec-support (~> 3.13)
|
657
658
|
rspec-retry (0.6.2)
|
658
659
|
rspec-core (> 3.3)
|
659
|
-
rspec-support (3.13.
|
660
|
+
rspec-support (3.13.4)
|
660
661
|
rspec_junit_formatter (0.6.0)
|
661
662
|
rspec-core (>= 2, < 4, != 2.12.0)
|
662
663
|
rubocop (1.50.2)
|
@@ -669,7 +670,7 @@ GEM
|
|
669
670
|
rubocop-ast (>= 1.28.0, < 2.0)
|
670
671
|
ruby-progressbar (~> 1.7)
|
671
672
|
unicode-display_width (>= 2.4.0, < 3.0)
|
672
|
-
rubocop-ast (1.
|
673
|
+
rubocop-ast (1.46.0)
|
673
674
|
parser (>= 3.3.7.2)
|
674
675
|
prism (~> 1.4)
|
675
676
|
rubocop-capybara (2.21.0)
|
@@ -692,7 +693,7 @@ GEM
|
|
692
693
|
rubocop-rspec_rails (2.29.0)
|
693
694
|
rubocop (~> 1.40)
|
694
695
|
ruby-progressbar (1.13.0)
|
695
|
-
ruby-vips (2.2.
|
696
|
+
ruby-vips (2.2.4)
|
696
697
|
ffi (~> 1.12)
|
697
698
|
logger
|
698
699
|
rubyXL (3.4.33)
|
@@ -704,7 +705,7 @@ GEM
|
|
704
705
|
sass-listen (4.0.0)
|
705
706
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
706
707
|
rb-inotify (~> 0.9, >= 0.9.7)
|
707
|
-
selenium-webdriver (4.
|
708
|
+
selenium-webdriver (4.32.0)
|
708
709
|
base64 (~> 0.2)
|
709
710
|
logger (~> 1.4)
|
710
711
|
rexml (~> 3.2, >= 3.2.5)
|
@@ -723,12 +724,12 @@ GEM
|
|
723
724
|
simplecov-cobertura (2.1.0)
|
724
725
|
rexml
|
725
726
|
simplecov (~> 0.19)
|
726
|
-
simplecov-html (0.13.
|
727
|
+
simplecov-html (0.13.2)
|
727
728
|
simplecov_json_formatter (0.1.4)
|
728
729
|
smart_properties (1.17.0)
|
729
|
-
snaky_hash (2.0.
|
730
|
-
hashie
|
731
|
-
version_gem (
|
730
|
+
snaky_hash (2.0.3)
|
731
|
+
hashie (>= 0.1.0, < 6)
|
732
|
+
version_gem (>= 1.1.8, < 3)
|
732
733
|
spring (2.1.1)
|
733
734
|
spring-watcher-listen (2.0.1)
|
734
735
|
listen (>= 2.7, < 4.0)
|
@@ -742,25 +743,25 @@ GEM
|
|
742
743
|
activesupport (>= 6.1)
|
743
744
|
sprockets (>= 3.0.0)
|
744
745
|
sqlite3 (1.7.3-x86_64-linux)
|
745
|
-
ssrf_filter (1.
|
746
|
+
ssrf_filter (1.3.0)
|
746
747
|
stringio (3.1.7)
|
747
748
|
temple (0.10.3)
|
748
749
|
terminal-table (4.0.0)
|
749
750
|
unicode-display_width (>= 1.1.1, < 4)
|
750
751
|
thor (1.3.2)
|
751
|
-
tilt (2.6.
|
752
|
+
tilt (2.6.1)
|
752
753
|
timeout (0.4.3)
|
753
754
|
trailblazer-option (0.1.2)
|
754
755
|
tzinfo (2.0.6)
|
755
756
|
concurrent-ruby (~> 1.0)
|
756
757
|
uber (0.1.0)
|
757
758
|
unicode-display_width (2.6.0)
|
758
|
-
uniform_notifier (1.
|
759
|
+
uniform_notifier (1.17.0)
|
759
760
|
uri (1.0.3)
|
760
761
|
valid_email2 (4.0.6)
|
761
762
|
activemodel (>= 3.2)
|
762
763
|
mail (~> 2.5)
|
763
|
-
version_gem (1.1.
|
764
|
+
version_gem (1.1.8)
|
764
765
|
w3c_rspec_validators (0.3.0)
|
765
766
|
rails
|
766
767
|
rspec
|
@@ -771,15 +772,15 @@ GEM
|
|
771
772
|
rexml (~> 3.2)
|
772
773
|
warden (1.2.9)
|
773
774
|
rack (>= 2.0.9)
|
774
|
-
web-push (3.0.
|
775
|
-
jwt (~>
|
775
|
+
web-push (3.0.2)
|
776
|
+
jwt (~> 3.0)
|
776
777
|
openssl (~> 3.0)
|
777
778
|
webmock (3.25.1)
|
778
779
|
addressable (>= 2.8.0)
|
779
780
|
crack (>= 0.3.2)
|
780
781
|
hashdiff (>= 0.4.0, < 2.0.0)
|
781
782
|
websocket (1.2.11)
|
782
|
-
websocket-driver (0.
|
783
|
+
websocket-driver (0.8.0)
|
783
784
|
base64
|
784
785
|
websocket-extensions (>= 0.1.0)
|
785
786
|
websocket-extensions (0.1.5)
|
@@ -806,7 +807,7 @@ DEPENDENCIES
|
|
806
807
|
listen
|
807
808
|
rake (~> 13.0)
|
808
809
|
rspec (~> 3.0)
|
809
|
-
rubocop
|
810
|
+
rubocop
|
810
811
|
sqlite3 (~> 1.4)
|
811
812
|
uri (>= 0.13.1)
|
812
813
|
|
data/README.md
CHANGED
@@ -300,7 +300,7 @@ bundle exec rspec spec
|
|
300
300
|
|
301
301
|
## Contributing
|
302
302
|
|
303
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/CodiTramuntana/decidim-cdtb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/CodiTramuntana/decidim-cdtb/blob/
|
303
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/CodiTramuntana/decidim-cdtb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/CodiTramuntana/decidim-cdtb/blob/main/CODE_OF_CONDUCT.md).
|
304
304
|
|
305
305
|
## License
|
306
306
|
|
@@ -308,4 +308,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
308
308
|
|
309
309
|
## Code of Conduct
|
310
310
|
|
311
|
-
Everyone interacting in the Decidim::Cdtb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/CodiTramuntana/decidim-cdtb/blob/
|
311
|
+
Everyone interacting in the Decidim::Cdtb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/CodiTramuntana/decidim-cdtb/blob/main/CODE_OF_CONDUCT.md).
|
@@ -1,12 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# require "decidim"
|
4
|
-
# require "decidim/assembly"
|
5
|
-
# require "decidim/participatory_process"
|
6
|
-
# require "decidim/meetings/meeting"
|
7
|
-
# require "decidim/debates/debate"
|
8
|
-
# require "decidim/pages/page"
|
9
|
-
|
10
3
|
module Decidim
|
11
4
|
module Cdtb
|
12
5
|
module Fixes
|
@@ -16,9 +9,11 @@ module Decidim
|
|
16
9
|
PROCESSED_MODELS= {
|
17
10
|
"Decidim::Meetings::Meeting" => [:description],
|
18
11
|
"Decidim::Debates::Debate" => %i[description instructions],
|
12
|
+
"Decidim::StaticPage" => [:content],
|
19
13
|
"Decidim::Pages::Page" => [:body],
|
20
14
|
"Decidim::Assembly" => %i[short_description description],
|
21
|
-
"Decidim::ParticipatoryProcess" => %i[short_description description]
|
15
|
+
"Decidim::ParticipatoryProcess" => %i[short_description description],
|
16
|
+
"Decidim::Proposals::Proposal" => %i[body]
|
22
17
|
}.freeze
|
23
18
|
|
24
19
|
def initialize
|
@@ -92,23 +87,37 @@ module Decidim
|
|
92
87
|
Rails.logger.debug "=> #{divs_w_embed.size} => #{content}"
|
93
88
|
|
94
89
|
divs_w_embed.map do |div|
|
95
|
-
|
90
|
+
iframe= div.css("iframe").first
|
91
|
+
|
92
|
+
regexp_match= if div["data-video-embed"].present?
|
93
|
+
find_localized_embed_from_video_btn(div)
|
94
|
+
else
|
95
|
+
find_localized_embed_from_embed_btn(iframe)
|
96
|
+
end
|
97
|
+
|
96
98
|
next unless regexp_match
|
97
99
|
|
98
100
|
Rails.logger.debug("EMBED:::: #{div.class} => #{div}")
|
99
101
|
|
100
102
|
yt_id= regexp_match["yt_id"]
|
101
103
|
div["data-video-embed"]= "https://www.youtube.com/watch?v=#{yt_id}"
|
102
|
-
iframe= div.css("iframe").first
|
103
104
|
iframe["src"]= "https://www.youtube-nocookie.com/embed/#{yt_id}?cc_load_policy=1&modestbranding=1"
|
104
105
|
fixed_div= div
|
105
106
|
Rails.logger.debug("FIXED TO: #{fixed_div.to_html}")
|
106
107
|
new_content= parsed.css("body").children.to_html
|
107
108
|
Rails.logger.debug("FIXED TO: #{new_content}")
|
108
109
|
new_content
|
109
|
-
end
|
110
|
+
end.compact
|
110
111
|
end
|
111
112
|
# rubocop: enable Metrics/AbcSize
|
113
|
+
|
114
|
+
def find_localized_embed_from_video_btn(div)
|
115
|
+
div["data-video-embed"].match(%r{https://www.youtube.com/embed/(?<yt_id>\w+)})
|
116
|
+
end
|
117
|
+
|
118
|
+
def find_localized_embed_from_embed_btn(iframe)
|
119
|
+
iframe["src"].match(%r{https://www.youtube.com/embed/(?<yt_id>\w+)})
|
120
|
+
end
|
112
121
|
end
|
113
122
|
end
|
114
123
|
end
|
@@ -7,8 +7,8 @@ module Decidim
|
|
7
7
|
#
|
8
8
|
# rubocop:disable Metrics/ClassLength
|
9
9
|
class Remover < ::Decidim::Cdtb::Task
|
10
|
-
def initialize(
|
11
|
-
@organization=
|
10
|
+
def initialize(organization_id, csv_path, reporter_user_email)
|
11
|
+
@organization= Decidim::Organization.find_by(id: organization_id)
|
12
12
|
@csv_path = csv_path
|
13
13
|
@reporter_user_email = reporter_user_email
|
14
14
|
progress_bar = { title: "Decidim::User" }
|
@@ -25,9 +25,7 @@ module Decidim
|
|
25
25
|
def do_execution(context)
|
26
26
|
progress_bar = context[:progress_bar]
|
27
27
|
|
28
|
-
reporter_user =
|
29
|
-
organization: user.organization)
|
30
|
-
|
28
|
+
reporter_user = Decidim::User.find_by(email: @reporter_user_email, organization: @organization)
|
31
29
|
emails_on_moderations = @organization.users.where(email_on_moderations: true).pluck(:email)
|
32
30
|
|
33
31
|
disable_email_moderations(emails_on_moderations)
|
data/lib/decidim/cdtb/version.rb
CHANGED
data/lib/tasks/users.rake
CHANGED
@@ -15,8 +15,8 @@ namespace :cdtb do
|
|
15
15
|
desc <<~EODESC
|
16
16
|
Remove Decidim::User's by IDs in a CSV.
|
17
17
|
EODESC
|
18
|
-
task :remove, %i[csv_path reporter_user_email] => [:environment] do |_taks, args|
|
19
|
-
service = Decidim::Cdtb::Users::Remover.new(args.csv_path, args.reporter_user_email)
|
18
|
+
task :remove, %i[organization_id csv_path reporter_user_email] => [:environment] do |_taks, args|
|
19
|
+
service = Decidim::Cdtb::Users::Remover.new(args.organization_id, args.csv_path, args.reporter_user_email)
|
20
20
|
service.execute!
|
21
21
|
end
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-cdtb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Valls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim
|