decidim-initiatives 0.22.0 → 0.23.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6 +18 -0
  3. data/app/assets/stylesheet/decidim/initiatives/initiatives.scss +6 -0
  4. data/app/cells/decidim/initiatives/initiative_m_cell.rb +14 -0
  5. data/app/cells/decidim/initiatives_votes/vote/show.erb +12 -9
  6. data/app/cells/decidim/initiatives_votes/vote_cell.rb +7 -0
  7. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +3 -1
  8. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +3 -1
  9. data/app/commands/decidim/initiatives/attachment_methods.rb +9 -5
  10. data/app/commands/decidim/initiatives/create_initiative.rb +2 -2
  11. data/app/commands/decidim/initiatives/unvote_initiative.rb +4 -10
  12. data/app/commands/decidim/initiatives/vote_initiative.rb +36 -36
  13. data/app/controllers/decidim/initiatives/admin/answers_controller.rb +2 -3
  14. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +2 -2
  15. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +1 -1
  16. data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +20 -26
  17. data/app/controllers/decidim/initiatives/initiative_votes_controller.rb +11 -5
  18. data/app/controllers/decidim/initiatives/initiatives_controller.rb +11 -10
  19. data/app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb +9 -1
  20. data/app/controllers/decidim/initiatives/{initiative_widgets_controller.rb → widgets_controller.rb} +2 -2
  21. data/app/forms/decidim/initiatives/admin/initiative_form.rb +19 -8
  22. data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +3 -0
  23. data/app/forms/decidim/initiatives/initiative_form.rb +23 -2
  24. data/app/forms/decidim/initiatives/vote_form.rb +134 -77
  25. data/app/models/decidim/initiative.rb +123 -52
  26. data/app/models/decidim/initiatives_type.rb +5 -2
  27. data/app/models/decidim/initiatives_type_scope.rb +5 -1
  28. data/app/models/decidim/initiatives_vote.rb +19 -23
  29. data/app/permissions/decidim/initiatives/admin/permissions.rb +2 -2
  30. data/app/permissions/decidim/initiatives/permissions.rb +2 -4
  31. data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +2 -2
  32. data/app/presenters/decidim/initiatives/initiative_stats_presenter.rb +1 -5
  33. data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +1 -1
  34. data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +39 -17
  35. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +12 -9
  36. data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +35 -10
  37. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +28 -25
  38. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +18 -16
  39. data/app/views/decidim/initiatives/initiative_signatures/error_on_vote.js.erb +5 -0
  40. data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +0 -1
  41. data/app/views/decidim/initiatives/initiative_signatures/update_buttons_and_counters.js.erb +1 -1
  42. data/app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb +1 -1
  43. data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +36 -2
  44. data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +10 -0
  45. data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +24 -9
  46. data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +1 -13
  47. data/app/views/decidim/initiatives/initiatives/show.html.erb +1 -3
  48. data/app/views/layouts/decidim/initiative.html.erb +1 -0
  49. data/config/locales/am-ET.yml +1 -0
  50. data/config/locales/ar.yml +0 -4
  51. data/config/locales/bg.yml +13 -0
  52. data/config/locales/ca.yml +22 -8
  53. data/config/locales/cs.yml +32 -18
  54. data/config/locales/da.yml +1 -0
  55. data/config/locales/de.yml +69 -43
  56. data/config/locales/el.yml +0 -4
  57. data/config/locales/en.yml +18 -4
  58. data/config/locales/eo.yml +1 -0
  59. data/config/locales/es-MX.yml +18 -4
  60. data/config/locales/es-PY.yml +18 -4
  61. data/config/locales/es.yml +31 -17
  62. data/config/locales/et.yml +1 -0
  63. data/config/locales/eu.yml +0 -14
  64. data/config/locales/fi-plain.yml +18 -4
  65. data/config/locales/fi.yml +18 -4
  66. data/config/locales/fr-CA.yml +32 -4
  67. data/config/locales/fr.yml +36 -8
  68. data/config/locales/gl.yml +7 -17
  69. data/config/locales/hr.yml +1 -0
  70. data/config/locales/hu.yml +5 -4
  71. data/config/locales/id-ID.yml +0 -14
  72. data/config/locales/is-IS.yml +0 -10
  73. data/config/locales/is.yml +251 -0
  74. data/config/locales/it.yml +9 -4
  75. data/config/locales/ja-JP.yml +43 -49
  76. data/config/locales/ja.yml +549 -0
  77. data/config/locales/ko-KR.yml +1 -0
  78. data/config/locales/ko.yml +1 -0
  79. data/config/locales/lt.yml +1 -0
  80. data/config/locales/{lv-LV.yml → lv.yml} +0 -4
  81. data/config/locales/mt.yml +1 -0
  82. data/config/locales/nl.yml +15 -10
  83. data/config/locales/no.yml +69 -6
  84. data/config/locales/om-ET.yml +1 -0
  85. data/config/locales/pl.yml +28 -22
  86. data/config/locales/pt-BR.yml +0 -14
  87. data/config/locales/pt.yml +5 -4
  88. data/config/locales/ro-RO.yml +5 -4
  89. data/config/locales/ru.yml +0 -14
  90. data/config/locales/si-LK.yml +1 -0
  91. data/config/locales/sk.yml +0 -4
  92. data/config/locales/sl.yml +6 -0
  93. data/config/locales/so-SO.yml +1 -0
  94. data/config/locales/sv.yml +28 -8
  95. data/config/locales/sw-KE.yml +1 -0
  96. data/config/locales/ti-ER.yml +1 -0
  97. data/config/locales/tr-TR.yml +204 -122
  98. data/config/locales/uk.yml +0 -14
  99. data/config/locales/vi-VN.yml +1 -0
  100. data/config/locales/vi.yml +1 -0
  101. data/config/locales/zh-CN.yml +549 -0
  102. data/config/locales/zh-TW.yml +1 -0
  103. data/db/migrate/20191106144259_add_settings_to_initiatives_types.rb +8 -0
  104. data/db/migrate/20191107134847_add_scopes_to_initiatives_votes.rb +28 -0
  105. data/db/migrate/20191116170841_allow_multiple_initiative_votes_counter_caches.rb +32 -0
  106. data/db/migrate/20191118105634_allow_multiple_offline_votes.rb +34 -0
  107. data/db/migrate/20200528151456_remove_user_groups_from_initiative_votes.rb +7 -0
  108. data/db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb +9 -0
  109. data/db/seeds/city.jpeg +0 -0
  110. data/lib/decidim/initiatives/admin_engine.rb +1 -0
  111. data/lib/decidim/initiatives/engine.rb +2 -2
  112. data/lib/decidim/initiatives/participatory_space.rb +7 -0
  113. data/lib/decidim/initiatives/test/factories.rb +21 -3
  114. data/lib/decidim/initiatives/version.rb +1 -1
  115. data/lib/tasks/decidim_initiatives.rake +1 -3
  116. metadata +48 -21
  117. data/app/views/decidim/initiatives/initiatives/_supports.html.erb +0 -22
  118. data/app/views/decidim/initiatives/initiatives/signature_identities.html.erb +0 -42
