decidim-dev 0.31.4 → 0.32.0.rc1

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -12
  3. data/app/models/decidim/dev/dummy_resource.rb +4 -1
  4. data/app/models/decidim/dev/nested_dummy_resource.rb +1 -0
  5. data/config/locales/ar.yml +1 -2
  6. data/config/locales/bg.yml +1 -2
  7. data/config/locales/ca-IT.yml +1 -2
  8. data/config/locales/ca.yml +1 -2
  9. data/config/locales/cs.yml +1 -2
  10. data/config/locales/de.yml +1 -2
  11. data/config/locales/el.yml +1 -2
  12. data/config/locales/es-MX.yml +1 -2
  13. data/config/locales/es-PY.yml +1 -2
  14. data/config/locales/es.yml +1 -2
  15. data/config/locales/eu.yml +1 -2
  16. data/config/locales/fi-plain.yml +1 -2
  17. data/config/locales/fi.yml +1 -2
  18. data/config/locales/fr-CA.yml +1 -2
  19. data/config/locales/fr.yml +1 -2
  20. data/config/locales/ga-IE.yml +0 -1
  21. data/config/locales/gl.yml +1 -2
  22. data/config/locales/hu.yml +1 -2
  23. data/config/locales/id-ID.yml +1 -2
  24. data/config/locales/is-IS.yml +1 -2
  25. data/config/locales/it.yml +1 -2
  26. data/config/locales/ja.yml +1 -2
  27. data/config/locales/lt.yml +1 -2
  28. data/config/locales/lv.yml +1 -2
  29. data/config/locales/nl.yml +1 -2
  30. data/config/locales/no.yml +1 -2
  31. data/config/locales/pl.yml +1 -2
  32. data/config/locales/pt-BR.yml +1 -2
  33. data/config/locales/pt.yml +1 -2
  34. data/config/locales/ro-RO.yml +1 -2
  35. data/config/locales/ru.yml +1 -2
  36. data/config/locales/sk.yml +1 -2
  37. data/config/locales/sl.yml +0 -1
  38. data/config/locales/sv.yml +1 -2
  39. data/config/locales/tr-TR.yml +1 -2
  40. data/config/locales/uk.yml +0 -1
  41. data/config/locales/zh-CN.yml +1 -2
  42. data/config/locales/zh-TW.yml +1 -2
  43. data/config/rubocop/decidim-linters/configuration.yml +8 -0
  44. data/config/rubocop/rails/disabled.yml +6 -0
  45. data/config/rubocop/rspec/configuration.yml +5 -0
  46. data/config/rubocop/ruby/configuration.yml +2 -3
  47. data/config/rubocop/ruby/disabled.yml +9 -0
  48. data/config/rubocop/yard/configuration.yml +1 -0
  49. data/decidim-dev.gemspec +21 -23
  50. data/lib/decidim/dev/assets/assemblies.json +1 -21
  51. data/lib/decidim/dev/assets/assemblies_with_null.json +1 -2
  52. data/lib/decidim/dev/assets/participatory_processes.json +1 -4
  53. data/lib/decidim/dev/assets/participatory_processes_with_null.json +1 -1
  54. data/lib/decidim/dev/dummy_translator.rb +1 -1
  55. data/lib/decidim/dev/rubocop/cop/decidim/message_antipattern.rb +76 -0
  56. data/lib/decidim/dev/test/rspec_support/active_job.rb +5 -0
  57. data/lib/decidim/dev/test/rspec_support/component_context.rb +1 -1
  58. data/lib/decidim/dev/test/rspec_support/helpers.rb +9 -3
  59. data/lib/decidim/dev/test/rspec_support/tom_select.rb +7 -4
  60. data/lib/decidim/dev/version.rb +1 -1
  61. data/lib/decidim/dev.rb +0 -1
  62. data/lib/erb_lint/linters/admin_page_title_linter.rb +46 -0
  63. data/lib/erb_lint/linters/partial_path_linter.rb +101 -0
  64. data/rubocop-decidim.yml +2 -0
  65. metadata +134 -64
  66. /data/lib/decidim/dev/assets/{import_participatory_space_private_users.csv → import_members.csv} +0 -0
  67. /data/lib/decidim/dev/assets/{import_participatory_space_private_users_invalid_col_sep.csv → import_members_invalid_col_sep.csv} +0 -0
  68. /data/lib/decidim/dev/assets/{import_participatory_space_private_users_iso8859-1.csv → import_members_iso8859-1.csv} +0 -0
  69. /data/lib/decidim/dev/assets/{import_participatory_space_private_users_nok.csv → import_members_nok.csv} +0 -0
  70. /data/lib/decidim/dev/assets/{import_participatory_space_private_users_with_bom.csv → import_members_with_bom.csv} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ecb26f0ab198fb7bdac73d8f2373a90caad626b096cf0f0684bb173b07813c7
