decidim-sortitions 0.26.7 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/sortitions/sortition_m_cell.rb +1 -1
- data/app/commands/decidim/sortitions/admin/create_sortition.rb +1 -1
- data/app/commands/decidim/sortitions/admin/destroy_sortition.rb +1 -1
- data/app/commands/decidim/sortitions/admin/update_sortition.rb +1 -1
- data/app/controllers/decidim/sortitions/sortitions_controller.rb +12 -9
- data/app/models/decidim/sortitions/sortition.rb +12 -6
- data/app/queries/decidim/sortitions/admin/participatory_space_proposal_components.rb +1 -1
- data/app/queries/decidim/sortitions/admin/participatory_space_proposals.rb +3 -3
- data/app/queries/decidim/sortitions/filtered_sortitions.rb +1 -1
- data/app/views/decidim/sortitions/admin/sortitions/_form.html.erb +2 -2
- 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/sortitions/_filters.html.erb +3 -3
- data/app/views/decidim/sortitions/sortitions/show.html.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +3 -2
- data/config/locales/cs.yml +12 -11
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -3
- data/config/locales/el.yml +1 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +2 -1
- data/config/locales/es-PY.yml +2 -1
- data/config/locales/es.yml +2 -1
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +2 -2
- data/config/locales/fi-plain.yml +2 -1
- data/config/locales/fi.yml +2 -1
- data/config/locales/fr-CA.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -1
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +2 -1
- data/config/locales/id-ID.yml +1 -1
- data/config/locales/is-IS.yml +2 -2
- data/config/locales/it.yml +1 -1
- data/config/locales/ja.yml +2 -1
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +1 -161
- data/config/locales/lv.yml +1 -1
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +1 -1
- data/config/locales/no.yml +1 -1
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +1 -1
- data/config/locales/pt-BR.yml +2 -2
- data/config/locales/pt.yml +1 -1
- data/config/locales/ro-RO.yml +1 -1
- data/config/locales/ru.yml +1 -1
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +1 -1
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +1 -1
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +1 -1
- data/config/locales/uk.yml +1 -1
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -1
- data/config/locales/zh-TW.yml +1 -143
- data/lib/decidim/sortitions/version.rb +1 -1
- metadata +16 -23
- data/app/services/decidim/sortitions/sortition_search.rb +0 -30
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
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.27.0.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:
|
11
|
+
date: 2022-06-27 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.27.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.
|
26
|
+
version: 0.27.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.
|
33
|
+
version: 0.27.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.
|
40
|
+
version: 0.27.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.
|
47
|
+
version: 0.27.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.
|
54
|
+
version: 0.27.0.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.27.0.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.27.0.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.27.0.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.27.0.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
|
@@ -120,7 +120,6 @@ files:
|
|
120
120
|
- app/queries/decidim/sortitions/admin/participatory_space_proposals.rb
|
121
121
|
- app/queries/decidim/sortitions/filtered_sortitions.rb
|
122
122
|
- app/services/decidim/sortitions/admin/draw.rb
|
123
|
-
- app/services/decidim/sortitions/sortition_search.rb
|
124
123
|
- app/views/decidim/sortitions/admin/sortitions/_form.html.erb
|
125
124
|
- app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb
|
126
125
|
- app/views/decidim/sortitions/admin/sortitions/edit.html.erb
|
@@ -167,7 +166,6 @@ files:
|
|
167
166
|
- config/locales/et-EE.yml
|
168
167
|
- config/locales/et.yml
|
169
168
|
- config/locales/eu.yml
|
170
|
-
- config/locales/fa-IR.yml
|
171
169
|
- config/locales/fi-pl.yml
|
172
170
|
- config/locales/fi-plain.yml
|
173
171
|
- config/locales/fi.yml
|
@@ -176,7 +174,6 @@ files:
|
|
176
174
|
- config/locales/fr.yml
|
177
175
|
- config/locales/ga-IE.yml
|
178
176
|
- config/locales/gl.yml
|
179
|
-
- config/locales/gn-PY.yml
|
180
177
|
- config/locales/hr-HR.yml
|
181
178
|
- config/locales/hr.yml
|
182
179
|
- config/locales/hu.yml
|
@@ -185,13 +182,10 @@ files:
|
|
185
182
|
- config/locales/is.yml
|
186
183
|
- config/locales/it.yml
|
187
184
|
- config/locales/ja.yml
|
188
|
-
- config/locales/ka-GE.yml
|
189
|
-
- config/locales/kaa.yml
|
190
185
|
- config/locales/ko-KR.yml
|
191
186
|
- config/locales/ko.yml
|
192
187
|
- config/locales/lb-LU.yml
|
193
188
|
- config/locales/lb.yml
|
194
|
-
- config/locales/lo-LA.yml
|
195
189
|
- config/locales/lt-LT.yml
|
196
190
|
- config/locales/lt.yml
|
197
191
|
- config/locales/lv.yml
|
@@ -199,7 +193,6 @@ files:
|
|
199
193
|
- config/locales/mt.yml
|
200
194
|
- config/locales/nl.yml
|
201
195
|
- config/locales/no.yml
|
202
|
-
- config/locales/oc-FR.yml
|
203
196
|
- config/locales/om-ET.yml
|
204
197
|
- config/locales/pl.yml
|
205
198
|
- config/locales/pt-BR.yml
|
@@ -260,14 +253,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
253
|
requirements:
|
261
254
|
- - ">="
|
262
255
|
- !ruby/object:Gem::Version
|
263
|
-
version: '
|
256
|
+
version: '3.0'
|
264
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
258
|
requirements:
|
266
|
-
- - "
|
259
|
+
- - ">"
|
267
260
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
261
|
+
version: 1.3.1
|
269
262
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
263
|
+
rubygems_version: 3.2.22
|
271
264
|
signing_key:
|
272
265
|
specification_version: 4
|
273
266
|
summary: Decidim sortitions module
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Sortitions
|
5
|
-
# A service to encapsualte all the logic when searching and filtering
|
6
|
-
# sortitions in a participatory process.
|
7
|
-
class SortitionSearch < ResourceSearch
|
8
|
-
text_search_fields :title, :additional_info, :witnesses
|
9
|
-
# Public: Initializes the service.
|
10
|
-
# component - A Decidim::Component to get the proposals from.
|
11
|
-
# page - The page number to paginate the results.
|
12
|
-
# per_page - The number of proposals to return per page.
|
13
|
-
def initialize(options = {})
|
14
|
-
super(Sortition.all, options)
|
15
|
-
end
|
16
|
-
|
17
|
-
# Handle the state filter
|
18
|
-
def search_state
|
19
|
-
case state
|
20
|
-
when "active"
|
21
|
-
query.active
|
22
|
-
when "cancelled"
|
23
|
-
query.cancelled
|
24
|
-
else # Assume 'all'
|
25
|
-
query
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|
data/config/locales/kaa.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
kaa:
|
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|