decidim-dev 0.32.0.rc1 → 0.32.0.rc3

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/config/locales/ar.yml +2 -1
  3. data/config/locales/bg.yml +2 -1
  4. data/config/locales/ca-IT.yml +2 -1
  5. data/config/locales/ca.yml +2 -1
  6. data/config/locales/cs.yml +2 -1
  7. data/config/locales/de.yml +2 -1
  8. data/config/locales/el.yml +2 -1
  9. data/config/locales/es-MX.yml +2 -1
  10. data/config/locales/es-PY.yml +2 -1
  11. data/config/locales/es.yml +2 -1
  12. data/config/locales/eu.yml +3 -2
  13. data/config/locales/fi-plain.yml +2 -1
  14. data/config/locales/fi.yml +2 -1
  15. data/config/locales/fr-CA.yml +2 -1
  16. data/config/locales/fr.yml +2 -1
  17. data/config/locales/ga-IE.yml +1 -0
  18. data/config/locales/gl.yml +2 -1
  19. data/config/locales/hu.yml +2 -1
  20. data/config/locales/id-ID.yml +2 -1
  21. data/config/locales/is-IS.yml +2 -1
  22. data/config/locales/it.yml +2 -1
  23. data/config/locales/ja.yml +2 -1
  24. data/config/locales/lt.yml +2 -1
  25. data/config/locales/lv.yml +2 -1
  26. data/config/locales/nl.yml +2 -1
  27. data/config/locales/no.yml +2 -1
  28. data/config/locales/pl.yml +2 -1
  29. data/config/locales/pt-BR.yml +2 -1
  30. data/config/locales/pt.yml +2 -1
  31. data/config/locales/ro-RO.yml +2 -1
  32. data/config/locales/ru.yml +2 -1
  33. data/config/locales/sk.yml +26 -1
  34. data/config/locales/sl.yml +1 -0
  35. data/config/locales/sv.yml +2 -1
  36. data/config/locales/tr-TR.yml +2 -1
  37. data/config/locales/uk.yml +1 -0
  38. data/config/locales/zh-CN.yml +2 -1
  39. data/config/locales/zh-TW.yml +2 -1
  40. data/decidim-dev.gemspec +1 -1
  41. data/lib/decidim/dev/assets/8001x4000.png +0 -0
  42. data/lib/decidim/dev/version.rb +1 -1
  43. data/lib/decidim/dev.rb +32 -1
  44. metadata +14 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9789d8422d4f2c6a4607074b9d86c516ef4e56540f3fb980922769212dfda5f7
4
- data.tar.gz: 106c5e3ca7f77cda7bb17f3968ec62b4cc2e2b87b95e5f8629a3aa4c533405a9
3
+ metadata.gz: fa0f79ba0dcdd85172b98c49963d744fb1bc50784116e462af6c00447d6b78ef
4
+ data.tar.gz: 742a2ba32b689b4d98918ec36b0d69b8822c61301a13c09ba2e2e507259aeaac
5
5
  SHA512:
6
- metadata.gz: ddd287450604407bf297fb5350167f1cba9b393ff232579f6d7c3c1d06109ce8d95102d51d4984b88c5c45b1bf891cd9662fbae654acade865086590ac6a6de5
7
- data.tar.gz: 673c410f97e34122b08bf4b061715360693e0a4a0916517d1a4fc53deb2e0df8dc0e2d0b46c3c59ee39c6180fd3dc3457fafe22bc5f5c18f94e95701be65cc16
6
+ metadata.gz: 34e21fbb9cbc6213a1db8313b00263f3efd4b22f91b3252e86090f25d9e80985d09ba27a44ba1aa59a89c7fd4e3dfe42aae85f33060e304f891205c955443648
7
+ data.tar.gz: 7f3088103b3b70182bef7c9795759842ccfa0b8ed45a21dc4a0533d7d5a99a851e2c3b9c738e284ad780ccfd6ffd0a9d8bbc1dcfdb73c7dac0f7c6cb0d4aad8f
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ar:
2
3
  activemodel:
3
4
  attributes:
@@ -47,7 +48,7 @@ ar:
47
48
  badges:
48
49
  test:
49
50
  conditions:
50
- - استخدام بيئة اختبار ل decidim.
51
+ - استخدام بيئة اختبار ل decidim.
51
52
  description: يحصل المشاركون على هذه الشارة عن طريق إنشاء اختبارات.
52
53
  description_another: قام هذا المشارك بإنشاء %{score} اختبار.
53
54
  description_own: لقد أنشأت %{score} اختبارات.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  bg:
2
3
  activemodel:
3
4
  attributes:
@@ -44,7 +45,7 @@ bg:
44
45
  badges:
45
46
  test:
46
47
  conditions:
47
- - Използвайте тестова среда за decidim.
48
+ - Използвайте тестова среда за decidim.
48
49
  description: Участниците получават тази значка като създават тестове.
49
50
  description_another: Участниците създадоха %{score} теста.
50
51
  description_own: Вие създадохте %{score} теста.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca-IT:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ ca-IT:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilitza un entorn de prova per decidim.
55
+ - Utilitza un entorn de prova per decidim.
55
56
  description: Les participants obtenen aquesta ensenya creant proves.
56
57
  description_another: Aquesta participant ha creat %{score} proves.
57
58
  description_own: Has creat %{score} proves.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ ca:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilitza un entorn de prova per decidim.
55
+ - Utilitza un entorn de prova per decidim.
55
56
  description: Les participants obtenen aquesta ensenya creant proves.
56
57
  description_another: Aquesta participant ha creat %{score} proves.
57
58
  description_own: Has creat %{score} proves.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  cs:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ cs:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Použijte testovací prostředí pro decidim.
55
+ - Použijte testovací prostředí pro decidim.
55
56
  description: Uživatelé získají tento odznak vytvořením testů.
56
57
  description_another: Tento uživatel vytvořil %{score} testů.
57
58
  description_own: Vytvořili jste %{score} testů.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  de:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ de:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Verwenden Sie eine Testumgebung für Decidim.
55
+ - Verwenden Sie eine Testumgebung für Decidim.
55
56
  description: Benutzer erhalten dieses Badge, indem sie Tests erstellen.
56
57
  description_another: Dieser Benutzer hat %{score} Tests erstellt.
57
58
  description_own: Sie haben %{score} Tests erstellt.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  el:
2
3
  activemodel:
3
4
  attributes:
@@ -46,7 +47,7 @@ el:
46
47
  badges:
47
48
  test:
48
49
  conditions:
49
- - Χρησιμοποιήστε ένα περιβάλλον δοκιμής για το decidim.
50
+ - Χρησιμοποιήστε ένα περιβάλλον δοκιμής για το decidim.
50
51
  description: Οι συμμετέχοντες αποκτούν αυτό το έμβλημα δημιουργώντας δοκιμές.
51
52
  description_another: Αυτός ο συμμετέχων έχει δημιουργήσει %{score} δοκιμές.
52
53
  description_own: Έχετε δημιουργήσει %{score} δοκιμές.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-MX:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ es-MX:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilice un entorno de prueba para decidim.
55
+ - Utilice un entorno de prueba para decidim.
55
56
  description: Los usuarios obtienen esta insignia al crear pruebas.
56
57
  description_another: Este usuario ha creado %{score} pruebas.
57
58
  description_own: Has creado %{score} pruebas.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-PY:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ es-PY:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilice un entorno de prueba para decidim.
55
+ - Utilice un entorno de prueba para decidim.
55
56
  description: Los usuarios obtienen esta insignia al crear pruebas.
56
57
  description_another: Este usuario ha creado %{score} pruebas.
57
58
  description_own: Has creado %{score} pruebas.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ es:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilice un entorno de prueba para decidim.
55
+ - Utilice un entorno de prueba para decidim.
55
56
  description: Las participantes obtienen esta insignia al crear pruebas.
56
57
  description_another: Esta participante ha creado %{score} pruebas.
57
58
  description_own: Has creado %{score} pruebas.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  eu:
2
3
  activemodel:
3
4
  attributes:
@@ -51,14 +52,14 @@ eu:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Erabili probako ingurune bat Decidim-erako.
55
+ - Erabili probako ingurune bat Decidim-erako.
55
56
  description: Parte-hartzaileek garaikur hau lortzen dute probak sortzeagatik.
