decidim-consultations 0.23.0 → 0.24.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/consultations/consultation_m_cell.rb +2 -0
  3. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +4 -9
  4. data/app/commands/decidim/consultations/admin/update_consultation.rb +3 -0
  5. data/app/commands/decidim/consultations/admin/update_question.rb +13 -5
  6. data/app/helpers/decidim/consultations/admin/consultation_menu_helper.rb +15 -0
  7. data/app/helpers/decidim/consultations/questions_helper.rb +2 -0
  8. data/app/views/decidim/consultations/admin/consultations/index.html.erb +4 -0
  9. data/app/views/decidim/consultations/admin/questions/index.html.erb +4 -0
  10. data/app/views/decidim/consultations/admin/response_groups/index.html.erb +2 -0
  11. data/app/views/decidim/consultations/admin/responses/index.html.erb +2 -0
  12. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +1 -1
  13. data/app/views/layouts/decidim/admin/consultation.html.erb +8 -23
  14. data/app/views/layouts/decidim/admin/consultations.html.erb +4 -0
  15. data/config/locales/ar.yml +0 -2
  16. data/config/locales/ca.yml +0 -2
  17. data/config/locales/cs.yml +9 -8
  18. data/config/locales/de.yml +8 -7
  19. data/config/locales/el.yml +0 -2
  20. data/config/locales/en.yml +3 -2
  21. data/config/locales/es-MX.yml +2 -2
  22. data/config/locales/es-PY.yml +2 -2
  23. data/config/locales/es.yml +2 -2
  24. data/config/locales/eu.yml +0 -2
  25. data/config/locales/fi-plain.yml +4 -3
  26. data/config/locales/fi.yml +6 -5
  27. data/config/locales/fr-CA.yml +3 -2
  28. data/config/locales/fr.yml +3 -2
  29. data/config/locales/gl.yml +0 -2
  30. data/config/locales/hu.yml +0 -2
  31. data/config/locales/id-ID.yml +0 -2
  32. data/config/locales/it.yml +2 -2
  33. data/config/locales/ja.yml +0 -2
  34. data/config/locales/lv.yml +0 -2
  35. data/config/locales/nl.yml +7 -8
  36. data/config/locales/no.yml +0 -2
  37. data/config/locales/pl.yml +6 -5
  38. data/config/locales/pt-BR.yml +0 -2
  39. data/config/locales/pt.yml +0 -2
  40. data/config/locales/ro-RO.yml +0 -2
  41. data/config/locales/si-LK.yml +1 -0
  42. data/config/locales/sk.yml +0 -2
  43. data/config/locales/sv.yml +0 -2
  44. data/config/locales/sw-KE.yml +1 -0
  45. data/config/locales/tr-TR.yml +117 -42
  46. data/config/locales/zh-CN.yml +0 -2
  47. data/lib/decidim/api/consultation_question_type.rb +52 -0
  48. data/lib/decidim/api/consultation_type.rb +29 -0
  49. data/lib/decidim/consultations.rb +1 -0
  50. data/lib/decidim/consultations/admin_engine.rb +25 -1
  51. data/lib/decidim/consultations/api.rb +8 -0
  52. data/lib/decidim/consultations/engine.rb +7 -1
  53. data/lib/decidim/consultations/participatory_space.rb +24 -24
  54. data/lib/decidim/consultations/query_extensions.rb +43 -0
  55. data/lib/decidim/consultations/test/factories.rb +2 -2
  56. data/lib/decidim/consultations/version.rb +1 -1
  57. metadata +24 -19
  58. data/app/types/decidim/consultations/consultation_question_type.rb +0 -57
  59. data/app/types/decidim/consultations/consultation_type.rb +0 -32
@@ -308,8 +308,6 @@ zh-CN:
308
308
  help:
309
309
  participatory_spaces:
310
310
  consultations:
