decidim-sortitions 0.26.10 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) 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 -2
  13. data/app/views/decidim/sortitions/admin/sortitions/edit.html.erb +1 -2
  14. data/app/views/decidim/sortitions/admin/sortitions/index.html.erb +0 -1
  15. data/app/views/decidim/sortitions/admin/sortitions/new.html.erb +0 -1
  16. data/app/views/decidim/sortitions/admin/sortitions/show.html.erb +0 -1
  17. data/app/views/decidim/sortitions/sortitions/_filters.html.erb +3 -3
  18. data/app/views/decidim/sortitions/sortitions/show.html.erb +1 -1
  19. data/config/locales/am-ET.yml +1 -0
  20. data/config/locales/ar.yml +1 -1
  21. data/config/locales/bg.yml +1 -0
  22. data/config/locales/ca.yml +3 -2
  23. data/config/locales/cs.yml +13 -12
  24. data/config/locales/da.yml +1 -0
  25. data/config/locales/de.yml +2 -4
  26. data/config/locales/el.yml +1 -6
  27. data/config/locales/en.yml +1 -1
  28. data/config/locales/eo.yml +1 -0
  29. data/config/locales/es-MX.yml +3 -2
  30. data/config/locales/es-PY.yml +3 -2
  31. data/config/locales/es.yml +3 -2
  32. data/config/locales/et.yml +1 -0
  33. data/config/locales/eu.yml +70 -70
  34. data/config/locales/fi-plain.yml +3 -2
  35. data/config/locales/fi.yml +22 -21
  36. data/config/locales/fr-CA.yml +2 -1
  37. data/config/locales/fr.yml +2 -1
  38. data/config/locales/ga-IE.yml +1 -0
  39. data/config/locales/gl.yml +2 -1
  40. data/config/locales/hr.yml +1 -0
  41. data/config/locales/hu.yml +2 -1
  42. data/config/locales/id-ID.yml +1 -1
  43. data/config/locales/is-IS.yml +5 -3
  44. data/config/locales/it.yml +2 -2
  45. data/config/locales/ja.yml +2 -1
  46. data/config/locales/ko.yml +1 -0
  47. data/config/locales/lb.yml +1 -0
  48. data/config/locales/lt.yml +1 -161
  49. data/config/locales/lv.yml +1 -1
  50. data/config/locales/mt.yml +1 -0
  51. data/config/locales/nl.yml +3 -3
  52. data/config/locales/no.yml +1 -1
  53. data/config/locales/om-ET.yml +1 -0
  54. data/config/locales/pl.yml +1 -1
  55. data/config/locales/pt-BR.yml +2 -2
  56. data/config/locales/pt.yml +1 -1
  57. data/config/locales/ro-RO.yml +1 -1
  58. data/config/locales/ru.yml +1 -1
  59. data/config/locales/si-LK.yml +1 -0
  60. data/config/locales/sk.yml +2 -2
  61. data/config/locales/sl.yml +1 -0
  62. data/config/locales/so-SO.yml +1 -0
  63. data/config/locales/sr-CS.yml +1 -0
  64. data/config/locales/sv.yml +1 -1
  65. data/config/locales/sw-KE.yml +1 -0
  66. data/config/locales/ti-ER.yml +1 -0
  67. data/config/locales/tr-TR.yml +1 -1
  68. data/config/locales/uk.yml +1 -1
  69. data/config/locales/val-ES.yml +1 -0
  70. data/config/locales/vi.yml +1 -0
  71. data/config/locales/zh-CN.yml +1 -1
  72. data/config/locales/zh-TW.yml +1 -143
  73. data/db/migrate/20181017110803_make_sortitions_authors_polymorphic.rb +9 -20
  74. data/lib/decidim/sortitions/version.rb +1 -1
  75. metadata +16 -26
  76. data/app/services/decidim/sortitions/sortition_search.rb +0 -30
  77. data/config/environment.rb +0 -3
  78. data/config/locales/fa-IR.yml +0 -1
  79. data/config/locales/gn-PY.yml +0 -1
  80. data/config/locales/ka-GE.yml +0 -1
  81. data/config/locales/kaa.yml +0 -1
  82. data/config/locales/lo-LA.yml +0 -1
  83. data/config/locales/oc-FR.yml +0 -1
  84. data/config/locales/sq-AL.yml +0 -1
  85. data/config/locales/th-TH.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.10
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: 2024-04-30 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.10
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.10
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.10
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.10
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.10
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.10
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.10
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.10
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.10
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.10
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
@@ -145,7 +144,6 @@ files:
145
144
  - app/views/decidim/sortitions/sortitions/index.js.erb
