rails_app_generator 0.2.13 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.builders/generators/project-plan.rb +3 -1
  3. data/CHANGELOG.md +21 -0
  4. data/Rakefile +0 -2
  5. data/after_templates/addons/acts_as_list/_.rb +3 -4
  6. data/after_templates/addons/administrate/_.rb +1 -3
  7. data/after_templates/addons/{bcrypt_ruby → bcrypt}/_.rb +2 -2
  8. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/controllers/home_controller.rb +0 -0
  9. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/models/user.rb +0 -0
  10. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/home/index.html.erb +0 -0
  11. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_footer.html.erb +0 -0
  12. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/_navbar.html.erb +0 -0
  13. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/layouts/application.html.erb +0 -0
  14. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_form.html.erb +0 -0
  15. data/after_templates/addons/{bcrypt_ruby → bcrypt}/app/views/users/_user.html.erb +0 -0
  16. data/after_templates/addons/{bcrypt_ruby → bcrypt}/db/seeds.rb +0 -0
  17. data/after_templates/addons/browser/_.rb +0 -2
  18. data/after_templates/addons/chartkick/_.rb +0 -2
  19. data/after_templates/addons/faker/_.rb +0 -2
  20. data/after_templates/addons/hexapdf/_.rb +0 -2
  21. data/after_templates/addons/honeybadger/_.rb +0 -2
  22. data/after_templates/addons/httparty/_.rb +0 -2
  23. data/after_templates/addons/mini_magick/_.rb +0 -2
  24. data/after_templates/addons/motor_admin/_.rb +2 -3
  25. data/after_templates/addons/rails_html_sanitizer/_.rb +0 -2
  26. data/after_templates/addons/twilio_ruby/_.rb +0 -2
  27. data/after_templates/printspeak_bak/_.rb +0 -2
  28. data/after_templates/rag/bootstrap/_.rb +0 -2
  29. data/after_templates/rag/devise/_.rb +0 -2
  30. data/after_templates/rag/import_map/_.rb +0 -2
  31. data/after_templates/rag/simple/_.rb +0 -2
  32. data/after_templates/rag/tailwind/_.rb +0 -2
  33. data/after_templates/rag/tailwind_daisyui/_.rb +0 -2
  34. data/after_templates/rag/tailwind_emulating_bootstrap/_.rb +0 -2
  35. data/after_templates/rag/tailwind_hotwire/_.rb +0 -2
  36. data/after_templates/rag/tailwind_hotwire_flash/_.rb +0 -1
  37. data/after_templates/rag/tailwind_hotwire_form/_.rb +0 -1
  38. data/after_templates/rag/tailwind_hotwire_form_search/_.rb +0 -1
  39. data/docs/last_run/app_generator_class.json +4 -4
  40. data/docs/last_run/app_generator_data.json +5 -5
  41. data/docs/last_run/rails_options_class.json +3 -3
  42. data/docs/last_run/rails_options_data.json +5 -5
  43. data/docs/project-plan/project.drawio +53 -47
  44. data/docs/project-plan/project_done.svg +1 -1
  45. data/exe/rag +0 -1
  46. data/lib/rails_app_generator/addons/administrate.rb +0 -7
  47. data/lib/rails_app_generator/addons/{bcrypt_ruby.rb → bcrypt.rb} +3 -3
  48. data/lib/rails_app_generator/addons/motor_admin.rb +6 -0
  49. data/lib/rails_app_generator/addons/rubocop.rb +7 -0
  50. data/lib/rails_app_generator/app_generator.rb +38 -7
  51. data/lib/rails_app_generator/cli/profile.rb +1 -1
  52. data/lib/rails_app_generator/options/options_builder.rb +2 -2
  53. data/lib/rails_app_generator/rag_initializer.rb +1 -1
  54. data/lib/rails_app_generator/starter.rb +1 -12
  55. data/lib/rails_app_generator/util.rb +11 -0
  56. data/lib/rails_app_generator/version.rb +1 -1
  57. data/package-lock.json +2 -2
  58. data/package.json +1 -1
  59. data/profiles/addons/{bcrypt_ruby.json → bcrypt.json} +3 -3
  60. data/tasks/profile.thor +0 -1
  61. data/templates/thor_task/addon/addon.tt +5 -0
  62. metadata +13 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9347a3a750b1d75294e58ee69b709776cc21ca6108a5b80409a7586f505f5cfe
4
- data.tar.gz: fadce854770396d97819b5bcb589ad3e5ac154532889b177e1a0155661592ed1
3
+ metadata.gz: 4d5e04ea00673d065adb8d68f306478509cfa4f3b3088de24e7c0eaaf89a8643
4
+ data.tar.gz: 9918578bf0c9bd0621b9f25581e973fc1e5add6b828a6326b234edbd11faf882
5
5
  SHA512:
6
- metadata.gz: ca788fcd71b5085efa9e49dcfacecc27e2d9a9e5bbdbb78d2cc0aa2b607bfbca3b28f92fd41b8c12d1e01c1c34ea38f777e888383ebdd9d746cc3f2e9b472626
7
- data.tar.gz: e9ab3c2054c677c2e0977134e4105571d202677377dc579a480829989f47719f6ee170fe365fa8376c4aba5a67d87837b54da68ce8a26d413ba92e0b20e57c21
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
@@ -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
@@ -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
- rails_command('db:seed')
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
- bundle_install
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/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
@@ -26,9 +26,8 @@ template 'db/seeds.rb' , 'db/seeds.rb'
26
26
  after_bundle do
27
27
  setup_db
28
28
 
29
- generate('motor:install')
30
- db_migrate
31
- # generate('administrate:install')
29
+ # generate('motor:install')
30
+ # db_migrate
32
31
 
33
32
  # directory "app/dashboards"
34
33
 
@@ -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",
@@ -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/2.7.6/bin/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": "add_bcrypt_ruby",
405
- "description": "Indicates when to generate add bcrypt ruby",
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/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,
@@ -36,9 +36,9 @@
36
36
  "add_annotate": true,
37
37
  "add_lograge": false,
38
38
  "add_acts_as_list": false,
39
- "add_administrate": false,
39
+ "add_administrate": true,
40
40
  "add_browser": false,
41
- "add_bcrypt_ruby": false,
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": true,
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/motor_admin/_.rb"
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
- "add_bcrypt_ruby",
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/2.7.6/bin/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": "add_bcrypt_ruby",
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/2.7.6/bin/ruby",
10
- "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/motor_admin/_.rb",
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": false,
49
+ "add_administrate": true,
50
50
  "add_browser": false,
51
- "add_bcrypt_ruby": false,
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": true,
59
+ "add_motor_admin": false,
60
60
  "add_phony_rails": false,
61
61
  "add_public_suffix": false,
62
62
  "add_rails_html_sanitizer": false,