rails_app_generator 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/after_templates/addons/chartkick/_.rb +2 -0
- data/after_templates/addons/dotenv/_.rb +2 -0
- data/after_templates/addons/faker/_.rb +2 -0
- data/after_templates/addons/hexapdf/_.rb +2 -0
- data/after_templates/addons/honeybadger/_.rb +2 -0
- data/after_templates/addons/httparty/_.rb +2 -0
- data/after_templates/addons/lograge/_.rb +1 -1
- data/after_templates/addons/mini_magick/_.rb +2 -0
- data/after_templates/addons/motor_admin/_.rb +1 -1
- data/after_templates/addons/phony_rails/_.rb +1 -39
- data/after_templates/addons/public_suffix/_.rb +1 -1
- data/after_templates/addons/rails_html_sanitizer/_.rb +2 -0
- data/after_templates/addons/redcarpet/_.rb +1 -1
- data/after_templates/addons/rubocop/_.rb +5 -3
- data/after_templates/addons/twilio_ruby/_.rb +2 -0
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a5b02d6626ead920496567bad109037d1dbe048ca6d806e3805603a819a3d5
|
4
|
+
data.tar.gz: 2ba44b34c0f667c812488955f1edb30d60de671b84bc3565dc81293381ac2189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c404ab294b3287ecd1e30ca74c47d2efa6ee514fc1bc4389f3c85eaf990a04c3879a6a26ae72cb6e761ebc2690ee0cc78f36459d8140cf9941c1781d28fb21
|
7
|
+
data.tar.gz: a779f17ae79204e0c4f0ae7cfddbea45a63ce27de418db320c46f71c1bdfe71ad9b6847194a0d352efa57dced71f19547166b75241c8c25919897dd7089ca3e3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.2.17](https://github.com/klueless-io/rails_app_generator/compare/v0.2.16...v0.2.17) (2022-08-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* refactor browser ([c266fdf](https://github.com/klueless-io/rails_app_generator/commit/c266fdf71cc80a310e75f7dd47cc4f62e912723b))
|
7
|
+
|
1
8
|
## [0.2.16](https://github.com/klueless-io/rails_app_generator/compare/v0.2.15...v0.2.16) (2022-08-12)
|
2
9
|
|
3
10
|
|
@@ -8,7 +8,7 @@ self.local_template_path = File.dirname(__FILE__)
|
|
8
8
|
|
9
9
|
gac 'base rails 7 image created'
|
10
10
|
|
11
|
-
|
11
|
+
prepare_environment
|
12
12
|
|
13
13
|
add_controller('home', 'index')
|
14
14
|
|
@@ -22,41 +22,3 @@ directory "app/views/layouts"
|
|
22
22
|
template 'app/views/layouts/application.html.erb' , 'app/views/layouts/application.html.erb'
|
23
23
|
|
24
24
|
template 'db/seeds.rb' , 'db/seeds.rb'
|
25
|
-
|
26
|
-
after_bundle do
|
27
|
-
setup_db
|
28
|
-
end
|
29
|
-
|
30
|
-
def setup_db
|
31
|
-
# add_scaffold('post', 'title', 'body:text')
|
32
|
-
# add_scaffold('people', 'first_name', 'last_name', 'age:integer', 'address:text')
|
33
|
-
# add_scaffold('product', 'name', 'price:integer')
|
34
|
-
|
35
|
-
# db_migrate
|
36
|
-
end
|
37
|
-
|
38
|
-
# Other template command examples
|
39
|
-
# bundle_install
|
40
|
-
# css_install('tailwind')
|
41
|
-
# rails_command('db:migrate')
|
42
|
-
# rails_command('db:migrate')
|
43
|
-
# bundle_add('hotwire-rails')
|
44
|
-
# rails_command('hotwire:install')
|
45
|
-
# run('bin/importmap pin sortablejs')
|
46
|
-
# run('npm install daisyui')
|
47
|
-
# rubocop
|
48
|
-
#
|
49
|
-
# directory 'app/assets/images'
|
50
|
-
# create_file 'app/assets/stylesheets/custom-bootstrap-import.scss' , read_template('custom-bootstrap-import.scss')
|
51
|
-
# append_to_file 'app/assets/config/manifest.js' , read_template('manifest.js')
|
52
|
-
# insert_into_file 'app/views/layouts/application.html.erb', read_template('application.html.erb'),
|
53
|
-
# before: %( <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>)
|
54
|
-
# gsub_file 'app/views/layouts/application.html.erb', %(container mx-auto mt-28 px-5 flex), 'container mx-auto px-5'
|
55
|
-
# template 'home.css', 'app/assets/stylesheets/home.css'
|
56
|
-
#
|
57
|
-
# add_controller('page', 'benefits', 'faq', 'terms', 'privacy', '--skip-routes')
|
58
|
-
# route(<<-'RUBY')
|
59
|
-
# PageController.action_methods.each do |action|
|
60
|
-
# get "/#{action}", to: "page##{action}", as: "page_#{action}"
|
61
|
-
# end
|
62
|
-
# RUBY
|
@@ -8,13 +8,12 @@ self.local_template_path = File.dirname(__FILE__)
|
|
8
8
|
|
9
9
|
gac 'base rails 7 image created'
|
10
10
|
|
11
|
+
prepare_environment
|
12
|
+
|
11
13
|
add_controller('home', 'index')
|
12
14
|
route("root 'home#index'")
|
13
15
|
|
14
16
|
after_bundle do
|
15
|
-
# This will clean up the standard Rails application
|
16
|
-
run('rubocop -A --config .rubocop.yml')
|
17
|
-
|
18
17
|
# There are linting errors in the controller that can be fixed manually with
|
19
18
|
# rubocop -A --config .rubocop.yml
|
20
19
|
|
@@ -25,5 +24,8 @@ after_bundle do
|
|
25
24
|
copy_file 'app/assets/images/cop-output.png' , 'app/assets/images/cop-output.png'
|
26
25
|
|
27
26
|
template 'app/views/layouts/application.html.erb' , 'app/views/layouts/application.html.erb'
|
27
|
+
|
28
|
+
# Cleanup the generated files
|
29
|
+
run('rubocop -A --config .rubocop.yml')
|
28
30
|
end
|
29
31
|
|
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.18",
|
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.18",
|
10
10
|
"dependencies": {
|
11
11
|
"daisyui": "^2.20.0"
|
12
12
|
},
|
data/package.json
CHANGED