@@ -0,0 +1 @@
1
+ zh-TW:
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddSettingsToInitiativesTypes < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_initiatives_types, :child_scope_threshold_enabled, :boolean, null: false, default: false
6
+ add_column :decidim_initiatives_types, :only_global_scope_enabled, :boolean, null: false, default: false
7
+ end
8
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddScopesToInitiativesVotes < ActiveRecord::Migration[5.2]
4
+ class InitiativeVote < ApplicationRecord
5
+ self.table_name = :decidim_initiatives_votes
6
+ belongs_to :initiative, foreign_key: "decidim_initiative_id", class_name: "Initiative"
7
+ end
8
+
9
+ class Initiative < ApplicationRecord
10
+ self.table_name = :decidim_initiatives
11
+ belongs_to :scoped_type, foreign_key: "scoped_type_id", class_name: "InitiativesTypeScope"
12
+ end
13
+
14
+ class InitiativesTypeScope < ApplicationRecord
15
+ self.table_name = :decidim_initiatives_type_scopes
16
+ end
17
+
18
+ def change
19
+ add_column :decidim_initiatives_votes, :decidim_scope_id, :integer
20
+
21
+ InitiativeVote.reset_column_information
22
+
23
+ InitiativeVote.includes(initiative: :scoped_type).find_each do |vote|
24
+ vote.decidim_scope_id = vote.initiative.scoped_type.decidim_scopes_id
25
+ vote.save!
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AllowMultipleInitiativeVotesCounterCaches < ActiveRecord::Migration[5.2]
4
+ class InitiativeVote < ApplicationRecord
5
+ self.table_name = :decidim_initiatives_votes
6
+ end
7
+
8
+ class Initiative < ApplicationRecord
9
+ self.table_name = :decidim_initiatives
10
+ has_many :votes, foreign_key: "decidim_initiative_id", class_name: "InitiativeVote"
11
+ end
12
+
13
+ def change
14
+ add_column :decidim_initiatives, :online_votes, :jsonb, default: {}
15
+
16
+ Initiative.reset_column_information
17
+
18
+ Initiative.find_each do |initiative|
19
+ online_votes = initiative.votes.group(:decidim_scope_id).count.each_with_object({}) do |(scope_id, count), counters|
20
+ counters[scope_id || "global"] = count
21
+ counters["total"] = count
22
+ end
23
+
24
+ # rubocop:disable Rails/SkipsModelValidations
25
+ initiative.update_column("online_votes", online_votes)
26
+ # rubocop:enable Rails/SkipsModelValidations
27
+ end
28
+
29
+ remove_column :decidim_initiatives, :initiative_supports_count
30
+ remove_column :decidim_initiatives, :initiative_votes_count
31
+ end
32
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AllowMultipleOfflineVotes < ActiveRecord::Migration[5.2]
4
+ class InitiativesTypeScope < ApplicationRecord
5
+ self.table_name = :decidim_initiatives_type_scopes
6
+ end
7
+
8
+ class Initiative < ApplicationRecord
9
+ self.table_name = :decidim_initiatives
10
+ belongs_to :scoped_type, foreign_key: "scoped_type_id", class_name: "InitiativesTypeScope"
11
+ end
12
+
13
+ def change
14
+ rename_column :decidim_initiatives, :offline_votes, :old_offline_votes
15
+ add_column :decidim_initiatives, :offline_votes, :jsonb, default: {}
16
+
17
+ Initiative.reset_column_information
18
+
19
+ Initiative.includes(:scoped_type).find_each do |initiative|
20
+ scope_key = initiative.scoped_type.decidim_scopes_id || "global"
21
+
22
+ offline_votes = {
23
+ scope_key => initiative.old_offline_votes.to_i,
24
+ "total" => initiative.old_offline_votes.to_i
25
+ }
26
+
27
+ # rubocop:disable Rails/SkipsModelValidations
28
+ initiative.update_column(:offline_votes, offline_votes)
29
+ # rubocop:enable Rails/SkipsModelValidations
30
+ end
31
+
32
+ remove_column :decidim_initiatives, :old_offline_votes
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveUserGroupsFromInitiativeVotes < ActiveRecord::Migration[5.2]
4
+ def change
5
+ remove_column :decidim_initiatives_votes, :decidim_user_group_id
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddCommentableCounterCacheToInitiatives < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_initiatives, :comments_count, :integer, null: false, default: 0, index: true
6
+ Decidim::Initiative.reset_column_information
7
+ Decidim::Initiative.find_each(&:update_comments_count)
8
+ end
9
+ end
Binary file
@@ -53,6 +53,7 @@ module Decidim
53
53
  member do
