decidim-dev 0.14.4 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/ca.yml +4 -2
- data/config/locales/de.yml +3 -1
- data/config/locales/en.yml +3 -1
- data/config/locales/es-PY.yml +4 -2
- data/config/locales/es.yml +4 -2
- data/config/locales/eu.yml +3 -1
- data/config/locales/fi.yml +3 -1
- data/config/locales/fr.yml +3 -1
- data/config/locales/gl.yml +3 -1
- data/config/locales/hu.yml +3 -1
- data/config/locales/it.yml +3 -1
- data/config/locales/nl.yml +3 -1
- data/config/locales/pl.yml +3 -1
- data/config/locales/pt-BR.yml +4 -2
- data/config/locales/pt.yml +3 -1
- data/config/locales/sv.yml +3 -1
- data/lib/decidim/dev/assets/city.jpeg +0 -0
- data/lib/decidim/dev/assets/city2.jpeg +0 -0
- data/lib/decidim/dev/assets/city3.jpeg +0 -0
- data/lib/decidim/dev/assets/dni.jpg +0 -0
- data/lib/decidim/dev/assets/icon.png +0 -0
- data/lib/decidim/dev/assets/id.jpg +0 -0
- data/lib/decidim/dev/assets/participatory_text.md +38 -0
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +4 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/component.rb +3 -2
- data/lib/decidim/dev/test/rspec_support/gamification.rb +1 -0
- data/lib/decidim/dev/test/rspec_support/react_select.rb +4 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +4 -0
- data/lib/decidim/dev/test/spec_helper.rb +0 -3
- data/lib/decidim/dev/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22386f0c13d48b951869503ad99ca47cf9591551513ac681e6c1e67a960590eb
|
4
|
+
data.tar.gz: dee92d6ab2e75283e6d5d7488bc8f32d89d6171c8f716ab9f460e4723d6e660b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf6a1122bd8d8b95ef4ae13a7478b8f0970439cbdc70a8619d55884c51631fc13d87893b45fd78130ef1b858dd9de566f9c35b44c69c96cc2522e62c2db415a3
|
7
|
+
data.tar.gz: 56038ec73359dd8bbf2040d0f1a433357920e55ffd5dc700f3ca4bfcd11dd17fd441bbfc0037e84b8be8234df96f8c42fb184181a19c8ffe24f8b7e4d27f82de
|
data/config/locales/ca.yml
CHANGED
@@ -15,9 +15,11 @@ ca:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Utilitza un entorn de prova per decidim.
|
20
|
+
description: Els usuaris obtenen aquesta insígnia creant proves.
|
18
21
|
description_another: Aquest usuari ha creat %{score} proves.
|
19
22
|
description_own: Heu creat %{score} proves.
|
20
|
-
explanation: Els usuaris obtenen aquesta insígnia creant proves.
|
21
23
|
name: Proves
|
22
24
|
next_level_in: Crea %{score} més proves per arribar al següent nivell!
|
23
25
|
unearned_another: Aquest usuari encara no ha creat cap prova.
|
@@ -25,7 +27,7 @@ ca:
|
|
25
27
|
pages:
|
26
28
|
home:
|
27
29
|
statistics:
|
28
|
-
bar:
|
30
|
+
bar: Barra
|
29
31
|
dummies_count_high: Fals alt
|
30
32
|
dummies_count_medium: Fals mitjà
|
31
33
|
foo: Foo
|
data/config/locales/de.yml
CHANGED
@@ -15,9 +15,11 @@ de:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Verwenden Sie eine Testumgebung für Decidim.
|
20
|
+
description: Benutzer erhalten dieses Badge, indem sie Tests erstellen.
|
18
21
|
description_another: Dieser Benutzer hat %{score} Tests erstellt.
|
19
22
|
description_own: Sie haben %{score} Tests erstellt.
|
20
|
-
explanation: Benutzer erhalten dieses Badge, indem sie Tests erstellen.
|
21
23
|
name: Tests
|
22
24
|
next_level_in: Erstellen Sie %{score} weitere Tests, um das nächste Level zu erreichen!
|
23
25
|
unearned_another: Dieser Benutzer hat noch keine Tests erstellt.
|
data/config/locales/en.yml
CHANGED
@@ -16,9 +16,11 @@ en:
|
|
16
16
|
gamification:
|
17
17
|
badges:
|
18
18
|
test:
|
19
|
+
conditions:
|
20
|
+
- Use a test environment for decidim.
|
21
|
+
description: Users get this badge by creating tests.
|
19
22
|
description_another: This user has created %{score} tests.
|
20
23
|
description_own: You have created %{score} tests.
|
21
|
-
explanation: Users get this badge by creating tests.
|
22
24
|
name: Tests
|
23
25
|
next_level_in: Create %{score} more tests to reach the next level!
|
24
26
|
unearned_another: This user hasn't created any tests yet.
|
data/config/locales/es-PY.yml
CHANGED
@@ -15,9 +15,11 @@ es-PY:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Utilice un entorno de prueba para decidim.
|
20
|
+
description: Los usuarios obtienen esta insignia al crear pruebas.
|
18
21
|
description_another: Este usuario ha creado %{score} pruebas.
|
19
22
|
description_own: Has creado %{score} pruebas.
|
20
|
-
explanation: Los usuarios obtienen esta insignia al crear pruebas.
|
21
23
|
name: Pruebas
|
22
24
|
next_level_in: '¡Crea %{score} pruebas más para alcanzar el siguiente nivel!'
|
23
25
|
unearned_another: Este usuario aún no ha creado ninguna prueba.
|
@@ -25,7 +27,7 @@ es-PY:
|
|
25
27
|
pages:
|
26
28
|
home:
|
27
29
|
statistics:
|
28
|
-
bar:
|
30
|
+
bar: Barra
|
29
31
|
dummies_count_high: Falso alta
|
30
32
|
dummies_count_medium: Falso medium
|
31
33
|
foo: Foo
|
data/config/locales/es.yml
CHANGED
@@ -15,9 +15,11 @@ es:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Utilice un entorno de prueba para decidim.
|
20
|
+
description: Los usuarios obtienen esta insignia al crear pruebas.
|
18
21
|
description_another: Este usuario ha creado %{score} pruebas.
|
19
22
|
description_own: Has creado %{score} pruebas.
|
20
|
-
explanation: Los usuarios obtienen esta insignia al crear pruebas.
|
21
23
|
name: Pruebas
|
22
24
|
next_level_in: '¡Crea %{score} pruebas más para alcanzar el siguiente nivel!'
|
23
25
|
unearned_another: Este usuario aún no ha creado ninguna prueba.
|
@@ -25,7 +27,7 @@ es:
|
|
25
27
|
pages:
|
26
28
|
home:
|
27
29
|
statistics:
|
28
|
-
bar:
|
30
|
+
bar: Barra
|
29
31
|
dummies_count_high: Falso alta
|
30
32
|
dummies_count_medium: Falso medium
|
31
33
|
foo: Foo
|
data/config/locales/eu.yml
CHANGED
@@ -15,9 +15,11 @@ eu:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Erabili probako ingurunea erabakitzeko.
|
20
|
+
description: Erabiltzaileek plaka hau lortzen dute probak sortzeko.
|
18
21
|
description_another: Erabiltzaile honek %{score} proba egin ditu.
|
19
22
|
description_own: '%{score} proba sortu dituzu.'
|
20
|
-
explanation: Erabiltzaileek plaka hau lortzen dute probak sortzeko.
|
21
23
|
name: probak
|
22
24
|
next_level_in: Sortu %{score} proba gehiago hurrengo mailara iristeko!
|
23
25
|
unearned_another: Erabiltzaile honek ez du proba oraindik sortu.
|
data/config/locales/fi.yml
CHANGED
@@ -15,9 +15,11 @@ fi:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Käytä testiympäristöä Decidimille.
|
20
|
+
description: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
|
18
21
|
description_another: Tämä käyttäjä on luonut %{score} testiä.
|
19
22
|
description_own: Olet luonut %{score} testiä.
|
20
|
-
explanation: Käyttäjät saavat tämän kunniamerkin luomalla testejä.
|
21
23
|
name: Testit
|
22
24
|
next_level_in: Luo vielä %{score} testiä seuraavan tason saavuttamiseksi!
|
23
25
|
unearned_another: Tämä käyttäjä ei ole vielä luonut testejä.
|
data/config/locales/fr.yml
CHANGED
@@ -15,9 +15,11 @@ fr:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Utilisez un environnement de test pour decidim.
|
20
|
+
description: Les utilisateurs obtiennent ce badge en créant des tests.
|
18
21
|
description_another: Cet utilisateur a créé %{score} tests.
|
19
22
|
description_own: Vous avez créé %{score} tests.
|
20
|
-
explanation: Les utilisateurs obtiennent ce badge en créant des tests.
|
21
23
|
name: Tests
|
22
24
|
next_level_in: Créez %{score} autres tests pour atteindre le niveau suivant !
|
23
25
|
unearned_another: Cet utilisateur n'a pas encore créé de test.
|
data/config/locales/gl.yml
CHANGED
@@ -15,9 +15,11 @@ gl:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Use un entorno de proba para decidir.
|
20
|
+
description: Os usuarios obtén esta insignia creando probas.
|
18
21
|
description_another: Este usuario creou %{score} probas.
|
19
22
|
description_own: Creaches %{score} probas.
|
20
|
-
explanation: Os usuarios obtén esta insignia creando probas.
|
21
23
|
name: Probas
|
22
24
|
next_level_in: Crea %{score} probas máis para chegar ao seguinte nivel!
|
23
25
|
unearned_another: Este usuario aínda non creou ningunha proba.
|
data/config/locales/hu.yml
CHANGED
@@ -15,9 +15,11 @@ hu:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Használjon teszt környezetet a decidim számára.
|
20
|
+
description: A jelvényt tesztek létrehozásával kapod meg.
|
18
21
|
description_another: '%{score} teszt létrehozva.'
|
19
22
|
description_own: Létrehoztad a(z) %{score} teszteket.
|
20
|
-
explanation: A jelvényt tesztek létrehozásával kapod meg.
|
21
23
|
name: Tesztek
|
22
24
|
next_level_in: Hozz létre még %{score} tesztet a következő szint eléréséhez!
|
23
25
|
unearned_another: Ez a felhasználó még nem hozott létre teszteket.
|
data/config/locales/it.yml
CHANGED
@@ -15,9 +15,11 @@ it:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Utilizzare un ambiente di prova per decidim.
|
20
|
+
description: Gli utenti ottengono questo badge creando test.
|
18
21
|
description_another: Questo utente ha creato %{score} test.
|
19
22
|
description_own: Hai creato %{score} test.
|
20
|
-
explanation: Gli utenti ottengono questo badge creando test.
|
21
23
|
name: test
|
22
24
|
next_level_in: Crea altri %{score} test per raggiungere il livello successivo!
|
23
25
|
unearned_another: Questo utente non ha ancora creato alcun test.
|
data/config/locales/nl.yml
CHANGED
@@ -15,9 +15,11 @@ nl:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Gebruik een testomgeving voor decidim.
|
20
|
+
description: Gebruikers krijgen deze badge door tests te maken.
|
18
21
|
description_another: Deze gebruiker heeft %{score} tests gemaakt.
|
19
22
|
description_own: U hebt %{score} tests gemaakt.
|
20
|
-
explanation: Gebruikers krijgen deze badge door tests te maken.
|
21
23
|
name: Tests
|
22
24
|
next_level_in: Maak %{score} extra tests om het volgende niveau te bereiken!
|
23
25
|
unearned_another: Deze gebruiker heeft nog geen tests gemaakt.
|
data/config/locales/pl.yml
CHANGED
@@ -15,9 +15,11 @@ pl:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Użyj środowiska testowego dla decidim.
|
20
|
+
description: Użytkownicy otrzymują tę odznakę, tworząc testy.
|
18
21
|
description_another: Ten użytkownik utworzył %{score} testów.
|
19
22
|
description_own: Stworzyłeś %{score} testów.
|
20
|
-
explanation: Użytkownicy otrzymują tę odznakę, tworząc testy.
|
21
23
|
name: Testy
|
22
24
|
next_level_in: Stwórz %{score} dodatkowych testów, aby przejść do następnego poziomu!
|
23
25
|
unearned_another: Ten użytkownik nie utworzył jeszcze żadnych testów.
|
data/config/locales/pt-BR.yml
CHANGED
@@ -15,9 +15,11 @@ pt-BR:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Use um ambiente de teste para decidim.
|
20
|
+
description: Os usuários obtêm esse selo criando testes.
|
18
21
|
description_another: Este usuário criou %{score} testes.
|
19
22
|
description_own: Você criou %{score} testes.
|
20
|
-
explanation: Os usuários obtêm esse selo criando testes.
|
21
23
|
name: Testes
|
22
24
|
next_level_in: Crie mais %{score} testes para alcançar o próximo nível!
|
23
25
|
unearned_another: Este usuário ainda não criou nenhum teste.
|
@@ -25,7 +27,7 @@ pt-BR:
|
|
25
27
|
pages:
|
26
28
|
home:
|
27
29
|
statistics:
|
28
|
-
bar:
|
30
|
+
bar: Bar
|
29
31
|
dummies_count_high: Dummies alta
|
30
32
|
dummies_count_medium: Dummies medium
|
31
33
|
foo: Foo
|
data/config/locales/pt.yml
CHANGED
@@ -15,9 +15,11 @@ pt:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Use um ambiente de teste para decidim.
|
20
|
+
description: Os usuários obtêm esse selo criando testes.
|
18
21
|
description_another: Este usuário criou %{score} testes.
|
19
22
|
description_own: Você criou %{score} testes.
|
20
|
-
explanation: Os usuários obtêm esse selo criando testes.
|
21
23
|
name: Testes
|
22
24
|
next_level_in: Crie mais %{score} testes para alcançar o próximo nível!
|
23
25
|
unearned_another: Este usuário ainda não criou nenhum teste.
|
data/config/locales/sv.yml
CHANGED
@@ -15,9 +15,11 @@ sv:
|
|
15
15
|
gamification:
|
16
16
|
badges:
|
17
17
|
test:
|
18
|
+
conditions:
|
19
|
+
- Använd en testmiljö för decidim.
|
20
|
+
description: Användare får detta märke genom att skapa test.
|
18
21
|
description_another: Den här användaren har skapat %{score} tester.
|
19
22
|
description_own: Du har skapat %{score} tester.
|
20
|
-
explanation: Användare får detta märke genom att skapa test.
|
21
23
|
name: tester
|
22
24
|
next_level_in: Skapa %{score} fler tester för att nå nästa nivå!
|
23
25
|
unearned_another: Den här användaren har inte skapat några tester än.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# The great title for a new law
|
2
|
+
## A co-creation process to create creative creations
|
3
|
+
When public administrations will need to create or implement things, open and co-creative processes with the participation of any public or private person or institution will be required.
|
4
|
+
|
5
|
+
The following co-creation process will be followed: We all will think think think and create and meditate and think and obtain creations at the end, blah, blah..
|
6
|
+
|
7
|
+
## Creative consensus for the Creation
|
8
|
+
Creations will require a consensus from all the participants. Depending on the Creation to be created the following consensus systems will be used:
|
9
|
+
- consensus by simple majority: when a, b, and c appear in the creation.
|
10
|
+
- consensus by enhanced majority: when a, b, c and also d appear in the creation.
|
11
|
+
- consensus by absolute majority: when x, y and z appear in the creation.
|
12
|
+
- consensus by imposing whatever the organization wants: to be used at will.
|
13
|
+
- consensus by ignoring whatever resulted from the previous consensus: to be used when organization don't like the results of another consensus system.
|
14
|
+
|
15
|
+
It must be taken into account that using "consensus by ignoring whatever resulted from the previous consensus" will grant participants the right to produce a revolution and annihilate the organization.
|
16
|
+
|
17
|
+
## Creation accountability
|
18
|
+
When an organization finishes a co-creation process, the accountability process starts.
|
19
|
+
|
20
|
+
### What should be accounted
|
21
|
+
blah, blah, blah...
|
22
|
+
1. one
|
23
|
+
2. two
|
24
|
+
3. three
|
25
|
+
|
26
|
+
### Following up accounted results
|
27
|
+
This article will require three paragraphs. This will be the first one.
|
28
|
+
|
29
|
+
This article will require three paragraphs. This will be the second one.
|
30
|
+
|
31
|
+
This article will require three paragraphs. This will be the third one.
|
32
|
+
|
33
|
+
![Important image for Decidim](https://meta.decidim.org/assets/decidim/decidim-logo-1f39092fb3e41d23936dc8aeadd054e2119807dccf3c395de88637e4187f0a3f.svg)
|
34
|
+
|
35
|
+
Well, at the end we required one more paragraph and embedded an image, let's see what happens with this...
|
36
|
+
|
37
|
+
# Summary
|
38
|
+
We use here a main title again for the summary because we don't know what will happen when having many main titles in one document.
|
@@ -69,7 +69,7 @@ module Decidim
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def self.user_collection(user)
|
72
|
-
where(decidim_author_id: user.id)
|
72
|
+
where(decidim_author_id: user.id, decidim_author_type: "Decidim::User")
|
73
73
|
end
|
74
74
|
|
75
75
|
def self.export_serializer
|
@@ -148,7 +148,8 @@ RSpec.configure do |config|
|
|
148
148
|
t.integer :coauthorships_count, null: false, default: 0
|
149
149
|
|
150
150
|
t.references :decidim_component, index: false
|
151
|
-
t.
|
151
|
+
t.integer :decidim_author_id, index: false
|
152
|
+
t.string :decidim_author_type, index: false
|
152
153
|
t.references :decidim_category, index: false
|
153
154
|
t.references :decidim_scope, index: false
|
154
155
|
|
@@ -29,10 +29,7 @@ RSpec.configure do |config|
|
|
29
29
|
# instead of true.
|
30
30
|
config.use_transactional_fixtures = true
|
31
31
|
|
32
|
-
config.include AttachmentHelpers
|
33
|
-
config.include TranslationHelpers
|
34
32
|
config.include Rectify::RSpec::Helpers
|
35
33
|
config.include ActionView::Helpers::SanitizeHelper
|
36
34
|
config.include ERB::Util
|
37
|
-
config.include Capybara::ReactSelect, type: :system
|
38
35
|
end
|
data/lib/decidim/dev/version.rb
CHANGED
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.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.15.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.15.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -371,6 +371,7 @@ files:
|
|
371
371
|
- lib/decidim/dev/assets/icon.png
|
372
372
|
- lib/decidim/dev/assets/id.jpg
|
373
373
|
- lib/decidim/dev/assets/malicious.jpg
|
374
|
+
- lib/decidim/dev/assets/participatory_text.md
|
374
375
|
- lib/decidim/dev/common_rake.rb
|
375
376
|
- lib/decidim/dev/railtie.rb
|
376
377
|
- lib/decidim/dev/test/authorization_shared_examples.rb
|
@@ -427,7 +428,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
427
428
|
version: '0'
|
428
429
|
requirements: []
|
429
430
|
rubyforge_project:
|
430
|
-
rubygems_version: 2.7.
|
431
|
+
rubygems_version: 2.7.6
|
431
432
|
signing_key:
|
432
433
|
specification_version: 4
|
433
434
|
summary: Decidim dev tools
|