decidim-generators 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +118 -113
- data/lib/decidim/generators/app_templates/initializer.rb +3 -0
- data/lib/decidim/generators/component_generator.rb +4 -2
- data/lib/decidim/generators/component_templates/app/packs/js/entrypoint.js +2 -0
- data/lib/decidim/generators/component_templates/app/packs/stylesheets/decidim/default.scss +1 -0
- data/lib/decidim/generators/component_templates/config/assets.rb.erb +9 -0
- data/lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb +4 -0
- data/lib/decidim/generators/install_generator.rb +5 -0
- data/lib/decidim/generators/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c0990fe50e7cea0894a9ee3fc4f62136b802218411221e976f136af0992d991
|
4
|
+
data.tar.gz: 4660fb2f28ffc4be53115796d1d80cd0ca9a3564646ccff3da3a91cadbaf4250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ad135039311a0322db9d2213baf5d405fe42a33a7f1925ee3eb7ba3ef1e317675af92e9de41bc92b356cff4e5554afd0063da597fa296cb70461d9b83b0134
|
7
|
+
data.tar.gz: 6f5411744606b559760953beef7a87d580dc03620236e4de7beb401de27d3936d268f2915497eddc927153f49fb4ef95a12815033881e78485e2f7d3eda21faf
|
data/Gemfile.lock
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
decidim (0.25.
|
5
|
-
decidim-accountability (= 0.25.
|
6
|
-
decidim-admin (= 0.25.
|
7
|
-
decidim-api (= 0.25.
|
8
|
-
decidim-assemblies (= 0.25.
|
9
|
-
decidim-blogs (= 0.25.
|
10
|
-
decidim-budgets (= 0.25.
|
11
|
-
decidim-comments (= 0.25.
|
12
|
-
decidim-core (= 0.25.
|
13
|
-
decidim-debates (= 0.25.
|
14
|
-
decidim-forms (= 0.25.
|
15
|
-
decidim-generators (= 0.25.
|
16
|
-
decidim-meetings (= 0.25.
|
17
|
-
decidim-pages (= 0.25.
|
18
|
-
decidim-participatory_processes (= 0.25.
|
19
|
-
decidim-proposals (= 0.25.
|
20
|
-
decidim-sortitions (= 0.25.
|
21
|
-
decidim-surveys (= 0.25.
|
22
|
-
decidim-system (= 0.25.
|
23
|
-
decidim-templates (= 0.25.
|
24
|
-
decidim-verifications (= 0.25.
|
25
|
-
decidim-accountability (0.25.
|
26
|
-
decidim-comments (= 0.25.
|
27
|
-
decidim-core (= 0.25.
|
28
|
-
decidim-admin (0.25.
|
4
|
+
decidim (0.25.1)
|
5
|
+
decidim-accountability (= 0.25.1)
|
6
|
+
decidim-admin (= 0.25.1)
|
7
|
+
decidim-api (= 0.25.1)
|
8
|
+
decidim-assemblies (= 0.25.1)
|
9
|
+
decidim-blogs (= 0.25.1)
|
10
|
+
decidim-budgets (= 0.25.1)
|
11
|
+
decidim-comments (= 0.25.1)
|
12
|
+
decidim-core (= 0.25.1)
|
13
|
+
decidim-debates (= 0.25.1)
|
14
|
+
decidim-forms (= 0.25.1)
|
15
|
+
decidim-generators (= 0.25.1)
|
16
|
+
decidim-meetings (= 0.25.1)
|
17
|
+
decidim-pages (= 0.25.1)
|
18
|
+
decidim-participatory_processes (= 0.25.1)
|
19
|
+
decidim-proposals (= 0.25.1)
|
20
|
+
decidim-sortitions (= 0.25.1)
|
21
|
+
decidim-surveys (= 0.25.1)
|
22
|
+
decidim-system (= 0.25.1)
|
23
|
+
decidim-templates (= 0.25.1)
|
24
|
+
decidim-verifications (= 0.25.1)
|
25
|
+
decidim-accountability (0.25.1)
|
26
|
+
decidim-comments (= 0.25.1)
|
27
|
+
decidim-core (= 0.25.1)
|
28
|
+
decidim-admin (0.25.1)
|
29
29
|
active_link_to (~> 1.0)
|
30
|
-
decidim-core (= 0.25.
|
30
|
+
decidim-core (= 0.25.1)
|
31
31
|
devise (~> 4.7)
|
32
32
|
devise-i18n (~> 1.2)
|
33
33
|
devise_invitable (~> 2.0)
|
34
|
-
decidim-api (0.25.
|
34
|
+
decidim-api (0.25.1)
|
35
35
|
graphql (~> 1.12, >= 1.12.3)
|
36
36
|
rack-cors (~> 1.0)
|
37
37
|
redcarpet (~> 3.5, >= 3.5.1)
|
38
|
-
decidim-assemblies (0.25.
|
39
|
-
decidim-core (= 0.25.
|
40
|
-
decidim-blogs (0.25.
|
41
|
-
decidim-admin (= 0.25.
|
42
|
-
decidim-comments (= 0.25.
|
43
|
-
decidim-core (= 0.25.
|
44
|
-
decidim-budgets (0.25.
|
45
|
-
decidim-comments (= 0.25.
|
46
|
-
decidim-core (= 0.25.
|
47
|
-
decidim-comments (0.25.
|
48
|
-
decidim-core (= 0.25.
|
38
|
+
decidim-assemblies (0.25.1)
|
39
|
+
decidim-core (= 0.25.1)
|
40
|
+
decidim-blogs (0.25.1)
|
41
|
+
decidim-admin (= 0.25.1)
|
42
|
+
decidim-comments (= 0.25.1)
|
43
|
+
decidim-core (= 0.25.1)
|
44
|
+
decidim-budgets (0.25.1)
|
45
|
+
decidim-comments (= 0.25.1)
|
46
|
+
decidim-core (= 0.25.1)
|
47
|
+
decidim-comments (0.25.1)
|
48
|
+
decidim-core (= 0.25.1)
|
49
49
|
redcarpet (~> 3.5, >= 3.5.1)
|
50
|
-
decidim-conferences (0.25.
|
51
|
-
decidim-core (= 0.25.
|
52
|
-
decidim-meetings (= 0.25.
|
50
|
+
decidim-conferences (0.25.1)
|
51
|
+
decidim-core (= 0.25.1)
|
52
|
+
decidim-meetings (= 0.25.1)
|
53
53
|
wicked_pdf (~> 2.1)
|
54
54
|
wkhtmltopdf-binary (~> 0.12)
|
55
|
-
decidim-consultations (0.25.
|
56
|
-
decidim-admin (= 0.25.
|
57
|
-
decidim-comments (= 0.25.
|
58
|
-
decidim-core (= 0.25.
|
59
|
-
decidim-core (0.25.
|
55
|
+
decidim-consultations (0.25.1)
|
56
|
+
decidim-admin (= 0.25.1)
|
57
|
+
decidim-comments (= 0.25.1)
|
58
|
+
decidim-core (= 0.25.1)
|
59
|
+
decidim-core (0.25.1)
|
60
60
|
active_link_to (~> 1.0)
|
61
61
|
acts_as_list (~> 0.9)
|
62
62
|
anchored (~> 1.1)
|
@@ -67,7 +67,7 @@ PATH
|
|
67
67
|
cells-rails (~> 0.1.3)
|
68
68
|
charlock_holmes (~> 0.7)
|
69
69
|
date_validator (~> 0.9.0)
|
70
|
-
decidim-api (= 0.25.
|
70
|
+
decidim-api (= 0.25.1)
|
71
71
|
devise (~> 4.7)
|
72
72
|
devise-i18n (~> 1.2)
|
73
73
|
diffy (~> 3.3)
|
@@ -85,10 +85,10 @@ PATH
|
|
85
85
|
mini_magick (~> 4.9)
|
86
86
|
mustache (~> 1.1.0)
|
87
87
|
nobspw (~> 0.6.0)
|
88
|
-
omniauth (~>
|
88
|
+
omniauth (~> 2.0)
|
89
89
|
omniauth-facebook (~> 5.0)
|
90
|
-
omniauth-google-oauth2 (~> 0
|
91
|
-
omniauth-rails_csrf_protection (~> 0
|
90
|
+
omniauth-google-oauth2 (~> 1.0)
|
91
|
+
omniauth-rails_csrf_protection (~> 1.0)
|
92
92
|
omniauth-twitter (~> 1.4)
|
93
93
|
paper_trail (~> 10.3)
|
94
94
|
pg (~> 1.1.4, < 2)
|
@@ -96,7 +96,7 @@ PATH
|
|
96
96
|
premailer-rails (~> 1.10)
|
97
97
|
rack (~> 2.2, >= 2.2.3)
|
98
98
|
rack-attack (~> 6.0)
|
99
|
-
rails (~> 6.0)
|
99
|
+
rails (~> 6.0.4)
|
100
100
|
rails-i18n (~> 6.0)
|
101
101
|
ransack (~> 2.4.1)
|
102
102
|
rectify (~> 0.13.0)
|
@@ -111,15 +111,15 @@ PATH
|
|
111
111
|
valid_email2 (~> 2.1)
|
112
112
|
webpacker (~> 6.0.0.rc.5)
|
113
113
|
wisper (~> 2.0)
|
114
|
-
decidim-debates (0.25.
|
115
|
-
decidim-comments (= 0.25.
|
116
|
-
decidim-core (= 0.25.
|
117
|
-
decidim-dev (0.25.
|
114
|
+
decidim-debates (0.25.1)
|
115
|
+
decidim-comments (= 0.25.1)
|
116
|
+
decidim-core (= 0.25.1)
|
117
|
+
decidim-dev (0.25.1)
|
118
118
|
axe-core-rspec (~> 4.1.0)
|
119
119
|
byebug (~> 11.0)
|
120
120
|
capybara (~> 3.24)
|
121
121
|
db-query-matchers (~> 0.10.0)
|
122
|
-
decidim (= 0.25.
|
122
|
+
decidim (= 0.25.1)
|
123
123
|
erb_lint (~> 0.0.35)
|
124
124
|
factory_bot_rails (~> 4.8)
|
125
125
|
i18n-tasks (~> 0.9.18)
|
@@ -142,63 +142,63 @@ PATH
|
|
142
142
|
w3c_rspec_validators (~> 0.3.0)
|
143
143
|
webmock (~> 3.6)
|
144
144
|
wisper-rspec (~> 1.0)
|
145
|
-
decidim-elections (0.25.
|
145
|
+
decidim-elections (0.25.1)
|
146
146
|
decidim-bulletin_board (= 0.21.2)
|
147
|
-
decidim-core (= 0.25.
|
148
|
-
decidim-forms (= 0.25.
|
149
|
-
decidim-proposals (= 0.25.
|
147
|
+
decidim-core (= 0.25.1)
|
148
|
+
decidim-forms (= 0.25.1)
|
149
|
+
decidim-proposals (= 0.25.1)
|
150
150
|
rack-attack (~> 6.0)
|
151
151
|
voting_schemes-dummy (= 0.21.2)
|
152
152
|
voting_schemes-electionguard (= 0.21.2)
|
153
|
-
decidim-forms (0.25.
|
154
|
-
decidim-core (= 0.25.
|
153
|
+
decidim-forms (0.25.1)
|
154
|
+
decidim-core (= 0.25.1)
|
155
155
|
wicked_pdf (~> 2.1)
|
156
156
|
wkhtmltopdf-binary (~> 0.12)
|
157
|
-
decidim-generators (0.25.
|
158
|
-
decidim-core (= 0.25.
|
159
|
-
decidim-initiatives (0.25.
|
160
|
-
decidim-admin (= 0.25.
|
161
|
-
decidim-comments (= 0.25.
|
162
|
-
decidim-core (= 0.25.
|
163
|
-
decidim-verifications (= 0.25.
|
157
|
+
decidim-generators (0.25.1)
|
158
|
+
decidim-core (= 0.25.1)
|
159
|
+
decidim-initiatives (0.25.1)
|
160
|
+
decidim-admin (= 0.25.1)
|
161
|
+
decidim-comments (= 0.25.1)
|
162
|
+
decidim-core (= 0.25.1)
|
163
|
+
decidim-verifications (= 0.25.1)
|
164
164
|
origami (~> 2.1)
|
165
165
|
virtus-multiparams (~> 0.1)
|
166
166
|
wicked (~> 1.3)
|
167
167
|
wicked_pdf (~> 2.1)
|
168
168
|
wkhtmltopdf-binary (~> 0.12)
|
169
|
-
decidim-meetings (0.25.
|
170
|
-
decidim-core (= 0.25.
|
171
|
-
decidim-forms (= 0.25.
|
169
|
+
decidim-meetings (0.25.1)
|
170
|
+
decidim-core (= 0.25.1)
|
171
|
+
decidim-forms (= 0.25.1)
|
172
172
|
icalendar (~> 2.5)
|
173
|
-
decidim-pages (0.25.
|
174
|
-
decidim-core (= 0.25.
|
175
|
-
decidim-participatory_processes (0.25.
|
176
|
-
decidim-core (= 0.25.
|
177
|
-
decidim-proposals (0.25.
|
178
|
-
decidim-comments (= 0.25.
|
179
|
-
decidim-core (= 0.25.
|
173
|
+
decidim-pages (0.25.1)
|
174
|
+
decidim-core (= 0.25.1)
|
175
|
+
decidim-participatory_processes (0.25.1)
|
176
|
+
decidim-core (= 0.25.1)
|
177
|
+
decidim-proposals (0.25.1)
|
178
|
+
decidim-comments (= 0.25.1)
|
179
|
+
decidim-core (= 0.25.1)
|
180
180
|
doc2text (~> 0.4.3)
|
181
181
|
redcarpet (~> 3.5, >= 3.5.1)
|
182
|
-
decidim-sortitions (0.25.
|
183
|
-
decidim-admin (= 0.25.
|
184
|
-
decidim-comments (= 0.25.
|
185
|
-
decidim-core (= 0.25.
|
186
|
-
decidim-proposals (= 0.25.
|
187
|
-
decidim-surveys (0.25.
|
188
|
-
decidim-core (= 0.25.
|
189
|
-
decidim-forms (= 0.25.
|
190
|
-
decidim-templates (= 0.25.
|
191
|
-
decidim-system (0.25.
|
182
|
+
decidim-sortitions (0.25.1)
|
183
|
+
decidim-admin (= 0.25.1)
|
184
|
+
decidim-comments (= 0.25.1)
|
185
|
+
decidim-core (= 0.25.1)
|
186
|
+
decidim-proposals (= 0.25.1)
|
187
|
+
decidim-surveys (0.25.1)
|
188
|
+
decidim-core (= 0.25.1)
|
189
|
+
decidim-forms (= 0.25.1)
|
190
|
+
decidim-templates (= 0.25.1)
|
191
|
+
decidim-system (0.25.1)
|
192
192
|
active_link_to (~> 1.0)
|
193
|
-
decidim-core (= 0.25.
|
193
|
+
decidim-core (= 0.25.1)
|
194
194
|
devise (~> 4.7)
|
195
195
|
devise-i18n (~> 1.2)
|
196
196
|
devise_invitable (~> 2.0)
|
197
|
-
decidim-templates (0.25.
|
198
|
-
decidim-core (= 0.25.
|
199
|
-
decidim-forms (= 0.25.
|
200
|
-
decidim-verifications (0.25.
|
201
|
-
decidim-core (= 0.25.
|
197
|
+
decidim-templates (0.25.1)
|
198
|
+
decidim-core (= 0.25.1)
|
199
|
+
decidim-forms (= 0.25.1)
|
200
|
+
decidim-verifications (0.25.1)
|
201
|
+
decidim-core (= 0.25.1)
|
202
202
|
|
203
203
|
GEM
|
204
204
|
remote: https://rubygems.org/
|
@@ -294,8 +294,9 @@ GEM
|
|
294
294
|
browser (2.7.1)
|
295
295
|
builder (3.2.4)
|
296
296
|
byebug (11.1.3)
|
297
|
-
capybara (3.
|
297
|
+
capybara (3.36.0)
|
298
298
|
addressable
|
299
|
+
matrix
|
299
300
|
mini_mime (>= 0.1.3)
|
300
301
|
nokogiri (~> 1.8)
|
301
302
|
rack (>= 1.6.0)
|
@@ -322,7 +323,7 @@ GEM
|
|
322
323
|
actionpack (>= 5.0)
|
323
324
|
cells (>= 4.1.6, < 5.0.0)
|
324
325
|
charlock_holmes (0.7.7)
|
325
|
-
chef-utils (17.
|
326
|
+
chef-utils (17.7.29)
|
326
327
|
concurrent-ruby
|
327
328
|
childprocess (3.0.0)
|
328
329
|
coercible (1.0.0)
|
@@ -364,7 +365,7 @@ GEM
|
|
364
365
|
railties (>= 4.1.0)
|
365
366
|
responders
|
366
367
|
warden (~> 1.2.3)
|
367
|
-
devise-i18n (1.10.
|
368
|
+
devise-i18n (1.10.1)
|
368
369
|
devise (>= 4.8.0)
|
369
370
|
devise_invitable (2.0.5)
|
370
371
|
actionmailer (>= 5.0)
|
@@ -395,7 +396,7 @@ GEM
|
|
395
396
|
erubi (1.10.0)
|
396
397
|
etherpad-lite (0.3.0)
|
397
398
|
rest-client (>= 1.6)
|
398
|
-
excon (0.
|
399
|
+
excon (0.88.0)
|
399
400
|
execjs (2.8.1)
|
400
401
|
factory_bot (4.11.1)
|
401
402
|
activesupport (>= 3.0.0)
|
@@ -423,7 +424,7 @@ GEM
|
|
423
424
|
faraday-net_http_persistent (1.2.0)
|
424
425
|
faraday-patron (1.0.0)
|
425
426
|
faraday-rack (1.0.0)
|
426
|
-
faraday_middleware (1.
|
427
|
+
faraday_middleware (1.2.0)
|
427
428
|
faraday (~> 1.0)
|
428
429
|
ffi (1.15.1)
|
429
430
|
file_validators (2.3.0)
|
@@ -442,14 +443,14 @@ GEM
|
|
442
443
|
activemodel (>= 4.1, < 7.0)
|
443
444
|
activesupport (>= 4.1, < 7.0)
|
444
445
|
railties (>= 4.1, < 7.0)
|
445
|
-
geocoder (1.
|
446
|
+
geocoder (1.7.0)
|
446
447
|
globalid (0.5.2)
|
447
448
|
activesupport (>= 5.0)
|
448
449
|
graphlient (0.4.0)
|
449
450
|
faraday (>= 1.0)
|
450
451
|
faraday_middleware
|
451
452
|
graphql-client
|
452
|
-
graphql (1.12.
|
453
|
+
graphql (1.12.18)
|
453
454
|
graphql-client (0.17.0)
|
454
455
|
activesupport (>= 3.0)
|
455
456
|
graphql (~> 1.10)
|
@@ -475,14 +476,14 @@ GEM
|
|
475
476
|
terminal-table (>= 1.5.1)
|
476
477
|
icalendar (2.7.1)
|
477
478
|
ice_cube (~> 0.16)
|
478
|
-
ice_cube (0.16.
|
479
|
+
ice_cube (0.16.4)
|
479
480
|
ice_nine (0.11.2)
|
480
481
|
image_processing (1.12.1)
|
481
482
|
mini_magick (>= 4.9.5, < 5)
|
482
483
|
ruby-vips (>= 2.0.17, < 3)
|
483
484
|
invisible_captcha (0.13.0)
|
484
485
|
rails (>= 3.2.0)
|
485
|
-
json (2.
|
486
|
+
json (2.6.1)
|
486
487
|
jwt (2.2.3)
|
487
488
|
kaminari (1.2.1)
|
488
489
|
activesupport (>= 4.1.0)
|
@@ -517,6 +518,7 @@ GEM
|
|
517
518
|
mail (2.7.1)
|
518
519
|
mini_mime (>= 0.1.1)
|
519
520
|
marcel (1.0.2)
|
521
|
+
matrix (0.4.2)
|
520
522
|
mdl (0.11.0)
|
521
523
|
kramdown (~> 2.3)
|
522
524
|
kramdown-parser-gfm (~> 1.1)
|
@@ -547,32 +549,33 @@ GEM
|
|
547
549
|
nokogiri (1.11.7)
|
548
550
|
mini_portile2 (~> 2.5.0)
|
549
551
|
racc (~> 1.4)
|
550
|
-
oauth (0.5.
|
552
|
+
oauth (0.5.7)
|
551
553
|
oauth2 (1.4.7)
|
552
554
|
faraday (>= 0.8, < 2.0)
|
553
555
|
jwt (>= 1.0, < 3.0)
|
554
556
|
multi_json (~> 1.3)
|
555
557
|
multi_xml (~> 0.5)
|
556
558
|
rack (>= 1.2, < 3)
|
557
|
-
omniauth (
|
559
|
+
omniauth (2.0.4)
|
558
560
|
hashie (>= 3.4.6)
|
559
561
|
rack (>= 1.6.2, < 3)
|
562
|
+
rack-protection
|
560
563
|
omniauth-facebook (5.0.0)
|
561
564
|
omniauth-oauth2 (~> 1.2)
|
562
|
-
omniauth-google-oauth2 (0.
|
565
|
+
omniauth-google-oauth2 (1.0.0)
|
563
566
|
jwt (>= 2.0)
|
564
567
|
oauth2 (~> 1.1)
|
565
|
-
omniauth (~>
|
566
|
-
omniauth-oauth2 (
|
568
|
+
omniauth (~> 2.0)
|
569
|
+
omniauth-oauth2 (~> 1.7.1)
|
567
570
|
omniauth-oauth (1.2.0)
|
568
571
|
oauth
|
569
572
|
omniauth (>= 1.0, < 3)
|
570
573
|
omniauth-oauth2 (1.7.1)
|
571
574
|
oauth2 (~> 1.4)
|
572
575
|
omniauth (>= 1.9, < 3)
|
573
|
-
omniauth-rails_csrf_protection (0.
|
576
|
+
omniauth-rails_csrf_protection (1.0.0)
|
574
577
|
actionpack (>= 4.2)
|
575
|
-
omniauth (
|
578
|
+
omniauth (~> 2.0)
|
576
579
|
omniauth-twitter (1.4.0)
|
577
580
|
omniauth-oauth (~> 1.1)
|
578
581
|
rack
|
@@ -597,7 +600,7 @@ GEM
|
|
597
600
|
actionmailer (>= 3)
|
598
601
|
premailer (~> 1.7, >= 1.7.9)
|
599
602
|
public_suffix (4.0.6)
|
600
|
-
puma (5.
|
603
|
+
puma (5.5.2)
|
601
604
|
nio4r (~> 2.0)
|
602
605
|
racc (1.5.2)
|
603
606
|
rack (2.2.3)
|
@@ -605,6 +608,8 @@ GEM
|
|
605
608
|
rack (>= 1.0, < 3)
|
606
609
|
rack-cors (1.1.1)
|
607
610
|
rack (>= 2.0.0)
|
611
|
+
rack-protection (2.1.0)
|
612
|
+
rack
|
608
613
|
rack-proxy (0.7.0)
|
609
614
|
rack
|
610
615
|
rack-test (1.1.0)
|
@@ -658,7 +663,7 @@ GEM
|
|
658
663
|
virtus (~> 1.0.5)
|
659
664
|
wisper (>= 1.6.1)
|
660
665
|
redcarpet (3.5.1)
|
661
|
-
redis (4.
|
666
|
+
redis (4.5.1)
|
662
667
|
regexp_parser (2.1.1)
|
663
668
|
request_store (1.5.0)
|
664
669
|
rack (>= 1.4)
|
@@ -282,3 +282,6 @@ end
|
|
282
282
|
|
283
283
|
Rails.application.config.i18n.available_locales = Decidim.available_locales
|
284
284
|
Rails.application.config.i18n.default_locale = Decidim.default_locale
|
285
|
+
|
286
|
+
# Inform Decidim about the assets folder
|
287
|
+
Decidim.register_assets_path File.expand_path("app/packs", Rails.application.root)
|
@@ -35,8 +35,9 @@ module Decidim
|
|
35
35
|
template "circleci/config.yml", "#{component_folder}/.circleci/config.yml"
|
36
36
|
|
37
37
|
app_folder = "#{component_folder}/app"
|
38
|
-
template "app/
|
39
|
-
template "app/
|
38
|
+
template "app/packs/js/entrypoint.js", "#{app_folder}/packs/entrypoints/decidim_#{component_name}.js"
|
39
|
+
template "app/packs/images/decidim/component/icon.svg", "#{app_folder}/packs/images/decidim/#{component_name}/icon.svg"
|
40
|
+
template "app/packs/stylesheets/decidim/default.scss", "#{app_folder}/packs/stylesheets/decidim/#{component_name}/#{component_name}.scss"
|
40
41
|
template "app/controllers/decidim/component/application_controller.rb.erb", "#{app_folder}/controllers/decidim/#{component_name}/application_controller.rb"
|
41
42
|
template "app/controllers/decidim/component/admin/application_controller.rb.erb", "#{app_folder}/controllers/decidim/#{component_name}/admin/application_controller.rb"
|
42
43
|
template "app/helpers/decidim/component/application_helper.rb.erb", "#{app_folder}/helpers/decidim/#{component_name}/application_helper.rb"
|
@@ -47,6 +48,7 @@ module Decidim
|
|
47
48
|
chmod "#{bin_folder}/rails", "+x"
|
48
49
|
|
49
50
|
config_folder = "#{component_folder}/config"
|
51
|
+
template "config/assets.rb.erb", "#{config_folder}/assets.rb"
|
50
52
|
template "config/locales/en.yml.erb", "#{config_folder}/locales/en.yml"
|
51
53
|
template "config/i18n-tasks.yml.erb", "#{config_folder}/i18n-tasks.yml"
|
52
54
|
|
@@ -0,0 +1 @@
|
|
1
|
+
/* css for decidim_<%= component_name %> */
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
base_path = File.expand_path("..", __dir__)
|
4
|
+
|
5
|
+
Decidim::Webpacker.register_path("#{base_path}/app/packs")
|
6
|
+
Decidim::Webpacker.register_entrypoints(
|
7
|
+
decidim_<%= component_name %>: "#{base_path}/app/packs/entrypoints/decidim_<%= component_name %>.js"
|
8
|
+
)
|
9
|
+
Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/<%= component_name %>/<%= component_name %>")
|
@@ -14,6 +14,10 @@ module Decidim
|
|
14
14
|
# resources :<%= component_name %>
|
15
15
|
# root to: "<%= component_name %>#index"
|
16
16
|
end
|
17
|
+
|
18
|
+
initializer "<%= component_module_name %>.webpacker.assets_path" do
|
19
|
+
Decidim.register_assets_path File.expand_path("app/packs", root)
|
20
|
+
end
|
17
21
|
end
|
18
22
|
end
|
19
23
|
end
|
@@ -106,7 +106,12 @@ module Decidim
|
|
106
106
|
def remove_sprockets_requirement
|
107
107
|
gsub_file "config/application.rb", %r{require ['"]rails/all['"]\R}, <<~RUBY
|
108
108
|
require "decidim/rails"
|
109
|
+
|
109
110
|
# Add the frameworks used by your app that are not loaded by Decidim.
|
111
|
+
# require "action_mailbox/engine"
|
112
|
+
# require "action_text/engine"
|
113
|
+
require "action_cable/engine"
|
114
|
+
require "rails/test_unit/railtie"
|
110
115
|
RUBY
|
111
116
|
|
112
117
|
gsub_file "config/environments/development.rb", /config\.assets.*$/, ""
|
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.25.
|
4
|
+
version: 0.25.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: 2021-
|
13
|
+
date: 2021-11-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.25.
|
21
|
+
version: 0.25.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.25.
|
28
|
+
version: 0.25.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,8 +89,11 @@ files:
|
|
89
89
|
- lib/decidim/generators/component_templates/app/helpers/decidim/component/application_helper.rb.erb
|
90
90
|
- lib/decidim/generators/component_templates/app/models/decidim/component/application_record.rb.erb
|
91
91
|
- lib/decidim/generators/component_templates/app/packs/images/decidim/component/icon.svg
|
92
|
+
- lib/decidim/generators/component_templates/app/packs/js/entrypoint.js
|
93
|
+
- lib/decidim/generators/component_templates/app/packs/stylesheets/decidim/default.scss
|
92
94
|
- lib/decidim/generators/component_templates/bin/rails.erb
|
93
95
|
- lib/decidim/generators/component_templates/circleci/config.yml
|
96
|
+
- lib/decidim/generators/component_templates/config/assets.rb.erb
|
94
97
|
- lib/decidim/generators/component_templates/config/i18n-tasks.yml.erb
|
95
98
|
- lib/decidim/generators/component_templates/config/locales/en.yml.erb
|
96
99
|
- lib/decidim/generators/component_templates/decidim-component.gemspec.erb
|