plutonium 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/views/application/_flash_alerts.html.erb +3 -0
  4. data/app/views/application/_flash_toasts.html.erb +2 -0
  5. data/app/views/components/base.rb +1 -1
  6. data/app/views/layouts/resource.html copy.erb +2 -2
  7. data/app/views/layouts/resource.html.erb +3 -3
  8. data/app/views/layouts/rodauth.html.erb +9 -4
  9. data/app/views/rodauth/add_recovery_codes.html.erb +8 -7
  10. data/app/views/rodauth/otp_auth.html.erb +1 -1
  11. data/app/views/rodauth/otp_setup.html.erb +10 -8
  12. data/css.manifest +1 -1
  13. data/lib/generators/pu/core/ruby/ruby_generator.rb +30 -0
  14. data/lib/generators/pu/core/ruby/templates/.keep +0 -0
  15. data/lib/generators/pu/docker/install/install_generator.rb +35 -0
  16. data/lib/generators/pu/docker/install/templates/.keep +0 -0
  17. data/lib/generators/pu/docker/install/templates/Dockerfile.dev.tt +30 -0
  18. data/lib/generators/pu/docker/install/templates/Dockerfile.tt +75 -0
  19. data/lib/generators/pu/docker/install/templates/bin/console +3 -0
  20. data/lib/generators/pu/docker/install/templates/bin/restart +3 -0
  21. data/lib/generators/pu/docker/install/templates/bin/shell +3 -0
  22. data/lib/generators/pu/docker/install/templates/docker-compose.yml +29 -0
  23. data/lib/generators/pu/gem/dotenv/dotenv_generator.rb +32 -0
  24. data/lib/generators/pu/gem/dotenv/templates/.env +6 -0
  25. data/lib/generators/pu/gem/dotenv/templates/.env.local +5 -0
  26. data/lib/generators/pu/gem/dotenv/templates/.env.local.template +5 -0
  27. data/lib/generators/pu/gem/dotenv/templates/.env.template +6 -0
  28. data/lib/generators/pu/gem/dotenv/templates/.keep +0 -0
  29. data/lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb +15 -0
  30. data/lib/generators/pu/gem/redis/redis_generator.rb +22 -0
  31. data/lib/generators/pu/gem/redis/templates/.keep +0 -0
  32. data/lib/generators/pu/lib/plutonium_generators/concerns/actions.rb +154 -32
  33. data/lib/generators/pu/lib/plutonium_generators/generator.rb +6 -6
  34. data/lib/generators/pu/lib/plutonium_generators/installer.rb +1 -1
  35. data/lib/generators/pu/rodauth/account_generator.rb +10 -10
  36. data/lib/generators/pu/rodauth/install_generator.rb +9 -2
  37. data/lib/generators/pu/rodauth/migration/sequel/audit_logging.erb +2 -2
  38. data/lib/generators/pu/rodauth/migration_generator.rb +1 -1
  39. data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/account_rodauth_plugin.rb.tt +2 -2
  40. data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/rodauth_plugin.rb.tt +0 -3
  41. data/lib/generators/pu/rodauth/templates/db/migrate/install_rodauth.rb.tt +5 -0
  42. data/lib/generators/pu/service/postgres/postgres_generator.rb +61 -0
  43. data/lib/generators/pu/service/postgres/templates/.keep +0 -0
  44. data/lib/generators/pu/service/postgres/templates/bin/initdb.d/create-multiple-postgresql-databases.sh +22 -0
  45. data/lib/generators/pu/service/postgres/templates/database.yml.tt +93 -0
  46. data/lib/generators/pu/service/sidekiq/sidekiq_generator.rb +62 -0
  47. data/lib/generators/pu/service/sidekiq/templates/.keep +0 -0
  48. data/lib/generators/pu/service/sidekiq/templates/app/sidekiq/sidekiq_job.rb +5 -0
  49. data/lib/generators/pu/service/sidekiq/templates/config/initializers/sidekiq.rb +53 -0
  50. data/lib/generators/pu/service/sidekiq/templates/config/sidekiq.yml +6 -0
  51. data/lib/plutonium/config.rb +7 -2
  52. data/lib/plutonium/core/controllers/base.rb +1 -1
  53. data/lib/plutonium/core/controllers/entity_scoping.rb +3 -3
  54. data/lib/plutonium/icons.rb +1 -1
  55. data/lib/plutonium/railtie.rb +4 -0
  56. data/lib/plutonium/resource/controller.rb +1 -0
  57. data/lib/plutonium/rodauth/controller_methods.rb +1 -1
  58. data/lib/plutonium/version.rb +1 -1
  59. data/lib/plutonium.rb +4 -0
  60. data/lib/tasks/create_rodauth_admin.rake +16 -0
  61. data/public/plutonium-assets/plutonium.8bee7a8482988b0360e3.css +3420 -0
  62. metadata +36 -5
  63. /data/lib/generators/pu/rodauth/templates/app/{misc → rodauth}/rodauth_app.rb.tt +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-18 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -861,6 +861,25 @@ files:
861
861
  - lib/generators/pu/core/install/templates/app/query_objects/resource_query_object.rb.tt
862
862
  - lib/generators/pu/core/install/templates/config/initializers/plutonium.rb
863
863
  - lib/generators/pu/core/install/templates/config/packages.rb
