decidim-assemblies 0.27.5 → 0.27.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/assemblies/assembly_m_cell.rb +1 -1
- data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies/show.erb +1 -1
- data/app/controllers/decidim/assemblies/widgets_controller.rb +11 -1
- data/app/events/decidim/assemblies/create_assembly_member_event.rb +1 -1
- data/app/events/decidim/role_assigned_to_assembly_event.rb +0 -5
- data/app/helpers/decidim/assemblies/assemblies_helper.rb +1 -1
- data/app/permissions/decidim/assemblies/permissions.rb +12 -0
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +67 -0
- data/config/locales/ca.yml +3 -3
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +1 -1
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/gl.yml +0 -1
- data/config/locales/he-IL.yml +110 -0
- data/config/locales/hu.yml +2 -0
- data/config/locales/id-ID.yml +1 -2
- data/config/locales/is-IS.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/ko.yml +92 -0
- data/config/locales/lb.yml +1 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +4 -0
- data/config/locales/pt-BR.yml +71 -59
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +0 -1
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +0 -1
- data/config/locales/sq-AL.yml +84 -0
- data/config/locales/sv.yml +0 -1
- data/config/locales/tr-TR.yml +1 -2
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +1 -2
- data/decidim-assemblies.gemspec +32 -0
- data/lib/decidim/assemblies/admin_engine.rb +1 -1
- data/lib/decidim/assemblies/test/factories.rb +46 -27
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +20 -19
- data/config/environment.rb +0 -3
@@ -14,50 +14,56 @@ FactoryBot.define do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
factory :assemblies_type, class: "Decidim::AssembliesType" do
|
17
|
-
|
17
|
+
transient do
|
18
|
+
skip_injection { false }
|
19
|
+
end
|
20
|
+
title { generate_localized_title(:assemblies_type_title, skip_injection: skip_injection) }
|
18
21
|
organization
|
19
22
|
end
|
20
23
|
|
21
24
|
factory :assembly, class: "Decidim::Assembly" do
|
22
|
-
|
25
|
+
transient do
|
26
|
+
skip_injection { false }
|
27
|
+
end
|
28
|
+
title { generate_localized_title(:assembly_title, skip_injection: skip_injection) }
|
23
29
|
slug { generate(:assembly_slug) }
|
24
|
-
subtitle { generate_localized_title }
|
25
|
-
short_description {
|
26
|
-
description {
|
30
|
+
subtitle { generate_localized_title(:assembly_subtitle, skip_injection: skip_injection) }
|
31
|
+
short_description { generate_localized_description(:assembly_short_description, skip_injection: skip_injection) }
|
32
|
+
description { generate_localized_description(:assembly_description, skip_injection: skip_injection) }
|
27
33
|
organization
|
28
34
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
|
29
35
|
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
30
36
|
published_at { Time.current }
|
31
|
-
meta_scope {
|
32
|
-
developer_group { generate_localized_title }
|
33
|
-
local_area { generate_localized_title }
|
34
|
-
target { generate_localized_title }
|
35
|
-
participatory_scope { generate_localized_title }
|
36
|
-
participatory_structure { generate_localized_title }
|
37
|
+
meta_scope { generate_localized_word(:assembly_meta_scope, skip_injection: skip_injection) }
|
38
|
+
developer_group { generate_localized_title(:assembly_developer_group, skip_injection: skip_injection) }
|
39
|
+
local_area { generate_localized_title(:assembly_local_area, skip_injection: skip_injection) }
|
40
|
+
target { generate_localized_title(:assembly_target, skip_injection: skip_injection) }
|
41
|
+
participatory_scope { generate_localized_title(:assembly_participatory_scope, skip_injection: skip_injection) }
|
42
|
+
participatory_structure { generate_localized_title(:assembly_participatory_structure, skip_injection: skip_injection) }
|
37
43
|
show_statistics { true }
|
38
44
|
private_space { false }
|
39
|
-
purpose_of_action {
|
40
|
-
composition {
|
45
|
+
purpose_of_action { generate_localized_description(:assembly_purpose_of_action, skip_injection: skip_injection) }
|
46
|
+
composition { generate_localized_description(:assembly_composition, skip_injection: skip_injection) }
|
41
47
|
creation_date { 1.month.ago }
|
42
48
|
created_by { "others" }
|
43
|
-
created_by_other {
|
49
|
+
created_by_other { generate_localized_word(:assembly_created_by_other, skip_injection: skip_injection) }
|
44
50
|
duration { 2.months.from_now.at_midnight }
|
45
51
|
included_at { 1.month.ago }
|
46
52
|
closing_date { 2.months.from_now.at_midnight }
|
47
|
-
closing_date_reason {
|
48
|
-
internal_organisation {
|
53
|
+
closing_date_reason { generate_localized_description(:assembly_closing_date_reason, skip_injection: skip_injection) }
|
54
|
+
internal_organisation { generate_localized_description(:assembly_internal_organisation, skip_injection: skip_injection) }
|
49
55
|
is_transparent { true }
|
50
|
-
special_features {
|
56
|
+
special_features { generate_localized_description(:assembly_special_features, skip_injection: skip_injection) }
|
51
57
|
twitter_handler { "others" }
|
52
58
|
facebook_handler { "others" }
|
53
59
|
instagram_handler { "others" }
|
54
60
|
youtube_handler { "others" }
|
55
61
|
github_handler { "others" }
|
56
62
|
weight { 1 }
|
57
|
-
announcement { generate_localized_title }
|
63
|
+
announcement { generate_localized_title(:assembly_announcement, skip_injection: skip_injection) }
|
58
64
|
|
59
65
|
trait :with_type do
|
60
|
-
assembly_type { create :assemblies_type, organization: organization }
|
66
|
+
assembly_type { create :assemblies_type, organization: organization, skip_injection: skip_injection }
|
61
67
|
end
|
62
68
|
|
63
69
|
trait :promoted do
|
@@ -73,7 +79,7 @@ FactoryBot.define do
|
|
73
79
|
end
|
74
80
|
|
75
81
|
trait :with_parent do
|
76
|
-
parent { create :assembly, organization: organization }
|
82
|
+
parent { create :assembly, organization: organization, skip_injection: skip_injection }
|
77
83
|
end
|
78
84
|
|
79
85
|
trait :public do
|
@@ -94,13 +100,17 @@ FactoryBot.define do
|
|
94
100
|
end
|
95
101
|
|
96
102
|
factory :assembly_user_role, class: "Decidim::AssemblyUserRole" do
|
103
|
+
transient do
|
104
|
+
skip_injection { false }
|
105
|
+
end
|
97
106
|
user
|
98
|
-
assembly { create :assembly, organization: user.organization }
|
107
|
+
assembly { create :assembly, organization: user.organization, skip_injection: skip_injection }
|
99
108
|
role { "admin" }
|
100
109
|
end
|
101
110
|
|
102
111
|
factory :assembly_admin, parent: :user, class: "Decidim::User" do
|
103
112
|
transient do
|
113
|
+
skip_injection { false }
|
104
114
|
assembly { create(:assembly) }
|
105
115
|
end
|
106
116
|
|
@@ -111,12 +121,14 @@ FactoryBot.define do
|
|
111
121
|
create :assembly_user_role,
|
112
122
|
user: user,
|
113
123
|
assembly: evaluator.assembly,
|
114
|
-
role: :admin
|
124
|
+
role: :admin,
|
125
|
+
skip_injection: evaluator.skip_injection
|
115
126
|
end
|
116
127
|
end
|
117
128
|
|
118
129
|
factory :assembly_moderator, parent: :user, class: "Decidim::User" do
|
119
130
|
transient do
|
131
|
+
skip_injection { false }
|
120
132
|
assembly { create(:assembly) }
|
121
133
|
end
|
122
134
|
|
@@ -127,12 +139,14 @@ FactoryBot.define do
|
|
127
139
|
create :assembly_user_role,
|
128
140
|
user: user,
|
129
141
|
assembly: evaluator.assembly,
|
130
|
-
role: :moderator
|
142
|
+
role: :moderator,
|
143
|
+
skip_injection: evaluator.skip_injection
|
131
144
|
end
|
132
145
|
end
|
133
146
|
|
134
147
|
factory :assembly_collaborator, parent: :user, class: "Decidim::User" do
|
135
148
|
transient do
|
149
|
+
skip_injection { false }
|
136
150
|
assembly { create(:assembly) }
|
137
151
|
end
|
138
152
|
|
@@ -143,12 +157,14 @@ FactoryBot.define do
|
|
143
157
|
create :assembly_user_role,
|
144
158
|
user: user,
|
145
159
|
assembly: evaluator.assembly,
|
160
|
+
skip_injection: evaluator.skip_injection,
|
146
161
|
role: :collaborator
|
147
162
|
end
|
148
163
|
end
|
149
164
|
|
150
165
|
factory :assembly_valuator, parent: :user, class: "Decidim::User" do
|
151
166
|
transient do
|
167
|
+
skip_injection { false }
|
152
168
|
assembly { create(:assembly) }
|
153
169
|
end
|
154
170
|
|
@@ -159,13 +175,16 @@ FactoryBot.define do
|
|
159
175
|
create :assembly_user_role,
|
160
176
|
user: user,
|
161
177
|
assembly: evaluator.assembly,
|
162
|
-
role: :valuator
|
178
|
+
role: :valuator,
|
179
|
+
skip_injection: evaluator.skip_injection
|
163
180
|
end
|
164
181
|
end
|
165
182
|
|
166
183
|
factory :assembly_member, class: "Decidim::AssemblyMember" do
|
167
|
-
|
168
|
-
|
184
|
+
transient do
|
185
|
+
skip_injection { false }
|
186
|
+
end
|
187
|
+
assembly { create(:assembly, skip_injection: skip_injection) }
|
169
188
|
full_name { Faker::Name.name }
|
170
189
|
gender { Faker::Lorem.word }
|
171
190
|
birthday { Faker::Date.birthday(min_age: 18, max_age: 65) }
|
@@ -178,7 +197,7 @@ FactoryBot.define do
|
|
178
197
|
end
|
179
198
|
|
180
199
|
trait :with_user do
|
181
|
-
user { create(:user, organization: assembly.organization) }
|
200
|
+
user { create(:user, organization: assembly.organization, skip_injection: skip_injection) }
|
182
201
|
end
|
183
202
|
end
|
184
203
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.27.
|
21
|
+
version: 0.27.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.27.
|
28
|
+
version: 0.27.6
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.27.
|
35
|
+
version: 0.27.6
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.27.
|
42
|
+
version: 0.27.6
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-dev
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.27.
|
49
|
+
version: 0.27.6
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.27.
|
56
|
+
version: 0.27.6
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-meetings
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.27.
|
63
|
+
version: 0.27.6
|
64
64
|
type: :development
|
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.27.
|
70
|
+
version: 0.27.6
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-proposals
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.27.
|
77
|
+
version: 0.27.6
|
78
78
|
type: :development
|
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.27.
|
84
|
+
version: 0.27.6
|
85
85
|
description: Assemblies component for decidim.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|
@@ -249,7 +249,6 @@ files:
|
|
249
249
|
- app/views/layouts/decidim/admin/assembly_members.html.erb
|
250
250
|
- app/views/layouts/decidim/assembly.html.erb
|
251
251
|
- config/assets.rb
|
252
|
-
- config/environment.rb
|
253
252
|
- config/locales/am-ET.yml
|
254
253
|
- config/locales/ar-SA.yml
|
255
254
|
- config/locales/ar.yml
|
@@ -282,6 +281,7 @@ files:
|
|
282
281
|
- config/locales/ga-IE.yml
|
283
282
|
- config/locales/gl.yml
|
284
283
|
- config/locales/gn-PY.yml
|
284
|
+
- config/locales/he-IL.yml
|
285
285
|
- config/locales/hr-HR.yml
|
286
286
|
- config/locales/hr.yml
|
287
287
|
- config/locales/hu.yml
|
@@ -355,6 +355,7 @@ files:
|
|
355
355
|
- db/seeds/city.jpeg
|
356
356
|
- db/seeds/city2.jpeg
|
357
357
|
- db/seeds/homepage_image.jpg
|
358
|
+
- decidim-assemblies.gemspec
|
358
359
|
- lib/decidim/api/assemblies_type_type.rb
|
359
360
|
- lib/decidim/api/assembly_member_type.rb
|
360
361
|
- lib/decidim/api/assembly_type.rb
|
@@ -371,23 +372,23 @@ homepage: https://github.com/decidim/decidim
|
|
371
372
|
licenses:
|
372
373
|
- AGPL-3.0
|
373
374
|
metadata: {}
|
374
|
-
post_install_message:
|
375
|
+
post_install_message:
|
375
376
|
rdoc_options: []
|
376
377
|
require_paths:
|
377
378
|
- lib
|
378
379
|
required_ruby_version: !ruby/object:Gem::Requirement
|
379
380
|
requirements:
|
380
|
-
- - "
|
381
|
+
- - "~>"
|
381
382
|
- !ruby/object:Gem::Version
|
382
|
-
version:
|
383
|
+
version: 3.0.0
|
383
384
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
384
385
|
requirements:
|
385
386
|
- - ">="
|
386
387
|
- !ruby/object:Gem::Version
|
387
388
|
version: '0'
|
388
389
|
requirements: []
|
389
|
-
rubygems_version: 3.
|
390
|
-
signing_key:
|
390
|
+
rubygems_version: 3.2.22
|
391
|
+
signing_key:
|
391
392
|
specification_version: 4
|
392
393
|
summary: Decidim assemblies module
|
393
394
|
test_files: []
|
data/config/environment.rb
DELETED