54
54
  put :publish
55
55
  put :unpublish
56
+ get :share
56
57
  end
57
58
  resources :exports, only: :create
58
59
  end
@@ -34,13 +34,13 @@ module Decidim
34
34
 
35
35
  resources :initiatives, param: :slug, only: [:index, :show], path: "initiatives" do
36
36
  resources :initiative_signatures
37
+
37
38
  member do
38
- get :signature_identities
39
39
  get :authorization_sign_modal, to: "authorization_sign_modals#show"
40
40
  end
41
41
 
42
42
  resource :initiative_vote, only: [:create, :destroy]
43
- resource :initiative_widget, only: :show, path: "embed"
43
+ resource :widget, only: :show, path: "embed"
44
44
  resources :committee_requests, only: [:new], shallow: true do
45
45
  collection do
46
46
  get :spawn
@@ -100,6 +100,13 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
100
100
 
101
101
  Decidim::Comments::Seed.comments_for(initiative)
102
102
 
103
+ Decidim::Attachment.create!(
104
+ title: Decidim::Faker::Localized.sentence(2),
105
+ description: Decidim::Faker::Localized.sentence(5),
106
+ attached_to: initiative,
107
+ file: File.new(File.join(seeds_root, "city.jpeg"))
108
+ )
109
+
103
110
  Decidim::Initiatives.default_components.each do |component_name|
