rails_app_generator 0.2.11 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.builders/generators/project-plan.rb +2 -0
  3. data/CHANGELOG.md +21 -0
  4. data/Rakefile +0 -2
  5. data/after_templates/addons/acts_as_list/_.rb +0 -2
  6. data/after_templates/addons/administrate/_.rb +2 -2
  7. data/after_templates/addons/administrate/app/views/layouts/_navbar.html.erb +4 -1
  8. data/after_templates/addons/{bcrypt_ruby → bcrypt}/_.rb +2 -2
  9. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/controllers/home_controller.rb +0 -0
  10. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/models/user.rb +0 -0
  11. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/home/index.html.erb +0 -0
  12. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_footer.html.erb +0 -0
  13. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_navbar.html.erb +0 -0
  14. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/application.html.erb +0 -0
  15. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_form.html.erb +0 -0
  16. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_user.html.erb +0 -0
  17. data/after_templates/addons/{bcrypt_ruby → bcrypt}/db/seeds.rb +0 -0
  18. data/after_templates/addons/browser/_.rb +0 -2
  19. data/after_templates/addons/chartkick/_.rb +0 -2
  20. data/after_templates/addons/faker/_.rb +0 -2
  21. data/after_templates/addons/hexapdf/_.rb +0 -2
  22. data/after_templates/addons/honeybadger/_.rb +0 -2
  23. data/after_templates/addons/httparty/_.rb +0 -2
  24. data/after_templates/addons/mini_magick/_.rb +0 -2
  25. data/after_templates/addons/motor_admin/_.rb +46 -0
  26. data/after_templates/addons/motor_admin/app/controllers/home_controller.rb +4 -0
  27. data/after_templates/addons/motor_admin/app/views/home/index.html.erb +3 -0
  28. data/after_templates/addons/motor_admin/app/views/layouts/_footer.html.erb +3 -0
  29. data/after_templates/addons/motor_admin/app/views/layouts/_navbar.html.erb +8 -0
  30. data/after_templates/addons/motor_admin/app/views/layouts/application.html.erb +23 -0
  31. data/after_templates/addons/motor_admin/db/seeds.rb +116 -0
  32. data/after_templates/addons/rails_html_sanitizer/_.rb +0 -2
  33. data/after_templates/addons/twilio_ruby/_.rb +0 -2
  34. data/after_templates/printspeak_bak/_.rb +0 -2
  35. data/after_templates/rag/bootstrap/_.rb +0 -2
  36. data/after_templates/rag/devise/_.rb +0 -2
  37. data/after_templates/rag/import_map/_.rb +0 -2
  38. data/after_templates/rag/simple/_.rb +0 -2
  39. data/after_templates/rag/tailwind/_.rb +0 -2
  40. data/after_templates/rag/tailwind_daisyui/_.rb +0 -2
  41. data/after_templates/rag/tailwind_emulating_bootstrap/_.rb +0 -2
  42. data/after_templates/rag/tailwind_hotwire/_.rb +0 -2
  43. data/after_templates/rag/tailwind_hotwire_flash/_.rb +0 -1
  44. data/after_templates/rag/tailwind_hotwire_form/_.rb +0 -1
  45. data/after_templates/rag/tailwind_hotwire_form_search/_.rb +0 -1
  46. data/docs/last_run/app_generator_class.json +12 -4
  47. data/docs/last_run/app_generator_data.json +8 -7
  48. data/docs/last_run/rails_options_class.json +11 -3
  49. data/docs/last_run/rails_options_data.json +8 -7
  50. data/docs/project-plan/project.drawio +53 -47
  51. data/docs/project-plan/project_done.svg +1 -1
  52. data/exe/rag +0 -1
  53. data/lib/rails_app_generator/addons/administrate.rb +0 -7
  54. data/lib/rails_app_generator/addons/bcrypt.rb +25 -0
  55. data/lib/rails_app_generator/addons/motor_admin.rb +29 -0
  56. data/lib/rails_app_generator/app_generator.rb +29 -7
  57. data/lib/rails_app_generator/cli/profile.rb +1 -1
  58. data/lib/rails_app_generator/options/options_builder.rb +2 -2
  59. data/lib/rails_app_generator/rag_initializer.rb +2 -1
  60. data/lib/rails_app_generator/starter.rb +1 -12
  61. data/lib/rails_app_generator/util.rb +11 -0
  62. data/lib/rails_app_generator/version.rb +1 -1
  63. data/package-lock.json +2 -2
  64. data/package.json +1 -1
  65. data/profiles/addons/{bcrypt_ruby.json → bcrypt.json} +3 -3
  66. data/profiles/addons/motor_admin.json +15 -0
  67. data/tasks/profile.thor +0 -1
  68. data/templates/thor_task/addon/addon.tt +1 -0
  69. data/templates/thor_task/profile/app/views/home/index.html.erb.tt +1 -1
  70. metadata +22 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6c154de84c08fa40c02064d9521397096c1bdf33c4180a143b874aac3fc241d
