rails_app_generator 0.1.27 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.builders/generators/project-plan.rb +2 -3
  3. data/.rubocop.yml +2 -1
  4. data/CHANGELOG.md +28 -0
  5. data/after_templates/addons/acts_as_list/_.rb +0 -14
  6. data/after_templates/addons/mini_magick/_.rb +1 -1
  7. data/after_templates/{rag_bootstrap.rb → rag/bootstrap/_.rb} +1 -1
  8. data/after_templates/{rag_bootstrap → rag/bootstrap}/application-yield.html.erb +0 -0
  9. data/after_templates/{rag_bootstrap → rag/bootstrap}/application.html.erb +0 -0
  10. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-cards-fancy.css +0 -0
  11. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-cards-fancy.html +0 -0
  12. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-cards-staff.css +0 -0
  13. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-cards-staff.html +0 -0
  14. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-cards-styled.html +0 -0
  15. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-footer.html +0 -0
  16. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-hero.html +0 -0
  17. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-modal.html +0 -0
  18. data/after_templates/{rag_bootstrap → rag/bootstrap}/component-nav.html +0 -0
  19. data/after_templates/{rag_bootstrap → rag/bootstrap}/custom-bootstrap-import.scss +0 -0
  20. data/after_templates/{rag_bootstrap → rag/bootstrap}/custom-using-css.css +0 -0
  21. data/after_templates/{rag_bootstrap → rag/bootstrap}/custom-using-scss.scss +0 -0
  22. data/after_templates/{rag_bootstrap → rag/bootstrap}/manifest.js +0 -0
  23. data/after_templates/{rag_devise.rb → rag/devise/_.rb} +1 -1
  24. data/after_templates/{rag_devise → rag/devise}/application.html.erb +0 -0
  25. data/after_templates/{rag_devise → rag/devise}/application_controller.rb +0 -0
  26. data/after_templates/{rag_devise → rag/devise}/config/initializers/devise_turbo.rb +0 -0
  27. data/after_templates/{rag_devise → rag/devise}/layouts/_alerts.html.erb +0 -0
  28. data/after_templates/{rag_devise → rag/devise}/layouts/_footer.html.erb +0 -0
  29. data/after_templates/{rag_devise → rag/devise}/layouts/_navbar.html.erb +0 -0
  30. data/after_templates/{rag_devise → rag/devise}/layouts/application.html.erb +0 -0
  31. data/after_templates/{rag_devise → rag/devise}/post/_post.html.erb +0 -0
  32. data/after_templates/{rag_devise → rag/devise}/post/post.rb +0 -0
  33. data/after_templates/{rag_devise → rag/devise}/post/posts_controller.rb +0 -0
  34. data/after_templates/{rag_devise → rag/devise}/seed_data.rb +0 -0
  35. data/after_templates/{rag_devise → rag/devise}/turbo_controller.rb +0 -0
  36. data/after_templates/{rag_devise → rag/devise}/user.rb +0 -0
  37. data/after_templates/{rag_import_map.rb → rag/import_map/_.rb} +1 -1
  38. data/after_templates/{rag_import_map → rag/import_map}/component-sortable.html +0 -0
  39. data/after_templates/{rag_import_map → rag/import_map}/home.css +0 -0
  40. data/after_templates/{rag_import_map → rag/import_map}/position_controller.js +0 -0
  41. data/after_templates/{rag_printspeak.rb → rag/printspeak/_.rb} +1 -1
  42. data/after_templates/{rag_printspeak → rag/printspeak}/application_controller.rb +0 -0
  43. data/after_templates/{rag_printspeak → rag/printspeak}/faq.html.erb +0 -0
  44. data/after_templates/{rag_printspeak → rag/printspeak}/layouts/_footer.html.erb +0 -0
  45. data/after_templates/{rag_printspeak → rag/printspeak}/layouts/_head.html.erb +0 -0
  46. data/after_templates/{rag_printspeak → rag/printspeak}/layouts/_navbar.html.erb +0 -0
  47. data/after_templates/{rag_printspeak → rag/printspeak}/layouts/application.html.erb +0 -0
  48. data/after_templates/{rag_printspeak → rag/printspeak}/page/_footer.html.erb +0 -0
  49. data/after_templates/{rag_printspeak → rag/printspeak}/page/architecture.html.erb +0 -0
  50. data/after_templates/{rag_printspeak → rag/printspeak}/page/blog.html.erb +0 -0
  51. data/after_templates/{rag_printspeak → rag/printspeak}/page/faq.html.erb +0 -0
  52. data/after_templates/{rag_printspeak → rag/printspeak}/page/home.html.erb +0 -0
  53. data/after_templates/{rag_printspeak → rag/printspeak}/page/page_controller.rb +0 -0
  54. data/after_templates/{rag_printspeak → rag/printspeak}/page/readme.html.erb +0 -0
  55. data/after_templates/{rag_simple.rb → rag/simple/_.rb} +1 -1
  56. data/after_templates/{rag_tailwind.rb → rag/tailwind/_.rb} +1 -1
  57. data/after_templates/{rag_tailwind → rag/tailwind}/component-cta.html +0 -0
  58. data/after_templates/{rag_tailwind → rag/tailwind}/component-faq.html +0 -0
  59. data/after_templates/{rag_tailwind → rag/tailwind}/component-footer.html +0 -0
  60. data/after_templates/{rag_tailwind → rag/tailwind}/component-hero.html +0 -0
  61. data/after_templates/{rag_tailwind → rag/tailwind}/component-nav.html +0 -0
  62. data/after_templates/{rag_tailwind → rag/tailwind}/component-section-begin.html +0 -0
  63. data/after_templates/{rag_tailwind → rag/tailwind}/component-section-end.html +0 -0
  64. data/after_templates/{rag_tailwind_daisyui.rb → rag/tailwind_daisyui/_.rb} +1 -1
  65. data/after_templates/{rag_tailwind_daisyui → rag/tailwind_daisyui}/index.html.erb +0 -0
  66. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/Procfile.dev +0 -0
  67. data/after_templates/{rag_tailwind_emulating_bootstrap.rb → rag/tailwind_emulating_bootstrap/_.rb} +1 -1
  68. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/application.html.erb +0 -0
  69. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/application.tailwind.css +0 -0
  70. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/application_controller.rb +0 -0
  71. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/home/_example.html.erb +0 -0
  72. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/home/bootstrap.html.erb +0 -0
  73. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/home/home_controller.rb +0 -0
  74. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/home/index.html.erb +0 -0
  75. data/after_templates/{rag_tailwind_emulating_bootstrap → rag/tailwind_emulating_bootstrap}/home/tailwind.html.erb +0 -0
  76. data/after_templates/{rag_tailwind_hotwire.rb → rag/tailwind_hotwire/_.rb} +1 -1
  77. data/after_templates/{rag_tailwind_hotwire → rag/tailwind_hotwire}/home/controller.rb +0 -0
  78. data/after_templates/{rag_tailwind_hotwire → rag/tailwind_hotwire}/home/helper.rb +0 -0
  79. data/after_templates/{rag_tailwind_hotwire → rag/tailwind_hotwire}/home/increment.html.erb +0 -0
  80. data/after_templates/{rag_tailwind_hotwire → rag/tailwind_hotwire}/home/index.html +0 -0
  81. data/after_templates/{rag_tailwind_hotwire_flash.rb → rag/tailwind_hotwire_flash/_.rb} +1 -1
  82. data/after_templates/{rag_tailwind_hotwire_form.rb → rag/tailwind_hotwire_form/_.rb} +1 -1
  83. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/_contact.html.erb +0 -0
  84. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/_count.html.erb +0 -0
  85. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/_flash.html.erb +0 -0
  86. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/_form.html.erb +0 -0
  87. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/_list.html.erb +0 -0
  88. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/application.html.erb +0 -0
  89. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/application.js +0 -0
  90. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/application.tailwind.css +0 -0
  91. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/application_helper.rb +0 -0
  92. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/contact.rb +0 -0
  93. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/contacts_controller.rb +0 -0
  94. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/create.turbo_stream.erb +0 -0
  95. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/edit.html.erb +0 -0
  96. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/index.html.erb +0 -0
  97. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/new.html.erb +0 -0
  98. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/show.html.erb +0 -0
  99. data/after_templates/{rag_tailwind_hotwire_form → rag/tailwind_hotwire_form}/update.turbo_stream.erb +0 -0
  100. data/after_templates/{rag_tailwind_hotwire_form_search.rb → rag/tailwind_hotwire_form_search/_.rb} +1 -1
  101. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_contact.html.erb +0 -0
  102. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_count.html.erb +0 -0
  103. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_flash.html.erb +0 -0
  104. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_form.html.erb +0 -0
  105. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_list.html.erb +0 -0
  106. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/_theme_changer.html.erb +0 -0
  107. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/application.html.erb +0 -0
  108. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/application.js +0 -0
  109. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/application.tailwind.css +0 -0
  110. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/application_helper.rb +0 -0
  111. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/contact.rb +0 -0
  112. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/contacts_controller.rb +0 -0
  113. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/create.turbo_stream.erb +0 -0
  114. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/edit.html.erb +0 -0
  115. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/index.html.erb +0 -0
  116. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/new.html.erb +0 -0
  117. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/search_controller.js +0 -0
  118. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/show.html.erb +0 -0
  119. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/theme_changer_controller.js +0 -0
  120. data/after_templates/{rag_tailwind_hotwire_form_search → rag/tailwind_hotwire_form_search}/update.turbo_stream.erb +0 -0
  121. data/docs/last_run/app_generator_class.json +430 -0
  122. data/docs/last_run/app_generator_data.json +49 -0
  123. data/docs/last_run/rails_options_class.json +430 -0
  124. data/docs/last_run/rails_options_data.json +57 -0
  125. data/docs/project-plan/project.drawio +46 -46
  126. data/docs/project-plan/project_todo.svg +1 -1
  127. data/exe/rag +2 -0
  128. data/lib/rails_app_generator/addon.rb +1 -1
  129. data/lib/rails_app_generator/addons/annotate.rb +0 -3
  130. data/lib/rails_app_generator/addons/twilio_ruby.rb +13 -0
  131. data/lib/rails_app_generator/app_generator.rb +39 -177
  132. data/lib/rails_app_generator/cli/profile.rb +3 -1
  133. data/lib/rails_app_generator/configuration/rag_configuration.rb +18 -0
  134. data/lib/rails_app_generator/configuration/rag_configuration_extension.rb +14 -0
  135. data/lib/rails_app_generator/options/build_option.rb +14 -9
  136. data/lib/rails_app_generator/options/options_builder.rb +67 -44
  137. data/lib/rails_app_generator/options/rails_options.rb +6 -68
  138. data/lib/rails_app_generator/rag_initializer.rb +252 -0
  139. data/lib/rails_app_generator/util.rb +26 -0
  140. data/lib/rails_app_generator/version.rb +1 -1
  141. data/lib/rails_app_generator.rb +4 -1
  142. data/package-lock.json +2 -2
  143. data/package.json +1 -1
  144. data/profiles/addons/mini_magick.json +2 -1
  145. data/profiles/{rag-bootstrap.json → rag/bootstrap.json} +1 -1
  146. data/profiles/{rag-devise.json → rag/devise.json} +1 -1
  147. data/profiles/{rag-import-map.json → rag/import-map.json} +1 -1
  148. data/profiles/{rag-printspeak.json → rag/printspeak.json} +3 -2
  149. data/profiles/{rag-simple.json → rag/simple.json} +3 -2
  150. data/profiles/{rag-tailwind-daisyui.json → rag/tailwind-daisyui.json} +1 -1
  151. data/profiles/{rag-tailwind-emulating-bootstrap.json → rag/tailwind-emulating-bootstrap.json} +2 -3
  152. data/profiles/{rag-tailwind-hotwire-flash.json → rag/tailwind-hotwire-flash.json} +1 -1
  153. data/profiles/{rag-tailwind-hotwire-form-search.json → rag/tailwind-hotwire-form-search.json} +1 -1
  154. data/profiles/{rag-tailwind-hotwire-form.json → rag/tailwind-hotwire-form.json} +1 -1
  155. data/profiles/{rag-tailwind-hotwire.json → rag/tailwind-hotwire.json} +1 -1
  156. data/profiles/{rag-tailwind.json → rag/tailwind.json} +3 -2
  157. data/templates/thor_task/addon/addon.tt +2 -6
  158. metadata +150 -130
  159. data/profiles/rag-add-some-pages.json +0 -11
  160. data/profiles/rag-sample.json +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d949364a1e7bec61487eee0f93938ae622bb0af2e1ddf34ef019e799d1b1d20
4
- data.tar.gz: a77a8801d4135ae83828cfec7efadc38a0c22004d76a2880745f53a25a79fd95
3
+ metadata.gz: 1ec811ad7440ce292ebec17bd8a4d95bf042acd85a2f3780625df7c500683094
4
+ data.tar.gz: 2a3c7050c6b8499ad090ed944b60e255be4dd62344275a7df610bcfd78e8f4ea
5
5
  SHA512:
6
- metadata.gz: 18933bff9eb17b70ef4f48f6a027a031df83756ad816d429882776b7ac3ab985f88dd0103da0f75076cefe0c9b4c8427137904aa466a510f3ceb0501483d62fb
7
- data.tar.gz: 03c14b34b59781d67ab10cb15ae9d4a9ce8b023ba89f85c99b7505643fd32b9ac303b39e9f53bccb75770d092669309ae81344ea12ab6cd5929b04f0711c4b2b
6
+ metadata.gz: 411fe2fed8d262f6cf23ab271bb4144f0fed070d2923b126e6679aa4cf103aa834a72d5a3a9573ca468493e7c604cd03287f16447a125d0ff40518618c0fda3d
7
+ data.tar.gz: 202f29f3a974a6c22e3c00e84338f72f966163371ddb3ec71cb9795289a6053de6ad2e021048f02e27fe4d49229bf0f1edd5baa10fdeb3308ead27ec17311ecf
@@ -13,7 +13,8 @@ KManager.action :project_plan do
13
13
 
