decidim-proposals 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/proposals/participatory_text_proposal_cell.rb +3 -1
  3. data/app/cells/decidim/proposals/proposal_activity_cell.rb +9 -1
  4. data/app/commands/decidim/proposals/admin/discard_participatory_text.rb +40 -0
  5. data/app/commands/decidim/proposals/admin/import_participatory_text.rb +5 -1
  6. data/app/commands/decidim/proposals/admin/publish_participatory_text.rb +6 -18
  7. data/app/commands/decidim/proposals/admin/update_participatory_text.rb +56 -0
  8. data/app/commands/decidim/proposals/create_proposal.rb +21 -22
  9. data/app/commands/decidim/proposals/publish_collaborative_draft.rb +1 -0
  10. data/app/commands/decidim/proposals/publish_proposal.rb +25 -3
  11. data/app/commands/decidim/proposals/update_proposal.rb +19 -23
  12. data/app/controllers/concerns/decidim/proposals/orderable.rb +1 -1
  13. data/app/controllers/decidim/proposals/admin/participatory_texts_controller.rb +46 -14
  14. data/app/forms/decidim/proposals/admin/import_participatory_text_form.rb +1 -2
  15. data/app/forms/decidim/proposals/admin/proposal_form.rb +1 -1
  16. data/app/helpers/decidim/proposals/application_helper.rb +0 -4
  17. data/app/permissions/decidim/proposals/admin/permissions.rb +2 -4
  18. data/app/views/decidim/proposals/admin/participatory_texts/_article-preview.html.erb +1 -1
  19. data/app/views/decidim/proposals/admin/participatory_texts/_bulk-actions.html.erb +1 -0
  20. data/app/views/decidim/proposals/admin/participatory_texts/index.html.erb +8 -5
  21. data/app/views/decidim/proposals/proposals/show.html.erb +9 -0
  22. data/config/locales/ar-SA.yml +667 -0
  23. data/config/locales/ca.yml +28 -21
  24. data/config/locales/cs-CZ.yml +775 -0
  25. data/config/locales/de.yml +7 -0
  26. data/config/locales/en.yml +7 -0
  27. data/config/locales/es-MX.yml +751 -0
  28. data/config/locales/es-PY.yml +7 -0
  29. data/config/locales/es.yml +21 -14
  30. data/config/locales/eu.yml +10 -3
  31. data/config/locales/fi-pl.yml +8 -1
  32. data/config/locales/fi.yml +11 -4
  33. data/config/locales/fr.yml +7 -0
  34. data/config/locales/gl.yml +7 -0
  35. data/config/locales/hu.yml +21 -14
  36. data/config/locales/id-ID.yml +7 -0
  37. data/config/locales/it.yml +8 -1
  38. data/config/locales/nl.yml +10 -3
  39. data/config/locales/pl.yml +8 -1
  40. data/config/locales/pt-BR.yml +7 -0
  41. data/config/locales/pt.yml +7 -0
  42. data/config/locales/ru.yml +6 -0
  43. data/config/locales/sv.yml +7 -0
  44. data/config/locales/tr-TR.yml +8 -0
  45. data/config/locales/uk.yml +6 -0
  46. data/db/migrate/20190215113158_use_md5_indexes.rb +17 -0
  47. data/lib/decidim/content_parsers/proposal_parser.rb +2 -2
  48. data/lib/decidim/proposals/admin_engine.rb +4 -2
  49. data/lib/decidim/proposals/markdown_to_proposals.rb +49 -4
  50. data/lib/decidim/proposals/proposal_serializer.rb +3 -2
  51. data/lib/decidim/proposals/version.rb +1 -1
  52. metadata +26 -20
@@ -7,6 +7,7 @@ module Decidim
7
7
  class ProposalSerializer < Decidim::Exporters::Serializer
8
8
  include Decidim::ApplicationHelper
9
9
  include Decidim::ResourceHelper
10
+ include Decidim::TranslationsHelper
10
11
 
11
12
  # Public: Initializes the serializer with a proposal.
12
13
  def initialize(proposal)
@@ -19,11 +20,11 @@ module Decidim
19
20
  id: proposal.id,
20
21
  category: {
21
22
  id: proposal.category.try(:id),
22
- name: proposal.category.try(:name)
23
+ name: proposal.category.try(:name) || empty_translatable
23
24
  },
24
25
  scope: {
25
26
  id: proposal.scope.try(:id),
26
- name: proposal.scope.try(:name)
27
+ name: proposal.scope.try(:name) || empty_translatable
27
28
  },