4
- data.tar.gz: 8a002deb836d4d51c2f18248d0798f47109db7dce25e72eb725d1a697ed3a081
3
+ metadata.gz: 927857ef18a2d46709fe372c54e7bab633901d719d06d092c78ccf541c84ace4
4
+ data.tar.gz: 391d0d0bbd89bf6c03bb96ec44a6021b0fee37a955cb3f676d6e9da1384c1143
5
5
  SHA512:
6
- metadata.gz: f59e8acec1a8e1c6dae728c316901ca75320f205bf4b8c562d9608d1c2f00b5a5ca5e264760da2a26cc41d832a8137e8215ce3fea2d121276fb04fdf366afe90
7
- data.tar.gz: e63dde420822b9612ecfe98140e846eb20af617851be18a00a0018d25f943d5a7dfca92582e264d1de0e948058ce9654f1600dddb4d94a05d10238eaf75c8248
6
+ metadata.gz: cab948d559713b50b47334e904821008fd6ae420cc4435408b38443464221d54600e10e7c035e2d8f8cba0213143816a88b568fba59c6c43ae554f1a997e3df5
7
+ data.tar.gz: e58f2589d2faa6a39519aaa2c35c0665a04507324792390864f69a6a9edddb3c1566cbdba9916220a6ccea16655dccc6349fe5bf7fdd6e5317ef6c2ebd1dccd4
@@ -39,6 +39,8 @@ 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 - bcrypt')
42
44
  todo(title: 'add addon - groupdate')
43
45
  todo(title: 'add addon - chartkick')
44
46
  todo(title: 'add addon - browser')
data/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [0.2.13](https://github.com/klueless-io/rails_app_generator/compare/v0.2.12...v0.2.13) (2022-08-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add motor-admin profile ([f74dc4b](https://github.com/klueless-io/rails_app_generator/commit/f74dc4bf2671ae460a27bbc67df0701499526afa))
7
+
8
+ ## [0.2.12](https://github.com/klueless-io/rails_app_generator/compare/v0.2.11...v0.2.12) (2022-08-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add motor-admin profile ([0e41a1e](https://github.com/klueless-io/rails_app_generator/commit/0e41a1ece000a1b818d5756aabbd14d52788b462))
14
+
15
+ ## [0.2.11](https://github.com/klueless-io/rails_app_generator/compare/v0.2.10...v0.2.11) (2022-08-12)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add administrate profile ([4049add](https://github.com/klueless-io/rails_app_generator/commit/4049add2e8b4ccf840daa22a817a454cb8bf2ab0))
21
+
1
22
  ## [0.2.10](https://github.com/klueless-io/rails_app_generator/compare/v0.2.9...v0.2.10) (2022-08-11)
2
23
 
3
24
 
data/Rakefile CHANGED
@@ -8,8 +8,6 @@ require 'bundler/gem_tasks'
8
8
  require 'rspec/core/rake_task'
9
9
  require 'rails_app_generator/version'
10
10
 
11
- require 'pry'
12
-
13
11
  RSpec::Core::RakeTask.new(:spec)
14
12
 
15
13
  require 'rake/extensiontask'
@@ -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
@@ -8,7 +8,7 @@ self.local_template_path = File.dirname(__FILE__)
8
8
 
9
9
  gac 'base rails 7 image created'
10
10
 
11
- bundle_install
11
+ prepare_environment
12
12
 
13
13
  add_controller('home', 'index')
14
14
 
@@ -30,7 +30,7 @@ after_bundle do
30
30
 
31
31
  directory "app/dashboards"
32
32
 
33
- rubocop
33
+ rubocop_minimal
34
34
  end
35
35
 
36
36
  def setup_db
@@ -1,5 +1,8 @@
1
1
  <header>
2
2
  <%= link_to 'Home', root_path %> |
3
- <%= link_to 'Admin', admin_root_path %>
3
+ <%= link_to 'Authors', authors_path %> |
4
+ <%= link_to 'Posts', posts_path %> |
5
+ <%= link_to 'Products', products_path %> |
6
+ <%= link_to 'ADMIN', admin_root_path %>
4
7
  <hr />
5
8
  </header>
@@ -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/bcrypt_ruby
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
- bundle_install
11
+ prepare_environment
12
12
 
13
13
  add_controller('home', 'index')
14
14
 
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # Do some browser detection with Ruby.
6
4
  #
7
5
  # exe/rag addons/browser
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # Create beautiful JavaScript charts with one line of Ruby
6
4
  #
7
5
  # exe/rag addons/chartkick
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # Faker, a port of Data::Faker from Perl, is used to easily generate fake data: names, addresses, phone numbers, etc.
6
4
  #
7
5
  # exe/rag addons/faker
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # HexaPDF is a pure Ruby library with an accompanying application for working with PDF files.
6
4
 
7
5
  #
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # Make managing application errors a more pleasant experience.
6
4
  #
7
5
  # exe/rag addons/honeybadger
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # Makes http fun! Also, makes consuming restful web services dead easy.
6
4
  #
7
5
  # exe/rag addons/httparty
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pry'
4
-
5
3
  # Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick
6
4
  #
7
5
  # exe/rag addons/mini_magick
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Motor Admin allows to create a flexible admin panel while writing less code.
4
+ #
5
+ # exe/rag addons/motor_admin
6
+
7
+ self.local_template_path = File.dirname(__FILE__)
8
+
9
+ gac 'base rails 7 image created'
10
+
11
+ bundle_install
12
+
13
+ add_controller('home', 'index')
14
+
15
+ route("root 'home#index'")
16
+
17
+ force_copy
18
+
19
+ directory "app/controllers"
20
+ directory "app/views/home"
21
+ directory "app/views/layouts"
22
+ template 'app/views/layouts/application.html.erb' , 'app/views/layouts/application.html.erb'
23
+
24
+ template 'db/seeds.rb' , 'db/seeds.rb'
25
+
26
+ after_bundle do
27
+ setup_db
28
+
29
+ # generate('motor:install')
30
+ # db_migrate
31
+
32
+ # directory "app/dashboards"
33
+
34
+ rubocop
35
+ end
36
+
37
+ def setup_db
38
+ add_scaffold('author', 'name:string email:string bio:text')
39
+ add_scaffold('post', 'title:string content:text published:boolean author:references')
40
+ add_scaffold('product', 'name', 'quantity:integer', 'price:decimal')
41
+
42
+ directory "app/models"
43
+
44
+ db_migrate
45
+ db_seed
46
+ end
@@ -0,0 +1,4 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ <h1>Motor admin</h1>
2
+
3
+ <p>Motor Admin allows to create a flexible admin panel while writing less code.</p>
@@ -0,0 +1,3 @@
1
+ <footer>
2
+ <hr />
3
+ </footer>
@@ -0,0 +1,8 @@
1
+ <header>
2
+ <%= link_to 'Home', root_path %> |
3
+ <%= link_to 'Authors', authors_path %> |
4
+ <%= link_to 'Posts', posts_path %> |
5
+ <%= link_to 'Products', products_path %> |
6
+ <%= link_to 'ADMIN', motor_admin_path %>
7
+ <hr />
8
+ </header>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= camelized %></title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <%%= csrf_meta_tags %>
7
+ <%%= csp_meta_tag %>
8
+
9
+ <%- if options[:skip_hotwire] || options[:skip_javascript] -%>
10
+ <%%= stylesheet_link_tag "application" %>
11
+ <%- else -%>
12
+ <%%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
13
+ <%- end -%>
14
+ </head>
15
+
16
+ <body>
17
+ <%%= render 'layouts/navbar' %>
18
+ <main>
19
+ <%%= yield %>
20
+ </main>
21
+ <%%= render 'layouts/footer' %>
22
+ </body>
23
+ </html>
@@ -0,0 +1,116 @@
1
+ def fake_title
2
+ [
3
+ 'Fundamentals of Wavelets',
4
+ 'Data Smart',
5
+ 'God Created the Integers',
6
+ 'Superfreakonomics',
7
+ 'Orientalism',
8
+ 'Nature of Statistical Learning Theory',
9
+ 'Integration of the Indian States',
10
+ 'Image Processing & Mathematical Morphology',
11
+ 'How to Think Like Sherlock Holmes',
12
+ 'Data Scientists at Work',
13
+ 'Slaughterhouse Five',
14
+ 'Birth of a Theorem',
15
+ 'Structure & Interpretation of Computer Programs',
16
+ 'Age of Wrath',
17
+ 'Trial',
18
+ 'Data Mining Handbook',
19
+ 'New Machiavelli',
20
+ 'Physics & Philosophy',
21
+ 'Making Software',
22
+ 'Analysis',
23
+ 'Machine Learning for Hackers',
24
+ 'Signal and the Noise',
25
+ 'Python for Data Analysis',
26
+ 'Introduction to Algorithms',
27
+ 'Beautiful and the Damned',
28
+ 'Outsider',
29
+ 'Complete Sherlock Holmes',
30
+ 'Complete Sherlock Holmes',
31
+ 'Wealth of Nations',
32
+ 'Pillars of the Earth',
33
+ 'Mein Kampf',
34
+ 'Tao of Physics',
35
+ 'Farewell to Arms',
36
+ 'Veteran',
37
+ 'False Impressions',
38
+ 'Last Lecture',
39
+ 'Return of the Primitive',
40
+ 'Jurassic Park',
41
+ 'Russian Journal',
42
+ 'Tales of Mystery and Imagination',
43
+ 'Freakonomics',
44
+ 'Hidden Connections',
45
+ 'Story of Philosophy',
46
+ 'Asami Asami',
47
+ 'Journal of a Novel',
48
+ 'Once There Was a War',
49
+ 'Moon is Down',
50
+ 'Brethren',
51
+ 'In a Free State',
52
+ 'Catch 22',
53
+ 'Complete Mastermind',
54
+ 'Dylan on Dylan',
55
+ 'Soft Computing & Intelligent Systems',
56
+ 'Textbook of Economic Theory',
57
+ 'Econometric Analysis',
58
+ 'Learning OpenCV',
59
+ 'Data Structures Using C & C++',
60
+ 'Computer Vision',
61
+ 'Principles of Communication Systems',
62
+ 'Let Us C',
63
+ 'Amulet of Samarkand',
64
+ 'Crime and Punishment',
65
+ 'Angels & Demons',
66
+ 'Argumentative Indian',
67
+ 'Sea of Poppies',
68
+ 'Idea of Justice',
69
+ 'Raisin in the Sun',
70
+ 'Prisoner of Birth',
71
+ 'Scoop!',
72
+ 'Ahe Manohar Tari',
73
+ 'Last Mughal',
74
+ 'Social Choice & Welfare',
75
+ 'Radiowaril Bhashane & Shrutika',
76
+ 'Gun Gayin Awadi',
77
+ 'Aghal Paghal',
78
+ 'Beyond Degrees',
79
+ 'Manasa',
80
+ 'India from Midnight to Milennium',
81
+ 'Great Indian Novel',
82
+ 'O Jerusalem!',
83
+ 'City of Joy',
84
+ 'Freedom at Midnight',
85
+ 'Winter of Our Discontent',
86
+ 'On Education',
87
+ 'Free Will',
88
+ 'Bookless in Baghdad',
89
+ 'Case of the Lame Canary',
90
+ 'Theory of Everything',
91
+ 'New Markets & Other Essays',
92
+ 'Electric Universe',
93
+ 'Hunchback of Notre Dame',
94
+ 'Burning Bright',
95
+ 'Age of Discontuinity'
96
+ ].sample
97
+ end
98
+
99
+ 60.times do
100
+ Author.create!(name: Faker::Name.name, bio: Faker::Lorem.words(number: 5).join(' '), email: Faker::Internet.email)
101
+ end
102
+
103
+ 100.times do |i|
104
+ Post.create!(title: fake_title,
105
+ content: "This is the body of post #{i}",
106
+ published: Faker::Boolean.boolean(true_ratio: 0.6),
107
+ author: Author.all.sample)
108
+ end
109
+
110
+ 200.times do
111
+ Product.create!(
112
+ name: Faker::Name.name,
113
+ quantity: Faker::Number.number(digits: 2),
114
+ price: Faker::Number.decimal(l_digits: 4)
115
+ )
116
+ end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # HTML sanitization for Rails applications
4
- require 'pry'
5
-
6
4
  self.local_template_path = File.dirname(__FILE__)
7
5
 
8
6
  gac 'base rails 7 image created'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
4
-
5
3
  # The official library for communicating with the Twilio REST API, building TwiML, and generating Twilio JWT Capability Tokens
6
4
  #
7
5
  # exe/rag addons/twilio_ruby
@@ -3,8 +3,6 @@
3
3
  # Rails 7 with Bootstrap CSS and custom CSS
4
4
  # https://www.youtube.com/watch?v=tYr8yn7yRKw
5
5
 
6
- require 'pry'
7
-
8
6
  self.local_template_path = File.dirname(__FILE__)
9
7
 
10
8
  gac 'base rails 7 image created'
@@ -6,8 +6,6 @@
6
6
  # https://youtu.be/phOUsR0dm5s?t=493
7
7
  # https://www.youtube.com/watch?v=nxKDTtuKOo4
8
8
 
9
- require 'pry'
10
-
11
9
  def add_customizations
12
10
  self.local_template_path = File.dirname(__FILE__)
13
11
 
@@ -3,8 +3,6 @@
3
3
  # Rails 7 - Intro to Devise
4
4
  # https://www.youtube.com/watch?v=m3uhldUGVes
5
5
 
6
- require 'pry'
7
-
8
6
  self.local_template_path = File.dirname(__FILE__)
9
7
 
10
8
  gac 'base rails 7 image created'
@@ -3,8 +3,6 @@
3
3
  # Episode #312 - Importmaps in Rails 7
4
4
  # https://www.youtube.com/watch?v=veWpot6zfUQ
5
5
 
6
- require 'pry'
7
-
8
6
  def add_customizations
9
7
  self.local_template_path = File.dirname(__FILE__)
10
8
 
@@ -3,8 +3,6 @@
3
3
  # Rails 7 with Bootstrap CSS and custom CSS
4
4
  # https://www.youtube.com/watch?v=tYr8yn7yRKw
5
5
 
6
- require 'pry'
7
-
8
6
  self.local_template_path = File.dirname(__FILE__)
9
7
 
10
8
  gac 'base rails 7 image created'
@@ -6,8 +6,6 @@
6
6
  # https://youtu.be/phOUsR0dm5s?t=493
7
7
  # https://www.youtube.com/watch?v=nxKDTtuKOo4
8
8
 
9
- require 'pry'
10
-
11
9
  self.local_template_path = File.dirname(__FILE__)
12
10
 
13
11
  gac 'base rails 7 image created'
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Daisy
4
- require 'pry'
5
-
6
4
  # Do NOT use the --css=tailwind option when using DaisyUI or any other custom plugin syste for tailwindcss
7
5
 
8
6
  self.local_template_path = File.dirname(__FILE__)
@@ -2,8 +2,6 @@
2
2
 
3
3
  # Rails 7 using Tailwind CSS and Reusable Styles
4
4
 
5
- require 'pry'
6
-
7
5
  self.local_template_path = File.dirname(__FILE__)
8
6
 
9
7
  gac 'base rails 7 image created'
@@ -3,8 +3,6 @@
3
3
  # How to Start a Ruby on Rails 7 App With Hotwire and Tailwind CSS
4
4
  # https://www.youtube.com/watch?v=7G0oWn2Gn5c
5
5
 
6
- require 'pry'
7
-
8
6
  self.local_template_path = File.dirname(__FILE__)
9
7
 
10
8
  gac 'base rails 7 image created'
@@ -2,7 +2,6 @@
2
2
 
3
3
  # Rails 7 hotwire and flash messages
4
4
 
5
- require 'pry'
6
5
 
7
6
  self.local_template_path = File.dirname(__FILE__)
8
7
 
@@ -3,7 +3,6 @@
3
3
  # How to Start a Ruby on Rails 7 App With Hotwire and Tailwind CSS
4
4
  # https://www.youtube.com/watch?v=-n7IbUFKjoM
5
5
 
6
- require 'pry'
7
6
 
8
7
  self.local_template_path = File.dirname(__FILE__)
9
8
 
@@ -6,7 +6,6 @@
6
6
  # This builds on top of: Ruby on Rails Forms With Hotwire
7
7
  # https://www.youtube.com/watch?v=-n7IbUFKjoM
8
8
 
9
- require 'pry'
10
9
  # frozen_string_literal: true
11
10
 
12
11
  # How To Build a Powerful Search Form With Hotwire
@@ -48,7 +48,7 @@
48
48
  "add_acts_as_list",
49
49
  "add_administrate",
50
50
  "add_browser",
51
- "add_bcrypt_ruby",
51
+ "add_bcrypt",
52
52
  "add_chartkick",
53
53
  "add_faker",
54
54
  "add_groupdate",
@@ -56,6 +56,7 @@
56
56
  "add_httparty",
57
57
  "add_honeybadger",
58
58
  "add_mini_magick",
59
+ "add_motor_admin",
59
60
  "add_phony_rails",
60
61
  "add_public_suffix",
61
62
  "add_rails_html_sanitizer",
@@ -109,7 +110,7 @@
109
110
  "name": "ruby",
110
111
  "description": "Path to the Ruby binary of your choice",
111
112
  "type": "string",
112
- "default": "/Users/davidcruwys/.asdf/installs/ruby/2.7.6/bin/ruby",
113
+ "default": "/Users/davidcruwys/.asdf/installs/ruby/3.1.1/bin/ruby",
113
114
  "required": false
114
115
  },
