decidim-surveys 0.27.5 → 0.27.7

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
  SHA256:
3
- metadata.gz: bba915c78ab001669fcd176cf9e3d040ccaa15d032596bb9f9eb7f7356b075f9
4
- data.tar.gz: d6db58de496d3c22f50f19b67e03b52d069b2f2d682976ce07e42ac0a7092ca2
3
+ metadata.gz: d4647ee8f4eec503ec86c0330c47572fc5e9986a080b09d0fd73bb6a5469add9
4
+ data.tar.gz: ead1f90ff7d956fa0e32e62f398ff2a6efb997a9dbd88552ea91fe69acf2b745
5
5
  SHA512:
6
- metadata.gz: 68bbceb0a2f7114160ce723d619b809cc1064d7ed45b4184786b26538a62f4dd42f9b8038893d2289969e5442f735243fb9f30526c8576083000355402b000a2
7
- data.tar.gz: 8ba83dee93117071377b7c64701fd2a279fc5db2e04caf45e2b7380d54b93ad8257894dfa646b1075cf95c2aa747761b74575787bdc3fffcc3abcaa18b9c4399
6
+ metadata.gz: 2b50ed4fe7b353b05951daf0dffb3bfc45bd02f0e0ee5e42c74e37f448febaef880f7804b95fcf760647c232d00bcd8162fa5d78065d7e7cd950c13e31e13933
7
+ data.tar.gz: 13f618946a6898031aaee113041e0d3a781273e0072982dbb724eedcc528ea85068cdb99d5c8cf9da9a6e4ef90d2947a5a98ae712a30904f05517dbd345f5ad8
@@ -2,10 +2,71 @@
2
2
  bg:
3
3
  activemodel:
4
4
  models:
5
- decidim/surveys/closed_survey_event: Анкетата завърши
5
+ decidim/surveys/closed_survey_event: Анкетата приключи
6
6
  decidim/surveys/opened_survey_event: Анкетата започна
7
7
  activerecord:
8
8
  models:
9
9
  decidim/surveys/survey:
10
10
  one: Анкета
11
11
  other: Анкети
12
+ decidim/surveys/survey_answer:
13
+ one: Отговор
14
+ other: Отговори
15
+ decidim:
16
+ components:
17
+ surveys:
18
+ actions:
19
+ answer: Отговор
20
+ name: Анкета
21
+ settings:
22
+ global:
23
+ announcement: Съобщение
24
+ clean_after_publish: Изтриване на отговорите при публикуване на проучването
25
+ ends_at: Отговорите се приемат до
26
+ ends_at_help: Оставете празно при липса на конкретна дата
27
+ scope_id: Обхват
28
+ scopes_enabled: Обхватите са активирани
29
+ starts_at: Отговорите се приемат от
30
+ starts_at_help: Оставете празно при липса на конкретна дата
31
+ step:
32
+ allow_answers: Разрешаване на отговори
33
+ allow_unregistered: Разрешаване на нерегистрирани потребители да отговарят на въпросите в проучването
34
+ allow_unregistered_help: Ако е активно, няма да се изисква влизане, за да се отговори на анкетата. Това може да доведе до лоши или ненадеждни данни и ще e по-уязвимo на автоматизирани атаки. Използвайте с повишено внимание! Имайте предвид, че участник може да отговори на едно и също проучване няколко пъти, като използва различни браузъри или функцията за „частно сърфиране“ на своя уеб браузър.
35
+ announcement: Съобщение
36
+ events:
37
+ surveys:
38
+ survey_closed:
39
+ email_intro: Анкетата %{resource_title} в(ъв) %{participatory_space_title} беше затворена.
40
+ email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
41
+ email_subject: Приключи анкетата в(ъв) %{participatory_space_title}
42
+ notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> приключи.
43
+ survey_opened:
44
+ email_intro: 'Анкетата %{resource_title} в(ъв) %{participatory_space_title} вече е отворена. Можете да участвате в нея от тази страница:'
45
+ email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
46
+ email_subject: Нова анкета в(ъв) %{participatory_space_title}
47
+ notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> вече е отворена.
48
+ metrics:
49
+ survey_answers:
50
+ description: Брой на анкетите с отговори от участници
51
+ object: отговори на анкети
52
+ title: Отговори на анкети
53
+ statistics:
54
+ answers_count: Отговори
55
+ surveys:
56
+ admin:
57
+ component:
58
+ actions:
59
+ answers_alert: Ако публикувате компонента, всички резултати ще бъдат премахнати.
60
+ exports:
61
+ survey_user_answers: Отговори на участник в анкети
62
+ surveys:
63
+ update:
64
+ invalid: Възникна проблем при запазването на анкетата.
65
+ success: Анкетата беше запазена успешно.
66
+ last_activity:
67
+ new_survey_at_html: "<span>Ново допитване на %{link}</span>"
68
+ surveys:
69
+ answer:
70
+ invalid: Възникна проблем при попълването на отговорите на анкетата.
71
+ spam_detected: Възникна проблем при попълването на отговорите във формуляра. Навярно сте били твърде бързи, бихте ли опитали отново?
72
+ success: Отговорите на анкетата са попълнени успешно.
@@ -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:
@@ -64,7 +64,7 @@ de:
64
64
  invalid: Beim Speichern der Umfrage sind Fehler aufgetreten.
65
65
  success: Umfrage wurde erfolgreich gespeichert.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Neue Umfrage bei %{link}</span>"
67
+ new_survey_at_html: "<span>Neue Umfrage auf %{link}</span>"
68
68
  surveys:
69
69
  answer:
70
70
  invalid: Bei der Beantwortung der Umfrage sind Fehler aufgetreten.
@@ -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:
@@ -0,0 +1 @@
1
+ he:
@@ -2,7 +2,7 @@
2
2
  pl:
3
3
  activemodel:
4
4
  models:
5
- decidim/surveys/closed_survey_event: Ankieta zamknięta
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,6 +58,9 @@ 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:
@@ -54,6 +54,9 @@ pt-BR:
54
54
  answers_count: Respostas
55
55
  surveys:
56
56
  admin:
57
+ component:
58
+ actions:
59
+ answers_alert: Se você publicar o componente, todos os resultados serão removidos.
57
60
  exports:
58
61
  survey_user_answers: Avalie as respostas dos usuários
59
62
  surveys:
@@ -0,0 +1,35 @@
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://github.com/decidim/decidim"
15
+ s.required_ruby_version = "~> 3.0.0"
16
+
17
+ s.name = "decidim-surveys"
18
+ s.summary = "Decidim surveys module"
19
+ s.description = "A surveys component for decidim's participatory spaces."
20
+
21
+ s.files = Dir.chdir(__dir__) do
22
+ `git ls-files -z`.split("\x0").select do |f|
23
+ (File.expand_path(f) == __FILE__) ||
24
+ f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
25
+ end
26
+ end
27
+
28
+ s.add_dependency "decidim-core", Decidim::Surveys.version
29
+ s.add_dependency "decidim-forms", Decidim::Surveys.version
30
+
31
+ s.add_development_dependency "decidim-admin", Decidim::Surveys.version
32
+ s.add_development_dependency "decidim-dev", Decidim::Surveys.version
33
+ s.add_development_dependency "decidim-participatory_processes", Decidim::Surveys.version
34
+ s.add_development_dependency "decidim-templates", Decidim::Surveys.version
35
+ end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "decidim/core"
4
- require "decidim/templates"
5
4
 
6
5
  module Decidim
7
6
  module Surveys
@@ -6,13 +6,19 @@ require "decidim/participatory_processes/test/factories"
6
6
 
7
7
  FactoryBot.define do
8
8
  factory :surveys_component, parent: :component do
9
- name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name }
9
+ transient do
10
+ skip_injection { false }
11
+ end
12
+ name { generate_component_name(participatory_space.organization.available_locales, :surveys, skip_injection: skip_injection) }
10
13
  manifest_name { :surveys }
11
- participatory_space { create(:participatory_process, :with_steps) }
14
+ participatory_space { create(:participatory_process, :with_steps, skip_injection: skip_injection) }
12
15
  end
13
16
 
14
17
  factory :survey, class: "Decidim::Surveys::Survey" do
15
- questionnaire { build(:questionnaire, :with_questions) }
16
- component { build(:surveys_component) }
18
+ transient do
19
+ skip_injection { false }
20
+ end
21
+ questionnaire { build(:questionnaire, :with_questions, skip_injection: skip_injection) }
22
+ component { build(:surveys_component, skip_injection: skip_injection) }
17
23
  end
18
24
  end
@@ -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.27.5"
7
+ "0.27.7"
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.27.5
4
+ version: 0.27.7
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: 2023-12-20 00:00:00.000000000 Z
13
+ date: 2024-07-16 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.27.5
21
+ version: 0.27.7
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.27.5
28
+ version: 0.27.7
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.27.5
35
+ version: 0.27.7
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.27.5
42
+ version: 0.27.7
43
43
  - !ruby/object:Gem::Dependency
44
- name: decidim-templates
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.27.5
50
- type: :runtime
49
+ version: 0.27.7
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.27.5
56
+ version: 0.27.7
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.27.5
63
+ version: 0.27.7
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.27.5
70
+ version: 0.27.7
71
71
  - !ruby/object:Gem::Dependency
72
- name: decidim-dev
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.27.5
77
+ version: 0.27.7
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.27.5
84
+ version: 0.27.7
85
85
  - !ruby/object:Gem::Dependency
86
- name: decidim-participatory_processes
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.27.5
91
+ version: 0.27.7
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.27.5
98
+ version: 0.27.7
99
99
  description: A surveys component for decidim's participatory spaces.
100
100
  email:
101
101
  - josepjaume@gmail.com
@@ -130,7 +130,6 @@ files:
130
130
  - app/views/decidim/surveys/admin/component/_actions.html.erb
131
131
  - app/views/decidim/surveys/surveys/no_permission.html.erb
132
132
  - config/assets.rb
133
- - config/environment.rb
134
133
  - config/locales/am-ET.yml
135
134
  - config/locales/ar-SA.yml
136
135
  - config/locales/ar.yml
@@ -163,6 +162,7 @@ files:
163
162
  - config/locales/ga-IE.yml
164
163
  - config/locales/gl.yml
165
164
  - config/locales/gn-PY.yml
165
+ - config/locales/he-IL.yml
166
166
  - config/locales/hr-HR.yml
167
167
  - config/locales/hr.yml
168
168
  - config/locales/hu.yml
@@ -232,6 +232,7 @@ files:
232
232
  - db/migrate/20200610090725_remove_survey_answers.rb
233
233
  - db/migrate/20200610090845_remove_survey_questions.rb
234
234
  - db/migrate/20200610105927_remove_survey_columns.rb
235
+ - decidim-surveys.gemspec
235
236
  - lib/decidim/api/survey_type.rb
236
237
  - lib/decidim/api/surveys_type.rb
237
238
  - lib/decidim/surveys.rb
@@ -253,16 +254,16 @@ require_paths:
253
254
  - lib
254
255
  required_ruby_version: !ruby/object:Gem::Requirement
255
256
  requirements:
256
- - - ">="
257
+ - - "~>"
257
258
  - !ruby/object:Gem::Version
258
- version: '3.0'
259
+ version: 3.0.0
259
260
  required_rubygems_version: !ruby/object:Gem::Requirement
260
261
  requirements:
261
262
  - - ">="
262
263
  - !ruby/object:Gem::Version
263
264
  version: '0'
264
265
  requirements: []
265
- rubygems_version: 3.4.22
266
+ rubygems_version: 3.5.14
266
267
  signing_key:
267
268
  specification_version: 4
268
269
  summary: Decidim surveys module
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Empty line for playing nice with tpope/vim-rails