decidim-surveys 0.28.0.rc5 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/decidim/surveys/admin/surveys/edit.html.erb +2 -2
- data/config/locales/ca.yml +2 -2
- data/config/locales/es.yml +2 -2
- data/config/locales/fr-CA.yml +2 -0
- data/config/locales/fr.yml +1 -1
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/ja.yml +8 -0
- data/config/locales/pl.yml +12 -1
- data/config/locales/pt-BR.yml +4 -0
- data/decidim-surveys.gemspec +42 -0
- data/lib/decidim/surveys/engine.rb +0 -1
- data/lib/decidim/surveys/test/factories.rb +10 -4
- data/lib/decidim/surveys/version.rb +1 -1
- metadata +29 -28
- data/config/environment.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 566a7acb40f7ed419771192fef02b336ddb202e984b77dcab645bd1a06fd818e
|
4
|
+
data.tar.gz: d72c27682edefe371745fc0f2a70ef59bc90fb9e4e2782a8b579ace3f4600e64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5906f2ce949262c179ee47d9a6835a548313e7adaac5ee2c8adb9b33616de70a6070f4da80b3bc67b383e9473e4d46a7055ae190e9e4fb9b41406e2c86f69855
|
7
|
+
data.tar.gz: ba5f29b239a1d39e1c09742be86e9a30b35556b86244f3864e9dfc8b5b20ae17a17d07b6f292d8b8e24a6ba7072da113175a5b9a2abbd7dc2f5ba1033b816328
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% else %>
|
6
6
|
|
7
7
|
<div class="item_show__header">
|
8
|
-
<
|
8
|
+
<h1 class="item_show__header-title">
|
9
9
|
<%= edit_questionnaire_title %>
|
10
10
|
|
11
11
|
<% if allowed_to? :preview, :questionnaire %>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<% end %>
|
22
22
|
<%= render partial: "decidim/admin/components/resource_action" %>
|
23
23
|
|
24
|
-
</
|
24
|
+
</h1>
|
25
25
|
</div>
|
26
26
|
|
27
27
|
<div class="item__edit item__edit-1col">
|
data/config/locales/ca.yml
CHANGED
@@ -37,12 +37,12 @@ ca:
|
|
37
37
|
surveys:
|
38
38
|
survey_closed:
|
39
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 %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
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
41
|
email_subject: S'ha acabat una enquesta a %{participatory_space_title}
|
42
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
43
|
survey_opened:
|
44
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 %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
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
46
|
email_subject: Una nova enquesta a %{participatory_space_title}
|
47
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
48
|
metrics:
|
data/config/locales/es.yml
CHANGED
@@ -37,12 +37,12 @@ es:
|
|
37
37
|
surveys:
|
38
38
|
survey_closed:
|
39
39
|
email_intro: La encuesta %{resource_title} en %{participatory_space_title} se ha cerrado.
|
40
|
-
email_outro: Has recibido esta notificación porqué estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
40
|
+
email_outro: Has recibido esta notificación porqué estás siguiendo el espacio "%{participatory_space_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
41
41
|
email_subject: Ha terminado una encuesta en %{participatory_space_title}
|
42
42
|
notification_title: La encuesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ha terminado.
|
43
43
|
survey_opened:
|
44
44
|
email_intro: 'Ya está abierta la encuesta %{resource_title} en %{participatory_space_title}. Puedes participar desde esta página:'
|
45
|
-
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
45
|
+
email_outro: Has recibido esta notificación porque estás siguiendo el espacio "%{participatory_space_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
46
46
|
email_subject: Nueva encuesta en %{participatory_space_title}
|
47
47
|
notification_title: Ya está abierta la encuesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
|
48
48
|
metrics:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -68,6 +68,8 @@ fr-CA:
|
|
68
68
|
survey_confirmation_mailer:
|
69
69
|
confirmation:
|
70
70
|
body: Vous avez répondu avec succès à l'enquête %{questionnaire_title} dans %{participatory_space}
|
71
|
+
subject: Vous avez bien répondu au questionnaire %{questionnaire_title}
|
72
|
+
export_name: Réponses au questionnaire
|
71
73
|
surveys:
|
72
74
|
answer:
|
73
75
|
invalid: Votre réponse à l'enquête comporte des erreurs.
|
data/config/locales/fr.yml
CHANGED
@@ -68,7 +68,7 @@ fr:
|
|
68
68
|
survey_confirmation_mailer:
|
69
69
|
confirmation:
|
70
70
|
body: Vous avez répondu avec succès à l'enquête %{questionnaire_title} dans %{participatory_space}
|
71
|
-
subject:
|
71
|
+
subject: Vous avez bien répondu au questionnaire %{questionnaire_title}
|
72
72
|
export_name: Réponses au questionnaire
|
73
73
|
surveys:
|
74
74
|
answer:
|
@@ -0,0 +1 @@
|
|
1
|
+
he:
|
data/config/locales/ja.yml
CHANGED
@@ -52,6 +52,9 @@ ja:
|
|
52
52
|
answers_count: 回答
|
53
53
|
surveys:
|
54
54
|
admin:
|
55
|
+
component:
|
56
|
+
actions:
|
57
|
+
answers_alert: コンポーネントを公開すると、すべての結果が削除されます。
|
55
58
|
exports:
|
56
59
|
survey_user_answers: アンケート参加者の回答
|
57
60
|
surveys:
|
@@ -60,6 +63,11 @@ ja:
|
|
60
63
|
success: アンケートを保存しました。
|
61
64
|
last_activity:
|
62
65
|
new_survey: '新しいアンケート:'
|
66
|
+
survey_confirmation_mailer:
|
67
|
+
confirmation:
|
68
|
+
body: '%{participatory_space} 内のアンケート %{questionnaire_title} に回答しました'
|
69
|
+
subject: アンケート %{questionnaire_title} 回答確認
|
70
|
+
export_name: アンケートの回答
|
63
71
|
surveys:
|
64
72
|
answer:
|
65
73
|
invalid: アンケートの回答に問題がありました。
|
data/config/locales/pl.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
pl:
|
3
3
|
activemodel:
|
4
4
|
models:
|
5
|
-
decidim/surveys/closed_survey_event: Ankieta
|
5
|
+
decidim/surveys/closed_survey_event: Ankieta zakończona
|
6
6
|
decidim/surveys/opened_survey_event: Rozpoczęto ankietę
|
7
7
|
activerecord:
|
8
8
|
models:
|
@@ -35,6 +35,7 @@ pl:
|
|
35
35
|
step:
|
36
36
|
allow_answers: Pozwól na wypełnianie
|
37
37
|
allow_unregistered: Pozwól niezarejestrowanym użytkownikom wypełnić ankietę
|
38
|
+
allow_unregistered_help: Jeśli to ustawienie jest w użyciu, logowanie nie jest wymagane aby odpowiedzieć na ankietę. Może to prowadzić do słabych lub nierzetelnych danych i będzie bardziej podatne na zautomatyzowane ataki. Należy zachować ostrożność! Pamiętaj, że uczestnik może odpowiedzieć na to samo badanie wielokrotnie, korzystając z różnych przeglądarek lub funkcji "prywatne przeglądanie" swojej przeglądarki internetowej.
|
38
39
|
announcement: Ogłoszenie
|
39
40
|
events:
|
40
41
|
surveys:
|
@@ -57,13 +58,23 @@ pl:
|
|
57
58
|
answers_count: Odpowiedzi
|
58
59
|
surveys:
|
59
60
|
admin:
|
61
|
+
component:
|
62
|
+
actions:
|
63
|
+
answers_alert: Po opublikowaniu komponentu wszystkie wyniki zostaną usunięte.
|
60
64
|
exports:
|
61
65
|
survey_user_answers: Odpowiedzi użytkowników na pytania z ankiety
|
62
66
|
surveys:
|
63
67
|
update:
|
64
68
|
invalid: Podczas zapisywania ankiety wystąpił błąd.
|
65
69
|
success: Ankieta została zapisana pomyślnie.
|
70
|
+
last_activity:
|
71
|
+
new_survey: 'Nowa ankieta:'
|
72
|
+
survey_confirmation_mailer:
|
73
|
+
confirmation:
|
74
|
+
body: Pomyślnie udzielono odpowiedzi na ankietę %{questionnaire_title} w ramach %{participatory_space}
|
75
|
+
export_name: Odpowiedzi udzielone w ankiecie
|
66
76
|
surveys:
|
67
77
|
answer:
|
68
78
|
invalid: Podczas wypełniania ankiety wystąpił błąd.
|
79
|
+
spam_detected: Wystąpił błąd podczas wypełniania formularza. Być może zostało to zrobione zbyt szybko, czy możesz spróbować ponownie?
|
69
80
|
success: Twoja ankieta została wypełniona.
|
data/config/locales/pt-BR.yml
CHANGED
@@ -31,6 +31,7 @@ pt-BR:
|
|
31
31
|
step:
|
32
32
|
allow_answers: Permitir respostas
|
33
33
|
allow_unregistered: Permitir que usuários não registrados respondam à pesquisa
|
34
|
+
allow_unregistered_help: Se ativo, nenhum login será necessário para responder a pesquisa. Isso pode levar a dados ruins ou não confiáveis e será mais vulnerável a ataques automatizados. Usar com cuidado! Lembre-se de que um usuário pode responder à mesma pesquisa várias vezes, usando navegadores diferentes ou a função "navegação privada" de seu navegador.
|
34
35
|
announcement: Anúncio
|
35
36
|
events:
|
36
37
|
surveys:
|
@@ -53,6 +54,9 @@ pt-BR:
|
|
53
54
|
answers_count: Respostas
|
54
55
|
surveys:
|
55
56
|
admin:
|
57
|
+
component:
|
58
|
+
actions:
|
59
|
+
answers_alert: Se você publicar o componente, todos os resultados serão removidos.
|
56
60
|
exports:
|
57
61
|
survey_user_answers: Avalie as respostas dos usuários
|
58
62
|
surveys:
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/surveys/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Surveys.version
|
11
|
+
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
|
+
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://decidim.org"
|
15
|
+
s.metadata = {
|
16
|
+
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
17
|
+
"documentation_uri" => "https://docs.decidim.org/",
|
18
|
+
"funding_uri" => "https://opencollective.com/decidim",
|
19
|
+
"homepage_uri" => "https://decidim.org",
|
20
|
+
"source_code_uri" => "https://github.com/decidim/decidim"
|
21
|
+
}
|
22
|
+
s.required_ruby_version = "~> 3.1.0"
|
23
|
+
|
24
|
+
s.name = "decidim-surveys"
|
25
|
+
s.summary = "Decidim surveys module"
|
26
|
+
s.description = "A surveys component for decidim's participatory spaces."
|
27
|
+
|
28
|
+
s.files = Dir.chdir(__dir__) do
|
29
|
+
`git ls-files -z`.split("\x0").select do |f|
|
30
|
+
(File.expand_path(f) == __FILE__) ||
|
31
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
s.add_dependency "decidim-core", Decidim::Surveys.version
|
36
|
+
s.add_dependency "decidim-forms", Decidim::Surveys.version
|
37
|
+
|
38
|
+
s.add_development_dependency "decidim-admin", Decidim::Surveys.version
|
39
|
+
s.add_development_dependency "decidim-dev", Decidim::Surveys.version
|
40
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Surveys.version
|
41
|
+
s.add_development_dependency "decidim-templates", Decidim::Surveys.version
|
42
|
+
end
|
@@ -7,13 +7,19 @@ require "decidim/participatory_processes/test/factories"
|
|
7
7
|
|
8
8
|
FactoryBot.define do
|
9
9
|
factory :surveys_component, parent: :component do
|
10
|
-
|
10
|
+
transient do
|
11
|
+
skip_injection { false }
|
12
|
+
end
|
13
|
+
name { generate_component_name(participatory_space.organization.available_locales, :surveys, skip_injection:) }
|
11
14
|
manifest_name { :surveys }
|
12
|
-
participatory_space { create(:participatory_process, :with_steps) }
|
15
|
+
participatory_space { create(:participatory_process, :with_steps, skip_injection:) }
|
13
16
|
end
|
14
17
|
|
15
18
|
factory :survey, class: "Decidim::Surveys::Survey" do
|
16
|
-
|
17
|
-
|
19
|
+
transient do
|
20
|
+
skip_injection { false }
|
21
|
+
end
|
22
|
+
questionnaire { build(:questionnaire, :with_questions, skip_injection:) }
|
23
|
+
component { build(:surveys_component, skip_injection:) }
|
18
24
|
end
|
19
25
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 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.1
|
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.1
|
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.1
|
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.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
|
-
name: decidim-
|
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.
|
50
|
-
type: :
|
49
|
+
version: 0.28.1
|
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.1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
|
-
name: decidim-
|
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.1
|
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.1
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name: decidim-
|
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.1
|
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.1
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
name: decidim-
|
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.1
|
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.1
|
99
99
|
description: A surveys component for decidim's participatory spaces.
|
100
100
|
email:
|
101
101
|
- josepjaume@gmail.com
|
@@ -132,7 +132,6 @@ files:
|
|
132
132
|
- app/views/decidim/surveys/survey_confirmation_mailer/confirmation.html.erb
|
133
133
|
- app/views/decidim/surveys/surveys/no_permission.html.erb
|
134
134
|
- config/assets.rb
|
135
|
-
- config/environment.rb
|
136
135
|
- config/locales/am-ET.yml
|
137
136
|
- config/locales/ar-SA.yml
|
138
137
|
- config/locales/ar.yml
|
@@ -165,6 +164,7 @@ files:
|
|
165
164
|
- config/locales/ga-IE.yml
|
166
165
|
- config/locales/gl.yml
|
167
166
|
- config/locales/gn-PY.yml
|
167
|
+
- config/locales/he-IL.yml
|
168
168
|
- config/locales/hr-HR.yml
|
169
169
|
- config/locales/hr.yml
|
170
170
|
- config/locales/hu.yml
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- db/migrate/20200610090725_remove_survey_answers.rb
|
235
235
|
- db/migrate/20200610090845_remove_survey_questions.rb
|
236
236
|
- db/migrate/20200610105927_remove_survey_columns.rb
|
237
|
+
- decidim-surveys.gemspec
|
237
238
|
- lib/decidim/api/survey_type.rb
|
238
239
|
- lib/decidim/api/surveys_type.rb
|
239
240
|
- lib/decidim/surveys.rb
|
@@ -255,23 +256,23 @@ metadata:
|
|
255
256
|
funding_uri: https://opencollective.com/decidim
|
256
257
|
homepage_uri: https://decidim.org
|
257
258
|
source_code_uri: https://github.com/decidim/decidim
|
258
|
-
post_install_message:
|
259
|
+
post_install_message:
|
259
260
|
rdoc_options: []
|
260
261
|
require_paths:
|
261
262
|
- lib
|
262
263
|
required_ruby_version: !ruby/object:Gem::Requirement
|
263
264
|
requirements:
|
264
|
-
- - "
|
265
|
+
- - "~>"
|
265
266
|
- !ruby/object:Gem::Version
|
266
|
-
version:
|
267
|
+
version: 3.1.0
|
267
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
269
|
requirements:
|
269
|
-
- - "
|
270
|
+
- - ">="
|
270
271
|
- !ruby/object:Gem::Version
|
271
|
-
version:
|
272
|
+
version: '0'
|
272
273
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
274
|
-
signing_key:
|
274
|
+
rubygems_version: 3.5.9
|
275
|
+
signing_key:
|
275
276
|
specification_version: 4
|
276
277
|
summary: Decidim surveys module
|
277
278
|
test_files: []
|
data/config/environment.rb
DELETED