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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77ca55679c94ade062c4ff1e98fa51a0ebbebcc47cdf18d6ecb0a26479a74e54
4
- data.tar.gz: f6d673d270f7c90c11dd5eea36b4f031c9297c8df63f6a7e9992c7e5f0b4f33b
3
+ metadata.gz: 933a6fbe30656c40b1d96f591c1d8b73a85ba047f5330a53484f01260c61c8e1
4
+ data.tar.gz: 7caba1de01218bae6774e9832835de0c7779670c997122e2aa437f6d636bc197
5
5
  SHA512:
6
- metadata.gz: 89c17ec7e3b213a062e57ab075938eedf1ef696fd41f1a936b212e823a0c4f90d2aa1cc5749ebf1bd63b982e1c9517c2763ea8429cf2b5f0aecc2640cadda14d
7
- data.tar.gz: 1c27bfce07d93a39cd6d0f0d9dbcb6f133ffb21aa6b25fd56c3a7c218680a8f020cad518b94bb8f9a9cf12c2c8ac7fb6561bd82f4bd073d67a05a3a1d8da32b9
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
@@ -29,10 +29,10 @@ fr:
29
29
  settings:
30
30
  global:
31
31
  announcement: Annonce
32
- comments_enabled: Activer le module de commentaire
32
+ comments_enabled: Commentaires activés
33
33
  step:
34
34
  announcement: Annonce
35
- comments_blocked: Bloquer la création de nouveaux commentaires
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: Citoyenne
84
- official: Officielle
83
+ citizens: Citoyens
84
+ official: Officiel
85
85
  origin: Origine
86
- search: Rechercher
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: Voir la suite
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 l'espace participatif %{space_title}, consultez-le et contribuez :
116
- email_outro: Vous avez reçu cette notification parce que vous suivez l'espace participatif %{space_title}. Vous pouvez cesser de recevoir des notifications en suivant ce dernier lien.
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:
@@ -29,7 +29,7 @@ nl:
29
29
  settings:
30
30
  global:
31
31
  announcement: Aankondiging
32
- comments_enabled: Reacties geactiveerd
32
+ comments_enabled: Reacties ingeschakeld
33
33
  step:
34
34
  announcement: Aankondiging
35
35
  comments_blocked: Reacties geblokkeerd
@@ -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
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-debates version.
5
5
  module Debates
6
6
  def self.version
7
- "0.12.2"
7
+ "0.13.0.pre1"
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-debates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
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-07-11 00:00:00.000000000 Z
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.12.2
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.12.2
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.12.2
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.12.2
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.12.2
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.12.2
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.12.2
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.12.2
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: '0'
201
+ version: 1.3.1
201
202
  requirements: []
202
203
  rubyforge_project:
203
204
  rubygems_version: 2.7.6