decidim-generators 0.28.3 → 0.28.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +87 -87
- data/lib/decidim/generators/app_templates/initializer.rb +2 -0
- data/lib/decidim/generators/app_templates/secrets.yml.erb +5 -1
- data/lib/decidim/generators/component_templates/Gemfile.erb +2 -2
- data/lib/decidim/generators/test/generator_examples.rb +10 -0
- data/lib/decidim/generators/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e08528600c2acdc53237a5f51d512b733c27b2ec62b24fc91ed510a7a4a4fa78
|
4
|
+
data.tar.gz: 441958bb643623e145292224035687b5d17fb656562adab533cf517db2cb1246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c482f474ab66259dcfc23c947feaf690f29e21b8b0422a50f9cfcc38f91416bf5334d0b2a51ecbded2abe0c1a74856b5b71c5c55b252e5ef73020a41bd8fbf66
|
7
|
+
data.tar.gz: 0d8ad62ef289c87fe01d72ea06adb10f1191c4725a575d1fcd6118285e1887c9f2d6379a50e2f1865582f68c008d1a48e58378a73c7171d013d2fcb8b9598e8f
|
data/Gemfile.lock
CHANGED
@@ -1,59 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
decidim (0.28.
|
5
|
-
decidim-accountability (= 0.28.
|
6
|
-
decidim-admin (= 0.28.
|
7
|
-
decidim-api (= 0.28.
|
8
|
-
decidim-assemblies (= 0.28.
|
9
|
-
decidim-blogs (= 0.28.
|
10
|
-
decidim-budgets (= 0.28.
|
11
|
-
decidim-comments (= 0.28.
|
12
|
-
decidim-core (= 0.28.
|
13
|
-
decidim-debates (= 0.28.
|
14
|
-
decidim-forms (= 0.28.
|
15
|
-
decidim-generators (= 0.28.
|
16
|
-
decidim-meetings (= 0.28.
|
17
|
-
decidim-pages (= 0.28.
|
18
|
-
decidim-participatory_processes (= 0.28.
|
19
|
-
decidim-proposals (= 0.28.
|
20
|
-
decidim-sortitions (= 0.28.
|
21
|
-
decidim-surveys (= 0.28.
|
22
|
-
decidim-system (= 0.28.
|
23
|
-
decidim-verifications (= 0.28.
|
24
|
-
decidim-accountability (0.28.
|
25
|
-
decidim-comments (= 0.28.
|
26
|
-
decidim-core (= 0.28.
|
27
|
-
decidim-admin (0.28.
|
4
|
+
decidim (0.28.4)
|
5
|
+
decidim-accountability (= 0.28.4)
|
6
|
+
decidim-admin (= 0.28.4)
|
7
|
+
decidim-api (= 0.28.4)
|
8
|
+
decidim-assemblies (= 0.28.4)
|
9
|
+
decidim-blogs (= 0.28.4)
|
10
|
+
decidim-budgets (= 0.28.4)
|
11
|
+
decidim-comments (= 0.28.4)
|
12
|
+
decidim-core (= 0.28.4)
|
13
|
+
decidim-debates (= 0.28.4)
|
14
|
+
decidim-forms (= 0.28.4)
|
15
|
+
decidim-generators (= 0.28.4)
|
16
|
+
decidim-meetings (= 0.28.4)
|
17
|
+
decidim-pages (= 0.28.4)
|
18
|
+
decidim-participatory_processes (= 0.28.4)
|
19
|
+
decidim-proposals (= 0.28.4)
|
20
|
+
decidim-sortitions (= 0.28.4)
|
21
|
+
decidim-surveys (= 0.28.4)
|
22
|
+
decidim-system (= 0.28.4)
|
23
|
+
decidim-verifications (= 0.28.4)
|
24
|
+
decidim-accountability (0.28.4)
|
25
|
+
decidim-comments (= 0.28.4)
|
26
|
+
decidim-core (= 0.28.4)
|
27
|
+
decidim-admin (0.28.4)
|
28
28
|
active_link_to (~> 1.0)
|
29
|
-
decidim-core (= 0.28.
|
29
|
+
decidim-core (= 0.28.4)
|
30
30
|
devise (~> 4.7)
|
31
31
|
devise-i18n (~> 1.2)
|
32
32
|
devise_invitable (~> 2.0, >= 2.0.9)
|
33
|
-
decidim-api (0.28.
|
33
|
+
decidim-api (0.28.4)
|
34
34
|
commonmarker (~> 0.23.0, >= 0.23.9)
|
35
|
-
decidim-core (= 0.28.
|
35
|
+
decidim-core (= 0.28.4)
|
36
36
|
graphql (~> 2.0.0)
|
37
37
|
graphql-docs (~> 3.0.1)
|
38
38
|
rack-cors (~> 1.0)
|
39
|
-
decidim-assemblies (0.28.
|
40
|
-
decidim-core (= 0.28.
|
41
|
-
decidim-blogs (0.28.
|
42
|
-
decidim-admin (= 0.28.
|
43
|
-
decidim-comments (= 0.28.
|
44
|
-
decidim-core (= 0.28.
|
45
|
-
decidim-budgets (0.28.
|
46
|
-
decidim-comments (= 0.28.
|
47
|
-
decidim-core (= 0.28.
|
48
|
-
decidim-comments (0.28.
|
49
|
-
decidim-core (= 0.28.
|
39
|
+
decidim-assemblies (0.28.4)
|
40
|
+
decidim-core (= 0.28.4)
|
41
|
+
decidim-blogs (0.28.4)
|
42
|
+
decidim-admin (= 0.28.4)
|
43
|
+
decidim-comments (= 0.28.4)
|
44
|
+
decidim-core (= 0.28.4)
|
45
|
+
decidim-budgets (0.28.4)
|
46
|
+
decidim-comments (= 0.28.4)
|
47
|
+
decidim-core (= 0.28.4)
|
48
|
+
decidim-comments (0.28.4)
|
49
|
+
decidim-core (= 0.28.4)
|
50
50
|
redcarpet (~> 3.5, >= 3.5.1)
|
51
|
-
decidim-conferences (0.28.
|
52
|
-
decidim-core (= 0.28.
|
53
|
-
decidim-meetings (= 0.28.
|
51
|
+
decidim-conferences (0.28.4)
|
52
|
+
decidim-core (= 0.28.4)
|
53
|
+
decidim-meetings (= 0.28.4)
|
54
54
|
wicked_pdf (~> 2.7)
|
55
55
|
wkhtmltopdf-binary (~> 0.12)
|
56
|
-
decidim-core (0.28.
|
56
|
+
decidim-core (0.28.4)
|
57
57
|
active_link_to (~> 1.0)
|
58
58
|
acts_as_list (~> 1.0)
|
59
59
|
batch-loader (~> 1.2)
|
@@ -102,16 +102,16 @@ PATH
|
|
102
102
|
valid_email2 (~> 4.0)
|
103
103
|
web-push (~> 3.0)
|
104
104
|
wisper (~> 2.0)
|
105
|
-
decidim-debates (0.28.
|
106
|
-
decidim-comments (= 0.28.
|
107
|
-
decidim-core (= 0.28.
|
108
|
-
decidim-design (0.28.
|
109
|
-
decidim-core (= 0.28.
|
110
|
-
decidim-dev (0.28.
|
105
|
+
decidim-debates (0.28.4)
|
106
|
+
decidim-comments (= 0.28.4)
|
107
|
+
decidim-core (= 0.28.4)
|
108
|
+
decidim-design (0.28.4)
|
109
|
+
decidim-core (= 0.28.4)
|
110
|
+
decidim-dev (0.28.4)
|
111
111
|
bullet (~> 7.0)
|
112
112
|
byebug (~> 11.0)
|
113
113
|
capybara (~> 3.39)
|
114
|
-
decidim (= 0.28.
|
114
|
+
decidim (= 0.28.4)
|
115
115
|
erb_lint (~> 0.4.0)
|
116
116
|
factory_bot_rails (~> 6.2)
|
117
117
|
faker (~> 3.2)
|
@@ -138,60 +138,60 @@ PATH
|
|
138
138
|
w3c_rspec_validators (~> 0.3.0)
|
139
139
|
webmock (~> 3.18)
|
140
140
|
wisper-rspec (~> 1.0)
|
141
|
-
decidim-elections (0.28.
|
141
|
+
decidim-elections (0.28.4)
|
142
142
|
decidim-bulletin_board (~> 0.24.4)
|
143
|
-
decidim-core (= 0.28.
|
144
|
-
decidim-forms (= 0.28.
|
145
|
-
decidim-proposals (= 0.28.
|
143
|
+
decidim-core (= 0.28.4)
|
144
|
+
decidim-forms (= 0.28.4)
|
145
|
+
decidim-proposals (= 0.28.4)
|
146
146
|
rack-attack (~> 6.0)
|
147
147
|
voting_schemes-dummy (~> 0.24.4)
|
148
148
|
voting_schemes-electionguard (~> 0.24.4)
|
149
|
-
decidim-forms (0.28.
|
150
|
-
decidim-core (= 0.28.
|
149
|
+
decidim-forms (0.28.4)
|
150
|
+
decidim-core (= 0.28.4)
|
151
151
|
wicked_pdf (~> 2.1)
|
152
152
|
wkhtmltopdf-binary (~> 0.12)
|
153
|
-
decidim-generators (0.28.
|
154
|
-
decidim-core (= 0.28.
|
155
|
-
decidim-initiatives (0.28.
|
156
|
-
decidim-admin (= 0.28.
|
157
|
-
decidim-comments (= 0.28.
|
158
|
-
decidim-core (= 0.28.
|
159
|
-
decidim-verifications (= 0.28.
|
153
|
+
decidim-generators (0.28.4)
|
154
|
+
decidim-core (= 0.28.4)
|
155
|
+
decidim-initiatives (0.28.4)
|
156
|
+
decidim-admin (= 0.28.4)
|
157
|
+
decidim-comments (= 0.28.4)
|
158
|
+
decidim-core (= 0.28.4)
|
159
|
+
decidim-verifications (= 0.28.4)
|
160
160
|
hexapdf (~> 0.32.0)
|
161
161
|
wicked_pdf (~> 2.1)
|
162
162
|
wkhtmltopdf-binary (~> 0.12)
|
163
|
-
decidim-meetings (0.28.
|
164
|
-
decidim-core (= 0.28.
|
165
|
-
decidim-forms (= 0.28.
|
163
|
+
decidim-meetings (0.28.4)
|
164
|
+
decidim-core (= 0.28.4)
|
165
|
+
decidim-forms (= 0.28.4)
|
166
166
|
icalendar (~> 2.5)
|
167
|
-
decidim-pages (0.28.
|
168
|
-
decidim-core (= 0.28.
|
169
|
-
decidim-participatory_processes (0.28.
|
170
|
-
decidim-core (= 0.28.
|
171
|
-
decidim-proposals (0.28.
|
172
|
-
decidim-comments (= 0.28.
|
173
|
-
decidim-core (= 0.28.
|
167
|
+
decidim-pages (0.28.4)
|
168
|
+
decidim-core (= 0.28.4)
|
169
|
+
decidim-participatory_processes (0.28.4)
|
170
|
+
decidim-core (= 0.28.4)
|
171
|
+
decidim-proposals (0.28.4)
|
172
|
+
decidim-comments (= 0.28.4)
|
173
|
+
decidim-core (= 0.28.4)
|
174
174
|
doc2text (~> 0.4.6)
|
175
175
|
redcarpet (~> 3.5, >= 3.5.1)
|
176
|
-
decidim-sortitions (0.28.
|
177
|
-
decidim-admin (= 0.28.
|
178
|
-
decidim-comments (= 0.28.
|
179
|
-
decidim-core (= 0.28.
|
180
|
-
decidim-proposals (= 0.28.
|
181
|
-
decidim-surveys (0.28.
|
182
|
-
decidim-core (= 0.28.
|
183
|
-
decidim-forms (= 0.28.
|
184
|
-
decidim-system (0.28.
|
176
|
+
decidim-sortitions (0.28.4)
|
177
|
+
decidim-admin (= 0.28.4)
|
178
|
+
decidim-comments (= 0.28.4)
|
179
|
+
decidim-core (= 0.28.4)
|
180
|
+
decidim-proposals (= 0.28.4)
|
181
|
+
decidim-surveys (0.28.4)
|
182
|
+
decidim-core (= 0.28.4)
|
183
|
+
decidim-forms (= 0.28.4)
|
184
|
+
decidim-system (0.28.4)
|
185
185
|
active_link_to (~> 1.0)
|
186
|
-
decidim-core (= 0.28.
|
186
|
+
decidim-core (= 0.28.4)
|
187
187
|
devise (~> 4.7)
|
188
188
|
devise-i18n (~> 1.2)
|
189
189
|
devise_invitable (~> 2.0, >= 2.0.9)
|
190
|
-
decidim-templates (0.28.
|
191
|
-
decidim-core (= 0.28.
|
192
|
-
decidim-forms (= 0.28.
|
193
|
-
decidim-verifications (0.28.
|
194
|
-
decidim-core (= 0.28.
|
190
|
+
decidim-templates (0.28.4)
|
191
|
+
decidim-core (= 0.28.4)
|
192
|
+
decidim-forms (= 0.28.4)
|
193
|
+
decidim-verifications (0.28.4)
|
194
|
+
decidim-core (= 0.28.4)
|
195
195
|
|
196
196
|
GEM
|
197
197
|
remote: https://rubygems.org/
|
@@ -393,6 +393,8 @@ Decidim.configure do |config|
|
|
393
393
|
|
394
394
|
# Additional optional configurations (see decidim-core/lib/decidim/core.rb)
|
395
395
|
config.cache_key_separator = Rails.application.secrets.decidim[:cache_key_separator] if Rails.application.secrets.decidim[:cache_key_separator].present?
|
396
|
+
config.cache_expiry_time = Rails.application.secrets.decidim[:cache_expiry_time].to_i.minutes if Rails.application.secrets.decidim[:cache_expiry_time].present?
|
397
|
+
config.stats_cache_expiry_time = Rails.application.secrets.decidim[:stats_cache_expiry_time].to_i.minutes if Rails.application.secrets.decidim[:stats_cache_expiry_time].present?
|
396
398
|
config.expire_session_after = Rails.application.secrets.decidim[:expire_session_after].to_i.minutes if Rails.application.secrets.decidim[:expire_session_after].present?
|
397
399
|
config.enable_remember_me = Rails.application.secrets.decidim[:enable_remember_me].present? unless Rails.application.secrets.decidim[:enable_remember_me] == "auto"
|
398
400
|
if Rails.application.secrets.decidim[:session_timeout_interval].present?
|
@@ -33,6 +33,8 @@ decidim_default: &decidim_default
|
|
33
33
|
default_csv_col_sep: <%%= Decidim::Env.new("DECIDIM_DEFAULT_CSV_COL_SEP", ";").to_json %>
|
34
34
|
consent_cookie_name: <%%= Decidim::Env.new("DECIDIM_CONSENT_COOKIE_NAME", "decidim-consent").to_json %>
|
35
35
|
cache_key_separator: <%%= Decidim::Env.new("DECIDIM_CACHE_KEY_SEPARATOR", "/").to_json %>
|
36
|
+
cache_expiry_time: <%%= Decidim::Env.new("DECIDIM_CACHE_EXPIRATION_TIME", "1440").to_i %>
|
37
|
+
stats_cache_expiry_time: <%%= Decidim::Env.new("DECIDIM_STATS_CACHE_EXPIRATION_TIME", 10).to_i %>
|
36
38
|
expire_session_after: <%%= Decidim::Env.new("DECIDIM_EXPIRE_SESSION_AFTER", "30").to_i %>
|
37
39
|
session_timeout_interval: <%%= Decidim::Env.new("DECIDIM_SESSION_TIMEOUT_INTERVAL", "10").to_i %>
|
38
40
|
enable_remember_me: <%%= Decidim::Env.new("DECIDIM_ENABLE_REMEMBER_ME", "auto").default_or_present_if_exists.to_s %>
|
@@ -187,11 +189,13 @@ test:
|
|
187
189
|
enabled: true
|
188
190
|
client_id:
|
189
191
|
client_secret:
|
192
|
+
test:
|
193
|
+
enabled: true
|
194
|
+
icon: tools-line
|
190
195
|
elections:
|
191
196
|
<<: *elections_default
|
192
197
|
bulletin_board_server: <%%= Decidim::Env.new("ELECTIONS_BULLETIN_BOARD_SERVER", 'http://bulletin-board.lvh.me:5017/api').to_s %>
|
193
198
|
|
194
|
-
|
195
199
|
# Do not keep production secrets in the repository,
|
196
200
|
# instead read values from the environment.
|
197
201
|
production:
|
@@ -5,7 +5,7 @@ source "https://rubygems.org"
|
|
5
5
|
|
6
6
|
ruby RUBY_VERSION
|
7
7
|
|
8
|
-
gem "decidim", "~> 0.28.
|
8
|
+
gem "decidim", "~> 0.28.4"
|
9
9
|
gem "decidim-<%= component_name %>", path: "."
|
10
10
|
|
11
11
|
gem "puma", ">= 6.3.1"
|
@@ -14,7 +14,7 @@ gem "bootsnap", "~> 1.4"
|
|
14
14
|
group :development, :test do
|
15
15
|
gem "byebug", "~> 11.0", platform: :mri
|
16
16
|
|
17
|
-
gem "decidim-dev", "~> 0.28.
|
17
|
+
gem "decidim-dev", "~> 0.28.4"
|
18
18
|
end
|
19
19
|
|
20
20
|
group :development do
|
@@ -195,6 +195,8 @@ shared_context "with application env vars" do
|
|
195
195
|
"DECIDIM_SERVICE_WORKER_ENABLED" => "true",
|
196
196
|
"DECIDIM_CONSENT_COOKIE_NAME" => ":weird-consent-cookie-name:",
|
197
197
|
"DECIDIM_CACHE_KEY_SEPARATOR" => ":",
|
198
|
+
"DECIDIM_CACHE_EXPIRATION_TIME" => "33",
|
199
|
+
"DECIDIM_STATS_CACHE_EXPIRATION_TIME" => "15",
|
198
200
|
"DECIDIM_EXPIRE_SESSION_AFTER" => "45",
|
199
201
|
"DECIDIM_ENABLE_REMEMBER_ME" => "",
|
200
202
|
"DECIDIM_SESSION_TIMEOUT_INTERVAL" => "33",
|
@@ -317,6 +319,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
317
319
|
%w(decidim service_worker_enabled) => true,
|
318
320
|
%w(decidim consent_cookie_name) => "decidim-consent",
|
319
321
|
%w(decidim cache_key_separator) => "/",
|
322
|
+
%w(decidim cache_expiry_time) => 1440,
|
323
|
+
%w(decidim stats_cache_expiry_time) => 10,
|
320
324
|
%w(decidim expire_session_after) => 30,
|
321
325
|
%w(decidim enable_remember_me) => "auto",
|
322
326
|
%w(decidim session_timeout_interval) => 10,
|
@@ -421,6 +425,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
421
425
|
%w(decidim service_worker_enabled) => true,
|
422
426
|
%w(decidim consent_cookie_name) => ":weird-consent-cookie-name:",
|
423
427
|
%w(decidim cache_key_separator) => ":",
|
428
|
+
%w(decidim cache_expiry_time) => 33,
|
429
|
+
%w(decidim stats_cache_expiry_time) => 15,
|
424
430
|
%w(decidim expire_session_after) => 45,
|
425
431
|
%w(decidim enable_remember_me) => false,
|
426
432
|
%w(decidim session_timeout_interval) => 33,
|
@@ -515,6 +521,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
515
521
|
"cors_enabled" => false,
|
516
522
|
"consent_cookie_name" => "decidim-consent",
|
517
523
|
"cache_key_separator" => "/",
|
524
|
+
"cache_expiry_time" => 86_400, # 1 day
|
525
|
+
"stats_cache_expiry_time" => 600, # 10 minutes
|
518
526
|
"expire_session_after" => 1800, # 30 minutes
|
519
527
|
"enable_remember_me" => true,
|
520
528
|
"session_timeout_interval" => 10,
|
@@ -552,6 +560,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
552
560
|
"cors_enabled" => true,
|
553
561
|
"consent_cookie_name" => ":weird-consent-cookie-name:",
|
554
562
|
"cache_key_separator" => ":",
|
563
|
+
"cache_expiry_time" => 1980,
|
564
|
+
"stats_cache_expiry_time" => 900,
|
555
565
|
"expire_session_after" => 2700, # 45 minutes
|
556
566
|
"enable_remember_me" => false,
|
557
567
|
"session_timeout_interval" => 33,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.28.
|
21
|
+
version: 0.28.4
|
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.28.
|
28
|
+
version: 0.28.4
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|