146
145
  - app/views/decidim/sortitions/sortitions/show.html.erb
147
146
  - config/assets.rb
148
- - config/environment.rb
149
147
  - config/locales/am-ET.yml
150
148
  - config/locales/ar-SA.yml
151
149
  - config/locales/ar.yml
@@ -168,7 +166,6 @@ files:
168
166
  - config/locales/et-EE.yml
169
167
  - config/locales/et.yml
170
168
  - config/locales/eu.yml
171
- - config/locales/fa-IR.yml
172
169
  - config/locales/fi-pl.yml
173
170
  - config/locales/fi-plain.yml
174
171
  - config/locales/fi.yml
@@ -177,7 +174,6 @@ files:
177
174
  - config/locales/fr.yml
178
175
  - config/locales/ga-IE.yml
179
176
  - config/locales/gl.yml
180
- - config/locales/gn-PY.yml
181
177
  - config/locales/hr-HR.yml
182
178
  - config/locales/hr.yml
183
179
  - config/locales/hu.yml
@@ -186,13 +182,10 @@ files:
186
182
  - config/locales/is.yml
187
183
  - config/locales/it.yml
188
184
  - config/locales/ja.yml
189
- - config/locales/ka-GE.yml
190
- - config/locales/kaa.yml
191
185
  - config/locales/ko-KR.yml
192
186
  - config/locales/ko.yml
193
187
  - config/locales/lb-LU.yml
194
188
  - config/locales/lb.yml
195
- - config/locales/lo-LA.yml
196
189
  - config/locales/lt-LT.yml
197
190
  - config/locales/lt.yml
198
191
  - config/locales/lv.yml
@@ -200,7 +193,6 @@ files:
200
193
  - config/locales/mt.yml
201
194
  - config/locales/nl.yml
202
195
  - config/locales/no.yml
203
- - config/locales/oc-FR.yml
204
196
  - config/locales/om-ET.yml
205
197
  - config/locales/pl.yml
206
198
  - config/locales/pt-BR.yml
@@ -212,11 +204,9 @@ files:
212
204
  - config/locales/sk.yml
213
205
  - config/locales/sl.yml
214
206
  - config/locales/so-SO.yml
215
- - config/locales/sq-AL.yml
216
207
  - config/locales/sr-CS.yml
217
208
  - config/locales/sv.yml
218
209
  - config/locales/sw-KE.yml
219
- - config/locales/th-TH.yml
220
210
  - config/locales/ti-ER.yml
221
211
  - config/locales/tr-TR.yml
222
212
  - config/locales/uk.yml
@@ -263,14 +253,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
253
  requirements:
264
254
  - - ">="
265
255
  - !ruby/object:Gem::Version
266
- version: '2.7'
256
+ version: '3.0'
267
257
  required_rubygems_version: !ruby/object:Gem::Requirement
268
258
  requirements:
269
- - - ">="
259
+ - - ">"
270
260
  - !ruby/object:Gem::Version
271
- version: '0'
261
+ version: 1.3.1
272
262
  requirements: []
273
- rubygems_version: 3.1.6
263
+ rubygems_version: 3.2.22
274
264
  signing_key:
275
265
  specification_version: 4
276
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,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Empty line for playing nice with tpope/vim-rails
@@ -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:
@@ -1 +0,0 @@
1
- sq:
@@ -1 +0,0 @@
1
- th: