decidim-debates 0.26.2 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/debates/admin/close_debate.rb +1 -1
  3. data/app/commands/decidim/debates/admin/create_debate.rb +1 -1
  4. data/app/commands/decidim/debates/admin/update_debate.rb +1 -1
  5. data/app/commands/decidim/debates/close_debate.rb +1 -1
  6. data/app/commands/decidim/debates/create_debate.rb +1 -1
  7. data/app/commands/decidim/debates/update_debate.rb +1 -1
  8. data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +0 -1
  9. data/app/controllers/decidim/debates/debates_controller.rb +8 -18
  10. data/app/controllers/decidim/debates/orderable.rb +3 -3
  11. data/app/forms/decidim/debates/admin/close_debate_form.rb +4 -2
  12. data/app/forms/decidim/debates/admin/debate_form.rb +2 -2
  13. data/app/forms/decidim/debates/close_debate_form.rb +4 -2
  14. data/app/forms/decidim/debates/debate_form.rb +6 -5
  15. data/app/helpers/decidim/debates/application_helper.rb +1 -1
  16. data/app/models/decidim/debates/debate.rb +16 -2
  17. data/app/serializers/decidim/debates/{data_portability_debate_serializer.rb → download_your_data_debate_serializer.rb} +2 -2
  18. data/app/services/decidim/debates/debate_search.rb +13 -24
  19. data/app/views/decidim/debates/debates/_filters.html.erb +5 -5
  20. data/config/locales/am-ET.yml +1 -0
  21. data/config/locales/ar.yml +2 -1
  22. data/config/locales/bg.yml +1 -0
  23. data/config/locales/ca.yml +2 -1
  24. data/config/locales/cs.yml +2 -1
  25. data/config/locales/da.yml +1 -0
  26. data/config/locales/de.yml +1 -1
  27. data/config/locales/el.yml +1 -1
  28. data/config/locales/en.yml +1 -1
  29. data/config/locales/eo.yml +1 -0
  30. data/config/locales/es-MX.yml +2 -1
  31. data/config/locales/es-PY.yml +2 -1
  32. data/config/locales/es.yml +2 -1
  33. data/config/locales/et.yml +1 -0
  34. data/config/locales/eu.yml +1 -1
  35. data/config/locales/fi-plain.yml +2 -1
  36. data/config/locales/fi.yml +2 -1
  37. data/config/locales/fr-CA.yml +2 -1
  38. data/config/locales/fr.yml +2 -1
  39. data/config/locales/ga-IE.yml +1 -1
  40. data/config/locales/gl.yml +2 -1
  41. data/config/locales/hr.yml +1 -0
  42. data/config/locales/hu.yml +2 -1
  43. data/config/locales/id-ID.yml +1 -1
  44. data/config/locales/is-IS.yml +2 -2
  45. data/config/locales/it.yml +2 -1
  46. data/config/locales/ja.yml +2 -1
  47. data/config/locales/ko.yml +1 -0
  48. data/config/locales/lb.yml +1 -0
  49. data/config/locales/lt.yml +1 -0
  50. data/config/locales/lv.yml +1 -1
  51. data/config/locales/mt.yml +1 -0
  52. data/config/locales/nl.yml +2 -1
  53. data/config/locales/no.yml +2 -1
  54. data/config/locales/om-ET.yml +1 -0
  55. data/config/locales/pl.yml +1 -1
  56. data/config/locales/pt-BR.yml +2 -2
  57. data/config/locales/pt.yml +1 -1
  58. data/config/locales/ro-RO.yml +2 -1
  59. data/config/locales/ru.yml +1 -1
  60. data/config/locales/si-LK.yml +1 -0
  61. data/config/locales/sk.yml +1 -1
  62. data/config/locales/sl.yml +1 -0
  63. data/config/locales/so-SO.yml +1 -0
  64. data/config/locales/sr-CS.yml +1 -0
  65. data/config/locales/sv.yml +2 -1
  66. data/config/locales/sw-KE.yml +1 -0
  67. data/config/locales/ti-ER.yml +1 -0
  68. data/config/locales/tr-TR.yml +1 -1
  69. data/config/locales/uk.yml +1 -1
  70. data/config/locales/val-ES.yml +1 -0
  71. data/config/locales/vi.yml +1 -0
  72. data/config/locales/zh-CN.yml +1 -1
  73. data/config/locales/zh-TW.yml +1 -0
  74. data/db/migrate/20181016132850_add_organization_as_author_to_debates.rb +2 -0
  75. data/lib/decidim/debates/test/factories.rb +1 -1
  76. data/lib/decidim/debates/version.rb +1 -1
  77. metadata +15 -15
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr:
2
3
  activemodel:
