rails_app_generator 0.2.13 → 0.2.16
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 +3 -1
- data/CHANGELOG.md +21 -0
- data/Rakefile +0 -2
- data/after_templates/addons/acts_as_list/_.rb +3 -4
- data/after_templates/addons/administrate/_.rb +1 -3
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/_.rb +2 -2
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/controllers/home_controller.rb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/models/user.rb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/home/index.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_footer.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_navbar.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/application.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_form.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_user.html.erb +0 -0
- data/after_templates/addons/{bcrypt_ruby → bcrypt}/db/seeds.rb +0 -0
- data/after_templates/addons/browser/_.rb +0 -2
- data/after_templates/addons/chartkick/_.rb +0 -2
- data/after_templates/addons/faker/_.rb +0 -2
- data/after_templates/addons/hexapdf/_.rb +0 -2
- data/after_templates/addons/honeybadger/_.rb +0 -2
- data/after_templates/addons/httparty/_.rb +0 -2
- data/after_templates/addons/mini_magick/_.rb +0 -2
- data/after_templates/addons/motor_admin/_.rb +2 -3
- data/after_templates/addons/rails_html_sanitizer/_.rb +0 -2
- data/after_templates/addons/twilio_ruby/_.rb +0 -2
- data/after_templates/printspeak_bak/_.rb +0 -2
- data/after_templates/rag/bootstrap/_.rb +0 -2
- data/after_templates/rag/devise/_.rb +0 -2
- data/after_templates/rag/import_map/_.rb +0 -2
- data/after_templates/rag/simple/_.rb +0 -2
- data/after_templates/rag/tailwind/_.rb +0 -2
- data/after_templates/rag/tailwind_daisyui/_.rb +0 -2
- data/after_templates/rag/tailwind_emulating_bootstrap/_.rb +0 -2
- data/after_templates/rag/tailwind_hotwire/_.rb +0 -2
- data/after_templates/rag/tailwind_hotwire_flash/_.rb +0 -1
- data/after_templates/rag/tailwind_hotwire_form/_.rb +0 -1
- data/after_templates/rag/tailwind_hotwire_form_search/_.rb +0 -1
- data/docs/last_run/app_generator_class.json +4 -4
- data/docs/last_run/app_generator_data.json +5 -5
- data/docs/last_run/rails_options_class.json +3 -3
- data/docs/last_run/rails_options_data.json +5 -5
- data/docs/project-plan/project.drawio +53 -47
- data/docs/project-plan/project_done.svg +1 -1
- data/exe/rag +0 -1
- data/lib/rails_app_generator/addons/administrate.rb +0 -7
- data/lib/rails_app_generator/addons/{bcrypt_ruby.rb → bcrypt.rb} +3 -3
- data/lib/rails_app_generator/addons/motor_admin.rb +6 -0
- data/lib/rails_app_generator/addons/rubocop.rb +7 -0
- data/lib/rails_app_generator/app_generator.rb +38 -7
- data/lib/rails_app_generator/cli/profile.rb +1 -1
- data/lib/rails_app_generator/options/options_builder.rb +2 -2
- data/lib/rails_app_generator/rag_initializer.rb +1 -1
- data/lib/rails_app_generator/starter.rb +1 -12
- data/lib/rails_app_generator/util.rb +11 -0
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/profiles/addons/{bcrypt_ruby.json → bcrypt.json} +3 -3
- data/tasks/profile.thor +0 -1
- data/templates/thor_task/addon/addon.tt +5 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5e04ea00673d065adb8d68f306478509cfa4f3b3088de24e7c0eaaf89a8643
|
4
|
+
data.tar.gz: 9918578bf0c9bd0621b9f25581e973fc1e5add6b828a6326b234edbd11faf882
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48536723995325dbafcc9c5aff45b0daa6120aa43e8d3143cb22f77dec3583050576a718986621243eb0d48c21507cd3f0e8186ad4abbae1876a3c9b9f2a8350
|
7
|
+
data.tar.gz: 46149eba30371e8a90e69bfce992fa9eca0c83aeaee83a2f99a3f768e78c1132d4a710a5908c3b34dd800e3a98f4cfea9bd8b31c269c547ad7d8bf112ddf62dc
|
@@ -39,11 +39,13 @@ KManager.action :project_plan do
|
|
39
39
|
|
40
40
|
grid_layout(y:90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)
|
41
41
|
|
42
|
+
todo(title: 'add addon - administrate')
|
43
|
+
todo(title: 'add addon - acts_as_list')
|
44
|
+
todo(title: 'add addon - bcrypt')
|
42
45
|
todo(title: 'add addon - groupdate')
|
43
46
|
todo(title: 'add addon - chartkick')
|
44
47
|
todo(title: 'add addon - browser')
|
45
48
|
todo(title: 'add addon - faker')
|
46
|
-
todo(title: 'add addon - acts_as_list')
|
47
49
|
todo(title: 'add addon - twilio')
|
48
50
|
todo(title: 'add addon - honeybadger')
|
49
51
|
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## [0.2.15](https://github.com/klueless-io/rails_app_generator/compare/v0.2.14...v0.2.15) (2022-08-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* refactor acts_on_list ([b35bb14](https://github.com/klueless-io/rails_app_generator/commit/b35bb142ecafcac1ae47d88edd1a79649b5924c2))
|
7
|
+
|
8
|
+
## [0.2.14](https://github.com/klueless-io/rails_app_generator/compare/v0.2.13...v0.2.14) (2022-08-12)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* refactor for ruby 3.0, refactor bcrypt-ruby to bcrypt, cleanup warning messages ([a4eea32](https://github.com/klueless-io/rails_app_generator/commit/a4eea3235a7d838a359ce48396aa048f52a00c91))
|
14
|
+
|
15
|
+
## [0.2.13](https://github.com/klueless-io/rails_app_generator/compare/v0.2.12...v0.2.13) (2022-08-12)
|
16
|
+
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
* add motor-admin profile ([f74dc4b](https://github.com/klueless-io/rails_app_generator/commit/f74dc4bf2671ae460a27bbc67df0701499526afa))
|
21
|
+
|
1
22
|
## [0.2.12](https://github.com/klueless-io/rails_app_generator/compare/v0.2.11...v0.2.12) (2022-08-12)
|
2
23
|
|
3
24
|
|
data/Rakefile
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# require 'pry'
|
4
|
-
|
5
3
|
# This "acts_as" extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a "position" column defined as an integer on the mapped database table.
|
6
4
|
#
|
7
5
|
# exe/rag addons/acts_as_list
|
@@ -10,6 +8,8 @@ self.local_template_path = File.dirname(__FILE__)
|
|
10
8
|
|
11
9
|
gac 'base rails 7 image created'
|
12
10
|
|
11
|
+
prepare_environment
|
12
|
+
|
13
13
|
add_controller('home', 'index')
|
14
14
|
route("root 'home#index'")
|
15
15
|
|
@@ -42,7 +42,6 @@ after_bundle do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def setup_db
|
45
|
-
|
46
45
|
db_migrate
|
47
|
-
|
46
|
+
db_seed
|
48
47
|
end
|
@@ -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
|
|
@@ -29,8 +29,6 @@ after_bundle do
|
|
29
29
|
generate('administrate:install')
|
30
30
|
|
31
31
|
directory "app/dashboards"
|
32
|
-
|
33
|
-
rubocop
|
34
32
|
end
|
35
33
|
|
36
34
|
def setup_db
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
# bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords.
|
4
4
|
#
|
5
|
-
# exe/rag addons/
|
5
|
+
# exe/rag addons/bcrypt
|
6
6
|
|
7
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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"add_acts_as_list",
|
49
49
|
"add_administrate",
|
50
50
|
"add_browser",
|
51
|
-
"
|
51
|
+
"add_bcrypt",
|
52
52
|
"add_chartkick",
|
53
53
|
"add_faker",
|
54
54
|
"add_groupdate",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
"name": "ruby",
|
111
111
|
"description": "Path to the Ruby binary of your choice",
|
112
112
|
"type": "string",
|
113
|
-
"default": "/Users/davidcruwys/.asdf/installs/ruby/
|
113
|
+
"default": "/Users/davidcruwys/.asdf/installs/ruby/3.1.1/bin/ruby",
|
114
114
|
"required": false
|
115
115
|
},
|
116
116
|
{
|
@@ -401,8 +401,8 @@
|
|
401
401
|
"required": false
|
402
402
|
},
|
403
403
|
{
|
404
|
-
"name": "
|
405
|
-
"description": "Indicates when to generate add bcrypt
|
404
|
+
"name": "add_bcrypt",
|
405
|
+
"description": "Indicates when to generate add bcrypt",
|
406
406
|
"type": "boolean",
|
407
407
|
"default": false,
|
408
408
|
"required": false
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"options": {
|
3
3
|
"skip_namespace": false,
|
4
4
|
"skip_collision_check": false,
|
5
|
-
"ruby": "/Users/davidcruwys/.asdf/installs/ruby/
|
5
|
+
"ruby": "/Users/davidcruwys/.asdf/installs/ruby/3.1.1/bin/ruby",
|
6
6
|
"database": "sqlite3",
|
7
7
|
"skip_git": true,
|
8
8
|
"skip_keeps": false,
|
@@ -36,9 +36,9 @@
|
|
36
36
|
"add_annotate": true,
|
37
37
|
"add_lograge": false,
|
38
38
|
"add_acts_as_list": false,
|
39
|
-
"add_administrate":
|
39
|
+
"add_administrate": true,
|
40
40
|
"add_browser": false,
|
41
|
-
"
|
41
|
+
"add_bcrypt": false,
|
42
42
|
"add_chartkick": false,
|
43
43
|
"add_faker": true,
|
44
44
|
"add_groupdate": false,
|
@@ -46,12 +46,12 @@
|
|
46
46
|
"add_httparty": false,
|
47
47
|
"add_honeybadger": false,
|
48
48
|
"add_mini_magick": false,
|
49
|
-
"add_motor_admin":
|
49
|
+
"add_motor_admin": false,
|
50
50
|
"add_phony_rails": false,
|
51
51
|
"add_public_suffix": false,
|
52
52
|
"add_rails_html_sanitizer": false,
|
53
53
|
"add_redcarpet": false,
|
54
54
|
"add_twilio_ruby": false,
|
55
|
-
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/
|
55
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/administrate/_.rb"
|
56
56
|
}
|
57
57
|
}
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"add_acts_as_list",
|
49
49
|
"add_administrate",
|
50
50
|
"add_browser",
|
51
|
-
"
|
51
|
+
"add_bcrypt",
|
52
52
|
"add_chartkick",
|
53
53
|
"add_faker",
|
54
54
|
"add_groupdate",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
"name": "ruby",
|
111
111
|
"description": "Path to the Ruby binary of your choice",
|
112
112
|
"type": "string",
|
113
|
-
"default": "/Users/davidcruwys/.asdf/installs/ruby/
|
113
|
+
"default": "/Users/davidcruwys/.asdf/installs/ruby/3.1.1/bin/ruby",
|
114
114
|
"required": false
|
115
115
|
},
|
116
116
|
{
|
@@ -401,7 +401,7 @@
|
|
401
401
|
"required": false
|
402
402
|
},
|
403
403
|
{
|
404
|
-
"name": "
|
404
|
+
"name": "add_bcrypt",
|
405
405
|
"description": "",
|
406
406
|
"type": "boolean",
|
407
407
|
"default": false,
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"pretend": false,
|
7
7
|
"quiet": false,
|
8
8
|
"skip": false,
|
9
|
-
"ruby": "/Users/davidcruwys/.asdf/installs/ruby/
|
10
|
-
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/
|
9
|
+
"ruby": "/Users/davidcruwys/.asdf/installs/ruby/3.1.1/bin/ruby",
|
10
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/administrate/_.rb",
|
11
11
|
"database": "sqlite3",
|
12
12
|
"skip_git": true,
|
13
13
|
"skip_keeps": false,
|
@@ -46,9 +46,9 @@
|
|
46
46
|
"add_annotate": true,
|
47
47
|
"add_lograge": false,
|
48
48
|
"add_acts_as_list": false,
|
49
|
-
"add_administrate":
|
49
|
+
"add_administrate": true,
|
50
50
|
"add_browser": false,
|
51
|
-
"
|
51
|
+
"add_bcrypt": false,
|
52
52
|
"add_chartkick": false,
|
53
53
|
"add_faker": true,
|
54
54
|
"add_groupdate": false,
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"add_httparty": false,
|
57
57
|
"add_honeybadger": false,
|
58
58
|
"add_mini_magick": false,
|
59
|
-
"add_motor_admin":
|
59
|
+
"add_motor_admin": false,
|
60
60
|
"add_phony_rails": false,
|
61
61
|
"add_public_suffix": false,
|
62
62
|
"add_rails_html_sanitizer": false,
|