decidim-initiatives 0.19.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/app/assets/config/admin_decidim_initiatives_manifest.js +2 -1
- data/app/assets/images/decidim/gamification/badges/initiatives.svg +1 -87
- data/app/assets/images/decidim/initiatives/icon.svg +1 -3
- data/app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6 +38 -0
- data/app/assets/stylesheet/decidim/initiatives/initiatives-votes.css.scss +0 -1
- data/app/assets/stylesheet/decidim/initiatives/initiatives.scss +6 -8
- data/app/assets/stylesheet/decidim/initiatives/popularity_item.css.scss +0 -1
- data/app/assets/stylesheet/decidim/initiatives/print-initiative.css.scss +0 -3
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +4 -3
- data/app/cells/decidim/initiatives/initiative_m/footer.erb +1 -1
- data/app/cells/decidim/initiatives/initiative_m_cell.rb +25 -0
- data/app/cells/decidim/initiatives_votes/vote/show.erb +12 -9
- data/app/cells/decidim/initiatives_votes/vote_cell.rb +7 -0
- data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +8 -2
- data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +17 -0
- data/app/commands/decidim/initiatives/admin/update_initiative.rb +29 -10
- data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +10 -6
- data/app/commands/decidim/initiatives/attachment_methods.rb +37 -0
- data/app/commands/decidim/initiatives/create_initiative.rb +25 -3
- data/app/commands/decidim/initiatives/unvote_initiative.rb +4 -10
- data/app/commands/decidim/initiatives/vote_initiative.rb +47 -31
- data/app/controllers/concerns/decidim/initiatives/admin/filterable.rb +51 -0
- data/app/controllers/concerns/decidim/initiatives/orderable.rb +3 -1
- data/app/controllers/concerns/decidim/initiatives/single_initiative_type.rb +26 -0
- data/app/controllers/decidim/initiatives/admin/answers_controller.rb +2 -3
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +28 -15
- data/app/controllers/decidim/initiatives/create_initiative_controller.rb +43 -9
- data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +19 -23
- data/app/controllers/decidim/initiatives/initiative_votes_controller.rb +11 -5
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +28 -13
- data/app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb +9 -1
- data/app/controllers/decidim/initiatives/versions_controller.rb +20 -0
- data/app/controllers/decidim/initiatives/{initiative_widgets_controller.rb → widgets_controller.rb} +2 -2
- data/app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb +21 -0
- data/app/events/decidim/initiatives/admin/support_threshold_reached_event.rb +13 -0
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +50 -8
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +28 -6
- data/app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb +0 -1
- data/app/forms/decidim/initiatives/initiative_form.rb +69 -2
- data/app/forms/decidim/initiatives/vote_form.rb +133 -76
- data/app/helpers/decidim/initiatives/application_helper.rb +104 -0
- data/app/helpers/decidim/initiatives/create_initiative_helper.rb +10 -11
- data/app/helpers/decidim/initiatives/initiative_helper.rb +13 -0
- data/app/helpers/decidim/initiatives/initiatives_helper.rb +10 -0
- data/app/jobs/decidim/initiatives/export_initiatives_job.rb +25 -0
- data/app/mailers/decidim/initiatives/initiatives_mailer.rb +0 -21
- data/app/models/concerns/decidim/initiatives/has_area.rb +30 -0
- data/app/models/decidim/initiative.rb +200 -51
- data/app/models/decidim/initiatives_type.rb +14 -14
- data/app/models/decidim/initiatives_type_scope.rb +9 -2
- data/app/models/decidim/initiatives_vote.rb +19 -23
- data/app/permissions/decidim/initiatives/admin/permissions.rb +21 -10
- data/app/permissions/decidim/initiatives/permissions.rb +38 -14
- data/app/presenters/decidim/initiatives/initiative_stats_presenter.rb +1 -5
- data/app/queries/decidim/initiatives/admin/manageable_initiatives.rb +7 -39
- data/app/serializers/decidim/initiatives/initiative_serializer.rb +32 -0
- data/app/services/decidim/initiatives/diff_renderer.rb +18 -0
- data/app/services/decidim/initiatives/initiative_search.rb +59 -15
- data/app/services/decidim/initiatives/status_change_notifier.rb +4 -5
- data/app/types/decidim/initiatives/initiative_api_type.rb +26 -0
- data/app/types/decidim/initiatives/initiative_committee_member_type.rb +18 -0
- data/app/types/decidim/initiatives/initiative_type.rb +42 -0
- data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +8 -0
- data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +60 -15
- data/app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb +43 -0
- data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +12 -9
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +10 -45
- data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +55 -12
- data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +28 -25
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +61 -16
- data/app/views/decidim/initiatives/create_initiative/finish.html.erb +17 -10
- data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +2 -1
- data/app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb +1 -1
- data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +1 -2
- data/app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb +1 -1
- data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +1 -1
- data/app/views/decidim/initiatives/initiative_signatures/update_buttons_and_counters.js.erb +1 -1
- data/app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_author.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_filters.html.erb +16 -28
- data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +39 -5
- data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +11 -1
- data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +2 -3
- data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +24 -9
- data/app/views/decidim/initiatives/initiatives/_tags.html.erb +4 -1
- data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +1 -13
- data/app/views/decidim/initiatives/initiatives/index.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/show.html.erb +5 -6
- data/app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb +1 -1
- data/app/views/decidim/initiatives/versions/index.html.erb +8 -0
- data/app/views/decidim/initiatives/versions/show.html.erb +10 -0
- data/app/views/layouts/decidim/_initiative_creation_header.html.erb +3 -1
- data/app/views/layouts/decidim/_initiative_header.html.erb +2 -1
- data/app/views/layouts/decidim/_initiative_signature_creation_header.html.erb +1 -1
- data/app/views/layouts/decidim/admin/initiative.html.erb +1 -1
- data/app/views/layouts/decidim/initiative.html.erb +1 -0
- data/app/views/layouts/decidim/initiative_creation.html.erb +1 -2
- data/app/views/layouts/decidim/initiative_signature_creation.html.erb +2 -2
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +17 -21
- data/config/locales/bg-BG.yml +13 -0
- data/config/locales/bg.yml +13 -0
- data/config/locales/ca.yml +101 -22
- data/config/locales/cs.yml +111 -32
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +75 -21
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +525 -0
- data/config/locales/en.yml +103 -24
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +100 -21
- data/config/locales/es-PY.yml +100 -21
- data/config/locales/es.yml +104 -25
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +4 -21
- data/config/locales/fi-plain.yml +100 -21
- data/config/locales/fi.yml +118 -39
- data/config/locales/fr-CA.yml +557 -0
- data/config/locales/fr.yml +102 -23
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +4 -21
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +31 -24
- data/config/locales/id-ID.yml +4 -21
- data/config/locales/is-IS.yml +251 -0
- data/config/locales/is.yml +251 -0
- data/config/locales/it.yml +117 -61
- data/config/locales/ja-JP.yml +529 -0
- data/config/locales/ja.yml +549 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +525 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +77 -21
- data/config/locales/no.yml +368 -9
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +260 -189
- data/config/locales/pt-BR.yml +5 -22
- data/config/locales/pt.yml +231 -179
- data/config/locales/ro-RO.yml +533 -0
- data/config/locales/ru.yml +4 -21
- data/config/locales/sk-SK.yml +468 -0
- data/config/locales/sk.yml +458 -0
- data/config/locales/sl.yml +24 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +8 -0
- data/config/locales/sv.yml +102 -31
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +4 -21
- data/config/locales/uk.yml +4 -21
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +549 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20190925145648_add_promoting_committee_option.rb +7 -0
- data/db/migrate/20191002082220_move_signature_type_to_initative_type.rb +38 -0
- data/db/migrate/20191106144259_add_settings_to_initiatives_types.rb +8 -0
- data/db/migrate/20191107134847_add_scopes_to_initiatives_votes.rb +28 -0
- data/db/migrate/20191116170841_allow_multiple_initiative_votes_counter_caches.rb +32 -0
- data/db/migrate/20191118105634_allow_multiple_offline_votes.rb +34 -0
- data/db/migrate/20200320105920_index_foreign_keys_in_decidim_initiatives.rb +8 -0
- data/db/migrate/20200320105921_index_foreign_keys_in_decidim_initiatives_votes.rb +8 -0
- data/db/migrate/20200417120551_add_custom_signature_end_time_option.rb +7 -0
- data/db/migrate/20200424110930_add_attachments_enabled_option.rb +7 -0
- data/db/migrate/20200514085422_add_area_to_initiatives.rb +7 -0
- data/db/migrate/20200514102631_add_area_enabled_option_to_initiatives.rb +7 -0
- data/db/migrate/20200528151456_remove_user_groups_from_initiative_votes.rb +7 -0
- data/db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb +9 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/lib/decidim/api/initiative_type_interface.rb +13 -0
- data/lib/decidim/initiatives.rb +0 -14
- data/lib/decidim/initiatives/admin_engine.rb +6 -1
- data/lib/decidim/initiatives/api.rb +7 -0
- data/lib/decidim/initiatives/engine.rb +11 -2
- data/lib/decidim/initiatives/participatory_space.rb +20 -1
- data/lib/decidim/initiatives/query_extensions.rb +40 -0
- data/lib/decidim/initiatives/test/factories.rb +69 -8
- data/lib/decidim/initiatives/version.rb +1 -1
- data/lib/tasks/decidim_initiatives.rake +1 -3
- metadata +96 -20
- data/app/views/decidim/initiatives/initiative_widgets/show.html.erb +0 -4
- data/app/views/decidim/initiatives/initiatives/_supports.html.erb +0 -22
- data/app/views/decidim/initiatives/initiatives/signature_identities.html.erb +0 -42
- data/app/views/decidim/initiatives/initiatives_mailer/notify_validating_request.html.erb +0 -3
@@ -7,18 +7,32 @@ 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
|
12
|
-
|
11
|
+
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
12
|
+
signature_type { :online }
|
13
|
+
attachments_enabled { true }
|
13
14
|
undo_online_signatures_enabled { true }
|
15
|
+
custom_signature_end_date_enabled { false }
|
16
|
+
area_enabled { false }
|
17
|
+
promoting_committee_enabled { true }
|
14
18
|
minimum_committee_members { 3 }
|
19
|
+
child_scope_threshold_enabled { false }
|
20
|
+
only_global_scope_enabled { false }
|
21
|
+
|
22
|
+
trait :attachments_enabled do
|
23
|
+
attachments_enabled { true }
|
24
|
+
end
|
25
|
+
|
26
|
+
trait :attachments_disabled do
|
27
|
+
attachments_enabled { false }
|
28
|
+
end
|
15
29
|
|
16
30
|
trait :online_signature_enabled do
|
17
|
-
|
31
|
+
signature_type { :online }
|
18
32
|
end
|
19
33
|
|
20
34
|
trait :online_signature_disabled do
|
21
|
-
|
35
|
+
signature_type { :offline }
|
22
36
|
end
|
23
37
|
|
24
38
|
trait :undo_online_signatures_enabled do
|
@@ -29,14 +43,48 @@ FactoryBot.define do
|
|
29
43
|
undo_online_signatures_enabled { false }
|
30
44
|
end
|
31
45
|
|
46
|
+
trait :custom_signature_end_date_enabled do
|
47
|
+
custom_signature_end_date_enabled { true }
|
48
|
+
end
|
49
|
+
|
50
|
+
trait :custom_signature_end_date_disabled do
|
51
|
+
custom_signature_end_date_enabled { false }
|
52
|
+
end
|
53
|
+
|
54
|
+
trait :area_enabled do
|
55
|
+
area_enabled { true }
|
56
|
+
end
|
57
|
+
|
58
|
+
trait :area_disabled do
|
59
|
+
area_enabled { false }
|
60
|
+
end
|
61
|
+
|
62
|
+
trait :promoting_committee_enabled do
|
63
|
+
promoting_committee_enabled { true }
|
64
|
+
end
|
65
|
+
|
66
|
+
trait :promoting_committee_disabled do
|
67
|
+
promoting_committee_enabled { false }
|
68
|
+
minimum_committee_members { 0 }
|
69
|
+
end
|
70
|
+
|
32
71
|
trait :with_user_extra_fields_collection do
|
33
72
|
collect_user_extra_fields { true }
|
34
73
|
extra_fields_legal_information { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
74
|
+
document_number_authorization_handler { "dummy_authorization_handler" }
|
35
75
|
end
|
36
76
|
|
37
77
|
trait :with_sms_code_validation do
|
38
78
|
validate_sms_code_on_votes { true }
|
39
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
|
40
88
|
end
|
41
89
|
|
42
90
|
factory :initiatives_type_scope, class: "Decidim::InitiativesTypeScope" do
|
@@ -62,11 +110,13 @@ FactoryBot.define do
|
|
62
110
|
|
63
111
|
scoped_type do
|
64
112
|
create(:initiatives_type_scope,
|
65
|
-
type: create(:initiatives_type, organization: organization))
|
113
|
+
type: create(:initiatives_type, organization: organization, signature_type: signature_type))
|
66
114
|
end
|
67
115
|
|
68
116
|
after(:create) do |initiative|
|
69
|
-
|
117
|
+
if initiative.author.is_a?(Decidim::User) && Decidim::Authorization.where(user: initiative.author).where.not(granted_at: nil).none?
|
118
|
+
create(:authorization, user: initiative.author, granted_at: Time.now.utc)
|
119
|
+
end
|
70
120
|
create_list(:initiatives_committee_member, 3, initiative: initiative)
|
71
121
|
end
|
72
122
|
|
@@ -88,6 +138,10 @@ FactoryBot.define do
|
|
88
138
|
state { "published" }
|
89
139
|
end
|
90
140
|
|
141
|
+
trait :unpublished do
|
142
|
+
published_at { nil }
|
143
|
+
end
|
144
|
+
|
91
145
|
trait :accepted do
|
92
146
|
state { "accepted" }
|
93
147
|
end
|
@@ -114,7 +168,8 @@ FactoryBot.define do
|
|
114
168
|
signature_type { "online" }
|
115
169
|
|
116
170
|
after(:build) do |initiative|
|
117
|
-
initiative.
|
171
|
+
initiative.online_votes[initiative.scope.id.to_s] = initiative.supports_required + 1
|
172
|
+
initiative.online_votes["total"] = initiative.supports_required + 1
|
118
173
|
end
|
119
174
|
end
|
120
175
|
|
@@ -124,7 +179,8 @@ FactoryBot.define do
|
|
124
179
|
signature_type { "online" }
|
125
180
|
|
126
181
|
after(:build) do |initiative|
|
127
|
-
initiative.
|
182
|
+
initiative.online_votes[initiative.scope.id.to_s] = 0
|
183
|
+
initiative.online_votes["total"] = 0
|
128
184
|
end
|
129
185
|
end
|
130
186
|
|
@@ -139,6 +195,11 @@ FactoryBot.define do
|
|
139
195
|
factory :initiative_user_vote, class: "Decidim::InitiativesVote" do
|
140
196
|
initiative { create(:initiative) }
|
141
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
|
142
203
|
end
|
143
204
|
|
144
205
|
factory :organization_user_vote, class: "Decidim::InitiativesVote" do
|
@@ -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
|
-
|
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.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,70 +16,76 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.23.0
|
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.
|
26
|
+
version: 0.23.0
|
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.
|
33
|
+
version: 0.23.0
|
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.
|
40
|
+
version: 0.23.0
|
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.
|
47
|
+
version: 0.23.0
|
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.
|
54
|
+
version: 0.23.0
|
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.
|
61
|
+
version: 0.23.0
|
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.
|
68
|
+
version: 0.23.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: kaminari
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.2'
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.2.1
|
76
79
|
type: :runtime
|
77
80
|
prerelease: false
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
79
82
|
requirements:
|
80
83
|
- - "~>"
|
81
84
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
85
|
+
version: '1.2'
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 1.2.1
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: origami
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +162,14 @@ dependencies:
|
|
156
162
|
requirements:
|
157
163
|
- - '='
|
158
164
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
165
|
+
version: 0.23.0
|
160
166
|
type: :development
|
161
167
|
prerelease: false
|
162
168
|
version_requirements: !ruby/object:Gem::Requirement
|
163
169
|
requirements:
|
164
170
|
- - '='
|
165
171
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
172
|
+
version: 0.23.0
|
167
173
|
description: Citizen initiatives plugin for decidim.
|
168
174
|
email:
|
169
175
|
- jsperezg@gmail.com
|
@@ -178,6 +184,7 @@ files:
|
|
178
184
|
- app/assets/config/decidim_initiatives_manifest.js
|
179
185
|
- app/assets/images/decidim/gamification/badges/initiatives.svg
|
180
186
|
- app/assets/images/decidim/initiatives/icon.svg
|
187
|
+
- app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6
|
181
188
|
- app/assets/javascripts/decidim/initiatives/admin/invite_users.js
|
182
189
|
- app/assets/javascripts/decidim/initiatives/application.js
|
183
190
|
- app/assets/javascripts/decidim/initiatives/identity_selector_dialog.js
|
@@ -209,6 +216,7 @@ files:
|
|
209
216
|
- app/commands/decidim/initiatives/admin/update_initiative_answer.rb
|
210
217
|
- app/commands/decidim/initiatives/admin/update_initiative_type.rb
|
211
218
|
- app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb
|
219
|
+
- app/commands/decidim/initiatives/attachment_methods.rb
|
212
220
|
- app/commands/decidim/initiatives/create_initiative.rb
|
213
221
|
- app/commands/decidim/initiatives/spawn_committee_request.rb
|
214
222
|
- app/commands/decidim/initiatives/unvote_initiative.rb
|
@@ -217,9 +225,11 @@ files:
|
|
217
225
|
- app/commands/decidim/initiatives/vote_initiative.rb
|
218
226
|
- app/constraints/decidim/initiatives/current_component.rb
|
219
227
|
- app/constraints/decidim/initiatives/current_initiative.rb
|
228
|
+
- app/controllers/concerns/decidim/initiatives/admin/filterable.rb
|
220
229
|
- app/controllers/concerns/decidim/initiatives/admin/initiative_admin.rb
|
221
230
|
- app/controllers/concerns/decidim/initiatives/needs_initiative.rb
|
222
231
|
- app/controllers/concerns/decidim/initiatives/orderable.rb
|
232
|
+
- app/controllers/concerns/decidim/initiatives/single_initiative_type.rb
|
223
233
|
- app/controllers/concerns/decidim/initiatives/type_selector_options.rb
|
224
234
|
- app/controllers/decidim/initiatives/admin/answers_controller.rb
|
225
235
|
- app/controllers/decidim/initiatives/admin/application_controller.rb
|
@@ -239,10 +249,13 @@ files:
|
|
239
249
|
- app/controllers/decidim/initiatives/initiative_signatures_controller.rb
|
240
250
|
- app/controllers/decidim/initiatives/initiative_types_controller.rb
|
241
251
|
- app/controllers/decidim/initiatives/initiative_votes_controller.rb
|
242
|
-
- app/controllers/decidim/initiatives/initiative_widgets_controller.rb
|
243
252
|
- app/controllers/decidim/initiatives/initiatives_controller.rb
|
244
253
|
- app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb
|
245
254
|
- app/controllers/decidim/initiatives/initiatives_type_signature_types_controller.rb
|
255
|
+
- app/controllers/decidim/initiatives/versions_controller.rb
|
256
|
+
- app/controllers/decidim/initiatives/widgets_controller.rb
|
257
|
+
- app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
|
258
|
+
- app/events/decidim/initiatives/admin/support_threshold_reached_event.rb
|
246
259
|
- app/events/decidim/initiatives/create_initiative_event.rb
|
247
260
|
- app/events/decidim/initiatives/endorse_initiative_event.rb
|
248
261
|
- app/events/decidim/initiatives/extend_initiative_event.rb
|
@@ -256,10 +269,13 @@ files:
|
|
256
269
|
- app/forms/decidim/initiatives/previous_form.rb
|
257
270
|
- app/forms/decidim/initiatives/select_initiative_type_form.rb
|
258
271
|
- app/forms/decidim/initiatives/vote_form.rb
|
272
|
+
- app/helpers/decidim/initiatives/application_helper.rb
|
259
273
|
- app/helpers/decidim/initiatives/create_initiative_helper.rb
|
260
274
|
- app/helpers/decidim/initiatives/initiative_helper.rb
|
261
275
|
- app/helpers/decidim/initiatives/initiatives_helper.rb
|
276
|
+
- app/jobs/decidim/initiatives/export_initiatives_job.rb
|
262
277
|
- app/mailers/decidim/initiatives/initiatives_mailer.rb
|
278
|
+
- app/models/concerns/decidim/initiatives/has_area.rb
|
263
279
|
- app/models/decidim/initiative.rb
|
264
280
|
- app/models/decidim/initiatives_committee_member.rb
|
265
281
|
- app/models/decidim/initiatives_type.rb
|
@@ -281,17 +297,24 @@ files:
|
|
281
297
|
- app/queries/decidim/initiatives/similar_initiatives.rb
|
282
298
|
- app/queries/decidim/initiatives/support_period_finished_initiatives.rb
|
283
299
|
- app/queries/decidim/initiatives/user_authorizations.rb
|
300
|
+
- app/serializers/decidim/initiatives/initiative_serializer.rb
|
284
301
|
- app/services/decidim/initiatives/data_encryptor.rb
|
302
|
+
- app/services/decidim/initiatives/diff_renderer.rb
|
285
303
|
- app/services/decidim/initiatives/dummy_timestamp.rb
|
286
304
|
- app/services/decidim/initiatives/initiative_search.rb
|
287
305
|
- app/services/decidim/initiatives/pdf_signature_example.rb
|
288
306
|
- app/services/decidim/initiatives/progress_notifier.rb
|
289
307
|
- app/services/decidim/initiatives/status_change_notifier.rb
|
308
|
+
- app/types/decidim/initiatives/initiative_api_type.rb
|
309
|
+
- app/types/decidim/initiatives/initiative_committee_member_type.rb
|
310
|
+
- app/types/decidim/initiatives/initiative_type.rb
|
290
311
|
- app/views/decidim/initiatives/_initiative.html.erb
|
291
312
|
- app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb
|
292
313
|
- app/views/decidim/initiatives/admin/answers/edit.html.erb
|
293
314
|
- app/views/decidim/initiatives/admin/committee_requests/index.html.erb
|
315
|
+
- app/views/decidim/initiatives/admin/exports/_dropdown.html.erb
|
294
316
|
- app/views/decidim/initiatives/admin/initiatives/_form.html.erb
|
317
|
+
- app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
|
295
318
|
- app/views/decidim/initiatives/admin/initiatives/edit.html.erb
|
296
319
|
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
|
297
320
|
- app/views/decidim/initiatives/admin/initiatives/index.html.erb
|
@@ -320,7 +343,6 @@ files:
|
|
320
343
|
- app/views/decidim/initiatives/initiative_signatures/sms_phone_number.html.erb
|
321
344
|
- app/views/decidim/initiatives/initiative_signatures/update_buttons_and_counters.js.erb
|
322
345
|
- app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb
|
323
|
-
- app/views/decidim/initiatives/initiative_widgets/show.html.erb
|
324
346
|
- app/views/decidim/initiatives/initiatives/_author.html.erb
|
325
347
|
- app/views/decidim/initiatives/initiatives/_count.html.erb
|
326
348
|
- app/views/decidim/initiatives/initiatives/_filters.html.erb
|
@@ -333,21 +355,20 @@ files:
|
|
333
355
|
- app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
|
334
356
|
- app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
|
335
357
|
- app/views/decidim/initiatives/initiatives/_result.html.erb
|
336
|
-
- app/views/decidim/initiatives/initiatives/_supports.html.erb
|
337
358
|
- app/views/decidim/initiatives/initiatives/_tags.html.erb
|
338
359
|
- app/views/decidim/initiatives/initiatives/_vote_button.html.erb
|
339
360
|
- app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb
|
340
361
|
- app/views/decidim/initiatives/initiatives/index.html.erb
|
341
362
|
- app/views/decidim/initiatives/initiatives/index.js.erb
|
342
363
|
- app/views/decidim/initiatives/initiatives/show.html.erb
|
343
|
-
- app/views/decidim/initiatives/initiatives/signature_identities.html.erb
|
344
364
|
- app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb
|
345
365
|
- app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb
|
346
366
|
- app/views/decidim/initiatives/initiatives_mailer/notify_progress.html.erb
|
347
367
|
- app/views/decidim/initiatives/initiatives_mailer/notify_state_change.html.erb
|
348
|
-
- app/views/decidim/initiatives/initiatives_mailer/notify_validating_request.html.erb
|
349
368
|
- app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb
|
350
369
|
- app/views/decidim/initiatives/initiatives_type_signature_types/search.html.erb
|
370
|
+
- app/views/decidim/initiatives/versions/index.html.erb
|
371
|
+
- app/views/decidim/initiatives/versions/show.html.erb
|
351
372
|
- app/views/layouts/decidim/_initiative_creation_header.html.erb
|
352
373
|
- app/views/layouts/decidim/_initiative_header.html.erb
|
353
374
|
- app/views/layouts/decidim/_initiative_header_steps.html.erb
|
@@ -360,35 +381,72 @@ files:
|
|
360
381
|
- app/views/layouts/decidim/initiative_signature_creation.html.erb
|
361
382
|
- config/initializers/mail_previews.rb
|
362
383
|
- config/initializers/wicked_pdf.rb
|
384
|
+
- config/locales/am-ET.yml
|
363
385
|
- config/locales/ar-SA.yml
|
364
386
|
- config/locales/ar.yml
|
387
|
+
- config/locales/bg-BG.yml
|
388
|
+
- config/locales/bg.yml
|
365
389
|
- config/locales/ca.yml
|
366
390
|
- config/locales/cs-CZ.yml
|
367
391
|
- config/locales/cs.yml
|
392
|
+
- config/locales/da-DK.yml
|
393
|
+
- config/locales/da.yml
|
368
394
|
- config/locales/de.yml
|
395
|
+
- config/locales/el-GR.yml
|
396
|
+
- config/locales/el.yml
|
369
397
|
- config/locales/en.yml
|
370
398
|
- config/locales/eo-UY.yml
|
399
|
+
- config/locales/eo.yml
|
371
400
|
- config/locales/es-MX.yml
|
372
401
|
- config/locales/es-PY.yml
|
373
402
|
- config/locales/es.yml
|
403
|
+
- config/locales/et-EE.yml
|
404
|
+
- config/locales/et.yml
|
374
405
|
- config/locales/eu.yml
|
375
406
|
- config/locales/fi-pl.yml
|
376
407
|
- config/locales/fi-plain.yml
|
377
408
|
- config/locales/fi.yml
|
409
|
+
- config/locales/fr-CA.yml
|
378
410
|
- config/locales/fr.yml
|
411
|
+
- config/locales/ga-IE.yml
|
379
412
|
- config/locales/gl.yml
|
413
|
+
- config/locales/hr-HR.yml
|
414
|
+
- config/locales/hr.yml
|
380
415
|
- config/locales/hu.yml
|
381
416
|
- config/locales/id-ID.yml
|
417
|
+
- config/locales/is-IS.yml
|
418
|
+
- config/locales/is.yml
|
382
419
|
- config/locales/it.yml
|
420
|
+
- config/locales/ja-JP.yml
|
421
|
+
- config/locales/ja.yml
|
422
|
+
- config/locales/ko-KR.yml
|
423
|
+
- config/locales/ko.yml
|
424
|
+
- config/locales/lt-LT.yml
|
425
|
+
- config/locales/lt.yml
|
426
|
+
- config/locales/lv.yml
|
427
|
+
- config/locales/mt-MT.yml
|
428
|
+
- config/locales/mt.yml
|
383
429
|
- config/locales/nl.yml
|
384
430
|
- config/locales/no.yml
|
431
|
+
- config/locales/om-ET.yml
|
385
432
|
- config/locales/pl.yml
|
386
433
|
- config/locales/pt-BR.yml
|
387
434
|
- config/locales/pt.yml
|
435
|
+
- config/locales/ro-RO.yml
|
388
436
|
- config/locales/ru.yml
|
437
|
+
- config/locales/sk-SK.yml
|
438
|
+
- config/locales/sk.yml
|
439
|
+
- config/locales/sl.yml
|
440
|
+
- config/locales/so-SO.yml
|
441
|
+
- config/locales/sr-CS.yml
|
389
442
|
- config/locales/sv.yml
|
443
|
+
- config/locales/ti-ER.yml
|
390
444
|
- config/locales/tr-TR.yml
|
391
445
|
- config/locales/uk.yml
|
446
|
+
- config/locales/vi-VN.yml
|
447
|
+
- config/locales/vi.yml
|
448
|
+
- config/locales/zh-CN.yml
|
449
|
+
- config/locales/zh-TW.yml
|
392
450
|
- db/migrate/20170906091626_create_decidim_initiatives_types.rb
|
393
451
|
- db/migrate/20170906094044_create_decidim_initiatives.rb
|
394
452
|
- db/migrate/20170917072556_create_decidim_initiatives_votes.rb
|
@@ -431,15 +489,33 @@ files:
|
|
431
489
|
- db/migrate/20190124170442_add_validate_sms_code_on_votes_to_initiatives_types.rb
|
432
490
|
- db/migrate/20190125131847_add_document_number_authorization_handler_to_initiatives_types.rb
|
433
491
|
- db/migrate/20190213184301_add_undo_online_signatures_enabled_to_initiatives_types.rb
|
492
|
+
- db/migrate/20190925145648_add_promoting_committee_option.rb
|
493
|
+
- db/migrate/20191002082220_move_signature_type_to_initative_type.rb
|
494
|
+
- db/migrate/20191106144259_add_settings_to_initiatives_types.rb
|
495
|
+
- db/migrate/20191107134847_add_scopes_to_initiatives_votes.rb
|
496
|
+
- db/migrate/20191116170841_allow_multiple_initiative_votes_counter_caches.rb
|
497
|
+
- db/migrate/20191118105634_allow_multiple_offline_votes.rb
|
498
|
+
- db/migrate/20200320105920_index_foreign_keys_in_decidim_initiatives.rb
|
499
|
+
- db/migrate/20200320105921_index_foreign_keys_in_decidim_initiatives_votes.rb
|
500
|
+
- db/migrate/20200417120551_add_custom_signature_end_time_option.rb
|
501
|
+
- db/migrate/20200424110930_add_attachments_enabled_option.rb
|
502
|
+
- db/migrate/20200514085422_add_area_to_initiatives.rb
|
503
|
+
- db/migrate/20200514102631_add_area_enabled_option_to_initiatives.rb
|
504
|
+
- db/migrate/20200528151456_remove_user_groups_from_initiative_votes.rb
|
505
|
+
- db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb
|
506
|
+
- db/seeds/city.jpeg
|
434
507
|
- db/seeds/city2.jpeg
|
508
|
+
- lib/decidim/api/initiative_type_interface.rb
|
435
509
|
- lib/decidim/initiatives.rb
|
436
510
|
- lib/decidim/initiatives/admin.rb
|
437
511
|
- lib/decidim/initiatives/admin_engine.rb
|
512
|
+
- lib/decidim/initiatives/api.rb
|
438
513
|
- lib/decidim/initiatives/current_locale.rb
|
439
514
|
- lib/decidim/initiatives/engine.rb
|
440
515
|
- lib/decidim/initiatives/initiative_slug.rb
|
441
516
|
- lib/decidim/initiatives/initiatives_filter_form_builder.rb
|
442
517
|
- lib/decidim/initiatives/participatory_space.rb
|
518
|
+
- lib/decidim/initiatives/query_extensions.rb
|
443
519
|
- lib/decidim/initiatives/test/factories.rb
|
444
520
|
- lib/decidim/initiatives/version.rb
|
445
521
|
- lib/tasks/decidim_initiatives.rake
|
@@ -455,7 +531,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
455
531
|
requirements:
|
456
532
|
- - ">="
|
457
533
|
- !ruby/object:Gem::Version
|
458
|
-
version: '2.
|
534
|
+
version: '2.6'
|
459
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
460
536
|
requirements:
|
461
537
|
- - ">="
|