plutonium 0.10.1 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/app/assets/javascripts/turbo/index.js +1 -1
  4. data/app/views/application/_flash_alerts.html.erb +3 -0
  5. data/app/views/application/_flash_toasts.html.erb +2 -0
  6. data/app/views/application/_resource_header.html.erb +12 -12
  7. data/app/views/components/base.rb +1 -1
  8. data/app/views/layouts/resource.html copy.erb +2 -2
  9. data/app/views/layouts/resource.html.erb +3 -2
  10. data/app/views/layouts/rodauth.html.erb +13 -8
  11. data/app/views/resource/_nav_user.html.erb +1 -1
  12. data/app/views/resource/index.rabl +1 -1
  13. data/app/views/rodauth/add_recovery_codes.html.erb +8 -7
  14. data/app/views/rodauth/otp_auth.html.erb +1 -1
  15. data/app/views/rodauth/otp_setup.html.erb +10 -8
  16. data/brakeman.ignore +1 -1
  17. data/config/initializers/rabl.rb +2 -0
  18. data/css.manifest +1 -1
  19. data/js.manifest +2 -2
  20. data/lib/generators/pu/core/install/templates/config/initializers/plutonium.rb +0 -3
  21. data/lib/generators/pu/core/ruby/ruby_generator.rb +30 -0
  22. data/lib/generators/pu/core/ruby/templates/.keep +0 -0
  23. data/lib/generators/pu/docker/install/install_generator.rb +35 -0
  24. data/lib/generators/pu/docker/install/templates/.keep +0 -0
  25. data/lib/generators/pu/docker/install/templates/Dockerfile.dev.tt +30 -0
  26. data/lib/generators/pu/docker/install/templates/Dockerfile.tt +75 -0
  27. data/lib/generators/pu/docker/install/templates/bin/console +3 -0
  28. data/lib/generators/pu/docker/install/templates/bin/restart +3 -0
  29. data/lib/generators/pu/docker/install/templates/bin/shell +3 -0
  30. data/lib/generators/pu/docker/install/templates/docker-compose.yml +29 -0
  31. data/lib/generators/pu/gem/dotenv/dotenv_generator.rb +32 -0
  32. data/lib/generators/pu/gem/dotenv/templates/.env +6 -0
  33. data/lib/generators/pu/gem/dotenv/templates/.env.local +5 -0
  34. data/lib/generators/pu/gem/dotenv/templates/.env.local.template +5 -0
  35. data/lib/generators/pu/gem/dotenv/templates/.env.template +6 -0
  36. data/lib/generators/pu/gem/dotenv/templates/.keep +0 -0
  37. data/lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb +15 -0
  38. data/lib/generators/pu/gem/redis/redis_generator.rb +22 -0
  39. data/lib/generators/pu/gem/redis/templates/.keep +0 -0
  40. data/lib/generators/pu/gen/pug/pug_generator.rb +6 -0
  41. data/lib/generators/pu/gen/pug/templates/pug.rb.tt +1 -1
  42. data/lib/generators/pu/lib/plutonium_generators/concerns/actions.rb +154 -32
  43. data/lib/generators/pu/lib/plutonium_generators/generator.rb +6 -6
  44. data/lib/generators/pu/lib/plutonium_generators/installer.rb +1 -1
  45. data/lib/generators/pu/pkg/app/templates/config/routes.rb.tt +3 -3
  46. data/lib/generators/pu/rodauth/account_generator.rb +10 -10
  47. data/lib/generators/pu/rodauth/install_generator.rb +9 -2
  48. data/lib/generators/pu/rodauth/migration/sequel/audit_logging.erb +2 -2
  49. data/lib/generators/pu/rodauth/migration_generator.rb +1 -1
  50. data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/account_rodauth_plugin.rb.tt +2 -2
  51. data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/rodauth_plugin.rb.tt +0 -3
  52. data/lib/generators/pu/rodauth/templates/db/migrate/install_rodauth.rb.tt +5 -0
  53. data/lib/generators/pu/service/postgres/postgres_generator.rb +61 -0
  54. data/lib/generators/pu/service/postgres/templates/.keep +0 -0
  55. data/lib/generators/pu/service/postgres/templates/bin/initdb.d/create-multiple-postgresql-databases.sh +22 -0
  56. data/lib/generators/pu/service/postgres/templates/database.yml.tt +93 -0
  57. data/lib/generators/pu/service/sidekiq/sidekiq_generator.rb +62 -0
  58. data/lib/generators/pu/service/sidekiq/templates/.keep +0 -0
  59. data/lib/generators/pu/service/sidekiq/templates/app/sidekiq/sidekiq_job.rb +5 -0
  60. data/lib/generators/pu/service/sidekiq/templates/config/initializers/sidekiq.rb +53 -0
  61. data/lib/generators/pu/service/sidekiq/templates/config/sidekiq.yml +6 -0
  62. data/lib/plutonium/config.rb +7 -13
  63. data/lib/plutonium/core/autodiscovery/input_discoverer.rb +1 -1
  64. data/lib/plutonium/core/autodiscovery/renderer_discoverer.rb +1 -1
  65. data/lib/plutonium/core/controllers/base.rb +13 -3
  66. data/lib/plutonium/core/controllers/entity_scoping.rb +3 -3
  67. data/lib/plutonium/core/controllers/queryable.rb +3 -1
  68. data/lib/plutonium/icons.rb +1 -1
  69. data/lib/plutonium/pkg/app.rb +6 -0
  70. data/lib/plutonium/railtie.rb +19 -0
  71. data/lib/plutonium/reloader.rb +99 -0
  72. data/lib/plutonium/resource/controller.rb +62 -22
  73. data/lib/plutonium/resource/policy.rb +56 -9
  74. data/lib/plutonium/resource/presenter.rb +44 -12
  75. data/lib/plutonium/resource/query_object.rb +186 -73
  76. data/lib/plutonium/resource/record.rb +213 -119
  77. data/lib/plutonium/rodauth/controller_methods.rb +7 -0
  78. data/lib/plutonium/version.rb +1 -1
  79. data/lib/plutonium.rb +54 -12
  80. data/lib/tasks/create_rodauth_admin.rake +16 -0
  81. data/package-lock.json +174 -0
  82. data/package.json +2 -0
  83. data/public/plutonium-assets/plutonium-app-6WILQCTT.js +39 -0
  84. data/public/plutonium-assets/plutonium-app-6WILQCTT.js.map +7 -0
  85. data/public/plutonium-assets/plutonium-logo-original.png +0 -0
  86. data/public/plutonium-assets/plutonium-logo-white.png +0 -0
  87. data/public/plutonium-assets/plutonium-logo.png +0 -0
  88. data/public/plutonium-assets/plutonium.2d4f0c333cd000051d3b.css +3424 -0
  89. data/public/plutonium-assets/plutonium.8bee7a8482988b0360e3.css +3420 -0
  90. data/public/plutonium-assets/plutonium.ico +0 -0
  91. metadata +44 -7
  92. data/lib/plutonium/reactor/core.rb +0 -78
  93. data/public/plutonium-assets/logo.png +0 -0
  94. /data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/rodauth_app.rb.tt +0 -0