rails_app_generator 0.2.21 → 0.2.22
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/.builders/generators/project-plan.rb +16 -2
- data/CHANGELOG.md +7 -0
- data/after_templates/addons/avo/_.rb +54 -0
- data/after_templates/addons/avo/app/controllers/home_controller.rb +4 -0
- data/after_templates/addons/avo/app/views/home/index.html.erb +3 -0
- data/after_templates/addons/avo/app/views/layouts/_footer.html.erb +3 -0
- data/after_templates/addons/avo/app/views/layouts/_navbar.html.erb +8 -0
- data/after_templates/addons/avo/app/views/layouts/application.html.erb +23 -0
- data/after_templates/addons/avo/db/seeds.rb +132 -0
- data/docs/last_run/app_generator_class.json +42 -34
- data/docs/last_run/app_generator_data.json +11 -10
- data/docs/last_run/rails_options_class.json +32 -24
- data/docs/last_run/rails_options_data.json +11 -10
- data/docs/project-plan/project.drawio +65 -59
- data/docs/project-plan/project_done.svg +1 -1
- data/lib/rails_app_generator/addons/avo.rb +27 -0
- data/lib/rails_app_generator/addons/{devise.rb → devise_old.rb} +0 -0
- data/lib/rails_app_generator/app_generator.rb +30 -20
- data/lib/rails_app_generator/rag_initializer.rb +21 -8
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/profiles/addons/avo.json +16 -0
- metadata +12 -3
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RailsAppGenerator
|
4
|
+
# Custom add-ons for RailsAppGenerator
|
5
|
+
module AddOns
|
6
|
+
# Add Avo to rails application
|
7
|
+
class Avo < RailsAppGenerator::Addon
|
8
|
+
required_gem gem.version('avo', '2.12.0', 'Avo full-featured admin panel abstracts away the common parts of building apps, letting your engineers work on your apps essential components.')
|
9
|
+
|
10
|
+
def apply
|
11
|
+
# copy_file 'config/initializers/avo.rb'
|
12
|
+
end
|
13
|
+
|
14
|
+
def before_template
|
15
|
+
say 'Setting up Avo - before custom template'
|
16
|
+
end
|
17
|
+
|
18
|
+
def before_bundle
|
19
|
+
say 'Setting up Avo - before bundle install'
|
20
|
+
end
|
21
|
+
|
22
|
+
def after_bundle
|
23
|
+
say 'Setting up Avo - after bundle install'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
File without changes
|
@@ -170,27 +170,37 @@ module RailsAppGenerator
|
|
170
170
|
add_if(:acts_as_list) # tested
|
171
171
|
add_if(:administrate) # tested
|
172
172
|
add_if(:annotate) # tested
|
173
|
-
add_if(:
|
173
|
+
add_if(:avo) # tested
|
174
174
|
add_if(:bcrypt) # tested
|
175
|
-
add_if(:
|
176
|
-
add_if(:
|
177
|
-
add_if(:
|
178
|
-
add_if(:
|
179
|
-
|
180
|
-
|
181
|
-
add_if(:
|
182
|
-
add_if(:
|
183
|
-
add_if(:
|
184
|
-
add_if(:
|
185
|
-
add_if(:
|
186
|
-
add_if(:
|
187
|
-
add_if(:
|
188
|
-
add_if(:
|
189
|
-
add_if(:
|
190
|
-
add_if(:
|
191
|
-
add_if(:
|
192
|
-
add_if(:
|
193
|
-
add_if(:
|
175
|
+
add_if(:browser) # tested
|
176
|
+
add_if(:chartkick) # tested
|
177
|
+
add_if(:continuous_integration) # TODO: needs work
|
178
|
+
add_if(:devise) # TODO: needs testing
|
179
|
+
# docker_compose
|
180
|
+
# docker
|
181
|
+
add_if(:dotenv) # tested
|
182
|
+
add_if(:factory_bot) # TODO: needs testing
|
183
|
+
add_if(:faker) # tested
|
184
|
+
add_if(:generators) # TODO: needs testing
|
185
|
+
add_if(:groupdate) # TODO: does not have a profile
|
186
|
+
add_if(:hexapdf) # tested
|
187
|
+
add_if(:httparty) # tested
|
188
|
+
add_if(:high_voltage) # TODO: needs testing
|
189
|
+
add_if(:honeybadger) # tested
|
190
|
+
add_if(:lograge) # tested
|
191
|
+
add_if(:mini_magick) # tested
|
192
|
+
add_if(:motor_magick) # tested
|
193
|
+
add_if(:public_suffix) # tested
|
194
|
+
add_if(:phony_rails) # tested
|
195
|
+
add_if(:pundit) # TODO: needs testing
|
196
|
+
add_if(:rails_html_sanitizer) # tested
|
197
|
+
add_if(:rails_app_generator) # TODO: needs testing
|
198
|
+
add_if(:redcarpet) # tested
|
199
|
+
add_if(:services) # TODO: needs testing
|
200
|
+
add_if(:shoulda) # TODO: needs testing
|
201
|
+
add_if(:sidekiq) # TODO: needs testing
|
202
|
+
add_if(:rubocop) # tested
|
203
|
+
add_if(:twilio_ruby) # tested
|
194
204
|
add(:views, :errors, :scaffold) if active?(:views)
|
195
205
|
|
196
206
|
# invoke :rails_customization
|
@@ -86,17 +86,12 @@ KConfig.configure do |config|
|
|
86
86
|
|
87
87
|
# rag.add_option :add_irbrc , type: :boolean, default: false
|
88
88
|
# rag.add_option :add_foreman , type: :boolean, default: false
|
89
|
-
rag.add_option :add_devise , type: :boolean, default: false
|
90
|
-
rag.add_option :add_dotenv , type: :boolean, default: false
|
91
89
|
# rag.add_option :add_docker , type: :boolean, default: false
|
92
90
|
# rag.add_option :add_docker_compose , type: :boolean, default: false
|
93
|
-
rag.add_option :add_rubocop , type: :boolean, default: false
|
94
|
-
rag.add_option :add_annotate , type: :boolean, default: false
|
95
91
|
# rag.add_option :add_continuous_integration , type: :boolean, default: false
|
96
92
|
# rag.add_option :add_high_voltage , type: :boolean, default: false
|
97
93
|
# rag.add_option :add_generators , type: :boolean, default: false
|
98
|
-
rag.add_option :
|
99
|
-
# rag.add_option :add_pundit , type: :boolean, default: false
|
94
|
+
# rag.add_option :add_pundit , type: :boolean, default: false # cancancan vs action_policy vs pundit
|
100
95
|
# rag.add_option :add_services , type: :boolean, default: false
|
101
96
|
# rag.add_option :add_sidekiq , type: :boolean, default: false
|
102
97
|
# rag.add_option :add_views , type: :boolean, default: false
|
@@ -108,20 +103,38 @@ KConfig.configure do |config|
|
|
108
103
|
# NEW GEM ADDONS
|
109
104
|
rag.add_option :add_acts_as_list , type: :boolean, default: false
|
110
105
|
rag.add_option :add_administrate , type: :boolean, default: false
|
111
|
-
rag.add_option :
|
106
|
+
rag.add_option :add_annotate , type: :boolean, default: false
|
107
|
+
rag.add_option :add_avo , type: :boolean, default: false
|
112
108
|
rag.add_option :add_bcrypt , type: :boolean, default: false
|
109
|
+
rag.add_option :add_browser , type: :boolean, default: false
|
113
110
|
rag.add_option :add_chartkick , type: :boolean, default: false
|
111
|
+
# continuous_integration
|
112
|
+
rag.add_option :add_devise , type: :boolean, default: false
|
113
|
+
# docker_compose
|
114
|
+
# docker
|
115
|
+
rag.add_option :add_dotenv , type: :boolean, default: false
|
116
|
+
# factory_bot
|
114
117
|
rag.add_option :add_faker , type: :boolean, default: false
|
118
|
+
# generators
|
115
119
|
rag.add_option :add_groupdate , type: :boolean, default: false
|
116
120
|
rag.add_option :add_hexapdf , type: :boolean, default: false
|
117
121
|
rag.add_option :add_httparty , type: :boolean, default: false
|
122
|
+
# high_voltage
|
118
123
|
rag.add_option :add_honeybadger , type: :boolean, default: false
|
124
|
+
rag.add_option :add_lograge , type: :boolean, default: false
|
119
125
|
rag.add_option :add_mini_magick , type: :boolean, default: false
|
120
126
|
rag.add_option :add_motor_admin , type: :boolean, default: false
|
121
|
-
rag.add_option :add_phony_rails , type: :boolean, default: false
|
122
127
|
rag.add_option :add_public_suffix , type: :boolean, default: false
|
128
|
+
rag.add_option :add_phony_rails , type: :boolean, default: false
|
129
|
+
# pundit
|
123
130
|
rag.add_option :add_rails_html_sanitizer , type: :boolean, default: false
|
131
|
+
# rails_app_generator
|
132
|
+
# RANSACK
|
124
133
|
rag.add_option :add_redcarpet , type: :boolean, default: false
|
134
|
+
# services
|
135
|
+
# shoulda
|
136
|
+
# sidekiq
|
137
|
+
rag.add_option :add_rubocop , type: :boolean, default: false
|
125
138
|
rag.add_option :add_twilio_ruby , type: :boolean, default: false
|
126
139
|
end
|
127
140
|
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_app_generator",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.22",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "rails_app_generator",
|
9
|
-
"version": "0.2.
|
9
|
+
"version": "0.2.22",
|
10
10
|
"dependencies": {
|
11
11
|
"daisyui": "^2.20.0"
|
12
12
|
},
|
data/package.json
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "avo",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/addons"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_git": true,
|
8
|
+
"skip_test": true,
|
9
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/avo/_.rb",
|
10
|
+
"add_annotate": true,
|
11
|
+
"add_avo": true,
|
12
|
+
"add_devise": true,
|
13
|
+
"add_faker": true,
|
14
|
+
"add_rubocop": true
|
15
|
+
}
|
16
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -207,6 +207,13 @@ files:
|
|
207
207
|
- after_templates/addons/annotate/app/views/layouts/_footer.html.erb
|
208
208
|
- after_templates/addons/annotate/app/views/layouts/_navbar.html.erb
|
209
209
|
- after_templates/addons/annotate/app/views/layouts/application.html.erb
|
210
|
+
- after_templates/addons/avo/_.rb
|
211
|
+
- after_templates/addons/avo/app/controllers/home_controller.rb
|
212
|
+
- after_templates/addons/avo/app/views/home/index.html.erb
|
213
|
+
- after_templates/addons/avo/app/views/layouts/_footer.html.erb
|
214
|
+
- after_templates/addons/avo/app/views/layouts/_navbar.html.erb
|
215
|
+
- after_templates/addons/avo/app/views/layouts/application.html.erb
|
216
|
+
- after_templates/addons/avo/db/seeds.rb
|
210
217
|
- after_templates/addons/bcrypt/_.rb
|
211
218
|
- after_templates/addons/bcrypt/app/controllers/home_controller.rb
|
212
219
|
- after_templates/addons/bcrypt/app/models/user.rb
|
@@ -512,11 +519,12 @@ files:
|
|
512
519
|
- lib/rails_app_generator/addons/acts_as_list.rb
|
513
520
|
- lib/rails_app_generator/addons/administrate.rb
|
514
521
|
- lib/rails_app_generator/addons/annotate.rb
|
522
|
+
- lib/rails_app_generator/addons/avo.rb
|
515
523
|
- lib/rails_app_generator/addons/bcrypt.rb
|
516
524
|
- lib/rails_app_generator/addons/browser.rb
|
517
525
|
- lib/rails_app_generator/addons/chartkick.rb
|
518
526
|
- lib/rails_app_generator/addons/continuous_integration.rb
|
519
|
-
- lib/rails_app_generator/addons/
|
527
|
+
- lib/rails_app_generator/addons/devise_old.rb
|
520
528
|
- lib/rails_app_generator/addons/docker.rb
|
521
529
|
- lib/rails_app_generator/addons/docker_compose.rb
|
522
530
|
- lib/rails_app_generator/addons/dotenv.rb
|
@@ -586,6 +594,7 @@ files:
|
|
586
594
|
- profiles/addons/acts_as_list.json
|
587
595
|
- profiles/addons/administrate.json
|
588
596
|
- profiles/addons/annotate.json
|
597
|
+
- profiles/addons/avo.json
|
589
598
|
- profiles/addons/bcrypt.json
|
590
599
|
- profiles/addons/browser.json
|
591
600
|
- profiles/addons/chartkick.json
|