14
14
  grid_layout(y:90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)
15
15
 
16
- todo(title: 'generator for new profiles')
16
+ todo(title: 'broken profile - tailwind-hotwire-form - tailwind-hotwire-form-search, tailwind-hotwire-flash, ')
17
+
17
18
  todo(title: 'look at the sample tailwind pages in P7 and turn them into an addon')
18
19
 
19
20
  todo(title: 'add auto open flag to profile and command line')
@@ -42,7 +43,6 @@ KManager.action :project_plan do
42
43
  todo(title: 'add addon - twilio')
43
44
  todo(title: 'add addon - honeybadger')
44
45
 
45
-
46
46
  todo(title: 'add profile - rails-html-sanitizer')
47
47
  todo(title: 'add profile - tailwind-emulating-bootstrap')
48
48
  todo(title: 'add profile - tailwind-hotwire-form-search')
@@ -56,7 +56,6 @@ KManager.action :project_plan do
56
56
  todo(title: 'add diff tool - open in editor')
57
57
  todo(title: 'add diff tool supporting lhs only, rhs only, same and different')
58
58
  todo(title: 'add project plan to do list')
59
-
60
59
  end
61
60
  .cd(:docs)
62
61
  .save('project-plan/project.drawio')
data/.rubocop.yml CHANGED
@@ -13,13 +13,14 @@ AllCops:
13
13
  - "a/**/*"