56
57
  description_another: Parte-hartzaile honek %{score} proba egin ditu.
57
58
  description_own: '%{score} proba sortu dituzu.'
58
59
  name: Probak
59
60
  next_level_in: Sortu %{score} proba gehiago hurrengo mailara iristeko!
60
61
  unearned_another: Parte-hartzaile honek oraindik ez du inkestarik sortu.
61
- unearned_own: Oraindik ez duzu probak sortu.
62
+ unearned_own: Oraindik ez duzu probarik sortu.
62
63
  resource_links:
63
64
  test_link:
64
65
  dummy_resource_dummy: ' Honekin lotutako proba'
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi-pl:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ fi-pl:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Käytä testiympäristöä Decidimille.
55
+ - Käytä testiympäristöä Decidimille.
55
56
  description: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
56
57
  description_another: Tämä käyttäjä on luonut %{score} testiä.
57
58
  description_own: Olet luonut %{score} testiä.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ fi:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Käytä testiympäristöä Decidimille.
55
+ - Käytä testiympäristöä Decidimille.
55
56
  description: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
56
57
  description_another: Tämä käyttäjä on luonut %{score} testiä.
57
58
  description_own: Olet luonut %{score} testiä.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr-CA:
2
3
  activemodel:
3
4
  attributes:
@@ -47,7 +48,7 @@ fr-CA:
47
48
  badges:
48
49
  test:
49
50
  conditions:
50
- - Utilisez un environnement de test pour decidim.
51
+ - Utilisez un environnement de test pour decidim.
51
52
  description: Les utilisateurs obtiennent ce badge en créant des tests.
52
53
  description_another: Cet utilisateur a créé %{score} tests.
53
54
  description_own: Vous avez créé %{score} tests.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr:
2
3
  activemodel:
3
4
  attributes:
@@ -47,7 +48,7 @@ fr:
47
48
  badges:
48
49
  test:
49
50
  conditions:
50
- - Utilisez un environnement de test pour decidim.
51
+ - Utilisez un environnement de test pour decidim.
51
52
  description: Les utilisateurs obtiennent ce badge en créant des tests.
52
53
  description_another: Cet utilisateur a créé %{score} tests.
53
54
  description_own: Vous avez créé %{score} tests.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ga:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -38,7 +39,7 @@ gl:
38
39
  badges:
39
40
  test:
40
41
  conditions:
41
- - Use un entorno de proba para decidir.
42
+ - Use un entorno de proba para decidir.
42
43
  description: Os usuarios obtén esta insignia creando probas.
43
44
  description_another: Este usuario creou %{score} probas.
44
45
  description_own: Creaches %{score} probas.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  hu:
2
3
  activemodel:
3
4
  attributes:
@@ -30,7 +31,7 @@ hu:
30
31
  badges:
31
32
  test:
32
33
  conditions:
33
- - Használjon teszt környezetet a decidim számára.
34
+ - Használjon teszt környezetet a decidim számára.
34
35
  description: A résztvevők ezt a jelvényt tesztek létrehozásával kapják meg.
35
36
  description_another: Ez a résztvevő %{score} tesztet hozott létre.
36
37
  description_own: Létrehoztad a(z) %{score} teszteket.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  id:
2
3
  activemodel:
3
4
  attributes:
@@ -27,7 +28,7 @@ id:
27
28
  badges:
28
29
  test:
29
30
  conditions:
30
- - Gunakan lingkungan uji untuk decidim.
31
+ - Gunakan lingkungan uji untuk decidim.
31
32
  description: Peserta mendapatkan lencana ini dengan membuat tes.
32
33
  description_another: Peserta ini telah membuat %{score} tes.
33
34
  description_own: Anda telah membuat %{score} tes.
@@ -1,4 +1,5 @@
1
- is-IS:
1
+ ---
2
+ is:
2
3
  activemodel:
3
4
  attributes:
4
5
  dummy_resource:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  it:
2
3
  activemodel:
3
4
  attributes:
@@ -38,7 +39,7 @@ it:
38
39
  badges:
39
40
  test:
40
41
  conditions:
41
- - Utilizzare un ambiente di prova per decidim.
42
+ - Utilizzare un ambiente di prova per decidim.
42
43
  description: Gli utenti ottengono questo badge creando test.