3
4
  attributes:
@@ -117,11 +118,11 @@ fr:
117
118
  all: Tout
118
119
  category: Catégorie
119
120
  category_prompt: Choisir une catégorie
120
- citizens: Citoyenne
121
121
  commented: Commenté
122
122
  my_debates: Mes débats
123
123
  official: Officielle
124
124
  origin: Origine
125
+ participants: Participants
125
126
  scope: Secteur
126
127
  search: Rechercher
127
128
  state: Statut
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ga:
2
3
  activemodel:
3
4
  attributes:
@@ -47,7 +48,6 @@ ga:
47
48
  all: Uile
48
49
  category: Catagóir
49
50
  category_prompt: Roghnaigh catagóir
50
- citizens: Saoránaigh
51
51
  official: Oifigiúil
52
52
  origin: Bunús
53
53
  scope: Scóip
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -80,9 +81,9 @@ gl:
80
81
  all: Todo
81
82
  category: Categoría
82
83
  category_prompt: Selecciona unha categoría
83
- citizens: Cidadáns
84
84
  official: Oficial
85
85
  origin: Orixe
86
+ participants: Participantes
86
87
  search: Busca
87
88
  filters_small_view:
88
89
  close_modal: Pechar modal
@@ -1 +1,2 @@
1
+ ---
1
2
  hr:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  hu:
2
3
  activemodel:
3
4
  attributes:
@@ -98,9 +99,9 @@ hu:
98
99
  all: Összes
99
100
  category: Kategória
100
101
  category_prompt: Válassz kategóriát
101
- citizens: Állampolgárok
102
102
  official: Hivatalos
103
103
  origin: Kiindulópont
104
+ participants: Résztvevők
104
105
  search: Keresés
105
106
  filters_small_view:
106
107
  close_modal: Modal bezárása
@@ -1,3 +1,4 @@
1
+ ---
1
2
  id:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ id:
76
77
  all: Semua
77
78
  category: Kategori
78
79
  category_prompt: Pilih Kategori
79
- citizens: Warga
80
80
  official: Resmi
81
81
  origin: Asal
82
82
  search: Pencarian
@@ -1,4 +1,5 @@
1
- is-IS:
1
+ ---
2
+ is:
2
3
  activemodel:
3
4
  attributes:
4
5
  debate:
@@ -59,7 +60,6 @@ is-IS:
59
60
  all: Allt
60
61
  category: Flokkur
61
62
  category_prompt: Veldu flokk
62
- citizens: Borgarar
63
63
  official: Opinber
64
64
  origin: Uppruni
65
65
  search: Leita
@@ -1,3 +1,4 @@
1
+ ---
1
2
  it:
2
3
  activemodel:
3
4
  attributes:
@@ -117,11 +118,11 @@ it:
117
118
  all: Tutti
118
119
  category: Categoria
119
120
  category_prompt: Seleziona una categoria
120
- citizens: Cittadini
121
121
  commented: Commentato
122
122
  my_debates: I miei dibattiti
123
123
  official: Ufficiale
124
124
  origin: Origine
125
+ participants: Partecipanti
125
126
  scope: Ambito
126
127
  search: Ricerca
127
128
  state: Stato
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ja:
2
3
  activemodel:
3
4
  attributes:
@@ -115,11 +116,11 @@ ja:
115
116
  all: すべて
116
117
  category: カテゴリ
117
118
  category_prompt: カテゴリを選択
118
- citizens: 一般参加者
119
119
  commented: 'コメント:'
120
120
  my_debates: 私の議論
121
121
  official: 事務局
122
122
  origin: 起案者:
123
+ participants: 参加者
123
124
  scope: スコープ
124
125
  search: 検索
125
126
  state: ステータス
@@ -1 +1,2 @@
1
+ ---
1
2
  ko:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lb:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  lt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  activemodel:
3
4
  attributes:
@@ -66,7 +67,6 @@ lv:
66
67
  all: Visi
67
68
  category: Kategorija
68
69
  category_prompt: Izvēlieties kategoriju
69
- citizens: Pilsoņi
70
70
  official: Oficiālā
71
71
  origin: Izcelsme
72
72
  search: Meklēt
@@ -1 +1,2 @@
1
+ ---
1
2
  mt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  attributes:
@@ -101,11 +102,11 @@ nl:
101
102
  all: Alle
102
103
  category: Categorie
103
104
  category_prompt: Selecteer een categorie
104
- citizens: Burgers
105
105
  commented: Reactie
106
106
  my_debates: Mijn debatten
107
107
  official: Officieel
108
108
  origin: Oorsprong
109
+ participants: Deelnemers
109
110
  scope: Scope
110
111
  search: Zoeken
111
112
  state: Status
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  attributes:
@@ -117,11 +118,11 @@
117
118
  all: Alle
118
119
  category: Kategori
119
120
  category_prompt: Velg en kategori
120
- citizens: Innbyggere
121
121
  commented: Kommentert
122
122
  my_debates: Mine debatter
123
123
  official: Offentlig
124
124
  origin: Opprinnelse
125
+ participants: Deltakere
125
126
  scope: Tema
126
127
  search: Søk
127
128
  state: Status
@@ -1 +1,2 @@
1
+ ---
1
2
  om:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -119,7 +120,6 @@ pl:
119
120
  all: Wszystkie
120
121
  category: Kategoria
121
122
  category_prompt: Wybierz kategorię
122
- citizens: Obywatele
123
123
  commented: Skomentowano
124
124
  my_debates: Moje debaty
125
125
  official: Urzędnik
@@ -1,4 +1,5 @@
1
- pt-BR:
1
+ ---
2
+ pt:
2
3
  activemodel:
3
4
  attributes:
4
5
  debate:
@@ -114,7 +115,6 @@ pt-BR:
114
115
  all: Todos
115
116
  category: Categoria
116
117
  category_prompt: Selecione uma categoria
117
- citizens: Cidadãos
118
118
  commented: Comentado
119
119
  my_debates: Meus debates
120
120
  official: Oficial
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -115,7 +116,6 @@ pt:
115
116
  all: Todos
116
117
  category: Categoria
117
118
  category_prompt: Selecione uma categoria
118
- citizens: Cidadãos
119
119
  commented: Comentários
120
120
  my_debates: Os meus debates
121
121
  official: Oficial
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -119,11 +120,11 @@ ro:
119
120
  all: Toate
120
121
  category: Categorie
121
122
  category_prompt: Selectați o categorie
122
- citizens: Cetățeni
123
123
  commented: Comentat
124
124
  my_debates: Dezbaterile mele
125
125
  official: Oficial
126
126
  origin: Origine
127
+ participants: Participanți
127
128
  scope: Domeniu de interes
128
129
  search: Caută
129
130
  state: Stare
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ ru:
82
83
  all: Все
83
84
  category: Категория
84
85
  category_prompt: Выберите категорию
85
- citizens: Граждане
86
86
  official: Служебные
87
87
  origin: Источник
88
88
  search: Поиск
@@ -1 +1,2 @@
1
+ ---
1
2
  si:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ sk:
82
83
  all: Všetko
83
84
  category: Kategória
84
85
  category_prompt: Vyberte kategóriu
85
- citizens: Občania
86
86
  official: Oficiálni
87
87
  origin: Pôvod
88
88
  search: Vyhľadávanie
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  so:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  decidim:
3
4
  debates:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -115,11 +116,11 @@ sv:
115
116
  all: Alla
116
117
  category: Kategori
117
118
  category_prompt: Välj en kategori
118
- citizens: Medborgare
119
119
  commented: Kommenterade
120
120
  my_debates: Mina debatter
121
121
  official: Officiell
122
122
  origin: Ursprung
123
+ participants: Deltagare
123
124
  scope: Omfång
124
125
  search: Sök
125
126
  state: Status
@@ -1 +1,2 @@
1
+ ---
1
2
  sw:
@@ -1 +1,2 @@
1
+ ---
1
2
  ti:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -114,7 +115,6 @@ tr:
114
115
  all: Tümü
115
116
  category: Kategori
116
117
  category_prompt: Bir kategori seç
117
- citizens: Vatandaşlar
118
118
  commented: Yorum yaptı
119
119
  my_debates: Tartışmalarım
120
120
  official: Resmi
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ uk:
82
83
  all: Усі
83
84
  category: Категорія
84
85
  category_prompt: Оберіть категорію
85
- citizens: Громадяни
86
86
  official: Службове
87
87
  origin: Джерело
88
88
  search: Шукати
@@ -1 +1,2 @@
1
+ ---
1
2
  val:
@@ -1 +1,2 @@
1
+ ---
1
2
  vi:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -106,7 +107,6 @@ zh-CN:
106
107
  all: 所有的
107
108
  category: 类别
108
109
  category_prompt: 选择一个类别
109
- citizens: Citizens
110
110
  commented: 已评论
111
111
  my_debates: 我的辩论
112
112
  official: 官方的
@@ -1 +1,2 @@
1
+ ---
1
2
  zh-TW:
@@ -5,9 +5,11 @@ class AddOrganizationAsAuthorToDebates < ActiveRecord::Migration[5.2]
5
5
  self.table_name = :decidim_debates_debates
6
6
  include Decidim::HasComponent
7
7
  end
8
+
8
9
  class User < ApplicationRecord
9
10
  self.table_name = :decidim_users
10
11
  end
12
+
11
13
  def change
12
14
  add_column :decidim_debates_debates, :decidim_author_type, :string
13
15
 
@@ -28,7 +28,7 @@ FactoryBot.define do
28
28
  end_time { 1.day.from_now }
29
29
  end
30
30
 
31
- trait :citizen_author do
31
+ trait :participant_author do
32
32
  start_time { nil }
33
33
  end_time { nil }
34
34
  author do
@@ -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.26.2"
7
+ "0.27.0.rc1"
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.26.2
4
+ version: 0.27.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-06-14 00:00:00.000000000 Z
14
+ date: 2022-06-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: decidim-comments
@@ -19,56 +19,56 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.26.2
22
+ version: 0.27.0.rc1
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.26.2
29
+ version: 0.27.0.rc1
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.26.2
36
+ version: 0.27.0.rc1
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.26.2
43
+ version: 0.27.0.rc1
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: decidim-admin
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - '='
49
49
  - !ruby/object:Gem::Version
50
- version: 0.26.2
50
+ version: 0.27.0.rc1
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - '='
56
56
  - !ruby/object:Gem::Version
57
- version: 0.26.2
57
+ version: 0.27.0.rc1
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: decidim-dev
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - '='
63
63
  - !ruby/object:Gem::Version
64
- version: 0.26.2
64
+ version: 0.27.0.rc1
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - '='
70
70
  - !ruby/object:Gem::Version
71
- version: 0.26.2
71
+ version: 0.27.0.rc1
72
72
  description: A debates component for decidim's participatory spaces.
73
73
  email:
74
74
  - josepjaume@gmail.com
@@ -134,7 +134,7 @@ files:
134
134
  - app/queries/decidim/debates/metrics/debate_followers_metric_measure.rb
135
135
  - app/queries/decidim/debates/metrics/debate_participants_metric_measure.rb
136
136
  - app/queries/decidim/debates/metrics/debates_metric_manage.rb
137
- - app/serializers/decidim/debates/data_portability_debate_serializer.rb
137
+ - app/serializers/decidim/debates/download_your_data_debate_serializer.rb
138
138
  - app/services/decidim/debates/debate_search.rb
139
139
  - app/services/decidim/debates/diff_renderer.rb
140
140
  - app/views/decidim/debates/admin/debate_closes/edit.html.erb
@@ -270,14 +270,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
270
  requirements:
271
271
  - - ">="
272
272
  - !ruby/object:Gem::Version
273
- version: '2.7'
273
+ version: '3.0'
274
274
  required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - ">="
276
+ - - ">"
277
277
  - !ruby/object:Gem::Version
278
- version: '0'
278
+ version: 1.3.1
279
279
  requirements: []
280
- rubygems_version: 3.1.6
280
+ rubygems_version: 3.2.22
281
281
  signing_key:
282
282
  specification_version: 4
283
283
  summary: Decidim debates module