decidim-sortitions 0.20.0 → 0.23.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/decidim/sortitions/icon.svg +1 -3
- data/app/assets/stylesheets/decidim/sortitions/_sortitions.scss +1 -1
- data/app/cells/decidim/sortitions/sortition_m/data.erb +3 -3
- data/app/cells/decidim/sortitions/sortition_m/footer.erb +1 -1
- data/app/controllers/decidim/sortitions/{sortition_widgets_controller.rb → widgets_controller.rb} +2 -2
- data/app/helpers/decidim/sortitions/sortitions_helper.rb +1 -0
- data/app/models/decidim/sortitions/sortition.rb +3 -0
- data/app/queries/decidim/sortitions/admin/participatory_space_proposals.rb +5 -1
- data/app/services/decidim/sortitions/sortition_search.rb +1 -18
- data/app/types/decidim/sortitions/sortition_type.rb +32 -0
- data/app/types/decidim/sortitions/sortitions_type.rb +32 -0
- data/app/views/decidim/sortitions/admin/sortitions/_form.html.erb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/edit.html.erb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/index.html.erb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/show.html.erb +1 -1
- data/app/views/decidim/sortitions/sortition_widgets/show.html.erb +1 -1
- data/app/views/decidim/sortitions/sortitions/_filters.html.erb +16 -8
- data/app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb +1 -1
- data/app/views/decidim/sortitions/sortitions/index.html.erb +4 -4
- data/app/views/decidim/sortitions/sortitions/show.html.erb +9 -3
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/bg-BG.yml +7 -0
- data/config/locales/bg.yml +7 -0
- data/config/locales/ca.yml +2 -0
- data/config/locales/cs.yml +62 -60
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +2 -0
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +152 -0
- data/config/locales/en.yml +2 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +2 -0
- data/config/locales/es-PY.yml +2 -0
- data/config/locales/es.yml +2 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +2 -0
- data/config/locales/fi.yml +5 -3
- data/config/locales/fr-CA.yml +153 -0
- data/config/locales/fr.yml +2 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -0
- data/config/locales/is-IS.yml +122 -0
- data/config/locales/is.yml +122 -0
- data/config/locales/it.yml +26 -24
- data/config/locales/ja-JP.yml +147 -0
- data/config/locales/ja.yml +147 -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 +158 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +2 -0
- data/config/locales/no.yml +110 -1
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +78 -76
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +55 -53
- data/config/locales/ro-RO.yml +159 -0
- data/config/locales/sk-SK.yml +164 -0
- data/config/locales/sk.yml +164 -0
- data/config/locales/sl.yml +5 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +6 -0
- data/config/locales/sv.yml +3 -1
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +147 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200320105926_index_foreign_keys_in_decidim_sortitions_sortitions.rb +7 -0
- data/db/migrate/20200827154036_add_commentable_counter_cache_to_sortitions.rb +9 -0
- data/lib/decidim/sortitions/component.rb +2 -0
- data/lib/decidim/sortitions/engine.rb +1 -1
- data/lib/decidim/sortitions/version.rb +1 -1
- metadata +57 -16
@@ -0,0 +1 @@
|
|
1
|
+
zh-TW:
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddCommentableCounterCacheToSortitions < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
add_column :decidim_sortitions_sortitions, :comments_count, :integer, null: false, default: 0, index: true
|
6
|
+
Decidim::Sortitions::Sortition.reset_column_information
|
7
|
+
Decidim::Sortitions::Sortition.find_each(&:update_comments_count)
|
8
|
+
end
|
9
|
+
end
|
@@ -6,6 +6,7 @@ Decidim.register_component(:sortitions) do |component|
|
|
6
6
|
component.icon = "decidim/sortitions/icon.svg"
|
7
7
|
# component.stylesheet = "decidim/sortitions/sortitions"
|
8
8
|
component.permissions_class_name = "Decidim::Sortitions::Permissions"
|
9
|
+
component.query_type = "Decidim::Sortitions::SortitionsType"
|
9
10
|
|
10
11
|
component.on(:before_destroy) do |instance|
|
11
12
|
raise StandardError, "Can't remove this component" if Decidim::Sortitions::Sortition.where(component: instance).any?
|
@@ -16,6 +17,7 @@ Decidim.register_component(:sortitions) do |component|
|
|
16
17
|
|
17
18
|
component.settings(:global) do |settings|
|
18
19
|
settings.attribute :comments_enabled, type: :boolean, default: true
|
20
|
+
settings.attribute :comments_max_length, type: :integer, required: false
|
19
21
|
end
|
20
22
|
|
21
23
|
# Register an optional resource that can be referenced from other resources.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-sortitions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.1.rc1
|
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: 2020-
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.23.1.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.
|
26
|
+
version: 0.23.1.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.
|
33
|
+
version: 0.23.1.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.
|
40
|
+
version: 0.23.1.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.
|
47
|
+
version: 0.23.1.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.
|
54
|
+
version: 0.23.1.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-proposals
|
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.1.rc1
|
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.1.rc1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: decidim-dev
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.23.1.rc1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.23.1.rc1
|
83
83
|
description: This module makes possible to select amont a set of proposal by sortition
|
84
84
|
email:
|
85
85
|
- jsperezg@gmail.com
|
@@ -103,8 +103,8 @@ files:
|
|
103
103
|
- app/controllers/decidim/sortitions/admin/application_controller.rb
|
104
104
|
- app/controllers/decidim/sortitions/admin/sortitions_controller.rb
|
105
105
|
- app/controllers/decidim/sortitions/application_controller.rb
|
106
|
-
- app/controllers/decidim/sortitions/sortition_widgets_controller.rb
|
107
106
|
- app/controllers/decidim/sortitions/sortitions_controller.rb
|
107
|
+
- app/controllers/decidim/sortitions/widgets_controller.rb
|
108
108
|
- app/events/decidim/sortitions/create_sortition_event.rb
|
109
109
|
- app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
|
110
110
|
- app/forms/decidim/sortitions/admin/edit_sortition_form.rb
|
@@ -121,6 +121,8 @@ files:
|
|
121
121
|
- app/queries/decidim/sortitions/filtered_sortitions.rb
|
122
122
|
- app/services/decidim/sortitions/admin/draw.rb
|
123
123
|
- app/services/decidim/sortitions/sortition_search.rb
|
124
|
+
- app/types/decidim/sortitions/sortition_type.rb
|
125
|
+
- app/types/decidim/sortitions/sortitions_type.rb
|
124
126
|
- app/views/decidim/sortitions/admin/sortitions/_form.html.erb
|
125
127
|
- app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb
|
126
128
|
- app/views/decidim/sortitions/admin/sortitions/edit.html.erb
|
@@ -144,35 +146,72 @@ files:
|
|
144
146
|
- app/views/decidim/sortitions/sortitions/index.html.erb
|
145
147
|
- app/views/decidim/sortitions/sortitions/index.js.erb
|
146
148
|
- app/views/decidim/sortitions/sortitions/show.html.erb
|
149
|
+
- config/locales/am-ET.yml
|
147
150
|
- config/locales/ar-SA.yml
|
148
151
|
- config/locales/ar.yml
|
152
|
+
- config/locales/bg-BG.yml
|
153
|
+
- config/locales/bg.yml
|
149
154
|
- config/locales/ca.yml
|
150
155
|
- config/locales/cs-CZ.yml
|
151
156
|
- config/locales/cs.yml
|
157
|
+
- config/locales/da-DK.yml
|
158
|
+
- config/locales/da.yml
|
152
159
|
- config/locales/de.yml
|
160
|
+
- config/locales/el-GR.yml
|
161
|
+
- config/locales/el.yml
|
153
162
|
- config/locales/en.yml
|
154
163
|
- config/locales/eo-UY.yml
|
164
|
+
- config/locales/eo.yml
|
155
165
|
- config/locales/es-MX.yml
|
156
166
|
- config/locales/es-PY.yml
|
157
167
|
- config/locales/es.yml
|
168
|
+
- config/locales/et-EE.yml
|
169
|
+
- config/locales/et.yml
|
158
170
|
- config/locales/eu.yml
|
159
171
|
- config/locales/fi-pl.yml
|
160
172
|
- config/locales/fi-plain.yml
|
161
173
|
- config/locales/fi.yml
|
174
|
+
- config/locales/fr-CA.yml
|
162
175
|
- config/locales/fr.yml
|
176
|
+
- config/locales/ga-IE.yml
|
163
177
|
- config/locales/gl.yml
|
178
|
+
- config/locales/hr-HR.yml
|
179
|
+
- config/locales/hr.yml
|
164
180
|
- config/locales/hu.yml
|
165
181
|
- config/locales/id-ID.yml
|
182
|
+
- config/locales/is-IS.yml
|
183
|
+
- config/locales/is.yml
|
166
184
|
- config/locales/it.yml
|
185
|
+
- config/locales/ja-JP.yml
|
186
|
+
- config/locales/ja.yml
|
187
|
+
- config/locales/ko-KR.yml
|
188
|
+
- config/locales/ko.yml
|
189
|
+
- config/locales/lt-LT.yml
|
190
|
+
- config/locales/lt.yml
|
191
|
+
- config/locales/lv.yml
|
192
|
+
- config/locales/mt-MT.yml
|
193
|
+
- config/locales/mt.yml
|
167
194
|
- config/locales/nl.yml
|
168
195
|
- config/locales/no.yml
|
196
|
+
- config/locales/om-ET.yml
|
169
197
|
- config/locales/pl.yml
|
170
198
|
- config/locales/pt-BR.yml
|
171
199
|
- config/locales/pt.yml
|
200
|
+
- config/locales/ro-RO.yml
|
172
201
|
- config/locales/ru.yml
|
202
|
+
- config/locales/sk-SK.yml
|
203
|
+
- config/locales/sk.yml
|
204
|
+
- config/locales/sl.yml
|
205
|
+
- config/locales/so-SO.yml
|
206
|
+
- config/locales/sr-CS.yml
|
173
207
|
- config/locales/sv.yml
|
208
|
+
- config/locales/ti-ER.yml
|
174
209
|
- config/locales/tr-TR.yml
|
175
210
|
- config/locales/uk.yml
|
211
|
+
- config/locales/vi-VN.yml
|
212
|
+
- config/locales/vi.yml
|
213
|
+
- config/locales/zh-CN.yml
|
214
|
+
- config/locales/zh-TW.yml
|
176
215
|
- db/migrate/20171215161358_create_decidim_module_sortitions_sortitions.rb
|
177
216
|
- db/migrate/20171220164658_add_witnesses_to_sortitions.rb
|
178
217
|
- db/migrate/20171220164744_add_additional_info_to_sortitions.rb
|
@@ -187,6 +226,8 @@ files:
|
|
187
226
|
- db/migrate/20180322082150_fix_sortitions_feature.rb
|
188
227
|
- db/migrate/20180322085145_fix_sortitions_proposal_feature.rb
|
189
228
|
- db/migrate/20181017110803_make_sortitions_authors_polymorphic.rb
|
229
|
+
- db/migrate/20200320105926_index_foreign_keys_in_decidim_sortitions_sortitions.rb
|
230
|
+
- db/migrate/20200827154036_add_commentable_counter_cache_to_sortitions.rb
|
190
231
|
- lib/decidim/sortitions.rb
|
191
232
|
- lib/decidim/sortitions/admin.rb
|
192
233
|
- lib/decidim/sortitions/admin_engine.rb
|
@@ -206,12 +247,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
247
|
requirements:
|
207
248
|
- - ">="
|
208
249
|
- !ruby/object:Gem::Version
|
209
|
-
version: '2.
|
250
|
+
version: '2.6'
|
210
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
252
|
requirements:
|
212
|
-
- - "
|
253
|
+
- - ">"
|
213
254
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
255
|
+
version: 1.3.1
|
215
256
|
requirements: []
|
216
257
|
rubygems_version: 3.0.3
|
217
258
|
signing_key:
|