decidim-surveys 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: eec74fa6f8ccfc9c3e127a0130257a3cc42f7ebb3bd5479af2344645e5340304
4
- data.tar.gz: 91ed9616a84f33f1df00f18c187d593f62b0dfbe7bfd0007840344cbcee76fa3
2
+ SHA1:
3
+ metadata.gz: bee892b61b38c3bc3dbfc6c192755e3e3ff11681
4
+ data.tar.gz: c77c9f68e9be102d0fa5744c25c90d641c454693
5
5
  SHA512:
6
- metadata.gz: 660d025b1e3e26f2fe58e60daa16143105aef85d094090888598e6aa7e6a769f66957de14a343dacdb9f9ba8e0e9c5d44c2bf955c0950c745546c71411f701fa
7
- data.tar.gz: f55c8bb693d6807b598290990518f64471ea3a18d28ec6214c6b4f29efcb888781492d8bf4a00129cad841a4dbee62835dbbb97c49ddffb5e38b7590aa3f769c
6
+ metadata.gz: f1cb39bc75669d355251b31dd136cb7728e089a2e5e903055d9875227e756e479586ea660616dc02498dfa42eff8b877abd062d10577079b64628120d6665a2d
7
+ data.tar.gz: 379bb71ddce23c196c6e67692f75c0342f875a213f58942a79c799fa058e1fa2edda93eb9897a7ee46d11bcb6fa399d4154af9f7fe8f627ef7c1d1344a44cbf5
data/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
  The Surveys module adds one of the main features of Decidim: allows admins to contribute to a participatory process by creating surveys. Users can participate in the surveys answering their questions from the public page.
4
4
 
5
5
  ## Usage
6
+
6
7
  Surveys will be available as a Feature for a Participatory Process.
7
8
 
8
9
  ## Installation
10
+
9
11
  Add this line to your application's Gemfile:
10
12
 
11
13
  ```ruby
@@ -13,12 +15,15 @@ gem 'decidim-surveys'
13
15
  ```
14
16
 
15
17
  And then execute:
18
+
16
19
  ```bash
17
- $ bundle
20
+ bundle
18
21
  ```
19
22
 
20
23
  ## Contributing
24
+
21
25
  See [Decidim](https://github.com/decidim/decidim).
22
26
 
23
27
  ## License
28
+
24
29
  See [Decidim](https://github.com/decidim/decidim).
@@ -8,8 +8,8 @@ module Decidim
8
8
 
9
9
  feature_manifest_name "surveys"
10
10
 
11
- has_many :questions, -> { order(:position) }, class_name: "SurveyQuestion", foreign_key: "decidim_survey_id"
12
- has_many :answers, class_name: "SurveyAnswer", foreign_key: "decidim_survey_id"
11
+ has_many :questions, -> { order(:position) }, class_name: "SurveyQuestion", foreign_key: "decidim_survey_id", dependent: :destroy
12
+ has_many :answers, class_name: "SurveyAnswer", foreign_key: "decidim_survey_id", dependent: :destroy
13
13
 
14
14
  # Public: returns whether the survey questions can be modified or not.
15
15
  def questions_editable?
@@ -9,7 +9,7 @@
9
9
  <h2 class="section-heading"><%= translated_attribute survey.title %></h2>
10
10
  <div class="row">
11
11
  <div class="columns large-6 medium-centered lead">
12
- <%= sanitize translated_attribute survey.description %>
12
+ <%= decidim_sanitize translated_attribute survey.description %>
13
13
  </div>
14
14
  </div>
15
15
  </div>
@@ -71,7 +71,7 @@
71
71
  <div class="row column">
72
72
  <%= form.check_box :tos_agreement, label: t(".tos_agreement"), id: "survey_tos_agreement" %>
73
73
  <div class="tos-agreement-help-text help-text">
74
- <%= sanitize translated_attribute survey.tos %>
74
+ <%= decidim_sanitize translated_attribute survey.tos %>
75
75
  </div>
76
76
  </div>
77
77
 
@@ -21,7 +21,7 @@ nl:
21
21
  surveys:
22
22
  admin:
23
23
  exports:
24
- survey_user_answers: Survey gebruikers antwoorden
24
+ survey_user_answers: Enquête gebruikersantwoorden
25
25
  models:
26
26
  components:
27
27
  description: Beschrijving
@@ -29,41 +29,41 @@ nl:
29
29
  surveys:
30
30
  answer_option:
31
31
  answer_option: Antwoord optie
32
- remove_answer_option: Verwijder antwoord optie
33
- statement: Uitspraak
32
+ remove_answer_option: Antwoordoptie verwijderen
33
+ statement: Stelling
34
34
  edit:
35
35
  save: Opslaan
36
36
  title: Titel
37
37
  form:
38
- add_question: Voeg vraag toe
39
- already_answered_warning: Het onderzoek is al door sommige gebruikers beantwoord, zodat u de vragen niet kunt wijzigen.
38
+ add_question: Vraag toevoegen
39
+ already_answered_warning: Het onderzoek is al door sommige gebruikers beantwoord, hierdoor kunt u de vragen niet meer bewerken.
40
40
  question:
41
41
  add_answer_option: Voeg antwoord optie toe
42
42
  question: Vraag
43
43
  remove_question: Verwijder vraag
44
- statement: Uitspraak
44
+ statement: Stelling
45
45
  update:
46
46
  invalid: Er zijn fouten geweest bij het opslaan van de enquête.
47
- success: Survey is succesvol opgeslagen.
47
+ success: Enquête succesvol opgeslagen.
48
48
  question_types:
49
49
  long_answer: Lang antwoord
50
- multiple_option: Meerdere optie
50
+ multiple_option: Meerdere opties
51
51
  short_answer: Kort antwoord
52
- single_option: Enkele optie
52
+ single_option: Enkelvoudige optie
53
53
  surveys:
54
54
  answer:
55
- invalid: Er zijn fouten geweest bij het beantwoorden van de enquête.
56
- success: Survey beantwoord met succes.
55
+ invalid: Er zijn fouten opgetreden bij het opslaan van de pagina.
56
+ success: Enquête met succes beantwoord.
57
57
  show:
58
58
  answer_survey:
59
- anonymous_user_message: <a href="%{sign_in_link}">Meld u aan bij uw account</a> of <a href="%{sign_up_link}">sign up</a> om de enquête te beantwoorden.
60
- title: Beantwoord het onderzoek
61
- are_you_sure: Deze actie kan niet ongedaan gemaakt worden en u kunt uw antwoorden niet wijzigen. Weet je het zeker?
62
- submit: voorleggen
59
+ anonymous_user_message: <a href="%{sign_in_link}">Meld u aan met uw account</a> of <a href="%{sign_up_link}">schrijf u in</a> om uw reactie toe te voegen.
60
+ title: Antwoorden op de enquête
61
+ are_you_sure: Deze actie kan niet ongedaan gemaakt worden en u kunt uw antwoorden niet wijzigen. Weet u het zeker?
62
+ submit: Verzenden
63
63
  survey_answered:
64
64
  body: U heeft deze enquête al beantwoord.
65
- title: Survey beantwoordde
65
+ title: Enquête beantwoord
66
66
  survey_closed:
67
- body: Het onderzoek is gesloten en kan niet worden beantwoord.
68
- title: Survey gesloten
69
- tos_agreement: Door deel te nemen aan dit onderzoek accepteer je de gebruiksvoorwaarden
67
+ body: De enquête is gesloten en kan niet worden beantwoord.
68
+ title: Enquête gesloten
69
+ tos_agreement: Door deel te nemen aan dit onderzoek accepteert u de gebruiksvoorwaarden
@@ -0,0 +1,69 @@
1
+ pt:
2
+ activemodel:
3
+ attributes:
4
+ survey_answer:
5
+ body: Resposta
6
+ survey_question:
7
+ mandatory: Obrigatório
8
+ question_type: Tipo
9
+ decidim:
10
+ features:
11
+ surveys:
12
+ actions:
13
+ answer: Responda
14
+ name: Pesquisa
15
+ settings:
16
+ global:
17
+ announcement: Anúncio
18
+ step:
19
+ allow_answers: Permitir respostas
20
+ announcement: Anúncio
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Avalie as respostas dos usuários
25
+ models:
26
+ components:
27
+ description: Descrição
28
+ tos: Termos de serviço
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Opção de resposta
32
+ remove_answer_option: Eliminar opção de resposta
33
+ statement: Declaração
34
+ edit:
35
+ save: Salve 
36
+ title: Título
37
+ form:
38
+ add_question: Adicionar pergunta
39
+ already_answered_warning: A pesquisa já foi respondida por alguns usuários para que você não possa modificar suas perguntas.
40
+ question:
41
+ add_answer_option: Adicionar opção de resposta
42
+ question: Questão
43
+ remove_question: Remova a pergunta
44
+ statement: Declaração
45
+ update:
46
+ invalid: Houve erros ao salvar a pesquisa.
47
+ success: Pesquisa salva com sucesso.
48
+ question_types:
49
+ long_answer: Resposta longa
50
+ multiple_option: Opção múltipla
51
+ short_answer: Resposta curta
52
+ single_option: Opção única
53
+ surveys:
54
+ answer:
55
+ invalid: Houve erros ao responder a pesquisa.
56
+ success: Pesquisa respondida com sucesso.
57
+ show:
58
+ answer_survey:
59
+ anonymous_user_message: <a href="%{sign_in_link}">Inscreva-se com sua conta</a> ou <a href="%{sign_up_link}">sign up</a> para responder a pesquisa.
60
+ title: Responda a pesquisa
61
+ are_you_sure: Esta ação não pode ser desfeita e você não poderá editar suas respostas. Você tem certeza?
62
+ submit: Enviar
63
+ survey_answered:
64
+ body: Você já respondeu esta pesquisa.
65
+ title: Pesquisa respondida
66
+ survey_closed:
67
+ body: A pesquisa está fechada e não pode ser respondida.
68
+ title: Pesquisa fechada
69
+ tos_agreement: Ao participar desta pesquisa você aceita seus Termos de Serviço
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- FactoryGirl.define do
3
+ require "decidim/core/test/factories"
4
+ require "decidim/participatory_processes/test/factories"
5
+
6
+ FactoryBot.define do
4
7
  factory :surveys_feature, parent: :feature do
5
8
  name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name }
6
9
  manifest_name :surveys
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-surveys version.
5
5
  module Surveys
6
6
  def self.version
7
- "0.7.4"
7
+ "0.8.0"
8
8
  end
9
9
  end
10
10
  end
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.7.4
4
+ version: 0.8.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: 2017-11-23 00:00:00.000000000 Z
13
+ date: 2017-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.4
21
+ version: 0.8.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.7.4
28
+ version: 0.8.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jquery-tmpl-rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -41,47 +41,47 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.1.0
43
43
  - !ruby/object:Gem::Dependency
44
- name: decidim-dev
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.7.4
49
+ version: 0.8.0
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.7.4
56
+ version: 0.8.0
57
57
  - !ruby/object:Gem::Dependency
58
- name: decidim-admin
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.7.4
63
+ version: 0.8.0
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.7.4
70
+ version: 0.8.0
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.7.4
77
+ version: 0.8.0
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.7.4
84
+ version: 0.8.0
85
85
  description: A component for decidim's participatory processes.
86
86
  email:
87
87
  - josepjaume@gmail.com
@@ -134,6 +134,7 @@ files:
134
134
  - config/locales/it.yml
135
135
  - config/locales/nl.yml
136
136
  - config/locales/pl.yml
137
+ - config/locales/pt.yml
137
138
  - config/locales/ru.yml
138
139
  - config/locales/uk.yml
139
140
  - db/migrate/20170511092231_create_decidim_surveys.rb
@@ -171,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
172
  version: '0'
172
173
  requirements: []
173
174
  rubyforge_project:
174
- rubygems_version: 2.7.1
175
+ rubygems_version: 2.6.13
175
176
  signing_key:
176
177
  specification_version: 4
177
178
  summary: A component for decidim's participatory processes.