311
- contextual: "<p><strong>Consult</strong> 是一个空间,可以让您向所有组建组织的人提出一个明确的问题。 呼吁参加协商,引发和命令辩论支持或反对回应。 当咨询日期到达时,您可以投票并发布投票结果。</p> <p>示例:磋商可能涉及影响一个组织的几乎任何方面:一些示例正在更改该组织的名称或标志,提供几种替代品, 决定是否加入一个更大的组织,确认或拒绝一项新的战略计划或工作组的结果, 或界定这些职位是否最多应为1、2或3项任务。</p>\n"
312
- page: "<p><strong>Consult</strong> 是一个空间,可以让您向所有组建组织的人提出一个明确的问题。 呼吁参加协商,引发和命令辩论支持或反对回应。 当咨询日期到达时,您可以投票并发布投票结果。</p> <p>示例:磋商可能涉及影响一个组织的几乎任何方面:一些示例正在更改该组织的名称或标志,提供几种替代品, 决定是否加入一个更大的组织,确认或拒绝一项新的战略计划或工作组的结果, 或界定该组织的职位是否最多应为1、2或3项任务。</p>\n"
313
311
  title: 什么是协商?
314
312
  menu:
315
313
  consultations: 协商
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Consultations
5
+ # This type represents a consultation.
6
+ class ConsultationQuestionType < Decidim::Api::Types::BaseObject
7
+ implements Decidim::Core::ScopableInterface
8
+ implements Decidim::Core::AttachableInterface
9
+ implements Decidim::Comments::CommentableInterface
10
+
11
+ description "A consultation question"
12
+
13
+ field :id, GraphQL::Types::ID, "Internal ID of the question", null: false
14
+ field :title, Decidim::Core::TranslatedFieldType, "Title of the question", null: true
15
+ field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this question", null: true
16
+ field :slug, GraphQL::Types::String, "Slug of the question", null: false
17
+ field :created_at, Decidim::Core::DateTimeType, "The time this question was created", null: false
18
+ field :updated_at, Decidim::Core::DateTimeType, "The time this question was updated", null: false
19
+ field :published_at, Decidim::Core::DateTimeType, "The time this question was published", null: false
20
+
21
+ field :components, [Decidim::Core::ComponentInterface, { null: true }], description: "Lists the components this space contains.", null: true
22
+
23
+ def components
24
+ Decidim::Component.where(
25
+ participatory_space: object
26
+ ).published
27
+ end
28
+
29
+ field :banner_image, GraphQL::Types::String, "The banner image for this question", null: true
30
+ field :hero_image, GraphQL::Types::String, "The hero image for this question", null: true
31
+
32
+ field :what_is_decided, Decidim::Core::TranslatedFieldType, "What is decided in this question", null: true
33
+ field :promoter_group, Decidim::Core::TranslatedFieldType, "The promoter group of this question", null: true
34
+ field :participatory_scope, Decidim::Core::TranslatedFieldType, "The participatory scope of this question", null: true
35
+ field :question_context, Decidim::Core::TranslatedFieldType, "The context for this question", null: true
36
+ field :reference, GraphQL::Types::String, "The reference for this question", null: true
37
+ field :hashtag, GraphQL::Types::String, "The hashtag of this question", null: true
38
+ field :votes_count, GraphQL::Types::Int, "The number of votes in this question", null: true
39
+ field :origin_scope, Decidim::Core::TranslatedFieldType, "The origin scope of this question", null: true
40
+ field :origin_title, Decidim::Core::TranslatedFieldType, "The origin title of this question", null: true
41
+ field :origin_url, GraphQL::Types::String, "The origin URL for this question", null: true
42
+ field :i_frame_url, GraphQL::Types::String, "The iframe URL for this question", null: true
43
+ field :external_voting, GraphQL::Types::Boolean, "If the question has external voting", null: true
44
+ field :responses_count, GraphQL::Types::Int, "The number of responses for this question", null: true
45
+ field :order, GraphQL::Types::Int, "The order in which the question should be represented", null: true
46
+ field :max_votes, GraphQL::Types::Int, "The maximum number of votes in this question", null: true
47
+ field :min_votes, GraphQL::Types::Int, "The minimum number of votes in this question", null: true
48
+ field :response_groups_count, GraphQL::Types::Int, "The number of group responses for this question", null: true
49
+ field :instructions, Decidim::Core::TranslatedFieldType, "Instructions for this question", null: true
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Consultations
5
+ # This type represents a consultation.
6
+ class ConsultationType < Decidim::Api::Types::BaseObject
7
+ implements Decidim::Core::ParticipatorySpaceInterface
8
+
9
+ description "A consultation"
10
+
11
+ field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this consultation", null: true
12
+ field :description, Decidim::Core::TranslatedFieldType, "The description of this consultation", null: true
13
+ field :slug, GraphQL::Types::String, "Slug of this consultation", null: false
14
+ field :created_at, Decidim::Core::DateTimeType, "The time this consultation was created", null: false
15
+ field :updated_at, Decidim::Core::DateTimeType, "The time this consultation was updated", null: false
16
+ field :published_at, Decidim::Core::DateTimeType, "The time this consultation was published", null: false
17
+
18
+ field :introductory_video_url, GraphQL::Types::String, "The introductory video url for this consultation", null: true
19
+ field :introductory_image, GraphQL::Types::String, "The introductory image for this consultation", null: true
20
+ field :banner_image, GraphQL::Types::String, "The banner image for this consultation", null: true
21
+ field :highlighted_scope, Decidim::Core::ScopeApiType, "This is the highlighted scope of this consultation", null: true
22
+ field :start_voting_date, Decidim::Core::DateType, "Start date of the voting for this consultation", null: true
23
+ field :end_voting_date, Decidim::Core::DateType, "End date of the voting for this consultation", null: true
24
+ field :results_published_at, Decidim::Core::DateType, "Date when the results have been published", null: true
25
+
26
+ field :questions, [Decidim::Consultations::ConsultationQuestionType, { null: true }], "", null: true
27
+ end
28
+ end
29
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "decidim/consultations/admin"
4
+ require "decidim/consultations/api"
4
5
  require "decidim/consultations/engine"
5
6
  require "decidim/consultations/admin_engine"
6
7
  require "decidim/consultations/participatory_space"
@@ -53,16 +53,40 @@ module Decidim
53
53
  end
54
54
  end
55
55
 
56
+ initializer "decidim_consultations.admin_consultation_menu" do
57
+ Decidim.menu :admin_consultation_menu do |menu|
58
+ menu.item I18n.t("info", scope: "decidim.admin.menu.consultations_submenu"),
59
+ decidim_admin_consultations.edit_consultation_path(current_consultation),
60
+ position: 1.0,
61
+ active: is_active_link?(decidim_admin_consultations.edit_consultation_path(current_consultation)),
62
+ if: allowed_to?(:update, :consultation, consultation: current_consultation)
63
+ menu.item I18n.t("questions", scope: "decidim.admin.menu.consultations_submenu"),
64
+ decidim_admin_consultations.consultation_questions_path(current_consultation),
65
+ position: 1.1,
66
+ active: is_active_link?(decidim_admin_consultations.consultation_questions_path(current_consultation)),
67
+ if: allowed_to?(:read, :question)
68
+ menu.item I18n.t("results", scope: "decidim.admin.menu.consultations_submenu"),
69
+ decidim_admin_consultations.results_consultation_path(current_consultation),
70
+ position: 1.0,
71
+ active: is_active_link?(decidim_admin_consultations.results_consultation_path(current_consultation)),
72
+ if: allowed_to?(:read, :question)
73
+ end
74
+ end
56
75
  initializer "decidim_consultations.admin_menu" do
57
76
  Decidim.menu :admin_menu do |menu|
58
77
  menu.item I18n.t("menu.consultations", scope: "decidim.admin"),
59
78
  decidim_admin_consultations.consultations_path,
60
79
  icon_name: "comment-square",
61
- position: 3.8,
80
+ position: 2.65,
62
81
  active: :inclusive,
63
82
  if: allowed_to?(:enter, :space_area, space_name: :consultations)
64
83
  end
65
84
  end
85
+ initializer "decidim_consultations.action_controller" do |_app|
86
+ ActiveSupport.on_load :action_controller do
87
+ helper Decidim::Consultations::Admin::ConsultationMenuHelper if respond_to?(:helper)
88
+ end
89
+ end
66
90
  end
67
91
  end
68
92
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Consultations
5
+ autoload :ConsultationType, "decidim/api/consultation_type"
6
+ autoload :ConsultationQuestionType, "decidim/api/consultation_question_type"
7
+ end
8
+ end
@@ -4,6 +4,8 @@ require "rails"
4
4
  require "active_support/all"