864
+ - lib/generators/pu/core/ruby/ruby_generator.rb
865
+ - lib/generators/pu/core/ruby/templates/.keep
866
+ - lib/generators/pu/docker/install/install_generator.rb
867
+ - lib/generators/pu/docker/install/templates/.keep
868
+ - lib/generators/pu/docker/install/templates/Dockerfile.dev.tt
869
+ - lib/generators/pu/docker/install/templates/Dockerfile.tt
870
+ - lib/generators/pu/docker/install/templates/bin/console
871
+ - lib/generators/pu/docker/install/templates/bin/restart
872
+ - lib/generators/pu/docker/install/templates/bin/shell
873
+ - lib/generators/pu/docker/install/templates/docker-compose.yml
874
+ - lib/generators/pu/gem/dotenv/dotenv_generator.rb
875
+ - lib/generators/pu/gem/dotenv/templates/.env
876
+ - lib/generators/pu/gem/dotenv/templates/.env.local
877
+ - lib/generators/pu/gem/dotenv/templates/.env.local.template
878
+ - lib/generators/pu/gem/dotenv/templates/.env.template
879
+ - lib/generators/pu/gem/dotenv/templates/.keep
880
+ - lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
881
+ - lib/generators/pu/gem/redis/redis_generator.rb
882
+ - lib/generators/pu/gem/redis/templates/.keep
864
883
  - lib/generators/pu/gen/component/component_generator.rb
865
884
  - lib/generators/pu/gen/component/templates/component.html.erb.tt
866
885
  - lib/generators/pu/gen/component/templates/component.rb.tt
@@ -962,10 +981,10 @@ files:
962
981
  - lib/generators/pu/rodauth/templates/app/controllers/rodauth_controller.rb.tt
963
982
  - lib/generators/pu/rodauth/templates/app/mailers/account_mailer.rb.tt
964
983
  - lib/generators/pu/rodauth/templates/app/mailers/rodauth_mailer.rb.tt
965
- - lib/generators/pu/rodauth/templates/app/misc/account_rodauth_plugin.rb.tt
966
- - lib/generators/pu/rodauth/templates/app/misc/rodauth_app.rb.tt
967
- - lib/generators/pu/rodauth/templates/app/misc/rodauth_plugin.rb.tt
968
984
  - lib/generators/pu/rodauth/templates/app/models/account.rb.tt
985
+ - lib/generators/pu/rodauth/templates/app/rodauth/account_rodauth_plugin.rb.tt
986
+ - lib/generators/pu/rodauth/templates/app/rodauth/rodauth_app.rb.tt
987
+ - lib/generators/pu/rodauth/templates/app/rodauth/rodauth_plugin.rb.tt
969
988
  - lib/generators/pu/rodauth/templates/app/views/rodauth_mailer/email_auth.text.erb
970
989
  - lib/generators/pu/rodauth/templates/app/views/rodauth_mailer/password_changed.text.erb
971
990
  - lib/generators/pu/rodauth/templates/app/views/rodauth_mailer/reset_password.text.erb
@@ -975,7 +994,17 @@ files:
975
994
  - lib/generators/pu/rodauth/templates/app/views/rodauth_mailer/verify_login_change.text.erb
976
995
  - lib/generators/pu/rodauth/templates/config/initializers/rodauth.rb.tt
977
996
  - lib/generators/pu/rodauth/templates/db/migrate/create_rodauth.rb.tt
997
+ - lib/generators/pu/rodauth/templates/db/migrate/install_rodauth.rb.tt
978
998
  - lib/generators/pu/rodauth/views_generator.rb
999
+ - lib/generators/pu/service/postgres/postgres_generator.rb
1000
+ - lib/generators/pu/service/postgres/templates/.keep
1001
+ - lib/generators/pu/service/postgres/templates/bin/initdb.d/create-multiple-postgresql-databases.sh
1002
+ - lib/generators/pu/service/postgres/templates/database.yml.tt
1003
+ - lib/generators/pu/service/sidekiq/sidekiq_generator.rb
1004
+ - lib/generators/pu/service/sidekiq/templates/.keep
1005
+ - lib/generators/pu/service/sidekiq/templates/app/sidekiq/sidekiq_job.rb
1006
+ - lib/generators/pu/service/sidekiq/templates/config/initializers/sidekiq.rb
1007
+ - lib/generators/pu/service/sidekiq/templates/config/sidekiq.yml
979
1008
  - lib/plutonium.rb
980
1009
  - lib/plutonium/application/controller.rb
981
1010
  - lib/plutonium/auth.rb
@@ -1064,6 +1093,7 @@ files:
1064
1093
  - lib/plutonium/simple_form/attachment_component.rb
1065
1094
  - lib/plutonium/simple_form/input_group_component.rb
1066
1095
  - lib/plutonium/version.rb
1096
+ - lib/tasks/create_rodauth_admin.rake
1067
1097
  - package-lock.json
1068
1098
  - package.json
1069
1099
  - postcss.config.js
@@ -1081,6 +1111,7 @@ files:
1081
1111
  - public/plutonium-assets/plutonium-logo.png
1082
1112
  - public/plutonium-assets/plutonium.2d4f0c333cd000051d3b.css
1083
1113
  - public/plutonium-assets/plutonium.50232e35b5495f5ad90d.css
1114
+ - public/plutonium-assets/plutonium.8bee7a8482988b0360e3.css
1084
1115
  - public/plutonium-assets/plutonium.ico
1085
1116
  - sig/plutonium.rbs
1086
1117
  - tailwind.config.js