decidim-elections 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +31 -0
  3. data/Rakefile +3 -0
  4. data/app/assets/config/decidim_elections_manifest.js +0 -0
  5. data/app/assets/images/decidim/elections/icon.svg +1 -0
  6. data/app/commands/decidim/elections/admin/create_answer.rb +71 -0
  7. data/app/commands/decidim/elections/admin/create_election.rb +48 -0
  8. data/app/commands/decidim/elections/admin/create_question.rb +52 -0
  9. data/app/commands/decidim/elections/admin/destroy_answer.rb +50 -0
  10. data/app/commands/decidim/elections/admin/destroy_election.rb +46 -0
  11. data/app/commands/decidim/elections/admin/destroy_question.rb +46 -0
  12. data/app/commands/decidim/elections/admin/update_answer.rb +73 -0
  13. data/app/commands/decidim/elections/admin/update_election.rb +48 -0
  14. data/app/commands/decidim/elections/admin/update_question.rb +52 -0
  15. data/app/controllers/decidim/elections/admin/answers_controller.rb +92 -0
  16. data/app/controllers/decidim/elections/admin/application_controller.rb +15 -0
  17. data/app/controllers/decidim/elections/admin/elections_controller.rb +82 -0
  18. data/app/controllers/decidim/elections/admin/questions_controller.rb +86 -0
  19. data/app/controllers/decidim/elections/application_controller.rb +13 -0
  20. data/app/controllers/decidim/elections/elections_controller.rb +9 -0
  21. data/app/forms/decidim/elections/admin/answer_form.rb +53 -0
  22. data/app/forms/decidim/elections/admin/election_form.rb +24 -0
  23. data/app/forms/decidim/elections/admin/question_form.rb +26 -0
  24. data/app/helpers/decidim/elections/application_helper.rb +10 -0
  25. data/app/models/decidim/elections/answer.rb +26 -0
  26. data/app/models/decidim/elections/application_record.rb +10 -0
  27. data/app/models/decidim/elections/election.rb +22 -0
  28. data/app/models/decidim/elections/question.rb +20 -0
  29. data/app/permissions/decidim/elections/admin/permissions.rb +42 -0
  30. data/app/permissions/decidim/elections/permissions.rb +16 -0
  31. data/app/types/decidim/elections/election_answer_type.rb +24 -0
  32. data/app/types/decidim/elections/election_question_type.rb +25 -0
  33. data/app/types/decidim/elections/election_type.rb +26 -0
  34. data/app/types/decidim/elections/elections_type.rb +32 -0
  35. data/app/views/decidim/elections/admin/answers/_form.html.erb +25 -0
  36. data/app/views/decidim/elections/admin/answers/edit.html.erb +7 -0
  37. data/app/views/decidim/elections/admin/answers/index.html.erb +46 -0
  38. data/app/views/decidim/elections/admin/answers/new.html.erb +7 -0
  39. data/app/views/decidim/elections/admin/answers/proposals_picker.html.erb +1 -0
  40. data/app/views/decidim/elections/admin/elections/_form.html.erb +28 -0
  41. data/app/views/decidim/elections/admin/elections/edit.html.erb +7 -0
  42. data/app/views/decidim/elections/admin/elections/index.html.erb +54 -0
  43. data/app/views/decidim/elections/admin/elections/new.html.erb +7 -0
  44. data/app/views/decidim/elections/admin/questions/_form.html.erb +27 -0
  45. data/app/views/decidim/elections/admin/questions/edit.html.erb +7 -0
  46. data/app/views/decidim/elections/admin/questions/index.html.erb +53 -0
  47. data/app/views/decidim/elections/admin/questions/new.html.erb +7 -0
  48. data/app/views/decidim/elections/elections/index.html.erb +1 -0
  49. data/app/views/decidim/elections/elections/show.html.erb +0 -0
  50. data/config/i18n-tasks.yml +10 -0
  51. data/config/locales/ar.yml +1 -0
  52. data/config/locales/bg-BG.yml +7 -0
  53. data/config/locales/ca.yml +132 -0
  54. data/config/locales/cs.yml +138 -0
  55. data/config/locales/da-DK.yml +1 -0
  56. data/config/locales/de.yml +132 -0
  57. data/config/locales/el.yml +132 -0
  58. data/config/locales/en.yml +133 -0
  59. data/config/locales/eo-UY.yml +1 -0
  60. data/config/locales/es-MX.yml +132 -0
  61. data/config/locales/es-PY.yml +132 -0
  62. data/config/locales/es.yml +132 -0
  63. data/config/locales/et-EE.yml +1 -0
  64. data/config/locales/eu.yml +1 -0
  65. data/config/locales/fi-plain.yml +132 -0
  66. data/config/locales/fi.yml +132 -0
  67. data/config/locales/fr-CA.yml +132 -0
  68. data/config/locales/fr.yml +132 -0
  69. data/config/locales/ga-IE.yml +1 -0
  70. data/config/locales/gl.yml +1 -0
  71. data/config/locales/hr-HR.yml +1 -0
  72. data/config/locales/hu.yml +1 -0
  73. data/config/locales/id-ID.yml +1 -0
  74. data/config/locales/is-IS.yml +1 -0
  75. data/config/locales/it.yml +132 -0
  76. data/config/locales/ja-JP.yml +129 -0
  77. data/config/locales/lt-LT.yml +1 -0
  78. data/config/locales/lv-LV.yml +135 -0
  79. data/config/locales/mt-MT.yml +1 -0
  80. data/config/locales/nl.yml +132 -0
  81. data/config/locales/no.yml +9 -0
  82. data/config/locales/pl.yml +138 -0
  83. data/config/locales/pt-BR.yml +1 -0
  84. data/config/locales/pt.yml +132 -0
  85. data/config/locales/ro-RO.yml +135 -0
  86. data/config/locales/ru.yml +1 -0
  87. data/config/locales/sk.yml +1 -0
  88. data/config/locales/sl.yml +5 -0
  89. data/config/locales/sr-CS.yml +1 -0
  90. data/config/locales/sv.yml +132 -0
  91. data/config/locales/tr-TR.yml +1 -0
  92. data/config/locales/uk.yml +1 -0
  93. data/db/migrate/20200430083618_create_decidim_elections_elections.rb +15 -0
  94. data/db/migrate/20200518082327_create_decidim_elections_questions.rb +14 -0
  95. data/db/migrate/20200518084144_create_decidim_elections_answers.rb +12 -0
  96. data/lib/decidim/elections.rb +13 -0
  97. data/lib/decidim/elections/admin.rb +10 -0
  98. data/lib/decidim/elections/admin_engine.rb +29 -0
  99. data/lib/decidim/elections/component.rb +123 -0
  100. data/lib/decidim/elections/engine.rb +23 -0
  101. data/lib/decidim/elections/seeds/city.jpeg +0 -0
  102. data/lib/decidim/elections/test/factories.rb +52 -0
  103. data/lib/decidim/elections/version.rb +10 -0
  104. metadata +201 -0
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ # This holds the decidim-meetings version.
5
+ module Elections
6
+ def self.version
7
+ "0.22.0"
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: decidim-elections
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.22.0
5
+ platform: ruby
6
+ authors:
7
+ - Leonardo Diez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: decidim-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.22.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.22.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: decidim-proposals
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.22.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.22.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: decidim-admin
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.22.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.22.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: decidim-dev
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.22.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.22.0
69
+ description: The Elections module adds elections to any participatory space.
70
+ email:
71
+ - leo@codegram.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - README.md
77
+ - Rakefile
78
+ - app/assets/config/decidim_elections_manifest.js
79
+ - app/assets/images/decidim/elections/icon.svg
80
+ - app/commands/decidim/elections/admin/create_answer.rb
81
+ - app/commands/decidim/elections/admin/create_election.rb
82
+ - app/commands/decidim/elections/admin/create_question.rb
83
+ - app/commands/decidim/elections/admin/destroy_answer.rb
84
+ - app/commands/decidim/elections/admin/destroy_election.rb
85
+ - app/commands/decidim/elections/admin/destroy_question.rb
86
+ - app/commands/decidim/elections/admin/update_answer.rb
87
+ - app/commands/decidim/elections/admin/update_election.rb
88
+ - app/commands/decidim/elections/admin/update_question.rb
89
+ - app/controllers/decidim/elections/admin/answers_controller.rb
90
+ - app/controllers/decidim/elections/admin/application_controller.rb
91
+ - app/controllers/decidim/elections/admin/elections_controller.rb
92
+ - app/controllers/decidim/elections/admin/questions_controller.rb
93
+ - app/controllers/decidim/elections/application_controller.rb
94
+ - app/controllers/decidim/elections/elections_controller.rb
95
+ - app/forms/decidim/elections/admin/answer_form.rb
96
+ - app/forms/decidim/elections/admin/election_form.rb
97
+ - app/forms/decidim/elections/admin/question_form.rb
98
+ - app/helpers/decidim/elections/application_helper.rb
99
+ - app/models/decidim/elections/answer.rb
100
+ - app/models/decidim/elections/application_record.rb
101
+ - app/models/decidim/elections/election.rb
102
+ - app/models/decidim/elections/question.rb
103
+ - app/permissions/decidim/elections/admin/permissions.rb
104
+ - app/permissions/decidim/elections/permissions.rb
105
+ - app/types/decidim/elections/election_answer_type.rb
106
+ - app/types/decidim/elections/election_question_type.rb
107
+ - app/types/decidim/elections/election_type.rb
108
+ - app/types/decidim/elections/elections_type.rb
109
+ - app/views/decidim/elections/admin/answers/_form.html.erb
110
+ - app/views/decidim/elections/admin/answers/edit.html.erb
111
+ - app/views/decidim/elections/admin/answers/index.html.erb
112
+ - app/views/decidim/elections/admin/answers/new.html.erb
113
+ - app/views/decidim/elections/admin/answers/proposals_picker.html.erb
114
+ - app/views/decidim/elections/admin/elections/_form.html.erb
115
+ - app/views/decidim/elections/admin/elections/edit.html.erb
116
+ - app/views/decidim/elections/admin/elections/index.html.erb
117
+ - app/views/decidim/elections/admin/elections/new.html.erb
118
+ - app/views/decidim/elections/admin/questions/_form.html.erb
119
+ - app/views/decidim/elections/admin/questions/edit.html.erb
120
+ - app/views/decidim/elections/admin/questions/index.html.erb
121
+ - app/views/decidim/elections/admin/questions/new.html.erb
122
+ - app/views/decidim/elections/elections/index.html.erb
123
+ - app/views/decidim/elections/elections/show.html.erb
124
+ - config/i18n-tasks.yml
125
+ - config/locales/ar.yml
126
+ - config/locales/bg-BG.yml
127
+ - config/locales/ca.yml
128
+ - config/locales/cs.yml
129
+ - config/locales/da-DK.yml
130
+ - config/locales/de.yml
131
+ - config/locales/el.yml
132
+ - config/locales/en.yml
133
+ - config/locales/eo-UY.yml
134
+ - config/locales/es-MX.yml
135
+ - config/locales/es-PY.yml
136
+ - config/locales/es.yml
137
+ - config/locales/et-EE.yml
138
+ - config/locales/eu.yml
139
+ - config/locales/fi-plain.yml
140
+ - config/locales/fi.yml
141
+ - config/locales/fr-CA.yml
142
+ - config/locales/fr.yml
143
+ - config/locales/ga-IE.yml
144
+ - config/locales/gl.yml
145
+ - config/locales/hr-HR.yml
146
+ - config/locales/hu.yml
147
+ - config/locales/id-ID.yml
148
+ - config/locales/is-IS.yml
149
+ - config/locales/it.yml
150
+ - config/locales/ja-JP.yml
151
+ - config/locales/lt-LT.yml
152
+ - config/locales/lv-LV.yml
153
+ - config/locales/mt-MT.yml
154
+ - config/locales/nl.yml
155
+ - config/locales/no.yml
156
+ - config/locales/pl.yml
157
+ - config/locales/pt-BR.yml
158
+ - config/locales/pt.yml
159
+ - config/locales/ro-RO.yml
160
+ - config/locales/ru.yml
161
+ - config/locales/sk.yml
162
+ - config/locales/sl.yml
163
+ - config/locales/sr-CS.yml
164
+ - config/locales/sv.yml
165
+ - config/locales/tr-TR.yml
166
+ - config/locales/uk.yml
167
+ - db/migrate/20200430083618_create_decidim_elections_elections.rb
168
+ - db/migrate/20200518082327_create_decidim_elections_questions.rb
169
+ - db/migrate/20200518084144_create_decidim_elections_answers.rb
170
+ - lib/decidim/elections.rb
171
+ - lib/decidim/elections/admin.rb
172
+ - lib/decidim/elections/admin_engine.rb
173
+ - lib/decidim/elections/component.rb
174
+ - lib/decidim/elections/engine.rb
175
+ - lib/decidim/elections/seeds/city.jpeg
176
+ - lib/decidim/elections/test/factories.rb
177
+ - lib/decidim/elections/version.rb
178
+ homepage: https://github.com/decidim/decidim-elections
179
+ licenses:
180
+ - AGPL-3.0
181
+ metadata: {}
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '2.5'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubygems_version: 3.1.2
198
+ signing_key:
199
+ specification_version: 4
200
+ summary: A decidim elections module
201
+ test_files: []