5
5
  require "decidim/core"
6
6
 
7
+ require "decidim/consultations/query_extensions"
8
+
7
9
  module Decidim
8
10
  module Consultations
9
11
  # Decidim"s Consultations Rails Engine.
@@ -72,7 +74,7 @@ module Decidim
72
74
  Decidim.menu :menu do |menu|
73
75
  menu.item I18n.t("menu.consultations", scope: "decidim"),
74
76
  decidim_consultations.consultations_path,
75
- position: 2.7,
77
+ position: 2.65,
76
78
  if: Decidim::Consultation.where(organization: current_organization).published.any?,
77
79
  active: :inclusive
78
80
  end
@@ -89,6 +91,10 @@ module Decidim
89
91
  end
90
92
  end
91
93
  end
94
+
95
+ initializer "decidim_consultations.query_extensions" do
96
+ Decidim::Api::QueryType.include Decidim::Consultations::QueryExtensions
97
+ end
92
98
  end
93
99
  end
94
100
  end
@@ -40,11 +40,11 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
40
40
 
41
41
  # Active consultation
42
42
  active_consultation_params = {
43
- slug: Faker::Internet.unique.slug(nil, "-"),
44
- title: Decidim::Faker::Localized.sentence(3),
45
- subtitle: Decidim::Faker::Localized.sentence(3),
43
+ slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
44
+ title: Decidim::Faker::Localized.sentence(word_count: 3),
45
+ subtitle: Decidim::Faker::Localized.sentence(word_count: 3),
46
46
  description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
47
- Decidim::Faker::Localized.paragraph(3)
47
+ Decidim::Faker::Localized.paragraph(sentence_count: 3)
48
48
  end,
49
49
  published_at: Time.now.utc,
50
50
  start_voting_date: Time.zone.today,
@@ -66,11 +66,11 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
66
66
  active_consultation.add_to_index_as_search_resource
67
67
 
68
68
  finished_consultation_params = {
69
- slug: Faker::Internet.unique.slug(nil, "-"),
70
- title: Decidim::Faker::Localized.sentence(3),
71
- subtitle: Decidim::Faker::Localized.sentence(3),
69
+ slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
70
+ title: Decidim::Faker::Localized.sentence(word_count: 3),
71
+ subtitle: Decidim::Faker::Localized.sentence(word_count: 3),
72
72
  description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
73
- Decidim::Faker::Localized.paragraph(3)
73
+ Decidim::Faker::Localized.paragraph(sentence_count: 3)
74
74
  end,
75
75
  published_at: Time.zone.today - 2.months,
76
76
  results_published_at: Time.zone.today - 1.month,
@@ -93,11 +93,11 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
93
93
  finished_consultation.add_to_index_as_search_resource
94
94
 
95
95
  upcoming_consultation_params = {
96
- slug: Faker::Internet.unique.slug(nil, "-"),
97
- title: Decidim::Faker::Localized.sentence(3),
98
- subtitle: Decidim::Faker::Localized.sentence(3),
96
+ slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
97
+ title: Decidim::Faker::Localized.sentence(word_count: 3),
98
+ subtitle: Decidim::Faker::Localized.sentence(word_count: 3),
99
99
  description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
100
- Decidim::Faker::Localized.paragraph(3)
100
+ Decidim::Faker::Localized.paragraph(sentence_count: 3)
101
101
  end,
102
102
  published_at: Time.zone.today + 1.month,
103
103
  start_voting_date: Time.zone.today + 1.month + 1.day,
@@ -122,21 +122,21 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
122
122
  4.times do
123
123
  params = {
124
124
  consultation: consultation,
125
- slug: Faker::Internet.unique.slug(nil, "-"),
125
+ slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
126
126
  decidim_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id,
127
- title: Decidim::Faker::Localized.sentence(3),
128
- subtitle: Decidim::Faker::Localized.sentence(3),
127
+ title: Decidim::Faker::Localized.sentence(word_count: 3),
128
+ subtitle: Decidim::Faker::Localized.sentence(word_count: 3),
129
129
  what_is_decided: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
130
- Decidim::Faker::Localized.paragraph(3)
130
+ Decidim::Faker::Localized.paragraph(sentence_count: 3)
131
131
  end,
132
132
  question_context: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
133
- Decidim::Faker::Localized.paragraph(3)
133
+ Decidim::Faker::Localized.paragraph(sentence_count: 3)
134
134
  end,
135
135
  organization: organization,
136
136
  hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
137
137
  banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
138
- promoter_group: Decidim::Faker::Localized.sentence(3),
139
- participatory_scope: Decidim::Faker::Localized.sentence(3),
138
+ promoter_group: Decidim::Faker::Localized.sentence(word_count: 3),
139
+ participatory_scope: Decidim::Faker::Localized.sentence(word_count: 3),
140
140
  published_at: Time.now.utc
141
141
  }
142
142
 
@@ -152,22 +152,22 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
152
152
  2.times do
153
153
  Decidim::Consultations::Response.create(
154
154
  question: question,
155
- title: Decidim::Faker::Localized.sentence(3)
155
+ title: Decidim::Faker::Localized.sentence(word_count: 3)
156
156
  )
157
157
  end
158
158
 
159
159
  Decidim::Comments::Seed.comments_for(question)
160
160
 
161
161
  Decidim::Attachment.create!(
162
- title: Decidim::Faker::Localized.sentence(2),
163
- description: Decidim::Faker::Localized.sentence(5),
162
+ title: Decidim::Faker::Localized.sentence(word_count: 2),
163
+ description: Decidim::Faker::Localized.sentence(word_count: 5),
164
164
  attached_to: question,
165
165
  file: File.new(File.join(seeds_root, "city.jpeg")) # Keep after attached_to
166
166
  )
167
167
 
168
168
  Decidim::Attachment.create!(
169
- title: Decidim::Faker::Localized.sentence(2),
170
- description: Decidim::Faker::Localized.sentence(5),
169
+ title: Decidim::Faker::Localized.sentence(word_count: 2),
170
+ description: Decidim::Faker::Localized.sentence(word_count: 5),
171
171
  attached_to: question,
172
172
  file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
173
173
  )
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Consultations
5
+ # This module's job is to extend the API with custom fields related to
6
+ # decidim-assemblies.
7
+ module QueryExtensions
8
+ # Public: Extends a type with `decidim-assemblies`'s fields.
9
+ #
10
+ # type - A GraphQL::BaseType to extend.
11
+ #
12
+ # Returns nothing.
13
+ def self.included(type)
14
+ type.field :consultations,
15
+ [Decidim::Consultations::ConsultationType],
16
+ null: true,
17
+ description: "Lists all consultations" do
18
+ argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument let's you filter the results", required: false
19
+ argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument let's you order the results", required: false
20
+ end
21
+
22
+ type.field :consultation,
23
+ Decidim::Consultations::ConsultationType,
24
+ null: true,
25
+ description: "Finds a consultation" do
26
+ argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
27
+ end
28
+ end
29
+
30
+ def consultations(filter: {}, order: {})
31
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :consultations }.first
32
+
33
+ Decidim::Core::ParticipatorySpaceListBase.new(manifest: manifest).call(object, { filter: filter, order: order }, context)
34
+ end
35
+
36
+ def consultation(id: nil)
37
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :consultations }.first
38
+
39
+ Decidim::Core::ParticipatorySpaceFinderBase.new(manifest: manifest).call(object, { id: id }, context)
40
+ end
41
+ end
42
+ end
43
+ end
@@ -5,11 +5,11 @@ require "decidim/dev"
5
5
 
6
6
  FactoryBot.define do
7
7
  sequence(:consultation_slug) do |n|
8
- "#{Faker::Internet.slug(nil, "-")}-#{n}"
8
+ "#{Decidim::Faker::Internet.slug(words: nil, glue: "-")}-#{n}"
9
9
  end
10
10
 
11
11
  sequence(:question_slug) do |n|
12
- "#{Faker::Internet.slug(nil, "-")}-#{n}"
12
+ "#{Decidim::Faker::Internet.slug(words: nil, glue: "-")}-#{n}"
13
13
  end
14
14
 
15
15
  factory :consultation, class: "Decidim::Consultation" do
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.23.0"
6
+ "0.24.0.rc1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-consultations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.23.0
19
+ version: 0.24.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.23.0
26
+ version: 0.24.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.23.0
33
+ version: 0.24.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.23.0
40
+ version: 0.24.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.23.0
47
+ version: 0.24.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.23.0
54
+ version: 0.24.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-dev
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.23.0
61
+ version: 0.24.0.rc1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.23.0
68
+ version: 0.24.0.rc1
69
69
  description: Extends Decidim adding a first level public consultation component
70
70
  email:
71
71
  - jsperezg@gmail.com
@@ -165,6 +165,7 @@ files:
165
165
  - app/forms/decidim/consultations/admin/response_group_form.rb
166
166
  - app/forms/decidim/consultations/multi_vote_form.rb
167
167
  - app/forms/decidim/consultations/vote_form.rb
168
+ - app/helpers/decidim/consultations/admin/consultation_menu_helper.rb
168
169
  - app/helpers/decidim/consultations/admin/consultations_helper.rb
169
170
  - app/helpers/decidim/consultations/admin/questions_helper.rb
170
171
  - app/helpers/decidim/consultations/consultations_helper.rb
@@ -185,8 +186,6 @@ files:
185
186
  - app/queries/decidim/consultations/organization_consultations.rb
186
187
  - app/queries/decidim/consultations/organization_questions.rb
187
188
  - app/services/decidim/consultations/consultation_search.rb
188
- - app/types/decidim/consultations/consultation_question_type.rb
189
- - app/types/decidim/consultations/consultation_type.rb
190
189
  - app/views/decidim/consultations/_consultation.html.erb
191
190
  - app/views/decidim/consultations/admin/consultations/_form.html.erb
192
191
  - app/views/decidim/consultations/admin/consultations/edit.html.erb
@@ -299,12 +298,14 @@ files:
299
298
  - config/locales/pt.yml
300
299
  - config/locales/ro-RO.yml
301
300
  - config/locales/ru.yml
301
+ - config/locales/si-LK.yml
302
302
  - config/locales/sk-SK.yml
303
303
  - config/locales/sk.yml
304
304
  - config/locales/sl.yml
305
305
  - config/locales/so-SO.yml
306
306
  - config/locales/sr-CS.yml
307
307
  - config/locales/sv.yml
308
+ - config/locales/sw-KE.yml
308
309
  - config/locales/ti-ER.yml
309
310
  - config/locales/tr-TR.yml
310
311
  - config/locales/uk.yml
@@ -351,18 +352,22 @@ files:
351
352
  - db/seeds/city.jpeg
352
353
  - db/seeds/city2.jpeg
353
354
  - db/seeds/homepage_image.jpg
355
+ - lib/decidim/api/consultation_question_type.rb
356
+ - lib/decidim/api/consultation_type.rb
354
357
  - lib/decidim/consultations.rb
355
358
  - lib/decidim/consultations/admin.rb
356
359
  - lib/decidim/consultations/admin_engine.rb
360
+ - lib/decidim/consultations/api.rb
357
361
  - lib/decidim/consultations/engine.rb
358
362
  - lib/decidim/consultations/participatory_space.rb
363
+ - lib/decidim/consultations/query_extensions.rb
359
364
  - lib/decidim/consultations/test/factories.rb
360
365
  - lib/decidim/consultations/version.rb
361
366
  homepage: https://github.com/decidim/decidim
362
367
  licenses:
363
368
  - AGPL-3.0
364
369
  metadata: {}
365
- post_install_message:
370
+ post_install_message:
366
371
  rdoc_options: []
367
372
  require_paths:
368
373
  - lib
@@ -370,15 +375,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
370
375
  requirements:
371
376
  - - ">="
372
377
  - !ruby/object:Gem::Version
373
- version: '2.6'
378
+ version: '2.7'
374
379
  required_rubygems_version: !ruby/object:Gem::Requirement
375
380
  requirements:
376
- - - ">="
381
+ - - ">"
377
382
  - !ruby/object:Gem::Version
378
- version: '0'
383
+ version: 1.3.1
379
384
  requirements: []
380
- rubygems_version: 3.0.3
381
- signing_key:
385
+ rubygems_version: 3.1.2
386
+ signing_key:
382
387
  specification_version: 4
383
388
  summary: Decidim consultations module
384
389
  test_files: []