4
- data.tar.gz: 1803ab91f4c70bce54c3554111002b41fcc0e8a2ad4deb22d3990253c3d9dc13
3
+ metadata.gz: 9789d8422d4f2c6a4607074b9d86c516ef4e56540f3fb980922769212dfda5f7
4
+ data.tar.gz: 106c5e3ca7f77cda7bb17f3968ec62b4cc2e2b87b95e5f8629a3aa4c533405a9
5
5
  SHA512:
6
- metadata.gz: 94b86f957c6815896a3d9c4f4faa19359b2f89f7b0399abf95a87c2a3acc5a8519800ced81fcfb337d5467749332a543570832e4dc8bd12f18a11018e1a4498f
7
- data.tar.gz: b278fe0ec0734e368e99b4fe12f8b6976ecda4f437033ff1761ae3cd1a48582278bdc484fc06586bf216a40a285e1dbb07d13d761da7ff7b86bc065bb8a69cf3
6
+ metadata.gz: ddd287450604407bf297fb5350167f1cba9b393ff232579f6d7c3c1d06109ce8d95102d51d4984b88c5c45b1bf891cd9662fbae654acade865086590ac6a6de5
7
+ data.tar.gz: 673c410f97e34122b08bf4b061715360693e0a4a0916517d1a4fc53deb2e0df8dc0e2d0b46c3c59ee39c6180fd3dc3457fafe22bc5f5c18f94e95701be65cc16
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Decidim::Dev
1
+ # decidim-dev
2
2
 
3
3
  This module allows local development of decidim's components and other features.
4
4
 
@@ -9,19 +9,11 @@ dummy assets or resources that you can use to test your own modules. It also
9
9
  provides a `decidim:generate_external_test_app` rails task that you can use to
10
10
  generate a dummy application to test your module.
11
11
 
12
- ## Installation
13
-
14
- Add this line to your application's Gemfile:
12
+ This is a module oriented for developers, as a building block to be used by other modules.
15
13
 
16
- ```ruby
17
- gem 'decidim-dev'
18
- ```
19
-
20
- And then execute:
14
+ ## Installation
21
15
 
22
- ```bash
23
- bundle
24
- ```
16
+ This is on the default Decidim installation so you should not change anything to use this module.
25
17
 
26
18
  ## Contributing
27
19
 
@@ -78,7 +78,10 @@ module Decidim
78
78
 
79
79
  # Public: Whether the object can have new comment votes or not.
80
80
  def user_allowed_to_vote_comment?(user)
81
- component.can_participate_in_space?(user)
81
+ return false unless accepts_new_comments?
82
+ return unless component.can_participate_in_space?(user)
83
+
84
+ ActionAuthorizer.new(user, "vote_comment", component, self).authorize.ok?
82
85
  end
83
86
 
84
87
  def self.user_collection(user)
@@ -4,6 +4,7 @@ module Decidim
4
4
  module Dev
5
5
  class NestedDummyResource < ApplicationRecord
6
6
  include Decidim::Resourceable
7
+
7
8
  belongs_to :dummy_resource
8
9
  end
9
10
  end
@@ -1,4 +1,3 @@
1
- ---
2
1
  ar:
3
2
  activemodel:
4
3
  attributes:
@@ -48,7 +47,7 @@ ar:
48
47
  badges:
49
48
  test:
50
49
  conditions:
51
- - استخدام بيئة اختبار ل decidim.
50
+ - استخدام بيئة اختبار ل decidim.
52
51
  description: يحصل المشاركون على هذه الشارة عن طريق إنشاء اختبارات.
53
52
  description_another: قام هذا المشارك بإنشاء %{score} اختبار.
54
53
  description_own: لقد أنشأت %{score} اختبارات.
@@ -1,4 +1,3 @@
1
- ---
2
1
  bg:
3
2
  activemodel:
4
3
  attributes:
@@ -45,7 +44,7 @@ bg:
45
44
  badges:
46
45
  test:
47
46
  conditions:
48
- - Използвайте тестова среда за decidim.
47
+ - Използвайте тестова среда за decidim.
49
48
  description: Участниците получават тази значка като създават тестове.
50
49
  description_another: Участниците създадоха %{score} теста.
51
50
  description_own: Вие създадохте %{score} теста.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ca-IT:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ ca-IT:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilitza un entorn de prova per decidim.
54
+ - Utilitza un entorn de prova per decidim.
56
55
  description: Les participants obtenen aquesta ensenya creant proves.
57
56
  description_another: Aquesta participant ha creat %{score} proves.
58
57
  description_own: Has creat %{score} proves.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ca:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ ca:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilitza un entorn de prova per decidim.
54
+ - Utilitza un entorn de prova per decidim.
56
55
  description: Les participants obtenen aquesta ensenya creant proves.
57
56
  description_another: Aquesta participant ha creat %{score} proves.
58
57
  description_own: Has creat %{score} proves.
@@ -1,4 +1,3 @@
1
- ---
2
1
  cs:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ cs:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Použijte testovací prostředí pro decidim.
54
+ - Použijte testovací prostředí pro decidim.
56
55
  description: Uživatelé získají tento odznak vytvořením testů.
57
56
  description_another: Tento uživatel vytvořil %{score} testů.
58
57
  description_own: Vytvořili jste %{score} testů.
@@ -1,4 +1,3 @@
1
- ---
2
1
  de:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ de:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Verwenden Sie eine Testumgebung für Decidim.
54
+ - Verwenden Sie eine Testumgebung für Decidim.
56
55
  description: Benutzer erhalten dieses Badge, indem sie Tests erstellen.
57
56
  description_another: Dieser Benutzer hat %{score} Tests erstellt.
58
57
  description_own: Sie haben %{score} Tests erstellt.
@@ -1,4 +1,3 @@
1
- ---
2
1
  el:
3
2
  activemodel:
4
3
  attributes:
@@ -47,7 +46,7 @@ el:
47
46
  badges:
48
47
  test:
49
48
  conditions:
50
- - Χρησιμοποιήστε ένα περιβάλλον δοκιμής για το decidim.
49
+ - Χρησιμοποιήστε ένα περιβάλλον δοκιμής για το decidim.
51
50
  description: Οι συμμετέχοντες αποκτούν αυτό το έμβλημα δημιουργώντας δοκιμές.
52
51
  description_another: Αυτός ο συμμετέχων έχει δημιουργήσει %{score} δοκιμές.
53
52
  description_own: Έχετε δημιουργήσει %{score} δοκιμές.
@@ -1,4 +1,3 @@
1
- ---
2
1
  es-MX:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ es-MX:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilice un entorno de prueba para decidim.
54
+ - Utilice un entorno de prueba para decidim.
56
55
  description: Los usuarios obtienen esta insignia al crear pruebas.
57
56
  description_another: Este usuario ha creado %{score} pruebas.
58
57
  description_own: Has creado %{score} pruebas.
@@ -1,4 +1,3 @@
1
- ---
2
1
  es-PY:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ es-PY:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilice un entorno de prueba para decidim.
54
+ - Utilice un entorno de prueba para decidim.
56
55
  description: Los usuarios obtienen esta insignia al crear pruebas.
57
56
  description_another: Este usuario ha creado %{score} pruebas.
58
57
  description_own: Has creado %{score} pruebas.
@@ -1,4 +1,3 @@
1
- ---
2
1
  es:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ es:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilice un entorno de prueba para decidim.
54
+ - Utilice un entorno de prueba para decidim.
56
55
  description: Las participantes obtienen esta insignia al crear pruebas.
57
56
  description_another: Esta participante ha creado %{score} pruebas.
58
57
  description_own: Has creado %{score} pruebas.
@@ -1,4 +1,3 @@
1
- ---
2
1
  eu:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ eu:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Erabili probako ingurune bat Decidim-erako.
54
+ - Erabili probako ingurune bat Decidim-erako.
56
55
  description: Parte-hartzaileek garaikur hau lortzen dute probak sortzeagatik.
57
56
  description_another: Parte-hartzaile honek %{score} proba egin ditu.
58
57
  description_own: '%{score} proba sortu dituzu.'
@@ -1,4 +1,3 @@
1
- ---
2
1
  fi-pl:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ fi-pl:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Käytä testiympäristöä Decidimille.
54
+ - Käytä testiympäristöä Decidimille.
56
55
  description: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
57
56
  description_another: Tämä käyttäjä on luonut %{score} testiä.
58
57
  description_own: Olet luonut %{score} testiä.
@@ -1,4 +1,3 @@
1
- ---
2
1
  fi:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ fi:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Käytä testiympäristöä Decidimille.
54
+ - Käytä testiympäristöä Decidimille.
56
55
  description: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
57
56
  description_another: Tämä käyttäjä on luonut %{score} testiä.
58
57
  description_own: Olet luonut %{score} testiä.
@@ -1,4 +1,3 @@
1
- ---
2
1
  fr-CA:
3
2
  activemodel:
4
3
  attributes:
@@ -48,7 +47,7 @@ fr-CA:
48
47
  badges:
49
48
  test:
50
49
  conditions:
51
- - Utilisez un environnement de test pour decidim.
50
+ - Utilisez un environnement de test pour decidim.
52
51
  description: Les utilisateurs obtiennent ce badge en créant des tests.
53
52
  description_another: Cet utilisateur a créé %{score} tests.
54
53
  description_own: Vous avez créé %{score} tests.
@@ -1,4 +1,3 @@
1
- ---
2
1
  fr:
3
2
  activemodel:
4
3
  attributes:
@@ -48,7 +47,7 @@ fr:
48
47
  badges:
49
48
  test:
50
49
  conditions:
51
- - Utilisez un environnement de test pour decidim.
50
+ - Utilisez un environnement de test pour decidim.
52
51
  description: Les utilisateurs obtiennent ce badge en créant des tests.
53
52
  description_another: Cet utilisateur a créé %{score} tests.
54
53
  description_own: Vous avez créé %{score} tests.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ga:
3
2
  activemodel:
4
3
  attributes:
@@ -1,4 +1,3 @@
1
- ---
2
1
  gl:
3
2
  activemodel:
4
3
  attributes:
@@ -39,7 +38,7 @@ gl:
39
38
  badges:
40
39
  test:
41
40
  conditions:
42
- - Use un entorno de proba para decidir.
41
+ - Use un entorno de proba para decidir.
43
42
  description: Os usuarios obtén esta insignia creando probas.
44
43
  description_another: Este usuario creou %{score} probas.
45
44
  description_own: Creaches %{score} probas.
@@ -1,4 +1,3 @@
1
- ---
2
1
  hu:
3
2
  activemodel:
4
3
  attributes:
@@ -31,7 +30,7 @@ hu:
31
30
  badges:
32
31
  test:
33
32
  conditions:
34
- - Használjon teszt környezetet a decidim számára.
33
+ - Használjon teszt környezetet a decidim számára.
35
34
  description: A résztvevők ezt a jelvényt tesztek létrehozásával kapják meg.
36
35
  description_another: Ez a résztvevő %{score} tesztet hozott létre.
37
36
  description_own: Létrehoztad a(z) %{score} teszteket.
@@ -1,4 +1,3 @@
1
- ---
2
1
  id:
3
2
  activemodel:
4
3
  attributes:
@@ -28,7 +27,7 @@ id:
28
27
  badges:
29
28
  test:
30
29
  conditions:
31
- - Gunakan lingkungan uji untuk decidim.
30
+ - Gunakan lingkungan uji untuk decidim.
32
31
  description: Peserta mendapatkan lencana ini dengan membuat tes.
33
32
  description_another: Peserta ini telah membuat %{score} tes.
34
33
  description_own: Anda telah membuat %{score} tes.
@@ -1,5 +1,4 @@
1
- ---
2
- is:
1
+ is-IS:
3
2
  activemodel:
4
3
  attributes:
5
4
  dummy_resource:
@@ -1,4 +1,3 @@
1
- ---
2
1
  it:
3
2
  activemodel:
4
3
  attributes:
@@ -39,7 +38,7 @@ it:
39
38
  badges:
40
39
  test:
41
40
  conditions:
42
- - Utilizzare un ambiente di prova per decidim.
41
+ - Utilizzare un ambiente di prova per decidim.
43
42
  description: Gli utenti ottengono questo badge creando test.
44
43
  description_another: Questo utente ha creato %{score} test.
45
44
  description_own: Hai creato %{score} test.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ja:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ ja:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - テスト環境を使用してdecidim.
54
+ - テスト環境を使用してdecidim.
56
55
  description: 参加者はテストを作成することによってこのバッジを受け取ります。
57
56
  description_another: この参加者は %{score} テストを作成しました。
58
57
  description_own: テストを %{score} 作成しました。
@@ -1,4 +1,3 @@
1
- ---
2
1
  lt:
3
2
  activemodel:
4
3
  attributes:
@@ -45,7 +44,7 @@ lt:
45
44
  badges:
46
45
  test:
47
46
  conditions:
48
- - Naudokite testinę aplinką.
47
+ - Naudokite testinę aplinką.
49
48
  description: Dalyviai šį ženklelį pelno kurdami testus.
50
49
  description_another: Šis dalyvis sukūrė %{score} testus.
51
50
  description_own: Jūs sukūrėte %{score} testus.
@@ -1,4 +1,3 @@
1
- ---
2
1
  lv:
3
2
  activemodel:
4
3
  attributes:
@@ -31,7 +30,7 @@ lv:
31
30
  badges:
32
31
  test:
33
32
  conditions:
34
- - Izmantot testa vidi decidim.
33
+ - Izmantot testa vidi decidim.
35
34
  description: Dalībnieki iegūst šo žetonu, izveidojot testus.
36
35
  description_another: Šis dalībnieks ir izveidojis %{score} testus.
37
36
  description_own: Jūs esat izveidojis %{score} testus.
@@ -1,4 +1,3 @@
1
- ---
2
1
  nl:
3
2
  activemodel:
4
3
  attributes:
@@ -39,7 +38,7 @@ nl:
39
38
  badges:
40
39
  test:
41
40
  conditions:
42
- - Gebruik een testomgeving voor decidim.
41
+ - Gebruik een testomgeving voor decidim.
43
42
  description: Gebruikers krijgen deze badge door tests te maken.
44
43
  description_another: Deze gebruiker heeft %{score} tests gemaakt.
45
44
  description_own: U hebt %{score} tests gemaakt.
@@ -1,4 +1,3 @@
1
- ---
2
1
  "no":
3
2
  activemodel:
4
3
  attributes:
@@ -39,7 +38,7 @@
39
38
  badges:
40
39
  test:
41
40
  conditions:
42
- - Bruk et testmiljø for decidim.
41
+ - Bruk et testmiljø for decidim.
43
42
  description: Deltakerne får dette merket ved å lage tester.
44
43
  description_another: Denne deltakeren har opprettet %{score} tester.
45
44
  description_own: Du har opprettet %{score} tester.
@@ -1,4 +1,3 @@
1
- ---
2
1
  pl:
3
2
  activemodel:
4
3
  attributes:
@@ -45,7 +44,7 @@ pl:
45
44
  badges:
46
45
  test:
47
46
  conditions:
48
- - Użyj środowiska testowego dla decidim.
47
+ - Użyj środowiska testowego dla decidim.
49
48
  description: Użytkownicy otrzymują tę odznakę tworząc testy.
50
49
  description_another: Ten użytkownik utworzył %{score} testów.
51
50
  description_own: Utworzyłeś %{score} testów.
@@ -1,4 +1,3 @@
1
- ---
2
1
  pt-BR:
3
2
  activemodel:
4
3
  attributes:
@@ -45,7 +44,7 @@ pt-BR:
45
44
  badges:
46
45
  test:
47
46
  conditions:
48
- - Use um ambiente de teste para decidim.
47
+ - Use um ambiente de teste para decidim.
49
48
  description: Os usuários obtêm esse selo criando testes.
50
49
  description_another: Este usuário criou %{score} testes.
51
50
  description_own: Você criou %{score} testes.
@@ -1,4 +1,3 @@
1
- ---
2
1
  pt:
3
2
  activemodel:
4
3
  attributes:
@@ -39,7 +38,7 @@ pt:
39
38
  badges:
40
39
  test:
41
40
  conditions:
42
- - Utilize um ambiente de teste para decidim.
41
+ - Utilize um ambiente de teste para decidim.
43
42
  description: Os participantes obtêm este distintivo ao criarem testes.
44
43
  description_another: Este participante criou %{score} testes.
45
44
  description_own: Criou %{score} testes.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ro:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ ro:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Utilizaţi un mediu de testare pentru decidim.
54
+ - Utilizaţi un mediu de testare pentru decidim.
56
55
  description: Participanții obțin această insignă prin crearea de teste.
57
56
  description_another: Acest participant a creat %{score} teste.
58
57
  description_own: Ați creat %{score} teste.
@@ -1,4 +1,3 @@
1
- ---
2
1
  ru:
3
2
  activemodel:
4
3
  attributes:
@@ -29,7 +28,7 @@ ru:
29
28
  badges:
30
29
  test:
31
30
  conditions:
32
- - Используйте тестовую среду для decidim.
31
+ - Используйте тестовую среду для decidim.
33
32
  description: Участники получают этот значок за написание тестов.
34
33
  description_another: Этот участник написал %{score} тестов.
35
34
  description_own: Вы написали %{score} тест.
@@ -1,4 +1,3 @@
1
- ---
2
1
  sk:
3
2
  activemodel:
4
3
  attributes:
@@ -29,7 +28,7 @@ sk:
29
28
  badges:
30
29
  test:
31
30
  conditions:
32
- - Použiť testovacie prostredie pre decidim.
31
+ - Použiť testovacie prostredie pre decidim.
33
32
  description: Účastníci dostanú tento odznak za vytváranie testov.
34
33
  description_another: Tento účastník vytvoril %{score} testov.
35
34
  description_own: Vytvorili ste %{score} testov.
@@ -1,4 +1,3 @@
1
- ---
2
1
  sl:
3
2
  activemodel:
4
3
  attributes:
@@ -1,4 +1,3 @@
1
- ---
2
1
  sv:
3
2
  activemodel:
4
3
  attributes:
@@ -52,7 +51,7 @@ sv:
52
51
  badges:
53
52
  test:
54
53
  conditions:
55
- - Använd en testmiljö för decidim.
54
+ - Använd en testmiljö för decidim.
56
55
  description: Deltagare får detta märke genom att skapa tester.
57
56
  description_another: Deltagaren har skapat %{score} tester.
58
57
  description_own: Du har skapat %{score} tester.
@@ -1,4 +1,3 @@
1
- ---
2
1
  tr:
3
2
  activemodel:
4
3
  attributes:
@@ -37,7 +36,7 @@ tr:
37
36
  badges:
38
37
  test:
39
38
  conditions:
40
- - Decidim için bir test ortamı kullanın.
39
+ - Decidim için bir test ortamı kullanın.
41
40
  description: Katılımcılar testler oluşturarak bu rozeti alırlar.
42
41
  description_another: Bu katılımcı %{score} test oluşturdu.
43
42
  description_own: '%{score} test oluşturdunuz.'
@@ -1,4 +1,3 @@
1
- ---
2
1
  uk:
3
2
  activemodel:
4
3
  attributes:
@@ -1,4 +1,3 @@
1
- ---
2
1
  zh-CN:
3
2
  activemodel:
4
3
  attributes:
@@ -37,7 +36,7 @@ zh-CN:
37
36
  badges:
38
37
  test:
39
38
  conditions:
40
- - 对判定环境使用测试环境。
39
+ - 对判定环境使用测试环境。
41
40
  description: 参与者通过创建测试获得这个徽章。
42
41
  description_another: 此参与者已创建了 %{score} 个测试。
43
42
  description_own: 您已创建了 %{score} 个测试。
@@ -1,4 +1,3 @@
1
- ---
2
1
  zh-TW:
3
2
  activemodel:
4
3
  attributes:
@@ -45,7 +44,7 @@ zh-TW:
45
44
  badges:
46
45
  test:
47
46
  conditions:
48
- - 在Decidim中使用測試環境。
47
+ - 在Decidim中使用測試環境。
49
48
  description: 參與者通過建立測試可獲得此徽章。
50
49
  description_another: 此參與者已建立了 %{score} 個測試。
51
50
  description_own: 您已建立了 %{score} 個測試。
@@ -0,0 +1,8 @@
1
+ require:
2
+ - decidim/dev/rubocop/cop/decidim/message_antipattern
3
+
4
+ Decidim/MessageAntipattern:
5
+ Enabled: true
6
+ Include:
7
+ - "**/spec/**/*"
8
+ - "**/test/**/*"
@@ -44,3 +44,9 @@ Rails/EnumHash:
44
44
 
45
45
  Rails/I18nLazyLookup:
46
46
  Enabled: false
47
+
48
+ Rails/FindByOrAssignmentMemoization:
49
+ Enabled: false
50
+
51
+ Rails/Exit:
52
+ Enabled: false
@@ -50,3 +50,8 @@ RSpec/RepeatedExampleGroupDescription:
50
50
 
51
51
  RSpec/RepeatedExampleGroupBody:
52
52
  Enabled: true
53
+
54
+ RSpec/ExpectActual:
55
+ Enabled: true
56
+ Exclude:
57
+ - decidim-core/spec/system/homepage_spec.rb
@@ -1,5 +1,3 @@
1
- require: rubocop
2
-
3
1
  # Common configuration.
4
2
  AllCops:
5
3
  Include:
@@ -68,7 +66,7 @@ AllCops:
68
66
  # If a value is specified for TargetRubyVersion then it is used.
69
67
  # Else if .ruby-version exists and it contains an MRI version it is used.
70
68
  # Otherwise we fallback to the oldest officially supported Ruby version (2.0).
71
- TargetRubyVersion: 3.3
69
+ TargetRubyVersion: 3.4
72
70
 
73
71
  # Indent private/protected/public as deep as method definitions
74
72
  Layout/AccessModifierIndentation:
@@ -521,6 +519,7 @@ Style/GuardClause:
521
519
  MinBodyLength: 6
522
520
 
523
521
  Style/HashSyntax:
522
+ EnforcedShorthandSyntax: always
524
523
  EnforcedStyle: no_mixed_keys
525
524
  SupportedStyles:
526
525
  # checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
@@ -104,3 +104,12 @@ Style/EmptyStringInsideInterpolation:
104
104
 
105
105
  Style/ComparableBetween:
106
106
  Enabled: false
107
+
108
+ Style/FileOpen:
109
+ Enabled: false
110
+
111
+ Style/ModuleMemberExistenceCheck:
112
+ Enabled: false
113
+
114
+ Style/OneClassPerFile:
115
+ Enabled: false
@@ -0,0 +1 @@
1
+ plugins: rubocop-yard