decidim-debates 0.12.2 → 0.13.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/decidim/debates/debate.rb +5 -0
- data/app/serializers/decidim/debates/data_portability_debate_serializer.rb +22 -0
- data/config/locales/fr.yml +8 -8
- data/config/locales/nl.yml +1 -1
- data/lib/decidim/debates/component.rb +2 -0
- data/lib/decidim/debates/version.rb +1 -1
- metadata +21 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933a6fbe30656c40b1d96f591c1d8b73a85ba047f5330a53484f01260c61c8e1
|
4
|
+
data.tar.gz: 7caba1de01218bae6774e9832835de0c7779670c997122e2aa437f6d636bc197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070ca3b8347d41b8e3b6b2600f658d81f17aefe79e82b65e8ed6181907493c67aef3d3487352eb675dd64284375e90c21a6090b2a749b9de933247fe50ce9c96
|
7
|
+
data.tar.gz: 50fe890e3401299dab6c5fa1ac15449bfb2c590d4c314dad9c98cfcb5d55673c7c154283ef679f02400d5ff104e483a08d60068e4d50b2fde9a4e55c092848ea
|
@@ -17,6 +17,7 @@ module Decidim
|
|
17
17
|
include Decidim::HasReference
|
18
18
|
include Decidim::Traceable
|
19
19
|
include Decidim::Loggable
|
20
|
+
include Decidim::DataPortability
|
20
21
|
|
21
22
|
component_manifest_name "debates"
|
22
23
|
|
@@ -99,6 +100,10 @@ module Decidim
|
|
99
100
|
followers
|
100
101
|
end
|
101
102
|
|
103
|
+
def self.export_serializer
|
104
|
+
Decidim::Debates::DataPortabilityDebateSerializer
|
105
|
+
end
|
106
|
+
|
102
107
|
private
|
103
108
|
|
104
109
|
def comments_blocked?
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
class DataPortabilityDebateSerializer < Decidim::Exporters::Serializer
|
6
|
+
# Serializes a Debate for data portability
|
7
|
+
def serialize
|
8
|
+
{
|
9
|
+
id: resource.id,
|
10
|
+
title: resource.title,
|
11
|
+
description: resource.description,
|
12
|
+
instructions: resource.instructions,
|
13
|
+
start_time: resource.start_time,
|
14
|
+
end_time: resource.end_time,
|
15
|
+
information_updates: resource.information_updates,
|
16
|
+
reference: resource.reference,
|
17
|
+
component: resource.component.name
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/config/locales/fr.yml
CHANGED
@@ -29,10 +29,10 @@ fr:
|
|
29
29
|
settings:
|
30
30
|
global:
|
31
31
|
announcement: Annonce
|
32
|
-
comments_enabled:
|
32
|
+
comments_enabled: Commentaires activés
|
33
33
|
step:
|
34
34
|
announcement: Annonce
|
35
|
-
comments_blocked:
|
35
|
+
comments_blocked: Commentaires désactivés
|
36
36
|
creation_enabled: Création de débats par les utilisateurs activés
|
37
37
|
debates:
|
38
38
|
actions:
|
@@ -80,15 +80,15 @@ fr:
|
|
80
80
|
all: Tout
|
81
81
|
category: Catégorie
|
82
82
|
category_prompt: Choisir une catégorie
|
83
|
-
citizens:
|
84
|
-
official:
|
83
|
+
citizens: Citoyens
|
84
|
+
official: Officiel
|
85
85
|
origin: Origine
|
86
|
-
search:
|
86
|
+
search: Chercher
|
87
87
|
filters_small_view:
|
88
88
|
close_modal: Fermer la fenêtre de dialogue
|
89
89
|
filter: Filtre
|
90
90
|
filter_by: Filtrer par
|
91
|
-
unfold:
|
91
|
+
unfold: Dérouler
|
92
92
|
index:
|
93
93
|
new_debate: Nouveau débat
|
94
94
|
new:
|
@@ -112,8 +112,8 @@ fr:
|
|
112
112
|
create_debate_event:
|
113
113
|
space_followers:
|
114
114
|
email_intro: |-
|
115
|
-
Bonjour, un nouveau débat a été créé sur
|
116
|
-
email_outro: Vous avez reçu cette notification parce que vous suivez
|
115
|
+
Bonjour, un nouveau débat a été créé sur la concertation %{space_title}, consultez-le et contribuez :
|
116
|
+
email_outro: Vous avez reçu cette notification parce que vous suivez la concertation %{space_title}. Vous pouvez cesser de recevoir des notifications à partir du lien précédent.
|
117
117
|
email_subject: Nouveau débat sur %{space_title}
|
118
118
|
notification_title: Le débat <a href="%{resource_path}">%{resource_title}</a> a été créé le <a href="%{space_path}">%{space_title}</a>.
|
119
119
|
user_followers:
|
data/config/locales/nl.yml
CHANGED
@@ -8,6 +8,8 @@ Decidim.register_component(:debates) do |component|
|
|
8
8
|
component.icon = "decidim/debates/icon.svg"
|
9
9
|
component.permissions_class_name = "Decidim::Debates::Permissions"
|
10
10
|
|
11
|
+
component.data_portable_entities = ["Decidim::Debates::Debate"]
|
12
|
+
|
11
13
|
component.on(:before_destroy) do |instance|
|
12
14
|
raise StandardError, "Can't remove this component" if Decidim::Debates::Debate.where(component: instance).any?
|
13
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-debates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -11,36 +11,36 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-comments
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.13.a
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.13.a
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: decidim-core
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.13.a
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
43
|
+
version: 0.13.a
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: kaminari
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,30 +73,30 @@ dependencies:
|
|
73
73
|
name: decidim-admin
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - "~>"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.
|
78
|
+
version: 0.13.a
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - "~>"
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.13.a
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: decidim-dev
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.
|
92
|
+
version: 0.13.a
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 0.13.a
|
100
100
|
description: A debates component for decidim's participatory spaces.
|
101
101
|
email:
|
102
102
|
- josepjaume@gmail.com
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- app/presenters/decidim/debates/admin_log/debate_presenter.rb
|
136
136
|
- app/presenters/decidim/debates/debate_presenter.rb
|
137
137
|
- app/presenters/decidim/debates/official_author_presenter.rb
|
138
|
+
- app/serializers/decidim/debates/data_portability_debate_serializer.rb
|
138
139
|
- app/services/decidim/debates/debate_search.rb
|
139
140
|
- app/views/decidim/debates/admin/debates/_form.html.erb
|
140
141
|
- app/views/decidim/debates/admin/debates/edit.html.erb
|
@@ -195,9 +196,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
196
|
version: '2.3'
|
196
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
198
|
requirements:
|
198
|
-
- - "
|
199
|
+
- - ">"
|
199
200
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
201
|
+
version: 1.3.1
|
201
202
|
requirements: []
|
202
203
|
rubyforge_project:
|
203
204
|
rubygems_version: 2.7.6
|