decidim-surveys 0.5.1 → 0.6.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
2
  SHA1:
3
- metadata.gz: 3e5c8a3fb0d5b448b6aaa968b6ce573fd6be05ea
4
- data.tar.gz: a340e5ff568dc753b982b1d98626e9a845f11cfa
3
+ metadata.gz: 2559a4147e70fbb8a4b04268a7344c1647f735e8
4
+ data.tar.gz: 05543f491e030dd7e58c2f3289dc1353968ca8bc
5
5
  SHA512:
6
- metadata.gz: 949af91a2d747dbf44c74d2368338909897207fedaaffa0af9de45f6fb373feb6aa06215cf9c2731e58af3ea33266cb7782ba0c755812695b7a724df19300780
7
- data.tar.gz: 91e9ec6198642ce77e3977cc9d32146c2efc2b76ab786358769f82eceb628305a57bc711e0fc541318c251038b24e845e12c8b46a24c8d5dc8df8b9c604d2df8
6
+ metadata.gz: c2ed6ac68dd334c1da2e2e2964b2d5fc4449f054acfedabbb9881cf746e731cc124371b6f16e0fe0c42eeb0d8957f750d28649e1e013e6f61b2b07b86e4a3477
7
+ data.tar.gz: 62732cfb3e8405371dd18079f0bc42bf3c886d5f6cd24f84afa2e0da664289e3de5d3a02b68668623b537820b4613d0b376653d69e33c8cb79c7cdc6460f3017
@@ -1 +1,8 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02"><path d="M373,545.54a18,18,0,1,1,18-18A18,18,0,0,1,373,545.54Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,373,511.53Z" transform="translate(-354.99 -509.53)"/><path d="M377.73,536.41h-9.46a1,1,0,1,1,0-2h9.46A1,1,0,0,1,377.73,536.41Z" transform="translate(-354.99 -509.53)"/><path d="M375,525.54h-6.73a1,1,0,1,1,0-2H375A1,1,0,1,1,375,525.54Z" transform="translate(-354.99 -509.53)"/><path d="M375,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,375,535.41Z" transform="translate(-354.99 -509.53)"/><path d="M373,523a3,3,0,1,1,3-3A3,3,0,0,1,373,523Zm0-4a1,1,0,1,0,1,1A1,1,0,0,0,373,519Z" transform="translate(-354.99 -509.53)"/><path d="M371,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,371,535.41Z" transform="translate(-354.99 -509.53)"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02">
2
+ <path d="M373,545.54a18,18,0,1,1,18-18A18,18,0,0,1,373,545.54Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,373,511.53Z" transform="translate(-354.99 -509.53)"/>
3
+ <path d="M377.73,536.41h-9.46a1,1,0,1,1,0-2h9.46A1,1,0,0,1,377.73,536.41Z" transform="translate(-354.99 -509.53)"/>
4
+ <path d="M375,525.54h-6.73a1,1,0,1,1,0-2H375A1,1,0,1,1,375,525.54Z" transform="translate(-354.99 -509.53)"/>
5
+ <path d="M375,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,375,535.41Z" transform="translate(-354.99 -509.53)"/>
6
+ <path d="M373,523a3,3,0,1,1,3-3A3,3,0,0,1,373,523Zm0-4a1,1,0,1,0,1,1A1,1,0,0,0,373,519Z" transform="translate(-354.99 -509.53)"/>
7
+ <path d="M371,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,371,535.41Z" transform="translate(-354.99 -509.53)"/>
8
+ </svg>
@@ -16,10 +16,6 @@ module Decidim
16
16
  "${tabsId}"
17
17
  end
18
18
 
19
- def label_for_question(survey, _question)
20
- survey.questions_editable? ? "#{icon("move")} #{t(".question")}".html_safe : t(".question")
21
- end
22
-
23
19
  def mandatory_id_for_question(question)
24
20
  return "survey_questions_#{question.id}_mandatory" if question.persisted?
25
21
  "${tabsId}_mandatory"
@@ -10,7 +10,7 @@ module Decidim
10
10
  super
11
11
 
12
12
  can :manage, Survey do |survey|
13
- can_manage_process?(survey.feature.participatory_process)
13
+ can_manage_process?(survey.feature.participatory_space)
14
14
  end
15
15
  end
16
16
  end
@@ -1,7 +1,14 @@
1
1
  <div class="card survey-question" id="survey-question-<%= question.id %>-field">
2
2
  <div class="card-divider question-divider">
3
3
  <h2 class="card-title">
4
- <span><%= label_for_question(survey, question) %></span>
4
+ <span>
5
+ <% if survey.questions_editable? %>
6
+ <%== "#{icon("move")} #{t(".question")}" %>
7
+ <% else %>
8
+ <%= t(".question") %>
9
+ <% end %>
10
+ </span>
11
+
5
12
  <% if survey.questions_editable? %>
6
13
  <button class="button small alert hollow remove-question button--title"><%= t('.remove_question') %></button>
7
14
  <% end %>
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -13,13 +14,13 @@ ca:
13
14
  answer: Resposta
14
15
  name: Enquesta
15
16
  settings:
17
+ global:
18
+ announcement: Avís
16
19
  step:
17
20
  allow_answers: Permetre respostes
21
+ announcement: Avís
18
22
  surveys:
19
23
  admin:
20
- application_helper:
21
- label_for_question:
22
- question: Pregunta
23
24
  exports:
24
25
  survey_user_answers: Respostes dels usuaris
25
26
  models:
@@ -21,9 +21,6 @@ en:
21
21
  announcement: Announcement
22
22
  surveys:
23
23
  admin:
24
- application_helper:
25
- label_for_question:
26
- question: Question
27
24
  exports:
28
25
  survey_user_answers: Survey user answers
29
26
  models:
@@ -40,8 +37,7 @@ en:
40
37
  title: Title
41
38
  form:
42
39
  add_question: Add question
43
- already_answered_warning: The survey is already answered by some users
44
- so you cannot modify its questions.
40
+ already_answered_warning: The survey is already answered by some users so you cannot modify its questions.
45
41
  question:
46
42
  add_answer_option: Add answer option
47
43
  question: Question
@@ -61,11 +57,9 @@ en:
61
57
  success: Survey answered successfully.
62
58
  show:
63
59
  answer_survey:
64
- anonymous_user_message: <a href="%{sign_in_link}">Sign in with your account</a>
65
- or <a href="%{sign_up_link}">sign up</a> to answer the survey.
60
+ anonymous_user_message: <a href="%{sign_in_link}">Sign in with your account</a> or <a href="%{sign_up_link}">sign up</a> to answer the survey.
66
61
  title: Answer the survey
67
- are_you_sure: This action cannot be undone and you will not be able to edit
68
- your answers. Are you sure?
62
+ are_you_sure: This action cannot be undone and you will not be able to edit your answers. Are you sure?
69
63
  submit: Submit
70
64
  survey_answered:
71
65
  body: You have already answered this survey.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es:
2
3
  activemodel:
3
4
  attributes:
@@ -13,13 +14,13 @@ es:
13
14
  answer: Respuesta
14
15
  name: Encuesta
15
16
  settings:
17
+ global:
18
+ announcement: Aviso
16
19
  step:
17
20
  allow_answers: Permitir respuestas
21
+ announcement: Aviso
18
22
  surveys:
19
23
  admin:
20
- application_helper:
21
- label_for_question:
22
- question: Pregunta
23
24
  exports:
24
25
  survey_user_answers: Respuestas de los usuarios de la encuesta
25
26
  models:
@@ -17,11 +17,9 @@ eu:
17
17
  announcement: Oharra
18
18
  step:
19
19
  allow_answers: Baimendu erantzunak
20
+ announcement: Oharra
20
21
  surveys:
21
22
  admin:
22
- application_helper:
23
- label_for_question:
24
- question: Galdera
25
23
  exports:
26
24
  survey_user_answers: Inkesta erabiltzaile erantzunak
27
25
  models:
@@ -1,5 +1,69 @@
1
1
  fi:
2
+ activemodel:
3
+ attributes:
4
+ survey_answer:
5
+ body: Vastaa
6
+ survey_question:
7
+ mandatory: Pakollinen
8
+ question_type: Tyyppi
2
9
  decidim:
3
10
  features:
4
11
  surveys:
12
+ actions:
13
+ answer: Vastaa
5
14
  name: Tutkimus
15
+ settings:
16
+ global:
17
+ announcement: Ilmoitus
18
+ step:
19
+ allow_answers: Salli vastaukset
20
+ announcement: Ilmoitus
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Kyselyn vastaukset
25
+ models:
26
+ components:
27
+ description: Kuvaus
28
+ tos: Käyttöehdot
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Vastausvaihtoehto
32
+ remove_answer_option: Poista vastausvaihtoehto
33
+ statement: Kysymysasettelu
34
+ edit:
35
+ save: Tallenna
36
+ title: Otsikko
37
+ form:
38
+ add_question: Lisää kysymys
39
+ already_answered_warning: Jotkut käyttäjät ovat jo vastanneet tähän kyselyyn, minkä takia et voi muokata sen kysymyksiä.
40
+ question:
41
+ add_answer_option: Lisää vastausvaihtoehto
42
+ question: Kysymys
43
+ remove_question: Poista kysymys
44
+ statement: Kysymysasettelu
45
+ update:
46
+ invalid: Kyselyn tallennus epäonnistui.
47
+ success: Kysely tallennettu onnistuneesti.
48
+ question_types:
49
+ long_answer: Pitkä vastaus
50
+ multiple_option: Useita vaihtoehtoja
51
+ short_answer: Lyhyt vastaus
52
+ single_option: Yksi vaihtoehto
53
+ surveys:
54
+ answer:
55
+ invalid: Kyselyyn vastaaminen epäonnistui.
56
+ success: Kyselyyn vastattu onnistuneesti.
57
+ show:
58
+ answer_survey:
59
+ anonymous_user_message: <a href="%{sign_in_link}">Kirjaudu sisään tililläsi</a> tai <a href="%{sign_up_link}">rekisteröidy</a> vastataksesi kyselyyn.
60
+ title: Vastaa kyselyyn
61
+ are_you_sure: Tätä toimintoa ei voi peruuttaa eikä vastauksia voi muokata tämän jälkeen. Oletko varma?
62
+ submit: Lähetä
63
+ survey_answered:
64
+ body: Olet jo vastannut tähän kyselyyn.
65
+ title: Kyselyyn vastattu
66
+ survey_closed:
67
+ body: Kysely on suljettu ja siihen ei voi vastata.
68
+ title: Kysely suljettu
69
+ tos_agreement: Osallistumalla tähän kyselyyn hyväksyt sen käyttöehdot
@@ -5,7 +5,7 @@ fr:
5
5
  body: Répondre
6
6
  survey_question:
7
7
  mandatory: Requis
8
- question_type: Type de question
8
+ question_type: Type de contenus
9
9
  decidim:
10
10
  features:
11
11
  surveys:
@@ -13,13 +13,13 @@ fr:
13
13
  answer: Répondre
14
14
  name: Enquête
15
15
  settings:
16
+ global:
17
+ announcement: Annonce
16
18
  step:
17
19
  allow_answers: Autoriser les réponses
20
+ announcement: Annonce
18
21
  surveys:
19
22
  admin:
20
- application_helper:
21
- label_for_question:
22
- question: Question
23
23
  exports:
24
24
  survey_user_answers: Réponses des participants à l'enquête
25
25
  models:
@@ -30,6 +30,7 @@ fr:
30
30
  answer_option:
31
31
  answer_option: Option de réponse
32
32
  remove_answer_option: Supprimer l'option de réponse
33
+ statement: Déclaration
33
34
  edit:
34
35
  save: Sauvegarder
35
36
  title: Titre
@@ -3,3 +3,67 @@ it:
3
3
  attributes:
4
4
  survey_answer:
5
5
  body: Risposta
6
+ survey_question:
7
+ mandatory: Obbligatorio
8
+ question_type: Tipo
9
+ decidim:
10
+ features:
11
+ surveys:
12
+ actions:
13
+ answer: Risposta
14
+ name: Questionario
15
+ settings:
16
+ global:
17
+ announcement: Annuncio
18
+ step:
19
+ allow_answers: Consentire risposte
20
+ announcement: Annuncio
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Risposte degli utente al questionario
25
+ models:
26
+ components:
27
+ description: Descrizione
28
+ tos: Termini del servizio
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Opzione di risposta
32
+ remove_answer_option: Rimuovere l'opzione di risposta
33
+ statement: Dichiarazione
34
+ edit:
35
+ save: Salva
36
+ title: Titolo
37
+ form:
38
+ add_question: Aggiungi domanda
39
+ already_answered_warning: Dato che alcuni utenti hanno già risposto al questionario, non è più possibile modificare le domande.
40
+ question:
41
+ add_answer_option: Aggiungre opzione di risposta
42
+ question: Domanda
43
+ remove_question: Rimuovere la domanda
44
+ statement: Dichiarazione
45
+ update:
46
+ invalid: Ci sono stati degli errori durante il salvataggio dell'indagine.
47
+ success: Il questionario è stato salvato correttamente.
48
+ question_types:
49
+ long_answer: Risposta lunga
50
+ multiple_option: Opzione multipla
51
+ short_answer: Risposta breve
52
+ single_option: Opzione unica
53
+ surveys:
54
+ answer:
55
+ invalid: Ci sono stati degli errori durante il salvataggio dell'indagine.
56
+ success: Il questionario è stato salvato correttamente.
57
+ show:
58
+ answer_survey:
59
+ anonymous_user_message: <a href="%{sign_in_link}">Entra con il tuo account</a> or <a href="%{sign_up_link}">Registrati</a> per poter commentare.
60
+ title: Rispondere al questionario
61
+ are_you_sure: Questa azione non potrà essere cancellata e non sarà più possibile modificare le risposte. Sei sicuro?
62
+ submit: Invia
63
+ survey_answered:
64
+ body: Hai già risposto a questo sondaggio, grazie.
65
+ title: Questionario risposto
66
+ survey_closed:
67
+ body: L'indagine è chiusa e non è più possibile rispondere.
68
+ title: Questionario chiuso
69
+ tos_agreement: Partecipando a questo sondaggio, accetti le sue condizioni di servizio
@@ -3,3 +3,67 @@ nl:
3
3
  attributes:
4
4
  survey_answer:
5
5
  body: Antwoord
6
+ survey_question:
7
+ mandatory: Verplicht
8
+ question_type: Type
9
+ decidim:
10
+ features:
11
+ surveys:
12
+ actions:
13
+ answer: Antwoord
14
+ name: Enquête
15
+ settings:
16
+ global:
17
+ announcement: Aankondiging
18
+ step:
19
+ allow_answers: Antwoorden toestaan
20
+ announcement: Aankondiging
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Survey gebruikers antwoorden
25
+ models:
26
+ components:
27
+ description: Beschrijving
28
+ tos: Servicevoorwaarden
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Antwoord optie
32
+ remove_answer_option: Verwijder antwoord optie
33
+ statement: Uitspraak
34
+ edit:
35
+ save: Opslaan
36
+ title: Titel
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.
40
+ question:
41
+ add_answer_option: Voeg antwoord optie toe
42
+ question: Vraag
43
+ remove_question: Verwijder vraag
44
+ statement: Uitspraak
45
+ update:
46
+ invalid: Er zijn fouten geweest bij het opslaan van de enquête.
47
+ success: Survey is succesvol opgeslagen.
48
+ question_types:
49
+ long_answer: Lang antwoord
50
+ multiple_option: Meerdere optie
51
+ short_answer: Kort antwoord
52
+ single_option: Enkele optie
53
+ surveys:
54
+ answer:
55
+ invalid: Er zijn fouten geweest bij het beantwoorden van de enquête.
56
+ success: Survey beantwoord met succes.
57
+ show:
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
63
+ survey_answered:
64
+ body: U heeft deze enquête al beantwoord.
65
+ title: Survey beantwoordde
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
@@ -3,3 +3,67 @@ pl:
3
3
  attributes:
4
4
  survey_answer:
5
5
  body: Odpowiedź
6
+ survey_question:
7
+ mandatory: Obowiązkowy
8
+ question_type: Rodzaj
9
+ decidim:
10
+ features:
11
+ surveys:
12
+ actions:
13
+ answer: Odpowiedź
14
+ name: Ankieta
15
+ settings:
16
+ global:
17
+ announcement: Ogłoszenie
18
+ step:
19
+ allow_answers: Pozwól na odpowiedzi
20
+ announcement: Ogłoszenie
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Odpowiedzi na pytania użytkowników
25
+ models:
26
+ components:
27
+ description: Opis
28
+ tos: Warunki usługi
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Odpowiedź
32
+ remove_answer_option: Usuń opcję odpowiedzi
33
+ statement: Komunikat
34
+ edit:
35
+ save: Zapisać
36
+ title: Tytuł
37
+ form:
38
+ add_question: Dodaj pytanie
39
+ already_answered_warning: Ankieta jest już udzielana przez niektórych użytkowników, więc nie można modyfikować jej pytań.
40
+ question:
41
+ add_answer_option: Dodaj odpowiedź
42
+ question: Pytanie
43
+ remove_question: Usuń pytanie
44
+ statement: Komunikat
45
+ update:
46
+ invalid: Podczas zapisywania ankiety wystąpiły błędy.
47
+ success: Ankieta została zapisana pomyślnie.
48
+ question_types:
49
+ long_answer: Długa odpowiedź
50
+ multiple_option: Wiele opcji
51
+ short_answer: Krótka odpowiedź
52
+ single_option: Pojedyncza opcja
53
+ surveys:
54
+ answer:
55
+ invalid: Podczas odpowiadania na ankiet pojawiły się błędy.
56
+ success: Ankieta odpowiedziała skutecznie.
57
+ show:
58
+ answer_survey:
59
+ anonymous_user_message: <a href="%{sign_in_link}">Zaloguj się na swoje konto</a> lub <a href="%{sign_up_link}">zarejestruj się</a>, aby odpowiedzieć na ankietę.
60
+ title: Odbierz ankietę
61
+ are_you_sure: Ta czynność nie może zostać cofnięta i nie będzie można edytować odpowiedzi. Jesteś pewny?
62
+ submit: Zatwierdź
63
+ survey_answered:
64
+ body: Odpowiedziałeś już na to pytanie.
65
+ title: Ankieta odpowiedziała
66
+ survey_closed:
67
+ body: Ankieta jest zamknięta i nie można jej odpowiedzieć.
68
+ title: Ankieta zamknięta
69
+ tos_agreement: Uczestnicząc w tym ankiecie akceptujesz Warunki korzystania z usługi
@@ -0,0 +1,69 @@
1
+ uk:
2
+ activemodel:
3
+ attributes:
4
+ survey_answer:
5
+ body: Відповідь
6
+ survey_question:
7
+ mandatory: Обов’язкове поле
8
+ question_type: Різновид
9
+ decidim:
10
+ features:
11
+ surveys:
12
+ actions:
13
+ answer: Відповідь
14
+ name: Опитування
15
+ settings:
16
+ global:
17
+ announcement: Оголошення
18
+ step:
19
+ allow_answers: Дозволити відповіді
20
+ announcement: Оголошення
21
+ surveys:
22
+ admin:
23
+ exports:
24
+ survey_user_answers: Відповіді користувачів на опитування
25
+ models:
26
+ components:
27
+ description: Опис
28
+ tos: Умови використання
29
+ surveys:
30
+ answer_option:
31
+ answer_option: Варіант відповіді
32
+ remove_answer_option: Вилучити варіант відповіді
33
+ statement: Висловлювання
34
+ edit:
35
+ save: Зберегти
36
+ title: Назва
37
+ form:
38
+ add_question: Додати питання
39
+ already_answered_warning: Деякі користувачі вже відповіли на це опитування, тому ви не можете змінювати його питання.
40
+ question:
41
+ add_answer_option: Додати варіант відповіді
42
+ question: Питання
43
+ remove_question: Видалити питання
44
+ statement: Висловлювання
45
+ update:
46
+ invalid: При збереженні цього опитування сталися помилки.
47
+ success: Опитування успішно збережено.
48
+ question_types:
49
+ long_answer: Довга відповідь
50
+ multiple_option: Кілька варіантів
51
+ short_answer: Коротка відповідь
52
+ single_option: Єдиний варіант
53
+ surveys:
54
+ answer:
55
+ invalid: При відповідях на опитування сталися помилки.
56
+ success: На опитування успішно дано відповіді.
57
+ show:
58
+ answer_survey:
59
+ anonymous_user_message: <a href="%{sign_in_link}">Увійдіть за допомогою свого облікового запису</a> або <a href="%{sign_up_link}">зареєструйтесь</a>, щоб відповісти на опитування.
60
+ title: Пройдіть опитування
61
+ are_you_sure: Цю дію не можна буде скасувати, і ви не зможете редагувати свої відповіді. Ви впевнені?
62
+ submit: Надіслати
63
+ survey_answered:
64
+ body: Ви вже відповіли на це опитування.
65
+ title: Опитування пройдене
66
+ survey_closed:
67
+ body: Опитування закрите, дати відповіді на нього немає змоги.
68
+ title: Опитування закрите
69
+ tos_agreement: Беручи участь у цьому опитуванні, ви приймаєте його умови використання
@@ -15,7 +15,7 @@ module Decidim
15
15
  root to: "surveys#edit"
16
16
  end
17
17
 
18
- initializer "decidim_surveys.assets" do |app|
18
+ initializer "decidim_surveys.admin_assets" do |app|
19
19
  app.config.assets.precompile += %w(admin/decidim_surveys_manifest.js)
20
20
  end
21
21
 
@@ -66,12 +66,12 @@ Decidim.register_feature(:surveys) do |feature|
66
66
  exports.serializer Decidim::Surveys::SurveyUserAnswersSerializer
67
67
  end
68
68
 
69
- feature.seeds do |process|
69
+ feature.seeds do |participatory_space|
70
70
  feature = Decidim::Feature.create!(
71
- name: Decidim::Features::Namer.new(process.organization.available_locales, :surveys).i18n_name,
71
+ name: Decidim::Features::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name,
72
72
  manifest_name: :surveys,
73
73
  published_at: Time.current,
74
- participatory_process: process
74
+ participatory_space: participatory_space
75
75
  )
76
76
 
77
77
  survey = Decidim::Surveys::Survey.create!(
@@ -2,9 +2,9 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :surveys_feature, parent: :feature do
5
- name { Decidim::Features::Namer.new(participatory_process.organization.available_locales, :surveys).i18n_name }
5
+ name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name }
6
6
  manifest_name :surveys
7
- participatory_process { create(:participatory_process, :with_steps) }
7
+ participatory_space { create(:participatory_process, :with_steps) }
8
8
  end
9
9
 
10
10
  factory :survey, class: Decidim::Surveys::Survey do
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.5.1
4
+ version: 0.6.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-08-21 00:00:00.000000000 Z
13
+ date: 2017-09-15 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.5.1
21
+ version: 0.6.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.5.1
28
+ version: 0.6.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jquery-tmpl-rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,28 +46,42 @@ dependencies:
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.5.1
49
+ version: 0.6.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.5.1
56
+ version: 0.6.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-admin
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.5.1
63
+ version: 0.6.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.5.1
70
+ version: 0.6.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: decidim-participatory_processes
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.6.0
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - '='
83
+ - !ruby/object:Gem::Version
84
+ version: 0.6.0
71
85
  description: A component for decidim's participatory processes.
72
86
  email:
73
87
  - josepjaume@gmail.com
@@ -111,7 +125,6 @@ files:
111
125
  - app/views/decidim/surveys/admin/surveys/_question.html.erb
112
126
  - app/views/decidim/surveys/admin/surveys/edit.html.erb
113
127
  - app/views/decidim/surveys/surveys/show.html.erb
114
- - config/i18n-tasks.yml
115
128
  - config/locales/ca.yml
116
129
  - config/locales/en.yml
117
130
  - config/locales/es.yml
@@ -121,6 +134,7 @@ files:
121
134
  - config/locales/it.yml
122
135
  - config/locales/nl.yml
123
136
  - config/locales/pl.yml
137
+ - config/locales/uk.yml
124
138
  - db/migrate/20170511092231_create_decidim_surveys.rb
125
139
  - db/migrate/20170515090916_create_decidim_survey_questions.rb
126
140
  - db/migrate/20170515144119_create_decidim_survey_answers.rb
@@ -1,9 +0,0 @@
1
- base_locale: en
2
- locales: [en]
3
- ignore_unused:
4
- - "decidim.features.surveys.name"
5
- - "decidim.features.surveys.actions.*"
6
- - "decidim.features.surveys.settings.*"
7
- - "decidim.surveys.admin.surveys.question.question"
8
- - "decidim.surveys.admin.exports.*"
9
- - "activemodel.attributes.survey_answer.*"