decidim-surveys 0.19.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/decidim/surveys/surveys.scss +20 -3
- data/app/controllers/decidim/surveys/admin/surveys_controller.rb +11 -0
- data/app/controllers/decidim/surveys/surveys_controller.rb +12 -1
- data/app/jobs/decidim/surveys/clean_survey_answers_job.rb +32 -0
- data/app/jobs/decidim/surveys/settings_change_job.rb +4 -0
- data/app/models/decidim/surveys/survey.rb +4 -0
- data/app/permissions/decidim/surveys/admin/permissions.rb +12 -6
- data/app/permissions/decidim/surveys/permissions.rb +1 -1
- data/app/queries/decidim/surveys/metrics/answers_metric_manage.rb +2 -8
- data/app/serializers/decidim/surveys/data_importer.rb +66 -0
- data/app/serializers/decidim/surveys/data_serializer.rb +46 -0
- data/app/types/decidim/surveys/survey_type.rb +15 -0
- data/app/types/decidim/surveys/surveys_type.rb +32 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -0
- data/config/locales/bg-BG.yml +10 -0
- data/config/locales/bg.yml +10 -0
- data/config/locales/ca.yml +6 -0
- data/config/locales/cs.yml +6 -0
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +6 -0
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +59 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +6 -0
- data/config/locales/es-PY.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +6 -0
- data/config/locales/fi.yml +7 -1
- data/config/locales/fr-CA.yml +62 -0
- data/config/locales/fr.yml +6 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +3 -0
- data/config/locales/is-IS.yml +25 -0
- data/config/locales/is.yml +25 -0
- data/config/locales/it.yml +11 -7
- data/config/locales/ja-JP.yml +58 -0
- data/config/locales/ja.yml +60 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +61 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +10 -4
- data/config/locales/no.yml +25 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +18 -12
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +27 -23
- data/config/locales/ro-RO.yml +62 -0
- data/config/locales/sk-SK.yml +63 -0
- data/config/locales/sk.yml +63 -0
- data/config/locales/sl.yml +8 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +5 -1
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +60 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200609090533_check_legacy_tables.rb +114 -0
- data/db/migrate/20200610090533_remove_survey_answer_choices.rb +7 -0
- data/db/migrate/20200610090650_remove_survey_answer_options.rb +7 -0
- data/db/migrate/20200610090725_remove_survey_answers.rb +7 -0
- data/db/migrate/20200610090845_remove_survey_questions.rb +7 -0
- data/db/migrate/20200610105927_remove_survey_columns.rb +10 -0
- data/lib/decidim/surveys/admin_engine.rb +10 -0
- data/lib/decidim/surveys/component.rb +38 -6
- data/lib/decidim/surveys/test/factories.rb +1 -1
- data/lib/decidim/surveys/version.rb +1 -1
- metadata +75 -13
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-surveys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.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:
|
13
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,70 +18,84 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.23.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.23.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-forms
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.23.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.23.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: decidim-templates
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.23.0
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.23.0
|
43
57
|
- !ruby/object:Gem::Dependency
|
44
58
|
name: decidim-admin
|
45
59
|
requirement: !ruby/object:Gem::Requirement
|
46
60
|
requirements:
|
47
61
|
- - '='
|
48
62
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
63
|
+
version: 0.23.0
|
50
64
|
type: :development
|
51
65
|
prerelease: false
|
52
66
|
version_requirements: !ruby/object:Gem::Requirement
|
53
67
|
requirements:
|
54
68
|
- - '='
|
55
69
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
70
|
+
version: 0.23.0
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: decidim-dev
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
75
|
- - '='
|
62
76
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
77
|
+
version: 0.23.0
|
64
78
|
type: :development
|
65
79
|
prerelease: false
|
66
80
|
version_requirements: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
82
|
- - '='
|
69
83
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
84
|
+
version: 0.23.0
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: decidim-participatory_processes
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
74
88
|
requirements:
|
75
89
|
- - '='
|
76
90
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
91
|
+
version: 0.23.0
|
78
92
|
type: :development
|
79
93
|
prerelease: false
|
80
94
|
version_requirements: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
96
|
- - '='
|
83
97
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
98
|
+
version: 0.23.0
|
85
99
|
description: A surveys component for decidim's participatory spaces.
|
86
100
|
email:
|
87
101
|
- josepjaume@gmail.com
|
@@ -103,6 +117,7 @@ files:
|
|
103
117
|
- app/events/decidim/surveys/closed_survey_event.rb
|
104
118
|
- app/events/decidim/surveys/opened_survey_event.rb
|
105
119
|
- app/helpers/decidim/surveys/survey_helper.rb
|
120
|
+
- app/jobs/decidim/surveys/clean_survey_answers_job.rb
|
106
121
|
- app/jobs/decidim/surveys/settings_change_job.rb
|
107
122
|
- app/models/decidim/surveys/application_record.rb
|
108
123
|
- app/models/decidim/surveys/survey.rb
|
@@ -110,36 +125,77 @@ files:
|
|
110
125
|
- app/permissions/decidim/surveys/permissions.rb
|
111
126
|
- app/queries/decidim/surveys/metrics/answers_metric_manage.rb
|
112
127
|
- app/queries/decidim/surveys/metrics/survey_participants_metric_measure.rb
|
128
|
+
- app/serializers/decidim/surveys/data_importer.rb
|
129
|
+
- app/serializers/decidim/surveys/data_serializer.rb
|
130
|
+
- app/types/decidim/surveys/survey_type.rb
|
131
|
+
- app/types/decidim/surveys/surveys_type.rb
|
113
132
|
- app/views/decidim/surveys/surveys/no_permission.html.erb
|
133
|
+
- config/locales/am-ET.yml
|
114
134
|
- config/locales/ar-SA.yml
|
115
135
|
- config/locales/ar.yml
|
136
|
+
- config/locales/bg-BG.yml
|
137
|
+
- config/locales/bg.yml
|
116
138
|
- config/locales/ca.yml
|
117
139
|
- config/locales/cs-CZ.yml
|
118
140
|
- config/locales/cs.yml
|
141
|
+
- config/locales/da-DK.yml
|
142
|
+
- config/locales/da.yml
|
119
143
|
- config/locales/de.yml
|
144
|
+
- config/locales/el-GR.yml
|
145
|
+
- config/locales/el.yml
|
120
146
|
- config/locales/en.yml
|
121
147
|
- config/locales/eo-UY.yml
|
148
|
+
- config/locales/eo.yml
|
122
149
|
- config/locales/es-MX.yml
|
123
150
|
- config/locales/es-PY.yml
|
124
151
|
- config/locales/es.yml
|
152
|
+
- config/locales/et-EE.yml
|
153
|
+
- config/locales/et.yml
|
125
154
|
- config/locales/eu.yml
|
126
155
|
- config/locales/fi-pl.yml
|
127
156
|
- config/locales/fi-plain.yml
|
128
157
|
- config/locales/fi.yml
|
158
|
+
- config/locales/fr-CA.yml
|
129
159
|
- config/locales/fr.yml
|
160
|
+
- config/locales/ga-IE.yml
|
130
161
|
- config/locales/gl.yml
|
162
|
+
- config/locales/hr-HR.yml
|
163
|
+
- config/locales/hr.yml
|
131
164
|
- config/locales/hu.yml
|
132
165
|
- config/locales/id-ID.yml
|
166
|
+
- config/locales/is-IS.yml
|
167
|
+
- config/locales/is.yml
|
133
168
|
- config/locales/it.yml
|
169
|
+
- config/locales/ja-JP.yml
|
170
|
+
- config/locales/ja.yml
|
171
|
+
- config/locales/ko-KR.yml
|
172
|
+
- config/locales/ko.yml
|
173
|
+
- config/locales/lt-LT.yml
|
174
|
+
- config/locales/lt.yml
|
175
|
+
- config/locales/lv.yml
|
176
|
+
- config/locales/mt-MT.yml
|
177
|
+
- config/locales/mt.yml
|
134
178
|
- config/locales/nl.yml
|
135
179
|
- config/locales/no.yml
|
180
|
+
- config/locales/om-ET.yml
|
136
181
|
- config/locales/pl.yml
|
137
182
|
- config/locales/pt-BR.yml
|
138
183
|
- config/locales/pt.yml
|
184
|
+
- config/locales/ro-RO.yml
|
139
185
|
- config/locales/ru.yml
|
186
|
+
- config/locales/sk-SK.yml
|
187
|
+
- config/locales/sk.yml
|
188
|
+
- config/locales/sl.yml
|
189
|
+
- config/locales/so-SO.yml
|
190
|
+
- config/locales/sr-CS.yml
|
140
191
|
- config/locales/sv.yml
|
192
|
+
- config/locales/ti-ER.yml
|
141
193
|
- config/locales/tr-TR.yml
|
142
194
|
- config/locales/uk.yml
|
195
|
+
- config/locales/vi-VN.yml
|
196
|
+
- config/locales/vi.yml
|
197
|
+
- config/locales/zh-CN.yml
|
198
|
+
- config/locales/zh-TW.yml
|
143
199
|
- db/migrate/20170511092231_create_decidim_surveys.rb
|
144
200
|
- db/migrate/20170515090916_create_decidim_survey_questions.rb
|
145
201
|
- db/migrate/20170515144119_create_decidim_survey_answers.rb
|
@@ -156,6 +212,12 @@ files:
|
|
156
212
|
- db/migrate/20180405015258_add_free_text_to_survey_answer_options.rb
|
157
213
|
- db/migrate/20180405015314_add_custom_body_to_survey_answer_choices.rb
|
158
214
|
- db/migrate/20180406201818_add_position_to_decidim_survey_answer_choices.rb
|
215
|
+
- db/migrate/20200609090533_check_legacy_tables.rb
|
216
|
+
- db/migrate/20200610090533_remove_survey_answer_choices.rb
|
217
|
+
- db/migrate/20200610090650_remove_survey_answer_options.rb
|
218
|
+
- db/migrate/20200610090725_remove_survey_answers.rb
|
219
|
+
- db/migrate/20200610090845_remove_survey_questions.rb
|
220
|
+
- db/migrate/20200610105927_remove_survey_columns.rb
|
159
221
|
- lib/decidim/surveys.rb
|
160
222
|
- lib/decidim/surveys/admin.rb
|
161
223
|
- lib/decidim/surveys/admin_engine.rb
|
@@ -176,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
238
|
requirements:
|
177
239
|
- - ">="
|
178
240
|
- !ruby/object:Gem::Version
|
179
|
-
version: '2.
|
241
|
+
version: '2.6'
|
180
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
243
|
requirements:
|
182
244
|
- - ">="
|