28
29
  participatory_space: {
29
30
  id: proposal.participatory_space.id,
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-proposals version.
5
5
  module Proposals
6
6
  def self.version
7
- "0.16.0"
7
+ "0.16.1"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-proposals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-01-09 00:00:00.000000000 Z
13
+ date: 2019-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: acts_as_list
@@ -60,42 +60,42 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.16.0
63
+ version: 0.16.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.16.0
70
+ version: 0.16.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-core
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.16.0
77
+ version: 0.16.1
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.16.0
84
+ version: 0.16.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: doc2text
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: 0.3.3
91
+ version: 0.4.0
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 0.3.3
98
+ version: 0.4.0
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: kaminari
101
101
  requirement: !ruby/object:Gem::Requirement
@@ -158,84 +158,84 @@ dependencies:
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.16.0
161
+ version: 0.16.1
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.16.0
168
+ version: 0.16.1
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: decidim-assemblies
171
171
  requirement: !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - '='
174
174
  - !ruby/object:Gem::Version
175
- version: 0.16.0
175
+ version: 0.16.1
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 0.16.0
182
+ version: 0.16.1
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: decidim-budgets
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - '='
188
188
  - !ruby/object:Gem::Version
189
- version: 0.16.0
189
+ version: 0.16.1
190
190
  type: :development
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - '='
195
195
  - !ruby/object:Gem::Version
196
- version: 0.16.0
196
+ version: 0.16.1
197
197
  - !ruby/object:Gem::Dependency
198
198
  name: decidim-dev
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - '='
202
202
  - !ruby/object:Gem::Version
203
- version: 0.16.0
203
+ version: 0.16.1
204
204
  type: :development
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - '='
209
209
  - !ruby/object:Gem::Version
210
- version: 0.16.0
210
+ version: 0.16.1
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: decidim-meetings
213
213
  requirement: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - '='
216
216
  - !ruby/object:Gem::Version
217
- version: 0.16.0
217
+ version: 0.16.1
218
218
  type: :development
219
219
  prerelease: false
220
220
  version_requirements: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - '='
223
223
  - !ruby/object:Gem::Version
224
- version: 0.16.0
224
+ version: 0.16.1
225
225
  - !ruby/object:Gem::Dependency
226
226
  name: decidim-participatory_processes
227
227
  requirement: !ruby/object:Gem::Requirement
228
228
  requirements:
229
229
  - - '='
230
230
  - !ruby/object:Gem::Version
231
- version: 0.16.0
231
+ version: 0.16.1
232
232
  type: :development
233
233
  prerelease: false
234
234
  version_requirements: !ruby/object:Gem::Requirement
235
235
  requirements:
236
236
  - - '='
237
237
  - !ruby/object:Gem::Version
238
- version: 0.16.0
238
+ version: 0.16.1
239
239
  description: A proposals component for decidim's participatory spaces.
240
240
  email:
241
241
  - josepjaume@gmail.com
@@ -291,11 +291,13 @@ files:
291
291
  - app/commands/decidim/proposals/admin/answer_proposal.rb
292
292
  - app/commands/decidim/proposals/admin/create_proposal.rb
293
293
  - app/commands/decidim/proposals/admin/create_proposal_note.rb
294
+ - app/commands/decidim/proposals/admin/discard_participatory_text.rb
294
295
  - app/commands/decidim/proposals/admin/import_participatory_text.rb
295
296
  - app/commands/decidim/proposals/admin/import_proposals.rb
296
297
  - app/commands/decidim/proposals/admin/merge_proposals.rb
297
298
  - app/commands/decidim/proposals/admin/publish_participatory_text.rb
298
299
  - app/commands/decidim/proposals/admin/split_proposals.rb
300
+ - app/commands/decidim/proposals/admin/update_participatory_text.rb
299
301
  - app/commands/decidim/proposals/admin/update_proposal.rb
300
302
  - app/commands/decidim/proposals/admin/update_proposal_category.rb
301
303
  - app/commands/decidim/proposals/attachment_methods.rb
@@ -495,9 +497,12 @@ files:
495
497
  - app/views/decidim/proposals/versions/index.html.erb
496
498
  - app/views/decidim/proposals/versions/show.html.erb
497
499
  - config/initializers/social_share_button.rb
500
+ - config/locales/ar-SA.yml
498
501
  - config/locales/ca.yml
502
+ - config/locales/cs-CZ.yml
499
503
  - config/locales/de.yml
500
504
  - config/locales/en.yml
505
+ - config/locales/es-MX.yml
501
506
  - config/locales/es-PY.yml
502
507
  - config/locales/es.yml
503
508
  - config/locales/eu.yml
@@ -554,6 +559,7 @@ files:
554
559
  - db/migrate/20181016132225_add_organization_as_author.rb
555
560
  - db/migrate/20181017084221_make_author_polymorhpic_for_proposal_endorsements.rb
556
561
  - db/migrate/20181026073215_add_created_in_meeting.rb
562
+ - db/migrate/20190215113158_use_md5_indexes.rb
557
563
  - lib/decidim/content_parsers/proposal_parser.rb
558
564
  - lib/decidim/content_renderers/proposal_renderer.rb
559
565
  - lib/decidim/proposals.rb