104
111
  component = Decidim::Component.create!(
105
112
  name: Decidim::Components::Namer.new(initiative.organization.available_locales, component_name).i18n_name,
@@ -7,8 +7,8 @@ FactoryBot.define do
7
7
  factory :initiatives_type, class: "Decidim::InitiativesType" do
8
8
  title { generate_localized_title }
9
9
  description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
10
- banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
11
10
  organization
11
+ banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
12
12
  signature_type { :online }
13
13
  attachments_enabled { true }
14
14
  undo_online_signatures_enabled { true }
@@ -16,6 +16,8 @@ FactoryBot.define do
16
16
  area_enabled { false }
17
17
  promoting_committee_enabled { true }
18
18
  minimum_committee_members { 3 }
19
+ child_scope_threshold_enabled { false }
20
+ only_global_scope_enabled { false }
19
21
 
20
22
  trait :attachments_enabled do
21
23
  attachments_enabled { true }
@@ -69,11 +71,20 @@ FactoryBot.define do
69
71
  trait :with_user_extra_fields_collection do
70
72
  collect_user_extra_fields { true }
71
73
  extra_fields_legal_information { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
74
+ document_number_authorization_handler { "dummy_authorization_handler" }
72
75
  end
73
76
 
74
77
  trait :with_sms_code_validation do
75
78
  validate_sms_code_on_votes { true }
76
79
  end
80
+
81
+ trait :child_scope_threshold_enabled do
82
+ child_scope_threshold_enabled { true }
83
+ end
84
+
85
+ trait :only_global_scope_enabled do
86
+ only_global_scope_enabled { true }
87
+ end
77
88
  end
78
89
 
79
90
  factory :initiatives_type_scope, class: "Decidim::InitiativesTypeScope" do
@@ -157,7 +168,8 @@ FactoryBot.define do
157
168
  signature_type { "online" }
158
169
 
159
170
  after(:build) do |initiative|
160
- initiative.initiative_votes_count = initiative.scoped_type.supports_required + 1
171
+ initiative.online_votes[initiative.scope.id.to_s] = initiative.supports_required + 1
172
+ initiative.online_votes["total"] = initiative.supports_required + 1
161
173
  end
162
174
  end
163
175
 
@@ -167,7 +179,8 @@ FactoryBot.define do
167
179
  signature_type { "online" }
168
180
 
169
181
  after(:build) do |initiative|
170
- initiative.initiative_votes_count = initiative.scoped_type.supports_required - 1
182
+ initiative.online_votes[initiative.scope.id.to_s] = 0
183
+ initiative.online_votes["total"] = 0
171
184
  end
172
185
  end
173
186
 
@@ -182,6 +195,11 @@ FactoryBot.define do
182
195
  factory :initiative_user_vote, class: "Decidim::InitiativesVote" do
183
196
  initiative { create(:initiative) }
184
197
  author { create(:user, :confirmed, organization: initiative.organization) }
198
+ hash_id { SecureRandom.uuid }
199
+ scope { initiative.scope }
200
+ after(:create) do |vote|
201
+ vote.initiative.update_online_votes_counters
202
+ end
185
203
  end
186
204
 
187
205
  factory :organization_user_vote, class: "Decidim::InitiativesVote" do
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-initiatives version.
5
5
  module Initiatives
6
6
  def self.version
7
- "0.22.0"
7
+ "0.23.3"
8
8
  end
9
9
  end
10
10
  end
@@ -11,9 +11,7 @@ namespace :decidim_initiatives do
11
11
  desc "Check published initiatives and moves to accepted/rejected state depending on the votes collected when the signing period has finished"
12
12
  task check_published: :environment do
13
13
  Decidim::Initiatives::SupportPeriodFinishedInitiatives.new.each do |initiative|
14
- supports_required = initiative.scoped_type.supports_required
15
-
16
- if initiative.initiative_votes_count >= supports_required
14
+ if initiative.supports_goal_reached?
17
15
  initiative.accepted!
18
16
  else
19
17
  initiative.rejected!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-initiatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.3
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-09-01 00:00:00.000000000 Z
11
+ date: 2021-02-23 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.22.0
19
+ version: 0.23.3
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.22.0
26
+ version: 0.23.3
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.22.0
33
+ version: 0.23.3
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.22.0
40
+ version: 0.23.3
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.22.0
47
+ version: 0.23.3
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.22.0
54
+ version: 0.23.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-verifications
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.22.0
61
+ version: 0.23.3
62
62
  type: :runtime
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.22.0
68
+ version: 0.23.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -162,14 +162,14 @@ dependencies:
162
162
  requirements:
163
163
  - - '='
164
164
  - !ruby/object:Gem::Version
165
- version: 0.22.0
165
+ version: 0.23.3
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - '='
171
171
  - !ruby/object:Gem::Version
172
- version: 0.22.0
172
+ version: 0.23.3
173
173
  description: Citizen initiatives plugin for decidim.
174
174
  email:
175
175
  - jsperezg@gmail.com
@@ -249,11 +249,11 @@ files:
249
249
  - app/controllers/decidim/initiatives/initiative_signatures_controller.rb
250
250
  - app/controllers/decidim/initiatives/initiative_types_controller.rb
251
251
  - app/controllers/decidim/initiatives/initiative_votes_controller.rb
252
- - app/controllers/decidim/initiatives/initiative_widgets_controller.rb
253
252
  - app/controllers/decidim/initiatives/initiatives_controller.rb
254
253
  - app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb
255
254
  - app/controllers/decidim/initiatives/initiatives_type_signature_types_controller.rb
256
255
  - app/controllers/decidim/initiatives/versions_controller.rb
256
+ - app/controllers/decidim/initiatives/widgets_controller.rb
257
257
  - app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
258
258
  - app/events/decidim/initiatives/admin/support_threshold_reached_event.rb
259
259
  - app/events/decidim/initiatives/create_initiative_event.rb
@@ -337,6 +337,7 @@ files:
337
337
  - app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb
338
338
  - app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb
339
339
  - app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb
340
+ - app/views/decidim/initiatives/initiative_signatures/error_on_vote.js.erb
340
341
  - app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb
341
342
  - app/views/decidim/initiatives/initiative_signatures/finish.html.erb
342
343
  - app/views/decidim/initiatives/initiative_signatures/sms_code.html.erb
@@ -355,14 +356,12 @@ files:
355
356
  - app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
356
357
  - app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
357
358
  - app/views/decidim/initiatives/initiatives/_result.html.erb
358
- - app/views/decidim/initiatives/initiatives/_supports.html.erb
359
359
  - app/views/decidim/initiatives/initiatives/_tags.html.erb
360
360
  - app/views/decidim/initiatives/initiatives/_vote_button.html.erb
361
361
  - app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb
362
362
  - app/views/decidim/initiatives/initiatives/index.html.erb
363
363
  - app/views/decidim/initiatives/initiatives/index.js.erb
364
364
  - app/views/decidim/initiatives/initiatives/show.html.erb
365
- - app/views/decidim/initiatives/initiatives/signature_identities.html.erb
366
365
  - app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb
367
366
  - app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb
368
367
  - app/views/decidim/initiatives/initiatives_mailer/notify_progress.html.erb
@@ -383,22 +382,27 @@ files:
383
382
  - app/views/layouts/decidim/initiative_signature_creation.html.erb
384
383
  - config/initializers/mail_previews.rb
385
384
  - config/initializers/wicked_pdf.rb
385
+ - config/locales/am-ET.yml
386
386
  - config/locales/ar-SA.yml
387
387
  - config/locales/ar.yml
388
388
  - config/locales/bg-BG.yml
389
+ - config/locales/bg.yml
389
390
  - config/locales/ca.yml
390
391
  - config/locales/cs-CZ.yml
391
392
  - config/locales/cs.yml
392
393
  - config/locales/da-DK.yml
394
+ - config/locales/da.yml
393
395
  - config/locales/de.yml
394
396
  - config/locales/el-GR.yml
395
397
  - config/locales/el.yml
396
398
  - config/locales/en.yml
397
399
  - config/locales/eo-UY.yml
400
+ - config/locales/eo.yml
398
401
  - config/locales/es-MX.yml
399
402
  - config/locales/es-PY.yml
400
403
  - config/locales/es.yml
401
404
  - config/locales/et-EE.yml
405
+ - config/locales/et.yml
402
406
  - config/locales/eu.yml
403
407
  - config/locales/fi-pl.yml
404
408
  - config/locales/fi-plain.yml
@@ -408,28 +412,44 @@ files:
408
412
  - config/locales/ga-IE.yml
409
413
  - config/locales/gl.yml
410
414
  - config/locales/hr-HR.yml
415
+ - config/locales/hr.yml
411
416
  - config/locales/hu.yml
412
417
  - config/locales/id-ID.yml
413
418
  - config/locales/is-IS.yml
419
+ - config/locales/is.yml
414
420
  - config/locales/it.yml
415
421
  - config/locales/ja-JP.yml
422
+ - config/locales/ja.yml
423
+ - config/locales/ko-KR.yml
424
+ - config/locales/ko.yml
416
425
  - config/locales/lt-LT.yml
417
- - config/locales/lv-LV.yml
426
+ - config/locales/lt.yml
427
+ - config/locales/lv.yml
418
428
  - config/locales/mt-MT.yml
429
+ - config/locales/mt.yml
419
430
  - config/locales/nl.yml
420
431
  - config/locales/no.yml
432
+ - config/locales/om-ET.yml
421
433
  - config/locales/pl.yml
422
434
  - config/locales/pt-BR.yml
423
435
  - config/locales/pt.yml
424
436
  - config/locales/ro-RO.yml
425
437
  - config/locales/ru.yml
438
+ - config/locales/si-LK.yml
426
439
  - config/locales/sk-SK.yml
427
440
  - config/locales/sk.yml
428
441
  - config/locales/sl.yml
442
+ - config/locales/so-SO.yml
429
443
  - config/locales/sr-CS.yml
430
444
  - config/locales/sv.yml
445
+ - config/locales/sw-KE.yml
446
+ - config/locales/ti-ER.yml
431
447
  - config/locales/tr-TR.yml
432
448
  - config/locales/uk.yml
449
+ - config/locales/vi-VN.yml
450
+ - config/locales/vi.yml
451
+ - config/locales/zh-CN.yml
452
+ - config/locales/zh-TW.yml
433
453
  - db/migrate/20170906091626_create_decidim_initiatives_types.rb
434
454
  - db/migrate/20170906094044_create_decidim_initiatives.rb
435
455
  - db/migrate/20170917072556_create_decidim_initiatives_votes.rb
@@ -474,12 +494,19 @@ files:
474
494
  - db/migrate/20190213184301_add_undo_online_signatures_enabled_to_initiatives_types.rb
475
495
  - db/migrate/20190925145648_add_promoting_committee_option.rb
476
496
  - db/migrate/20191002082220_move_signature_type_to_initative_type.rb
497
+ - db/migrate/20191106144259_add_settings_to_initiatives_types.rb
498
+ - db/migrate/20191107134847_add_scopes_to_initiatives_votes.rb
499
+ - db/migrate/20191116170841_allow_multiple_initiative_votes_counter_caches.rb
500
+ - db/migrate/20191118105634_allow_multiple_offline_votes.rb
477
501
  - db/migrate/20200320105920_index_foreign_keys_in_decidim_initiatives.rb
478
502
  - db/migrate/20200320105921_index_foreign_keys_in_decidim_initiatives_votes.rb
479
503
  - db/migrate/20200417120551_add_custom_signature_end_time_option.rb
480
504
  - db/migrate/20200424110930_add_attachments_enabled_option.rb
481
505
  - db/migrate/20200514085422_add_area_to_initiatives.rb
482
506
  - db/migrate/20200514102631_add_area_enabled_option_to_initiatives.rb
507
+ - db/migrate/20200528151456_remove_user_groups_from_initiative_votes.rb
508
+ - db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb
509
+ - db/seeds/city.jpeg
483
510
  - db/seeds/city2.jpeg
484
511
  - lib/decidim/api/initiative_type_interface.rb
485
512
  - lib/decidim/initiatives.rb
@@ -499,7 +526,7 @@ homepage: https://github.com/decidim/decidim
499
526
  licenses:
500
527
  - AGPL-3.0
501
528
  metadata: {}
502
- post_install_message:
529
+ post_install_message:
503
530
  rdoc_options: []
504
531
  require_paths:
505
532
  - lib
@@ -507,15 +534,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
507
534
  requirements:
508
535
  - - ">="
509
536
  - !ruby/object:Gem::Version
510
- version: '2.5'
537
+ version: '2.6'
511
538
  required_rubygems_version: !ruby/object:Gem::Requirement
512
539
  requirements:
513
540
  - - ">="
514
541
  - !ruby/object:Gem::Version
515
542
  version: '0'
516
543
  requirements: []
517
- rubygems_version: 3.1.2
518
- signing_key:
544
+ rubygems_version: 3.0.3
545
+ signing_key:
519
546
  specification_version: 4
520
547
  summary: Decidim initiatives module
521
548
  test_files: []