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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44e619e84df680c99ee4710e060e16e1273202a2b3cd0ea13e76935860a1228f
4
- data.tar.gz: c7e80bb63e6139fec73760bc224d08a64559bf661337661a9f42c09ba85cab87
3
+ metadata.gz: 22386f0c13d48b951869503ad99ca47cf9591551513ac681e6c1e67a960590eb
4
+ data.tar.gz: dee92d6ab2e75283e6d5d7488bc8f32d89d6171c8f716ab9f460e4723d6e660b
5
5
  SHA512:
6
- metadata.gz: 1c6918dfbbd4824b0cd425f0a58f428723a1f32bb58ed72d41b99aae30b421464421cc62abf287356a54b0b3aed31abce1b6009f2f976becb3bce1258ae88572
7
- data.tar.gz: 57e128df804ee6064407b6f635ef55d9eba8aabf8bcaa471272e77332085c0660c2d913e18663a5d187ef7597623cd93608773f9ba8802c963330bd7634c9c3f
6
+ metadata.gz: cf6a1122bd8d8b95ef4ae13a7478b8f0970439cbdc70a8619d55884c51631fc13d87893b45fd78130ef1b858dd9de566f9c35b44c69c96cc2522e62c2db415a3
7
+ data.tar.gz: 56038ec73359dd8bbf2040d0f1a433357920e55ffd5dc700f3ca4bfcd11dd17fd441bbfc0037e84b8be8234df96f8c42fb184181a19c8ffe24f8b7e4d27f82de
@@ -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: Bar
30
+ bar: Barra
29
31
  dummies_count_high: Fals alt
30
32
  dummies_count_medium: Fals mitjà
31
33
  foo: Foo
@@ -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.
@@ -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.
@@ -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: Bar
30
+ bar: Barra
29
31
  dummies_count_high: Falso alta
30
32
  dummies_count_medium: Falso medium
31
33
  foo: Foo
@@ -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: Bar
30
+ bar: Barra
29
31
  dummies_count_high: Falso alta
30
32
  dummies_count_medium: Falso medium
31
33
  foo: Foo
@@ -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.
@@ -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ä.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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: Barra
30
+ bar: Bar
29
31
  dummies_count_high: Dummies alta
30
32
  dummies_count_medium: Dummies medium
31
33
  foo: Foo
@@ -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.
@@ -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.
@@ -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.
@@ -10,3 +10,7 @@ module AttachmentHelpers
10
10
  ActiveSupport::NumberHelper.number_to_human_size(attachment.file_size)
11
11
  end
12
12
  end
13
+
14
+ RSpec.configure do |config|
15
+ config.include AttachmentHelpers
16
+ end
@@ -49,7 +49,7 @@ RSpec.configure do |config|
49
49
  end
50
50
 
51
51
  config.around :each, :slow do |example|
52
- max_wait_time_for_slow_specs = 7
52
+ max_wait_time_for_slow_specs = 12
53
53
 
54
54
  using_wait_time(max_wait_time_for_slow_specs) do
55
55
  example.run
@@ -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.references :decidim_author, index: false
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
 
@@ -4,6 +4,7 @@ RSpec.configure do |config|
4
4
  config.before(:suite) do
5
5
  Decidim::Gamification.register_badge(:test) do |badge|
6
6
  badge.levels = [1, 5, 10]
7
+ badge.valid_for = [:user, :user_group]
7
8
  badge.reset = ->(_user) { 100 }
8
9
  end
9
10
  end
@@ -23,3 +23,7 @@ module Capybara
23
23
  end
24
24
  end
25
25
  end
26
+
27
+ RSpec.configure do |config|
28
+ config.include Capybara::ReactSelect, type: :system
29
+ end
@@ -97,3 +97,7 @@ module TranslationHelpers
97
97
  upcase ? content.upcase : content
98
98
  end
99
99
  end
100
+
101
+ RSpec.configure do |config|
102
+ config.include TranslationHelpers
103
+ end
@@ -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
@@ -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.14.4"
7
+ "0.15.0"
8
8
  end
9
9
  end
10
10
  end
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.14.4
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-10-24 00:00:00.000000000 Z
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.14.4
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.14.4
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.7
431
+ rubygems_version: 2.7.6
431
432
  signing_key:
432
433
  specification_version: 4
433
434
  summary: Decidim dev tools