14
14
  - "after_templates/**/*"
15
15
  - "templates/**/*"
16
+ - "lib/rails_app_generator/rag_initializer.rb"
16
17
 
17
18
  Metrics/BlockLength:
18
19
  Exclude:
19
20
  - "**/spec/**/*"
20
21
  - "*.gemspec"
21
22
  - "lib/rails_app_generator/app_generator.rb"
22
- IgnoredMethods:
23
+ AllowedMethods:
23
24
  - configure
24
25
  - context
25
26
  - define
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [0.2.0](https://github.com/klueless-io/rails_app_generator/compare/v0.1.28...v0.2.0) (2022-08-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * cops ([e23bdee](https://github.com/klueless-io/rails_app_generator/commit/e23bdee8904cc8e0e9040ba1a4cb9c819587cec6))
7
+ * fix failing specs ([c13f7f8](https://github.com/klueless-io/rails_app_generator/commit/c13f7f8a858905f79c788ab0fd316a2aa826fb24))
8
+
9
+
10
+ ### Features
11
+
12
+ * big refactor on the addon configuration ([24f23e0](https://github.com/klueless-io/rails_app_generator/commit/24f23e0624f2e4cf8447b6cbb094b7572535149b))
13
+
14
+ ## [0.1.28](https://github.com/klueless-io/rails_app_generator/compare/v0.1.27...v0.1.28) (2022-08-06)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * refactor Addon ([0c9add2](https://github.com/klueless-io/rails_app_generator/commit/0c9add25a438130cd643466aa9a6af2cb9c50b03))
20
+ * rename registered_option to class_option ([a12d802](https://github.com/klueless-io/rails_app_generator/commit/a12d80211038f0bef88f2a051026368e3dadbf6e))
21
+
22
+ ## [0.1.27](https://github.com/klueless-io/rails_app_generator/compare/v0.1.26...v0.1.27) (2022-08-06)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * add addon_util and specs ([55e96be](https://github.com/klueless-io/rails_app_generator/commit/55e96bef66e05f33c7c1c1347fd04ff70166d352))
28
+
1
29
  ## [0.1.26](https://github.com/klueless-io/rails_app_generator/compare/v0.1.25...v0.1.26) (2022-08-06)
2
30
 
3
31
 
@@ -46,17 +46,3 @@ def setup_db
46
46
  db_migrate
47
47
  rails_command('db:seed')
48
48
  end
49
-
50
- # Other template command examples
51
- # css_install('tailwind')
52
- # rails_command('db:migrate')
53
- # bundle_add('hotwire-rails')
54
- # rails_command('hotwire:install')
55
- # run('bin/importmap pin sortablejs')
56
- # run('npm install daisyui')
57
- # create_file 'app/assets/stylesheets/custom-bootstrap-import.scss' , read_template('custom-bootstrap-import.scss')
58
- # append_to_file 'app/assets/config/manifest.js' , read_template('manifest.js')
59
- # insert_into_file 'app/views/layouts/application.html.erb', read_template('application.html.erb'),
60
- # before: %( <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>)
61
- # gsub_file 'app/views/layouts/application.html.erb', %(container mx-auto mt-28 px-5 flex), 'container mx-auto px-5'
62
- # template 'home.css', 'app/assets/stylesheets/home.css'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # require 'pry'
3
+ require 'pry'
4
4
 
5
5
  # Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick
6
6
  #
@@ -9,7 +9,7 @@
9
9
  require 'pry'
10
10
 
11
11
  def add_customizations
12
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_bootstrap')
12
+ self.local_template_path = File.dirname(__FILE__)
13
13
 
14
14
  gac 'base rails 7 image created'
15
15
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'pry'
7
7
 
8
- self.local_template_path = local_template_base(__FILE__)
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
File without changes
@@ -6,7 +6,7 @@
6
6
  require 'pry'
7
7
 
8
8
  def add_customizations
9
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_import_map')
9
+ self.local_template_path = File.dirname(__FILE__)
10
10
 
11
11
  gac 'base rails 7 image created'
12
12
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'pry'
7
7
 
8
- self.local_template_path = local_template_base(__FILE__)
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'pry'
7
7
 
8
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_simple')
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  require 'pry'
10
10
 
11
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_tailwind')
11
+ self.local_template_path = File.dirname(__FILE__)
12
12
 
13
13
  gac 'base rails 7 image created'
14
14
 
@@ -5,7 +5,7 @@ require 'pry'
5
5
 
6
6
  # Do NOT use the --css=tailwind option when using DaisyUI or any other custom plugin syste for tailwindcss
7
7
 
8
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_tailwind_daisyui')
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'pry'
6
6
 
7
- self.local_template_path = File.join(File.dirname(__FILE__), File.basename(__FILE__, '.*'))
7
+ self.local_template_path = File.dirname(__FILE__)
8
8
 
9
9
  gac 'base rails 7 image created'
10
10
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'pry'
7
7
 
8
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_tailwind_hotwire')
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'pry'
6
6
 
7
- self.local_template_path = File.join(File.dirname(__FILE__), File.basename(__FILE__, '.*'))
7
+ self.local_template_path = File.dirname(__FILE__)
8
8
 
9
9
  gac 'base rails 7 image created'
10
10
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'pry'
7
7
 
8
- self.local_template_path = File.join(File.dirname(__FILE__), 'rag_tailwind_hotwire_form')
8
+ self.local_template_path = File.dirname(__FILE__)
9
9
 
10
10
  gac 'base rails 7 image created'
11
11
 
@@ -17,7 +17,7 @@ require 'pry'
17
17
 
18
18
  require 'pry'
19
19
 
20
- self.local_template_path = File.join(File.dirname(__FILE__), File.basename(__FILE__, '.*'))
20
+ self.local_template_path = File.dirname(__FILE__)
21
21
 
22
22
  puts '----------------------------------------------------------------------'
23
23
  puts "Using template: #{self.local_template_path}"