decidim-consultations 0.21.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/consultations/icon.svg +1 -3
  3. data/app/assets/images/decidim/consultations/icon2.svg +1 -88
  4. data/app/assets/stylesheets/decidim/consultations/_question.scss +0 -6
  5. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +0 -1
  6. data/app/cells/decidim/consultations/consultation_m/data.erb +1 -1
  7. data/app/cells/decidim/consultations/consultation_m/footer.erb +1 -1
  8. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +3 -3
  9. data/app/commands/decidim/consultations/admin/update_consultation.rb +9 -4
  10. data/app/forms/decidim/consultations/admin/consultation_form.rb +5 -6
  11. data/app/forms/decidim/consultations/admin/question_form.rb +5 -6
  12. data/app/models/decidim/consultation.rb +9 -0
  13. data/app/models/decidim/consultations/question.rb +12 -1
  14. data/app/models/decidim/consultations/response.rb +4 -0
  15. data/app/models/decidim/consultations/response_group.rb +4 -0
  16. data/app/permissions/decidim/consultations/permissions.rb +2 -0
  17. data/app/presenters/decidim/consultations/question_stats_presenter.rb +1 -1
  18. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
  19. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  20. data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
  21. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  22. data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
  23. data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
  24. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  25. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
  26. data/app/views/decidim/consultations/questions/show.html.erb +4 -4
  27. data/app/views/layouts/decidim/_question_components.html.erb +3 -3
  28. data/app/views/layouts/decidim/_question_header.html.erb +1 -1
  29. data/app/views/layouts/decidim/consultation.html.erb +1 -0
  30. data/config/locales/am-ET.yml +1 -0
  31. data/config/locales/ar.yml +0 -1
  32. data/config/locales/bg-BG.yml +1 -0
  33. data/config/locales/bg.yml +1 -0
  34. data/config/locales/ca.yml +4 -1
  35. data/config/locales/cs.yml +18 -15
  36. data/config/locales/da-DK.yml +1 -0
  37. data/config/locales/da.yml +1 -0
  38. data/config/locales/de.yml +87 -6
  39. data/config/locales/el.yml +376 -0
  40. data/config/locales/en.yml +4 -1
  41. data/config/locales/eo.yml +1 -0
  42. data/config/locales/es-MX.yml +4 -1
  43. data/config/locales/es-PY.yml +4 -1
  44. data/config/locales/es.yml +4 -1
  45. data/config/locales/et-EE.yml +1 -0
  46. data/config/locales/et.yml +1 -0
  47. data/config/locales/eu.yml +0 -1
  48. data/config/locales/fi-plain.yml +5 -2
  49. data/config/locales/fi.yml +18 -15
  50. data/config/locales/fr-CA.yml +377 -0
  51. data/config/locales/fr.yml +5 -2
  52. data/config/locales/ga-IE.yml +1 -0
  53. data/config/locales/gl.yml +0 -1
  54. data/config/locales/hr-HR.yml +1 -0
  55. data/config/locales/hr.yml +1 -0
  56. data/config/locales/hu.yml +0 -1
  57. data/config/locales/id-ID.yml +0 -1
  58. data/config/locales/is-IS.yml +0 -1
  59. data/config/locales/is.yml +185 -0
  60. data/config/locales/it.yml +58 -55
  61. data/config/locales/ja-JP.yml +367 -0
  62. data/config/locales/ja.yml +367 -0
  63. data/config/locales/ko-KR.yml +1 -0
  64. data/config/locales/ko.yml +1 -0
  65. data/config/locales/lt-LT.yml +1 -0
  66. data/config/locales/lt.yml +1 -0
  67. data/config/locales/lv.yml +383 -0
  68. data/config/locales/mt-MT.yml +1 -0
  69. data/config/locales/mt.yml +1 -0
  70. data/config/locales/nl.yml +10 -7
  71. data/config/locales/no.yml +4 -3
  72. data/config/locales/om-ET.yml +1 -0
  73. data/config/locales/pl.yml +183 -102
  74. data/config/locales/pt-BR.yml +1 -2
  75. data/config/locales/pt.yml +156 -75
  76. data/config/locales/ro-RO.yml +338 -0
  77. data/config/locales/ru.yml +0 -1
  78. data/config/locales/si-LK.yml +1 -0
  79. data/config/locales/sk-SK.yml +394 -0
  80. data/config/locales/sk.yml +393 -0
  81. data/config/locales/sl.yml +9 -0
  82. data/config/locales/so-SO.yml +1 -0
  83. data/config/locales/sr-CS.yml +1 -0
  84. data/config/locales/sv.yml +46 -12
  85. data/config/locales/sw-KE.yml +1 -0
  86. data/config/locales/ti-ER.yml +1 -0
  87. data/config/locales/tr-TR.yml +115 -41
  88. data/config/locales/uk.yml +0 -1
  89. data/config/locales/vi-VN.yml +1 -0
  90. data/config/locales/vi.yml +1 -0
  91. data/config/locales/zh-CN.yml +367 -0
  92. data/config/locales/zh-TW.yml +1 -0
  93. data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
  94. data/db/migrate/20200827154143_add_commentable_counter_cache_to_consultations.rb +9 -0
  95. data/db/seeds/city.jpeg +0 -0
  96. data/db/seeds/city2.jpeg +0 -0
  97. data/lib/decidim/consultations/admin_engine.rb +1 -0
  98. data/lib/decidim/consultations/participatory_space.rb +17 -17
  99. data/lib/decidim/consultations/test/factories.rb +1 -0
  100. data/lib/decidim/consultations/version.rb +1 -1
  101. metadata +53 -15
@@ -22,6 +22,7 @@ FactoryBot.define do
22
22
  published_at { Time.current }
23
23
  start_voting_date { Time.zone.today }
24
24
  end_voting_date { Time.zone.today + 1.month }
25
+ introductory_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
25
26
  introductory_video_url { "https://www.youtube.com/embed/zhMMW0TENNA" }
26
27
  decidim_highlighted_scope_id { create(:scope, organization: organization).id }
27
28
  results_published_at { nil }
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.21.0"
6
+ "0.23.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-consultations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.21.0
19
+ version: 0.23.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.21.0
26
+ version: 0.23.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.21.0
33
+ version: 0.23.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.21.0
40
+ version: 0.23.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.21.0
47
+ version: 0.23.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.21.0
54
+ version: 0.23.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-dev
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.21.0
61
+ version: 0.23.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.21.0
68
+ version: 0.23.2
69
69
  description: Extends Decidim adding a first level public consultation component
70
70
  email:
71
71
  - jsperezg@gmail.com
@@ -246,38 +246,74 @@ files:
246
246
  - app/views/layouts/decidim/consultation_choose.html.erb
247
247
  - app/views/layouts/decidim/question.html.erb
248
248
  - app/views/layouts/decidim/question_multivote.html.erb
249
+ - config/locales/am-ET.yml
249
250
  - config/locales/ar-SA.yml
250
251
  - config/locales/ar.yml
252
+ - config/locales/bg-BG.yml
253
+ - config/locales/bg.yml
251
254
  - config/locales/ca.yml
252
255
  - config/locales/cs-CZ.yml
253
256
  - config/locales/cs.yml
257
+ - config/locales/da-DK.yml
258
+ - config/locales/da.yml
254
259
  - config/locales/de.yml
255
260
  - config/locales/el-GR.yml
256
261
  - config/locales/el.yml
257
262
  - config/locales/en.yml
258
263
  - config/locales/eo-UY.yml
264
+ - config/locales/eo.yml
259
265
  - config/locales/es-MX.yml
260
266
  - config/locales/es-PY.yml
261
267
  - config/locales/es.yml
268
+ - config/locales/et-EE.yml
269
+ - config/locales/et.yml
262
270
  - config/locales/eu.yml
263
271
  - config/locales/fi-pl.yml
264
272
  - config/locales/fi-plain.yml
265
273
  - config/locales/fi.yml
274
+ - config/locales/fr-CA.yml
266
275
  - config/locales/fr.yml
276
+ - config/locales/ga-IE.yml
267
277
  - config/locales/gl.yml
278
+ - config/locales/hr-HR.yml
279
+ - config/locales/hr.yml
268
280
  - config/locales/hu.yml
269
281
  - config/locales/id-ID.yml
270
282
  - config/locales/is-IS.yml
283
+ - config/locales/is.yml
271
284
  - config/locales/it.yml
285
+ - config/locales/ja-JP.yml
286
+ - config/locales/ja.yml
287
+ - config/locales/ko-KR.yml
288
+ - config/locales/ko.yml
289
+ - config/locales/lt-LT.yml
290
+ - config/locales/lt.yml
291
+ - config/locales/lv.yml
292
+ - config/locales/mt-MT.yml
293
+ - config/locales/mt.yml
272
294
  - config/locales/nl.yml
273
295
  - config/locales/no.yml
296
+ - config/locales/om-ET.yml
274
297
  - config/locales/pl.yml
275
298
  - config/locales/pt-BR.yml
276
299
  - config/locales/pt.yml
300
+ - config/locales/ro-RO.yml
277
301
  - config/locales/ru.yml
302
+ - config/locales/si-LK.yml
303
+ - config/locales/sk-SK.yml
304
+ - config/locales/sk.yml
305
+ - config/locales/sl.yml
306
+ - config/locales/so-SO.yml
307
+ - config/locales/sr-CS.yml
278
308
  - config/locales/sv.yml
309
+ - config/locales/sw-KE.yml
310
+ - config/locales/ti-ER.yml
279
311
  - config/locales/tr-TR.yml
280
312
  - config/locales/uk.yml
313
+ - config/locales/vi-VN.yml
314
+ - config/locales/vi.yml
315
+ - config/locales/zh-CN.yml
316
+ - config/locales/zh-TW.yml
281
317
  - db/migrate/20180109092205_create_decidim_consultations.rb
282
318
  - db/migrate/20180112053247_create_decidim_consultations_questions.rb
283
319
  - db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb
@@ -311,6 +347,8 @@ files:
311
347
  - db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb
312
348
  - db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb
313
349
  - db/migrate/20190710121122_add_free_instructions_field_to_consultations_questions.rb
350
+ - db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb
351
+ - db/migrate/20200827154143_add_commentable_counter_cache_to_consultations.rb
314
352
  - db/seeds/Exampledocument.pdf
315
353
  - db/seeds/city.jpeg
316
354
  - db/seeds/city2.jpeg
@@ -326,7 +364,7 @@ homepage: https://github.com/decidim/decidim
326
364
  licenses:
327
365
  - AGPL-3.0
328
366
  metadata: {}
329
- post_install_message:
367
+ post_install_message:
330
368
  rdoc_options: []
331
369
  require_paths:
332
370
  - lib
@@ -334,15 +372,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
334
372
  requirements:
335
373
  - - ">="
336
374
  - !ruby/object:Gem::Version
337
- version: '2.5'
375
+ version: '2.6'
338
376
  required_rubygems_version: !ruby/object:Gem::Requirement
339
377
  requirements:
340
378
  - - ">="
341
379
  - !ruby/object:Gem::Version
342
380
  version: '0'
343
381
  requirements: []
344
- rubygems_version: 3.1.2
345
- signing_key:
382
+ rubygems_version: 3.0.3
383
+ signing_key:
346
384
  specification_version: 4
347
385
  summary: Decidim consultations module
348
386
  test_files: []