115
116
  {
@@ -400,8 +401,8 @@
400
401
  "required": false
401
402
  },
402
403
  {
403
- "name": "add_bcrypt_ruby",
404
- "description": "Indicates when to generate add bcrypt ruby",
404
+ "name": "add_bcrypt",
405
+ "description": "Indicates when to generate add bcrypt",
405
406
  "type": "boolean",
406
407
  "default": false,
407
408
  "required": false
@@ -455,6 +456,13 @@
455
456
  "default": false,
456
457
  "required": false
457
458
  },
459
+ {
460
+ "name": "add_motor_admin",
461
+ "description": "Indicates when to generate add motor admin",
462
+ "type": "boolean",
463
+ "default": false,
464
+ "required": false
465
+ },
458
466
  {
459
467
  "name": "add_phony_rails",
460
468
  "description": "Indicates when to generate add phony rails",
@@ -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/2.7.6/bin/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,
@@ -32,25 +32,26 @@
32
32
  "test": "rspec",
33
33
  "add_devise": false,
34
34
  "add_dotenv": false,
35
- "add_rubocop": true,
36
- "add_annotate": true,
35
+ "add_rubocop": false,
36
+ "add_annotate": false,
37
37
  "add_lograge": false,
38
38
  "add_acts_as_list": false,
39
- "add_administrate": true,
39
+ "add_administrate": false,
40
40
  "add_browser": false,
41
- "add_bcrypt_ruby": false,
41
+ "add_bcrypt": true,
42
42
  "add_chartkick": false,
43
- "add_faker": true,
43
+ "add_faker": false,
44
44
  "add_groupdate": false,
45
45
  "add_hexapdf": false,
46
46
  "add_httparty": false,
47
47
  "add_honeybadger": false,
48
48
  "add_mini_magick": false,
49
+ "add_motor_admin": false,
49
50
  "add_phony_rails": false,
50
51
  "add_public_suffix": false,
51
52
  "add_rails_html_sanitizer": false,
52
53
  "add_redcarpet": false,
53
54
  "add_twilio_ruby": false,
54
- "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/administrate/_.rb"
55
+ "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/bcrypt/_.rb"
55
56
  }
56
57
  }