43
44
  description_another: Questo utente ha creato %{score} test.
44
45
  description_own: Hai creato %{score} test.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ja:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ ja:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - テスト環境を使用してdecidim.
55
+ - テスト環境を使用してdecidim.
55
56
  description: 参加者はテストを作成することによってこのバッジを受け取ります。
56
57
  description_another: この参加者は %{score} テストを作成しました。
57
58
  description_own: テストを %{score} 作成しました。
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lt:
2
3
  activemodel:
3
4
  attributes:
@@ -44,7 +45,7 @@ lt:
44
45
  badges:
45
46
  test:
46
47
  conditions:
47
- - Naudokite testinę aplinką.
48
+ - Naudokite testinę aplinką.
48
49
  description: Dalyviai šį ženklelį pelno kurdami testus.
49
50
  description_another: Šis dalyvis sukūrė %{score} testus.
50
51
  description_own: Jūs sukūrėte %{score} testus.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  activemodel:
3
4
  attributes:
@@ -30,7 +31,7 @@ lv:
30
31
  badges:
31
32
  test:
32
33
  conditions:
33
- - Izmantot testa vidi decidim.
34
+ - Izmantot testa vidi decidim.
34
35
  description: Dalībnieki iegūst šo žetonu, izveidojot testus.
35
36
  description_another: Šis dalībnieks ir izveidojis %{score} testus.
36
37
  description_own: Jūs esat izveidojis %{score} testus.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  attributes:
@@ -38,7 +39,7 @@ nl:
38
39
  badges:
39
40
  test:
40
41
  conditions:
41
- - Gebruik een testomgeving voor decidim.
42
+ - Gebruik een testomgeving voor decidim.
42
43
  description: Gebruikers krijgen deze badge door tests te maken.
43
44
  description_another: Deze gebruiker heeft %{score} tests gemaakt.
44
45
  description_own: U hebt %{score} tests gemaakt.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  attributes:
@@ -38,7 +39,7 @@
38
39
  badges:
39
40
  test:
40
41
  conditions:
41
- - Bruk et testmiljø for decidim.
42
+ - Bruk et testmiljø for decidim.
42
43
  description: Deltakerne får dette merket ved å lage tester.
43
44
  description_another: Denne deltakeren har opprettet %{score} tester.
44
45
  description_own: Du har opprettet %{score} tester.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -44,7 +45,7 @@ pl:
44
45
  badges:
45
46
  test:
46
47
  conditions:
47
- - Użyj środowiska testowego dla decidim.
48
+ - Użyj środowiska testowego dla decidim.
48
49
  description: Użytkownicy otrzymują tę odznakę tworząc testy.
49
50
  description_another: Ten użytkownik utworzył %{score} testów.
50
51
  description_own: Utworzyłeś %{score} testów.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt-BR:
2
3
  activemodel:
3
4
  attributes:
@@ -44,7 +45,7 @@ pt-BR:
44
45
  badges:
45
46
  test:
46
47
  conditions:
47
- - Use um ambiente de teste para decidim.
48
+ - Use um ambiente de teste para decidim.
48
49
  description: Os usuários obtêm esse selo criando testes.
49
50
  description_another: Este usuário criou %{score} testes.
50
51
  description_own: Você criou %{score} testes.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -38,7 +39,7 @@ pt:
38
39
  badges:
39
40
  test:
40
41
  conditions:
41
- - Utilize um ambiente de teste para decidim.
42
+ - Utilize um ambiente de teste para decidim.
42
43
  description: Os participantes obtêm este distintivo ao criarem testes.
43
44
  description_another: Este participante criou %{score} testes.
44
45
  description_own: Criou %{score} testes.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ ro:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Utilizaţi un mediu de testare pentru decidim.
55
+ - Utilizaţi un mediu de testare pentru decidim.
55
56
  description: Participanții obțin această insignă prin crearea de teste.
56
57
  description_another: Acest participant a creat %{score} teste.
57
58
  description_own: Ați creat %{score} teste.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  attributes:
@@ -28,7 +29,7 @@ ru:
28
29
  badges:
29
30
  test:
30
31
  conditions:
31
- - Используйте тестовую среду для decidim.
32
+ - Используйте тестовую среду для decidim.
32
33
  description: Участники получают этот значок за написание тестов.
33
34
  description_another: Этот участник написал %{score} тестов.
34
35
  description_own: Вы написали %{score} тест.
@@ -1,8 +1,13 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  attributes:
5
+ dummy:
6
+ image: Obrázok
7
+ dummy_attribute: Fiktívny atribút
4
8
  dummy_resource:
5
9
  created_at: Vytvorené
10
+ decidim_scope_id: Oblasť
6
11
  field: Moje pole
7
12
  start_date: Dátum začatia
8
13
  title: Názov
@@ -13,12 +18,31 @@ sk:
13
18
  dummy:
14
19
  settings:
15
20
  global:
21
+ clear_all: Vymazať všetko
22
+ guided: Riadený vstup
23
+ guided_help: Text pomocníka
24
+ guided_readonly: Zakázaný vstup
25
+ guided_rich: Riadený formátovaný vstup
26
+ guided_rich_help_html: HTML <strong>text</strong> pomocníka
27
+ guided_rich_readonly_html: HTML <strong>text</strong> pomocníka pre zakázaný vstup
28
+ readonly_attribute: Atribút iba na čítanie
29
+ test: Test
30
+ test_add: Pridať test
31
+ test_choices:
32
+ a: Možnosť A
33
+ b: Možnosť B
34
+ c: Možnosť C
16
35
  test_options:
17
36
  bar: Stĺpec
37
+ baz: Baz
18
38
  foo: Test
19
39
  step:
40
+ likes_blocked: Lajky zablokované
41
+ likes_enabled: Lajky povolené
42
+ readonly_step_attribute: Atribút kroku iba na čítanie
20
43
  test_options:
21
44
  bar: Stĺpec
45
+ baz: Baz
22
46
  foo: Test
23
47
  dummy:
24
48
  admin:
@@ -28,12 +52,13 @@ sk:
28
52
  badges:
29
53
  test:
30
54
  conditions:
31
- - Použiť testovacie prostredie pre decidim.
55
+ - Použiť testovacie prostredie pre decidim.
32
56
  description: Účastníci dostanú tento odznak za vytváranie testov.
33
57
  description_another: Tento účastník vytvoril %{score} testov.
34
58
  description_own: Vytvorili ste %{score} testov.
35
59
  name: Testy
36
60
  next_level_in: Vytvorte o %{score} testov viac pre dosiahnutie ďalšej úrovne!
61
+ unearned_another: Tento účastník zatiaľ nevytvoril žiadne testy.
37
62
  unearned_own: Zatiaľ ste nevytvorili žiadny test.
38
63
  resource_links:
39
64
  test_link:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -51,7 +52,7 @@ sv:
51
52
  badges:
52
53
  test:
53
54
  conditions:
54
- - Använd en testmiljö för decidim.
55
+ - Använd en testmiljö för decidim.
55
56
  description: Deltagare får detta märke genom att skapa tester.
56
57
  description_another: Deltagaren har skapat %{score} tester.
57
58
  description_own: Du har skapat %{score} tester.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -36,7 +37,7 @@ tr:
36
37
  badges:
37
38
  test:
38
39
  conditions:
39
- - Decidim için bir test ortamı kullanın.
40
+ - Decidim için bir test ortamı kullanın.
40
41
  description: Katılımcılar testler oluşturarak bu rozeti alırlar.
41
42
  description_another: Bu katılımcı %{score} test oluşturdu.
42
43
  description_own: '%{score} test oluşturdunuz.'
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -36,7 +37,7 @@ zh-CN:
36
37
  badges:
37
38
  test:
38
39
  conditions:
39
- - 对判定环境使用测试环境。
40
+ - 对判定环境使用测试环境。
40
41
  description: 参与者通过创建测试获得这个徽章。
41
42
  description_another: 此参与者已创建了 %{score} 个测试。
42
43
  description_own: 您已创建了 %{score} 个测试。
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-TW:
2
3
  activemodel:
3
4
  attributes:
@@ -44,7 +45,7 @@ zh-TW:
44
45
  badges:
45
46
  test:
46
47
  conditions:
47
- - 在Decidim中使用測試環境。
48
+ - 在Decidim中使用測試環境。
48
49
  description: 參與者通過建立測試可獲得此徽章。
49
50
  description_another: 此參與者已建立了 %{score} 個測試。
50
51
  description_own: 您已建立了 %{score} 個測試。
data/decidim-dev.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
  $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
- version = "0.32.0.rc1"
6
+ version = "0.32.0.rc3"
7
7
  s.version = version
8
8
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
9
9
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-dev version.
5
5
  module Dev
6
6
  def self.version
7
- "0.32.0.rc1"
7
+ "0.32.0.rc3"
8
8
  end
9
9
  end
10
10
  end
data/lib/decidim/dev.rb CHANGED
@@ -33,7 +33,38 @@ module Decidim
33
33
 
34
34
  # Public: Returns a file for testing, just like file fields expect it
35
35
  def self.test_file(filename, content_type)
36
- Rack::Test::UploadedFile.new(asset(filename), content_type)
36
+ uploaded_file(asset(filename), content_type)
37
+ end
38
+
39
+ # Public: Creates a safe uploaded file for tests.
40
+ #
41
+ # Creating instances of Rack::Test::UploadedFile directly from file paths
42
+ # may lead to 0-byte files created in the storage under specific
43
+ # configurations/kernels and specifically with Docker containers. This
44
+ # method creates a safe uploaded file that does not have this problem.
45
+ #
46
+ # See:
47
+ # https://github.com/rails/rails/issues/41991
48
+ # https://github.com/docker/for-mac/issues/5570
49
+ # https://github.com/docker/for-linux/issues/1015
50
+ #
51
+ # @param path [String] The path to the original file
52
+ # @param content_type [String] The MIME type for the file
53
+ # @param binary [Boolean] Boolean indicating whether the uploaded file's
54
+ # tempfile should be in binary mode
55
+ # @return [Rack::Test::UploadedFile] A new uploaded test file instance
56
+ def self.uploaded_file(path, content_type, binary: false)
57
+ original_filename = File.basename(path)
58
+ extension = File.extname(original_filename)
59
+
60
+ tempfile = Tempfile.open([File.basename(original_filename, extension), extension])
61
+ tempfile.binmode if binary
62
+ tempfile.write(binary ? File.binread(path) : File.read(path))
63
+ tempfile.rewind
64
+
65
+ Rack::Test::UploadedFile.new(tempfile, content_type, binary, original_filename:)
66
+ ensure
67
+ tempfile&.close!
37
68
  end
38
69
 
39
70
  # Public: add rake tasks
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.32.0.rc1
4
+ version: 0.32.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -31,84 +31,84 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.32.0.rc1
34
+ version: 0.32.0.rc3
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 0.32.0.rc1
41
+ version: 0.32.0.rc3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: decidim-api
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 0.32.0.rc1
48
+ version: 0.32.0.rc3
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.32.0.rc1
55
+ version: 0.32.0.rc3
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: decidim-comments
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.32.0.rc1
62
+ version: 0.32.0.rc3
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.32.0.rc1
69
+ version: 0.32.0.rc3
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: decidim-core
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 0.32.0.rc1
76
+ version: 0.32.0.rc3
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - '='
82
82
  - !ruby/object:Gem::Version
83
- version: 0.32.0.rc1
83
+ version: 0.32.0.rc3
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: decidim-generators
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 0.32.0.rc1
90
+ version: 0.32.0.rc3
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.32.0.rc1
97
+ version: 0.32.0.rc3
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: decidim-verifications
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.32.0.rc1
104
+ version: 0.32.0.rc3
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: 0.32.0.rc1
111
+ version: 0.32.0.rc3
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: factory_bot_rails
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -847,6 +847,7 @@ files:
847
847
  - lib/decidim/dev/admin_engine.rb
848
848
  - lib/decidim/dev/api.rb
849
849
  - lib/decidim/dev/assets/5000x5000.png
850
+ - lib/decidim/dev/assets/8001x4000.png
850
851
  - lib/decidim/dev/assets/Exampledocument.pdf
851
852
  - lib/decidim/dev/assets/assemblies.json
852
853
  - lib/decidim/dev/assets/assemblies_with_null.json