decidim-generators 0.29.0 → 0.29.1
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/Gemfile.lock +83 -83
- data/lib/decidim/generators/app_templates/initializer.rb +2 -0
- data/lib/decidim/generators/app_templates/secrets.yml.erb +5 -0
- 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: aaad366830574b8b46eb75e496cffd04ad63c55a3e7b7e800cf3bf09668e7ba2
|
|
4
|
+
data.tar.gz: 3af7c4ae5a5fdc8347bb094e5ecbfd3a764ecc4bf19327c2a47d97ec0c36483d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a859e61fda347583b55f9d1f23b7cca77c570bd25ee04a457f226b370032e21bfe1f3580d1434a2c4dea863c358bcb94ef357914e96e96c94ad00999bf1e667a
|
|
7
|
+
data.tar.gz: 4b25156ec60727e9bce6d7d19d32dc7805370fcb74ec3448eb28f9832641ef2d5c19598ca2a225b2f8ca2569c4f25689f9ef2660c0fd8917a1243e0e5d4f4ebf
|
data/Gemfile.lock
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
decidim (0.29.
|
|
5
|
-
decidim-accountability (= 0.29.
|
|
6
|
-
decidim-admin (= 0.29.
|
|
7
|
-
decidim-api (= 0.29.
|
|
8
|
-
decidim-assemblies (= 0.29.
|
|
9
|
-
decidim-blogs (= 0.29.
|
|
10
|
-
decidim-budgets (= 0.29.
|
|
11
|
-
decidim-comments (= 0.29.
|
|
12
|
-
decidim-core (= 0.29.
|
|
13
|
-
decidim-debates (= 0.29.
|
|
14
|
-
decidim-forms (= 0.29.
|
|
15
|
-
decidim-generators (= 0.29.
|
|
16
|
-
decidim-meetings (= 0.29.
|
|
17
|
-
decidim-pages (= 0.29.
|
|
18
|
-
decidim-participatory_processes (= 0.29.
|
|
19
|
-
decidim-proposals (= 0.29.
|
|
20
|
-
decidim-sortitions (= 0.29.
|
|
21
|
-
decidim-surveys (= 0.29.
|
|
22
|
-
decidim-system (= 0.29.
|
|
23
|
-
decidim-verifications (= 0.29.
|
|
24
|
-
decidim-accountability (0.29.
|
|
25
|
-
decidim-comments (= 0.29.
|
|
26
|
-
decidim-core (= 0.29.
|
|
27
|
-
decidim-admin (0.29.
|
|
4
|
+
decidim (0.29.1)
|
|
5
|
+
decidim-accountability (= 0.29.1)
|
|
6
|
+
decidim-admin (= 0.29.1)
|
|
7
|
+
decidim-api (= 0.29.1)
|
|
8
|
+
decidim-assemblies (= 0.29.1)
|
|
9
|
+
decidim-blogs (= 0.29.1)
|
|
10
|
+
decidim-budgets (= 0.29.1)
|
|
11
|
+
decidim-comments (= 0.29.1)
|
|
12
|
+
decidim-core (= 0.29.1)
|
|
13
|
+
decidim-debates (= 0.29.1)
|
|
14
|
+
decidim-forms (= 0.29.1)
|
|
15
|
+
decidim-generators (= 0.29.1)
|
|
16
|
+
decidim-meetings (= 0.29.1)
|
|
17
|
+
decidim-pages (= 0.29.1)
|
|
18
|
+
decidim-participatory_processes (= 0.29.1)
|
|
19
|
+
decidim-proposals (= 0.29.1)
|
|
20
|
+
decidim-sortitions (= 0.29.1)
|
|
21
|
+
decidim-surveys (= 0.29.1)
|
|
22
|
+
decidim-system (= 0.29.1)
|
|
23
|
+
decidim-verifications (= 0.29.1)
|
|
24
|
+
decidim-accountability (0.29.1)
|
|
25
|
+
decidim-comments (= 0.29.1)
|
|
26
|
+
decidim-core (= 0.29.1)
|
|
27
|
+
decidim-admin (0.29.1)
|
|
28
28
|
active_link_to (~> 1.0)
|
|
29
|
-
decidim-core (= 0.29.
|
|
29
|
+
decidim-core (= 0.29.1)
|
|
30
30
|
devise (~> 4.7)
|
|
31
31
|
devise-i18n (~> 1.2)
|
|
32
32
|
devise_invitable (~> 2.0, >= 2.0.9)
|
|
33
|
-
decidim-api (0.29.
|
|
34
|
-
decidim-core (= 0.29.
|
|
33
|
+
decidim-api (0.29.1)
|
|
34
|
+
decidim-core (= 0.29.1)
|
|
35
35
|
graphql (~> 2.2.6)
|
|
36
36
|
graphql-docs (~> 4.0)
|
|
37
37
|
rack-cors (~> 1.0)
|
|
38
|
-
decidim-assemblies (0.29.
|
|
39
|
-
decidim-core (= 0.29.
|
|
40
|
-
decidim-blogs (0.29.
|
|
41
|
-
decidim-admin (= 0.29.
|
|
42
|
-
decidim-comments (= 0.29.
|
|
43
|
-
decidim-core (= 0.29.
|
|
44
|
-
decidim-budgets (0.29.
|
|
45
|
-
decidim-comments (= 0.29.
|
|
46
|
-
decidim-core (= 0.29.
|
|
47
|
-
decidim-comments (0.29.
|
|
48
|
-
decidim-core (= 0.29.
|
|
38
|
+
decidim-assemblies (0.29.1)
|
|
39
|
+
decidim-core (= 0.29.1)
|
|
40
|
+
decidim-blogs (0.29.1)
|
|
41
|
+
decidim-admin (= 0.29.1)
|
|
42
|
+
decidim-comments (= 0.29.1)
|
|
43
|
+
decidim-core (= 0.29.1)
|
|
44
|
+
decidim-budgets (0.29.1)
|
|
45
|
+
decidim-comments (= 0.29.1)
|
|
46
|
+
decidim-core (= 0.29.1)
|
|
47
|
+
decidim-comments (0.29.1)
|
|
48
|
+
decidim-core (= 0.29.1)
|
|
49
49
|
redcarpet (~> 3.5, >= 3.5.1)
|
|
50
|
-
decidim-conferences (0.29.
|
|
51
|
-
decidim-core (= 0.29.
|
|
52
|
-
decidim-meetings (= 0.29.
|
|
50
|
+
decidim-conferences (0.29.1)
|
|
51
|
+
decidim-core (= 0.29.1)
|
|
52
|
+
decidim-meetings (= 0.29.1)
|
|
53
53
|
wicked_pdf (~> 2.7)
|
|
54
54
|
wkhtmltopdf-binary (= 0.12.6.6)
|
|
55
|
-
decidim-core (0.29.
|
|
55
|
+
decidim-core (0.29.1)
|
|
56
56
|
active_link_to (~> 1.0)
|
|
57
57
|
acts_as_list (~> 1.0)
|
|
58
58
|
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.29.
|
|
106
|
-
decidim-comments (= 0.29.
|
|
107
|
-
decidim-core (= 0.29.
|
|
108
|
-
decidim-design (0.29.
|
|
109
|
-
decidim-core (= 0.29.
|
|
110
|
-
decidim-dev (0.29.
|
|
105
|
+
decidim-debates (0.29.1)
|
|
106
|
+
decidim-comments (= 0.29.1)
|
|
107
|
+
decidim-core (= 0.29.1)
|
|
108
|
+
decidim-design (0.29.1)
|
|
109
|
+
decidim-core (= 0.29.1)
|
|
110
|
+
decidim-dev (0.29.1)
|
|
111
111
|
bullet (~> 7.1.6)
|
|
112
112
|
byebug (~> 11.0)
|
|
113
113
|
capybara (~> 3.39)
|
|
114
|
-
decidim (= 0.29.
|
|
114
|
+
decidim (= 0.29.1)
|
|
115
115
|
erb_lint (~> 0.4.0)
|
|
116
116
|
factory_bot_rails (~> 6.2)
|
|
117
117
|
faker (~> 3.2)
|
|
@@ -143,52 +143,52 @@ PATH
|
|
|
143
143
|
w3c_rspec_validators (~> 0.3.0)
|
|
144
144
|
webmock (~> 3.18)
|
|
145
145
|
wisper-rspec (~> 1.0)
|
|
146
|
-
decidim-forms (0.29.
|
|
147
|
-
decidim-core (= 0.29.
|
|
146
|
+
decidim-forms (0.29.1)
|
|
147
|
+
decidim-core (= 0.29.1)
|
|
148
148
|
wicked_pdf (~> 2.1)
|
|
149
149
|
wkhtmltopdf-binary (= 0.12.6.6)
|
|
150
|
-
decidim-generators (0.29.
|
|
151
|
-
decidim-core (= 0.29.
|
|
152
|
-
decidim-initiatives (0.29.
|
|
153
|
-
decidim-admin (= 0.29.
|
|
154
|
-
decidim-comments (= 0.29.
|
|
155
|
-
decidim-core (= 0.29.
|
|
156
|
-
decidim-verifications (= 0.29.
|
|
150
|
+
decidim-generators (0.29.1)
|
|
151
|
+
decidim-core (= 0.29.1)
|
|
152
|
+
decidim-initiatives (0.29.1)
|
|
153
|
+
decidim-admin (= 0.29.1)
|
|
154
|
+
decidim-comments (= 0.29.1)
|
|
155
|
+
decidim-core (= 0.29.1)
|
|
156
|
+
decidim-verifications (= 0.29.1)
|
|
157
157
|
hexapdf (~> 0.32.0)
|
|
158
158
|
wicked_pdf (~> 2.1)
|
|
159
159
|
wkhtmltopdf-binary (= 0.12.6.6)
|
|
160
|
-
decidim-meetings (0.29.
|
|
161
|
-
decidim-core (= 0.29.
|
|
162
|
-
decidim-forms (= 0.29.
|
|
160
|
+
decidim-meetings (0.29.1)
|
|
161
|
+
decidim-core (= 0.29.1)
|
|
162
|
+
decidim-forms (= 0.29.1)
|
|
163
163
|
icalendar (~> 2.5)
|
|
164
|
-
decidim-pages (0.29.
|
|
165
|
-
decidim-core (= 0.29.
|
|
166
|
-
decidim-participatory_processes (0.29.
|
|
167
|
-
decidim-core (= 0.29.
|
|
168
|
-
decidim-proposals (0.29.
|
|
169
|
-
decidim-comments (= 0.29.
|
|
170
|
-
decidim-core (= 0.29.
|
|
164
|
+
decidim-pages (0.29.1)
|
|
165
|
+
decidim-core (= 0.29.1)
|
|
166
|
+
decidim-participatory_processes (0.29.1)
|
|
167
|
+
decidim-core (= 0.29.1)
|
|
168
|
+
decidim-proposals (0.29.1)
|
|
169
|
+
decidim-comments (= 0.29.1)
|
|
170
|
+
decidim-core (= 0.29.1)
|
|
171
171
|
doc2text (~> 0.4.7)
|
|
172
172
|
redcarpet (~> 3.5, >= 3.5.1)
|
|
173
|
-
decidim-sortitions (0.29.
|
|
174
|
-
decidim-admin (= 0.29.
|
|
175
|
-
decidim-comments (= 0.29.
|
|
176
|
-
decidim-core (= 0.29.
|
|
177
|
-
decidim-proposals (= 0.29.
|
|
178
|
-
decidim-surveys (0.29.
|
|
179
|
-
decidim-core (= 0.29.
|
|
180
|
-
decidim-forms (= 0.29.
|
|
181
|
-
decidim-system (0.29.
|
|
173
|
+
decidim-sortitions (0.29.1)
|
|
174
|
+
decidim-admin (= 0.29.1)
|
|
175
|
+
decidim-comments (= 0.29.1)
|
|
176
|
+
decidim-core (= 0.29.1)
|
|
177
|
+
decidim-proposals (= 0.29.1)
|
|
178
|
+
decidim-surveys (0.29.1)
|
|
179
|
+
decidim-core (= 0.29.1)
|
|
180
|
+
decidim-forms (= 0.29.1)
|
|
181
|
+
decidim-system (0.29.1)
|
|
182
182
|
active_link_to (~> 1.0)
|
|
183
|
-
decidim-core (= 0.29.
|
|
183
|
+
decidim-core (= 0.29.1)
|
|
184
184
|
devise (~> 4.7)
|
|
185
185
|
devise-i18n (~> 1.2)
|
|
186
186
|
devise_invitable (~> 2.0, >= 2.0.9)
|
|
187
|
-
decidim-templates (0.29.
|
|
188
|
-
decidim-core (= 0.29.
|
|
189
|
-
decidim-forms (= 0.29.
|
|
190
|
-
decidim-verifications (0.29.
|
|
191
|
-
decidim-core (= 0.29.
|
|
187
|
+
decidim-templates (0.29.1)
|
|
188
|
+
decidim-core (= 0.29.1)
|
|
189
|
+
decidim-forms (= 0.29.1)
|
|
190
|
+
decidim-verifications (0.29.1)
|
|
191
|
+
decidim-core (= 0.29.1)
|
|
192
192
|
|
|
193
193
|
GEM
|
|
194
194
|
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 %>
|
|
@@ -169,6 +171,9 @@ test:
|
|
|
169
171
|
enabled: true
|
|
170
172
|
client_id:
|
|
171
173
|
client_secret:
|
|
174
|
+
test:
|
|
175
|
+
enabled: true
|
|
176
|
+
icon: tools-line
|
|
172
177
|
|
|
173
178
|
# Do not keep production secrets in the repository,
|
|
174
179
|
# instead read values from the environment.
|
|
@@ -5,7 +5,7 @@ source "https://rubygems.org"
|
|
|
5
5
|
|
|
6
6
|
ruby RUBY_VERSION
|
|
7
7
|
|
|
8
|
-
gem "decidim", "~> 0.29.
|
|
8
|
+
gem "decidim", "~> 0.29.1"
|
|
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.29.
|
|
17
|
+
gem "decidim-dev", "~> 0.29.1"
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
group :development do
|
|
@@ -193,6 +193,8 @@ shared_context "with application env vars" do
|
|
|
193
193
|
"DECIDIM_SERVICE_WORKER_ENABLED" => "true",
|
|
194
194
|
"DECIDIM_CONSENT_COOKIE_NAME" => ":weird-consent-cookie-name:",
|
|
195
195
|
"DECIDIM_CACHE_KEY_SEPARATOR" => ":",
|
|
196
|
+
"DECIDIM_CACHE_EXPIRATION_TIME" => "33",
|
|
197
|
+
"DECIDIM_STATS_CACHE_EXPIRATION_TIME" => "15",
|
|
196
198
|
"DECIDIM_EXPIRE_SESSION_AFTER" => "45",
|
|
197
199
|
"DECIDIM_ENABLE_REMEMBER_ME" => "",
|
|
198
200
|
"DECIDIM_SESSION_TIMEOUT_INTERVAL" => "33",
|
|
@@ -299,6 +301,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
|
299
301
|
%w(decidim service_worker_enabled) => true,
|
|
300
302
|
%w(decidim consent_cookie_name) => "decidim-consent",
|
|
301
303
|
%w(decidim cache_key_separator) => "/",
|
|
304
|
+
%w(decidim cache_expiry_time) => 1440,
|
|
305
|
+
%w(decidim stats_cache_expiry_time) => 10,
|
|
302
306
|
%w(decidim expire_session_after) => 30,
|
|
303
307
|
%w(decidim enable_remember_me) => "auto",
|
|
304
308
|
%w(decidim session_timeout_interval) => 10,
|
|
@@ -393,6 +397,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
|
393
397
|
%w(decidim service_worker_enabled) => true,
|
|
394
398
|
%w(decidim consent_cookie_name) => ":weird-consent-cookie-name:",
|
|
395
399
|
%w(decidim cache_key_separator) => ":",
|
|
400
|
+
%w(decidim cache_expiry_time) => 33,
|
|
401
|
+
%w(decidim stats_cache_expiry_time) => 15,
|
|
396
402
|
%w(decidim expire_session_after) => 45,
|
|
397
403
|
%w(decidim enable_remember_me) => false,
|
|
398
404
|
%w(decidim session_timeout_interval) => 33,
|
|
@@ -469,6 +475,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
|
469
475
|
"cors_enabled" => false,
|
|
470
476
|
"consent_cookie_name" => "decidim-consent",
|
|
471
477
|
"cache_key_separator" => "/",
|
|
478
|
+
"cache_expiry_time" => 86_400, # 1 day
|
|
479
|
+
"stats_cache_expiry_time" => 600, # 10 minutes
|
|
472
480
|
"expire_session_after" => 1800, # 30 minutes
|
|
473
481
|
"enable_remember_me" => true,
|
|
474
482
|
"session_timeout_interval" => 10,
|
|
@@ -506,6 +514,8 @@ shared_examples_for "an application with configurable env vars" do
|
|
|
506
514
|
"cors_enabled" => true,
|
|
507
515
|
"consent_cookie_name" => ":weird-consent-cookie-name:",
|
|
508
516
|
"cache_key_separator" => ":",
|
|
517
|
+
"cache_expiry_time" => 1980,
|
|
518
|
+
"stats_cache_expiry_time" => 900,
|
|
509
519
|
"expire_session_after" => 2700, # 45 minutes
|
|
510
520
|
"enable_remember_me" => false,
|
|
511
521
|
"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.29.
|
|
4
|
+
version: 0.29.1
|
|
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.29.
|
|
21
|
+
version: 0.29.1
|
|
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.29.
|
|
28
|
+
version: 0.29.1
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: bundler
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|