decidim-cdtb 0.5.3 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6241713e113ab066abfe43c43d7262929e758583440148ef3410d12c3a4375b7
4
- data.tar.gz: 15ff2f42ce709a998482e7790259f645be2ea914bef19298f09f30ba907e3272
3
+ metadata.gz: 503b64bc8fc2ef3f45edcdabff3591d23a075cfb48e25cb624f061e7019f0f03
4
+ data.tar.gz: 3574d5efd2e3d9f08e510f24df8f8c92ec9f45e3efea1e1308afc1ebcb58465d
5
5
  SHA512:
6
- metadata.gz: 4092451ddead10f5af1f2f298258f99ba1b1ebf8e0844d8707be6471a042986042da6a7483ed42145f23c8cdc316d8d15110bc201d4e23e9cdfe139efc8174d5
7
- data.tar.gz: 8ae262af44f440fdeeae32e0f4c664d724e8d51eb5241f617a05da92e1604e6734ba4d5a74ed5c06f209c303c712153193565e7128bba598efa873fd7ebbcdee
6
+ metadata.gz: 37affa74d1f8761a42c1a6e64ecf93cbd9422208e169dc318d765b3fb650bdfc056fcf4a3a00ef2b1d95103ace679815e0fc933d5ebbda2447f3d47ba94f7902
7
+ data.tar.gz: ece1b559779d9a45d378afb760f4df73aeca4866ef94c6b6561b599d9dfaf4db2033b2c7e674226e6753cd662728cc6db931389f19cbae3c8973a947701fa9ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.4] - 2025-07-10 (patch - Una festa que no resta)
4
+
5
+ - Use `main` as default git branch in CI generators
6
+ - Expand YouTube embeds fixer covered cases. Take into account embeds added via 'video' button and now also via 'embed' button.
7
+
3
8
  ## [0.5.3] - 2025-07-10 (patch - Aperitius explosius)
4
9
 
5
10
  - Add "cdtb" in RackAttack logs to ease finding them.
data/Gemfile CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  group :development do
23
23
  gem "rake", "~> 13.0"
24
- gem "rubocop", "~>1.50.0"
24
+ gem "rubocop"
25
25
  end
26
26
 
27
27
  group :test do
data/Gemfile.lock CHANGED
@@ -1,56 +1,56 @@
1
1
  GIT
2
2
  remote: https://github.com/CodiTramuntana/decidim.git
3
- revision: e7260c5194dd8b659cd2a289e162818c7c9017be
3
+ revision: b033090746db23530f2f41fc89efb1993fc2f7ea
4
4
  branch: release/0.28-stable
5
5
  specs:
6
- decidim (0.28.5)
7
- decidim-accountability (= 0.28.5)
8
- decidim-admin (= 0.28.5)
9
- decidim-api (= 0.28.5)
10
- decidim-assemblies (= 0.28.5)
11
- decidim-blogs (= 0.28.5)
12
- decidim-budgets (= 0.28.5)
13
- decidim-comments (= 0.28.5)
14
- decidim-core (= 0.28.5)
15
- decidim-debates (= 0.28.5)
16
- decidim-forms (= 0.28.5)
17
- decidim-generators (= 0.28.5)
18
- decidim-meetings (= 0.28.5)
19
- decidim-pages (= 0.28.5)
20
- decidim-participatory_processes (= 0.28.5)
21
- decidim-proposals (= 0.28.5)
22
- decidim-sortitions (= 0.28.5)
23
- decidim-surveys (= 0.28.5)
24
- decidim-system (= 0.28.5)
25
- decidim-verifications (= 0.28.5)
26
- decidim-accountability (0.28.5)
27
- decidim-comments (= 0.28.5)
28
- decidim-core (= 0.28.5)
29
- decidim-admin (0.28.5)
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.5)
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.5)
35
+ decidim-api (0.28.6)
36
36
  commonmarker (~> 0.23.0, >= 0.23.9)
37
- decidim-core (= 0.28.5)
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.5)
42
- decidim-core (= 0.28.5)
43
- decidim-blogs (0.28.5)
44
- decidim-admin (= 0.28.5)
45
- decidim-comments (= 0.28.5)
46
- decidim-core (= 0.28.5)
47
- decidim-budgets (0.28.5)
48
- decidim-comments (= 0.28.5)
49
- decidim-core (= 0.28.5)
50
- decidim-comments (0.28.5)
51
- decidim-core (= 0.28.5)
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.5)
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.5)
104
- decidim-comments (= 0.28.5)
105
- decidim-core (= 0.28.5)
106
- decidim-forms (0.28.5)
107
- decidim-core (= 0.28.5)
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.5)
110
- decidim-core (= 0.28.5)
111
- decidim-meetings (0.28.5)
112
- decidim-core (= 0.28.5)
113
- decidim-forms (= 0.28.5)
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.5)
116
- decidim-core (= 0.28.5)
117
- decidim-participatory_processes (0.28.5)
118
- decidim-core (= 0.28.5)
119
- decidim-proposals (0.28.5)
120
- decidim-comments (= 0.28.5)
121
- decidim-core (= 0.28.5)
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.5)
125
- decidim-admin (= 0.28.5)
126
- decidim-comments (= 0.28.5)
127
- decidim-core (= 0.28.5)
128
- decidim-proposals (= 0.28.5)
129
- decidim-surveys (0.28.5)
130
- decidim-core (= 0.28.5)
131
- decidim-forms (= 0.28.5)
132
- decidim-system (0.28.5)
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.5)
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.5)
139
- decidim-core (= 0.28.5)
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.3)
144
+ decidim-cdtb (0.5.4)
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.2.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.1.9)
231
- bootsnap (1.18.4)
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.4)
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.5)
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.5)
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.10)
325
+ devise_invitable (2.0.11)
326
326
  actionmailer (>= 5.0)
327
327
  devise (>= 4.6)
328
- diff-lcs (1.6.1)
329
- diffy (3.4.3)
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.5)
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.1)
352
+ factory_bot (6.5.4)
353
353
  activesupport (>= 6.1.0)
354
- factory_bot_rails (6.4.4)
354
+ factory_bot_rails (6.5.0)
355
355
  factory_bot (~> 6.5)
356
- railties (>= 5.0.0)
357
- faker (3.5.1)
356
+ railties (>= 6.1.0)
357
+ faker (3.5.2)
358
358
  i18n (>= 1.8.11, < 2)
359
- faraday (2.13.0)
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.0)
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.0)
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.1.2)
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.0)
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.0)
431
- json (2.11.2)
432
- jwt (2.10.1)
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.0)
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.2)
470
+ matrix (0.4.3)
471
471
  method_source (1.1.0)
472
- mime-types (3.6.2)
472
+ mime-types (3.7.0)
473
473
  logger
474
- mime-types-data (~> 3.2015)
475
- mime-types-data (3.2025.0422)
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.7)
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.9)
503
- faraday (>= 0.17.3, < 3.0)
504
- jwt (>= 1.0, < 3.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 (~> 1.1)
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.1)
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.1)
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.13)
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.2.0)
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.2.1)
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.0)
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.3)
639
+ rspec-core (3.13.5)
639
640
  rspec-support (~> 3.13.0)
640
- rspec-expectations (3.13.3)
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.2)
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.2)
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.44.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.3)
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.31.0)
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.1)
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.1)
730
- hashie
731
- version_gem (~> 1.1, >= 1.1.1)
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.2.0)
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.0)
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.16.0)
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.7)
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.1)
775
- jwt (~> 2.0)
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.7.7)
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 (~> 1.50.0)
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/master/CODE_OF_CONDUCT.md).
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/master/CODE_OF_CONDUCT.md).
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
- regexp_match= div["data-video-embed"].match(%r{https://www.youtube.com/embed/(?<yt_id>\w+)})
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module Cdtb
5
- VERSION = "0.5.3"
5
+ VERSION = "0.5.4"
6
6
  DECIDIM_MIN_VERSION = ">= 0.28.0"
7
7
  end
8
8
  end
@@ -3,7 +3,7 @@ name: "[CI] App"
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  - release/*
8
8
  - "*-stable"
9
9
  pull_request:
@@ -3,7 +3,7 @@ name: "[CI] Lint / Lint code"
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  - release/*
8
8
  - "*-stable"
9
9
  pull_request:
@@ -3,7 +3,7 @@ name: "[CI] Validate migrations"
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  - release/*
8
8
  - "*-stable"
9
9
  pull_request:
@@ -3,7 +3,7 @@ name: "[CI] Check Zeitwerk Class Loading"
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  - release/*
8
8
  - "*-stable"
9
9
  pull_request:
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.3
4
+ version: 0.5.4
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-07-10 00:00:00.000000000 Z
11
+ date: 2025-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim