decidim-surveys 0.28.4 → 0.28.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +1 -0
- data/config/locales/ca-IT.yml +77 -0
- data/config/locales/eu.yml +5 -5
- data/config/locales/it.yml +4 -0
- data/decidim-surveys.gemspec +1 -1
- data/lib/decidim/api/survey_type.rb +9 -0
- data/lib/decidim/api/surveys_type.rb +1 -3
- data/lib/decidim/surveys/version.rb +1 -1
- metadata +18 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3154f43f868ccb679580d2da930a74e2e6910f65b120117162eff33ae7298fc1
|
4
|
+
data.tar.gz: c818e793391bc0187c7cae546c0a5f73ec1b06fc726e4203c5ef2d6a8ef7a5ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2bde5694556b8e80806331b0aebfc0923510da41f3fee621a281597638ed9f14452a6c8f70654d13e59ae9d7daccce3d2eb619b1b1da3c828f43db02b40347
|
7
|
+
data.tar.gz: 1be55e7718f5225e3bf4a0e5af531ac6323c73404f8c28e9fee943e0515795a1458bcd65e3838421b3925dddc1176fa19b43a6c4671f9b246f327f8c40454f39
|
@@ -0,0 +1 @@
|
|
1
|
+
bn:
|
@@ -0,0 +1 @@
|
|
1
|
+
bs:
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
ca-IT:
|
3
|
+
activemodel:
|
4
|
+
models:
|
5
|
+
decidim/surveys/closed_survey_event: Ha acabat l'enquesta
|
6
|
+
decidim/surveys/opened_survey_event: Ha començat l'enquesta
|
7
|
+
activerecord:
|
8
|
+
models:
|
9
|
+
decidim/surveys/survey:
|
10
|
+
one: Enquesta
|
11
|
+
other: Enquestes
|
12
|
+
decidim/surveys/survey_answer:
|
13
|
+
one: Resposta
|
14
|
+
other: Respostes
|
15
|
+
decidim:
|
16
|
+
components:
|
17
|
+
surveys:
|
18
|
+
actions:
|
19
|
+
answer: Respondre
|
20
|
+
name: Enquesta
|
21
|
+
settings:
|
22
|
+
global:
|
23
|
+
announcement: Avís
|
24
|
+
clean_after_publish: Esborrar les respostes en publicar l'enquesta
|
25
|
+
ends_at: Respostes acceptades fins a
|
26
|
+
ends_at_help: Deixar en blanc per cap data específica
|
27
|
+
scope_id: Àmbit
|
28
|
+
scopes_enabled: Àmbits habilitats
|
29
|
+
starts_at: Respostes acceptades de
|
30
|
+
starts_at_help: Deixar en blanc per cap data específica
|
31
|
+
step:
|
32
|
+
allow_answers: Permetre respostes
|
33
|
+
allow_unregistered: Permet a usuàries no registrades contestar l'enquesta
|
34
|
+
allow_unregistered_help: Si està activat, no serà necessari iniciar sessió per a respondre l'enquesta. Això pot implicar una recollida de dades pobra o poc fiable i serà més vulnerable a atacs automatitzats. Fes-ho servir amb precaució! És important que una participant pugui respondre a la mateixa enquesta diverses vegades, fent servir diferents navegador o la funció de "navegació privada" del seu navegadro web.
|
35
|
+
announcement: Avís
|
36
|
+
events:
|
37
|
+
surveys:
|
38
|
+
survey_closed:
|
39
|
+
email_intro: L'enquesta %{resource_title} a %{participatory_space_title} ha estat tancada.
|
40
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
41
|
+
email_subject: S'ha acabat una enquesta a %{participatory_space_title}
|
42
|
+
notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a> ha acabat.
|
43
|
+
survey_opened:
|
44
|
+
email_intro: 'L''enquesta %{resource_title} a %{participatory_space_title} ja està oberta. Pots participar-hi des d''aquesta pàgina:'
|
45
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
46
|
+
email_subject: Una nova enquesta a %{participatory_space_title}
|
47
|
+
notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ja està oberta.
|
48
|
+
metrics:
|
49
|
+
survey_answers:
|
50
|
+
description: Nombre d'enquestes contestades per les participants
|
51
|
+
object: respostes a enquestes
|
52
|
+
title: Respostes a enquestes
|
53
|
+
statistics:
|
54
|
+
answers_count: Respostes
|
55
|
+
surveys:
|
56
|
+
admin:
|
57
|
+
component:
|
58
|
+
actions:
|
59
|
+
answers_alert: Si publiques el component, s'eliminaran tots els resultats.
|
60
|
+
exports:
|
61
|
+
survey_user_answers: Respostes de les participants de l'enquesta
|
62
|
+
surveys:
|
63
|
+
update:
|
64
|
+
invalid: S'ha produït un error en desar l'enquesta.
|
65
|
+
success: Enquesta desada correctament.
|
66
|
+
last_activity:
|
67
|
+
new_survey: 'Nova enquesta:'
|
68
|
+
survey_confirmation_mailer:
|
69
|
+
confirmation:
|
70
|
+
body: Has respost amb èxit a l'enquesta %{questionnaire_title} dins de %{participatory_space}
|
71
|
+
subject: Confirmació de resposta al qüestionari %{questionnaire_title}
|
72
|
+
export_name: Respostes a l'enquesta
|
73
|
+
surveys:
|
74
|
+
answer:
|
75
|
+
invalid: S'ha produït un error en respondre l'enquesta.
|
76
|
+
spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
|
77
|
+
success: Enquesta resposta correctament.
|
data/config/locales/eu.yml
CHANGED
@@ -24,13 +24,13 @@ eu:
|
|
24
24
|
clean_after_publish: Ezabatu erantzuna galdetegia argitaratzean
|
25
25
|
ends_at: Erantzunak noiz arte onartuko
|
26
26
|
ends_at_help: Utzi zuriz data zehatzik ez badago
|
27
|
-
scope_id:
|
28
|
-
scopes_enabled:
|
27
|
+
scope_id: Eremua
|
28
|
+
scopes_enabled: Eremu gaituak
|
29
29
|
starts_at: Honen erantzunak onartuak
|
30
30
|
starts_at_help: Utzi zuriz data zehatzik ez badago
|
31
31
|
step:
|
32
32
|
allow_answers: Baimendu erantzunak
|
33
|
-
allow_unregistered: Baimendu erregistratu gabe dauden
|
33
|
+
allow_unregistered: Baimendu erregistratu gabe dauden parte-hartzailei galdetegia erantzutea
|
34
34
|
allow_unregistered_help: Aktibatuta badago ez da beharrezkoa saioa hastea inkesta erantzuteko. Honen ondorioz datu eskas edo fidagarritasun gutxikoak bildu litezke. Kontuz erabili! Izan ere, parte-hartzaile berak hainbat aldiz erantzun litzake nabigatzaile desberdinetatik edo nabigazio pribatuaren aukera erabiliz.
|
35
35
|
announcement: Oharra
|
36
36
|
events:
|
@@ -48,7 +48,7 @@ eu:
|
|
48
48
|
metrics:
|
49
49
|
survey_answers:
|
50
50
|
description: Parte-hartzaileek erantzundako inkesta kopurua
|
51
|
-
object:
|
51
|
+
object: inkestei erantzunak
|
52
52
|
title: Inkestei erantzunak
|
53
53
|
statistics:
|
54
54
|
answers_count: Erantzunak
|
@@ -72,6 +72,6 @@ eu:
|
|
72
72
|
export_name: Inkestaren erantzunak
|
73
73
|
surveys:
|
74
74
|
answer:
|
75
|
-
invalid:
|
75
|
+
invalid: Inkesta erantzutean errorea gertatu da.
|
76
76
|
spam_detected: Arazo bat izan da galdetegia erantzutean. Agian azkarregi joan zara, berriro egin dezakezu?
|
77
77
|
success: Inkesta ondo bete da.
|
data/config/locales/it.yml
CHANGED
@@ -31,6 +31,7 @@ it:
|
|
31
31
|
step:
|
32
32
|
allow_answers: Consenti risposte
|
33
33
|
allow_unregistered: Consenti agli utenti non registrati di rispondere al sondaggio
|
34
|
+
allow_unregistered_help: Se attivo, non sarà richiesto alcun login per rispondere al sondaggio. Ciò può portare a dati scarsi o inaffidabili e sarà più vulnerabile agli attacchi automatici. Usa questa opzione con cautela! Ricordati che un partecipante potrebbe rispondere più volte allo stesso sondaggio, utilizzando diversi browser o la funzione "navigazione privata" del suo browser web.
|
34
35
|
announcement: Annuncio
|
35
36
|
events:
|
36
37
|
surveys:
|
@@ -53,6 +54,9 @@ it:
|
|
53
54
|
answers_count: Risposte
|
54
55
|
surveys:
|
55
56
|
admin:
|
57
|
+
component:
|
58
|
+
actions:
|
59
|
+
answers_alert: Se pubblichi il componente, tutti i risultati saranno rimossi.
|
56
60
|
exports:
|
57
61
|
survey_user_answers: Risposte dei partecipanti al sondaggio
|
58
62
|
surveys:
|
data/decidim-surveys.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.version = Decidim::Surveys.version
|
11
11
|
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
12
|
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
-
s.license = "AGPL-3.0"
|
13
|
+
s.license = "AGPL-3.0-or-later"
|
14
14
|
s.homepage = "https://decidim.org"
|
15
15
|
s.metadata = {
|
16
16
|
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
@@ -9,6 +9,15 @@ module Decidim
|
|
9
9
|
field :created_at, Decidim::Core::DateTimeType, "The time this survey was created", null: true
|
10
10
|
field :updated_at, Decidim::Core::DateTimeType, "The time this survey was updated", null: true
|
11
11
|
field :questionnaire, Decidim::Forms::QuestionnaireType, "The questionnaire for this survey", null: true
|
12
|
+
|
13
|
+
def self.authorized?(object, context)
|
14
|
+
context[:survey] = object
|
15
|
+
context[:current_settings] = object.component.current_settings
|
16
|
+
|
17
|
+
super
|
18
|
+
rescue Decidim::PermissionAction::PermissionNotSetError
|
19
|
+
false
|
20
|
+
end
|
12
21
|
end
|
13
22
|
end
|
14
23
|
end
|
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Surveys
|
5
|
-
class SurveysType < Decidim::
|
6
|
-
implements Decidim::Core::ComponentInterface
|
7
|
-
|
5
|
+
class SurveysType < Decidim::Core::ComponentType
|
8
6
|
graphql_name "Surveys"
|
9
7
|
description "A surveys component of a participatory space."
|
10
8
|
|
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.28.
|
4
|
+
version: 0.28.6
|
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: 2025-04-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,84 +18,84 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.28.
|
21
|
+
version: 0.28.6
|
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.
|
28
|
+
version: 0.28.6
|
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.28.
|
35
|
+
version: 0.28.6
|
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.28.
|
42
|
+
version: 0.28.6
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-admin
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.28.
|
49
|
+
version: 0.28.6
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.28.
|
56
|
+
version: 0.28.6
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-dev
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.28.
|
63
|
+
version: 0.28.6
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.28.
|
70
|
+
version: 0.28.6
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-participatory_processes
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.28.
|
77
|
+
version: 0.28.6
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.28.
|
84
|
+
version: 0.28.6
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: decidim-templates
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.28.
|
91
|
+
version: 0.28.6
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.28.
|
98
|
+
version: 0.28.6
|
99
99
|
description: A surveys component for decidim's participatory spaces.
|
100
100
|
email:
|
101
101
|
- josepjaume@gmail.com
|
@@ -137,6 +137,9 @@ files:
|
|
137
137
|
- config/locales/ar.yml
|
138
138
|
- config/locales/bg-BG.yml
|
139
139
|
- config/locales/bg.yml
|
140
|
+
- config/locales/bn-BD.yml
|
141
|
+
- config/locales/bs-BA.yml
|
142
|
+
- config/locales/ca-IT.yml
|
140
143
|
- config/locales/ca.yml
|
141
144
|
- config/locales/cs-CZ.yml
|
142
145
|
- config/locales/cs.yml
|
@@ -249,7 +252,7 @@ files:
|
|
249
252
|
- lib/tasks/decidim_surveys_tasks.rake
|
250
253
|
homepage: https://decidim.org
|
251
254
|
licenses:
|
252
|
-
- AGPL-3.0
|
255
|
+
- AGPL-3.0-or-later
|
253
256
|
metadata:
|
254
257
|
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
255
258
|
documentation_uri: https://docs.decidim.org/
|