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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/sortitions/sortition_m_cell.rb +1 -1
  3. data/app/commands/decidim/sortitions/admin/create_sortition.rb +1 -1
  4. data/app/commands/decidim/sortitions/admin/destroy_sortition.rb +1 -1
  5. data/app/commands/decidim/sortitions/admin/update_sortition.rb +1 -1
  6. data/app/controllers/decidim/sortitions/sortitions_controller.rb +12 -9
  7. data/app/models/decidim/sortitions/sortition.rb +12 -6
  8. data/app/queries/decidim/sortitions/admin/participatory_space_proposal_components.rb +1 -1
  9. data/app/queries/decidim/sortitions/admin/participatory_space_proposals.rb +3 -3
  10. data/app/queries/decidim/sortitions/filtered_sortitions.rb +1 -1
  11. data/app/views/decidim/sortitions/admin/sortitions/_form.html.erb +2 -2
  12. data/app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb +1 -1
  13. data/app/views/decidim/sortitions/admin/sortitions/edit.html.erb +1 -1
  14. data/app/views/decidim/sortitions/sortitions/_filters.html.erb +3 -3
  15. data/app/views/decidim/sortitions/sortitions/show.html.erb +1 -1
  16. data/config/locales/am-ET.yml +1 -0
  17. data/config/locales/ar.yml +1 -1
  18. data/config/locales/bg.yml +1 -0
  19. data/config/locales/ca.yml +3 -2
  20. data/config/locales/cs.yml +12 -11
  21. data/config/locales/da.yml +1 -0
  22. data/config/locales/de.yml +1 -3
  23. data/config/locales/el.yml +1 -1
  24. data/config/locales/en.yml +1 -1
  25. data/config/locales/eo.yml +1 -0
  26. data/config/locales/es-MX.yml +2 -1
  27. data/config/locales/es-PY.yml +2 -1
  28. data/config/locales/es.yml +2 -1
  29. data/config/locales/et.yml +1 -0
  30. data/config/locales/eu.yml +2 -2
  31. data/config/locales/fi-plain.yml +2 -1
  32. data/config/locales/fi.yml +2 -1
  33. data/config/locales/fr-CA.yml +2 -1
  34. data/config/locales/fr.yml +2 -1
  35. data/config/locales/ga-IE.yml +1 -0
  36. data/config/locales/gl.yml +2 -1
  37. data/config/locales/hr.yml +1 -0
  38. data/config/locales/hu.yml +2 -1
  39. data/config/locales/id-ID.yml +1 -1
  40. data/config/locales/is-IS.yml +2 -2
  41. data/config/locales/it.yml +1 -1
  42. data/config/locales/ja.yml +2 -1
  43. data/config/locales/ko.yml +1 -0
  44. data/config/locales/lb.yml +1 -0
  45. data/config/locales/lt.yml +1 -161
  46. data/config/locales/lv.yml +1 -1
  47. data/config/locales/mt.yml +1 -0
  48. data/config/locales/nl.yml +1 -1
  49. data/config/locales/no.yml +1 -1
  50. data/config/locales/om-ET.yml +1 -0
  51. data/config/locales/pl.yml +1 -1
  52. data/config/locales/pt-BR.yml +2 -2
  53. data/config/locales/pt.yml +1 -1
  54. data/config/locales/ro-RO.yml +1 -1
  55. data/config/locales/ru.yml +1 -1
  56. data/config/locales/si-LK.yml +1 -0
  57. data/config/locales/sk.yml +1 -1
  58. data/config/locales/sl.yml +1 -0
  59. data/config/locales/so-SO.yml +1 -0
  60. data/config/locales/sr-CS.yml +1 -0
  61. data/config/locales/sv.yml +1 -1
  62. data/config/locales/sw-KE.yml +1 -0
  63. data/config/locales/ti-ER.yml +1 -0
  64. data/config/locales/tr-TR.yml +1 -1
  65. data/config/locales/uk.yml +1 -1
  66. data/config/locales/val-ES.yml +1 -0
  67. data/config/locales/vi.yml +1 -0
  68. data/config/locales/zh-CN.yml +1 -1
  69. data/config/locales/zh-TW.yml +1 -143
  70. data/lib/decidim/sortitions/version.rb +1 -1
  71. metadata +16 -23
  72. data/app/services/decidim/sortitions/sortition_search.rb +0 -30
  73. data/config/locales/fa-IR.yml +0 -1
  74. data/config/locales/gn-PY.yml +0 -1
  75. data/config/locales/ka-GE.yml +0 -1
  76. data/config/locales/kaa.yml +0 -1
  77. data/config/locales/lo-LA.yml +0 -1
  78. 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.26.7
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: 2023-05-11 00:00:00.000000000 Z
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.26.7
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.7
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.26.7
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.26.7
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.26.7
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.26.7
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.26.7
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.26.7
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.26.7
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.26.7
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: '2.7'
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: '0'
261
+ version: 1.3.1
269
262
  requirements: []
270
- rubygems_version: 3.1.6
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
@@ -1 +0,0 @@
1
- fa:
@@ -1 +0,0 @@
1
- gn:
@@ -1 +0,0 @@
1
- ka:
@@ -1 +0,0 @@
1
- kaa:
@@ -1 +0,0 @@
1
- lo:
@@ -1 +0,0 @@
1
- oc: