pg_rails 7.0.8.pre.alpha.82 → 7.0.8.pre.alpha.84

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/pg_engine/app/admin/email_logs.rb +37 -0
  3. data/pg_engine/app/controllers/admin/email_logs_controller.rb +50 -0
  4. data/pg_engine/app/controllers/pg_engine/base_controller.rb +3 -0
  5. data/pg_engine/app/controllers/public/webhooks_controller.rb +77 -0
  6. data/pg_engine/app/decorators/email_log_decorator.rb +16 -0
  7. data/pg_engine/app/models/email.rb +16 -2
  8. data/pg_engine/app/models/email_log.rb +59 -0
  9. data/pg_engine/app/policies/email_log_policy.rb +31 -0
  10. data/pg_engine/app/views/admin/email_logs/_email_log.html.slim +1 -0
  11. data/pg_engine/app/views/admin/email_logs/_form.html.slim +16 -0
  12. data/pg_engine/app/views/admin/email_logs/show.html.slim +18 -0
  13. data/pg_engine/app/views/admin/emails/show.html.slim +20 -4
  14. data/pg_engine/app/views/pg_engine/base/index.html.slim +2 -0
  15. data/pg_engine/config/locales/es.yml +1 -0
  16. data/pg_engine/config/routes.rb +26 -0
  17. data/pg_engine/db/migrate/20240523183651_create_email_logs.rb +19 -0
  18. data/pg_engine/lib/pg_engine/email_observer.rb +4 -2
  19. data/pg_engine/lib/pg_engine/mailgun/log_sync.rb +36 -35
  20. data/pg_engine/lib/pg_engine/utils/check_invalid_records.rb +39 -0
  21. data/pg_engine/lib/pg_engine/utils/pg_logger.rb +20 -2
  22. data/pg_engine/spec/controllers/admin/email_logs_controller_spec.rb +179 -0
  23. data/pg_engine/spec/controllers/pg_engine/base_controller_spec.rb +11 -0
  24. data/pg_engine/spec/controllers/public/webhooks_controller_spec.rb +142 -0
  25. data/pg_engine/spec/factories/email_logs.rb +20 -0
  26. data/pg_engine/spec/lib/pg_engine/mailgun/log_sync_spec.rb +81 -7
  27. data/pg_engine/spec/models/email_log_spec.rb +48 -0
  28. data/pg_engine/spec/models/email_spec.rb +35 -0
  29. data/pg_layout/app/views/layouts/pg_layout/base.html.slim +11 -0
  30. data/pg_rails/lib/pg_rails/rspec_logger_matchers.rb +62 -0
  31. data/pg_rails/lib/version.rb +1 -1
  32. metadata +18 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.82
4
+ version: 7.0.8.pre.alpha.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -944,6 +944,7 @@ files:
944
944
  - pg_engine/app/admin/accounts.rb
945
945
  - pg_engine/app/admin/audits.rb
946
946
  - pg_engine/app/admin/dashboard.rb
947
+ - pg_engine/app/admin/email_logs.rb
947
948
  - pg_engine/app/admin/emails.rb
948
949
  - pg_engine/app/admin/mensaje_contactos.rb
949
950
  - pg_engine/app/admin/user_accounts.rb
@@ -955,6 +956,7 @@ files:
955
956
  - pg_engine/app/assets/stylesheets/active_admin.scss
956
957
  - pg_engine/app/assets/stylesheets/pg_rails_b5.scss
957
958
  - pg_engine/app/controllers/admin/accounts_controller.rb
959
+ - pg_engine/app/controllers/admin/email_logs_controller.rb
958
960
  - pg_engine/app/controllers/admin/emails_controller.rb
959
961
  - pg_engine/app/controllers/admin/user_accounts_controller.rb
960
962
  - pg_engine/app/controllers/admin/users_controller.rb
@@ -963,10 +965,12 @@ files:
963
965
  - pg_engine/app/controllers/pg_engine/devise_controller.rb
964
966
  - pg_engine/app/controllers/pg_engine/require_sign_in.rb
965
967
  - pg_engine/app/controllers/public/mensaje_contactos_controller.rb
968
+ - pg_engine/app/controllers/public/webhooks_controller.rb
966
969
  - pg_engine/app/controllers/users/confirmations_controller.rb
967
970
  - pg_engine/app/controllers/users/registrations_controller.rb
968
971
  - pg_engine/app/decorators/account_decorator.rb
969
972
  - pg_engine/app/decorators/email_decorator.rb
973
+ - pg_engine/app/decorators/email_log_decorator.rb
970
974
  - pg_engine/app/decorators/mensaje_contacto_decorator.rb
971
975
  - pg_engine/app/decorators/pg_engine/base_decorator.rb
972
976
  - pg_engine/app/decorators/pg_engine/base_record_decorator.rb
@@ -989,11 +993,13 @@ files:
989
993
  - pg_engine/app/models/account.rb
990
994
  - pg_engine/app/models/current.rb
991
995
  - pg_engine/app/models/email.rb
996
+ - pg_engine/app/models/email_log.rb
992
997
  - pg_engine/app/models/mensaje_contacto.rb
993
998
  - pg_engine/app/models/pg_engine/base_record.rb
994
999
  - pg_engine/app/models/user.rb
995
1000
  - pg_engine/app/models/user_account.rb
996
1001
  - pg_engine/app/policies/account_policy.rb
1002
+ - pg_engine/app/policies/email_log_policy.rb
997
1003
  - pg_engine/app/policies/email_policy.rb
998
1004
  - pg_engine/app/policies/mensaje_contacto_policy.rb
999
1005
  - pg_engine/app/policies/pg_engine/application_policy.rb
@@ -1005,6 +1011,9 @@ files:
1005
1011
  - pg_engine/app/views/admin/accounts/edit.html.slim
1006
1012
  - pg_engine/app/views/admin/accounts/new.html.slim
1007
1013
  - pg_engine/app/views/admin/accounts/show.html.slim
1014
+ - pg_engine/app/views/admin/email_logs/_email_log.html.slim
1015
+ - pg_engine/app/views/admin/email_logs/_form.html.slim
1016
+ - pg_engine/app/views/admin/email_logs/show.html.slim
1008
1017
  - pg_engine/app/views/admin/emails/_form.html.slim
1009
1018
  - pg_engine/app/views/admin/emails/show.html.slim
1010
1019
  - pg_engine/app/views/admin/user_accounts/_form.html.slim
@@ -1047,6 +1056,7 @@ files:
1047
1056
  - pg_engine/db/migrate/20240428152916_create_mensaje_contactos.rb
1048
1057
  - pg_engine/db/migrate/20240506194106_create_emails.rb
1049
1058
  - pg_engine/db/migrate/20240517174821_pg_trgm.rb
1059
+ - pg_engine/db/migrate/20240523183651_create_email_logs.rb
1050
1060
  - pg_engine/db/seeds.rb
1051
1061
  - pg_engine/lib/pg_engine.rb
1052
1062
  - pg_engine/lib/pg_engine/configuracion.rb
@@ -1056,10 +1066,12 @@ files:
1056
1066
  - pg_engine/lib/pg_engine/error.rb
1057
1067
  - pg_engine/lib/pg_engine/mailgun/log_sync.rb
1058
1068
  - pg_engine/lib/pg_engine/route_helpers.rb
1069
+ - pg_engine/lib/pg_engine/utils/check_invalid_records.rb
1059
1070
  - pg_engine/lib/pg_engine/utils/pdf_preview_generator.rb
1060
1071
  - pg_engine/lib/pg_engine/utils/pg_logger.rb
1061
1072
  - pg_engine/lib/tasks/auto_anotar_modelos.rake
1062
1073
  - pg_engine/spec/controllers/admin/accounts_controller_spec.rb
1074
+ - pg_engine/spec/controllers/admin/email_logs_controller_spec.rb
1063
1075
  - pg_engine/spec/controllers/admin/emails_controller_spec.rb
1064
1076
  - pg_engine/spec/controllers/admin/user_accounts_controller_spec.rb
1065
1077
  - pg_engine/spec/controllers/admin/users_controller_spec.rb
@@ -1067,9 +1079,11 @@ files:
1067
1079
  - pg_engine/spec/controllers/devise/sessions_controller_spec.rb
1068
1080
  - pg_engine/spec/controllers/pg_engine/base_controller_spec.rb
1069
1081
  - pg_engine/spec/controllers/public/mensaje_contactos_controller_spec.rb
1082
+ - pg_engine/spec/controllers/public/webhooks_controller_spec.rb
1070
1083
  - pg_engine/spec/controllers/users/confirmations_controller_spec.rb
1071
1084
  - pg_engine/spec/controllers/users/registrations_controller_spec.rb
1072
1085
  - pg_engine/spec/factories/accounts.rb
1086
+ - pg_engine/spec/factories/email_logs.rb
1073
1087
  - pg_engine/spec/factories/emails.rb
1074
1088
  - pg_engine/spec/factories/mensaje_contactos.rb
1075
1089
  - pg_engine/spec/factories/user_accounts.rb
@@ -1086,6 +1100,7 @@ files:
1086
1100
  - pg_engine/spec/lib/pg_form_builder_spec.rb
1087
1101
  - pg_engine/spec/mailers/previews/devise_preview.rb
1088
1102
  - pg_engine/spec/models/account_spec.rb
1103
+ - pg_engine/spec/models/email_log_spec.rb
1089
1104
  - pg_engine/spec/models/email_spec.rb
1090
1105
  - pg_engine/spec/models/mensaje_contacto_spec.rb
1091
1106
  - pg_engine/spec/models/pg_engine/base_record_spec.rb
@@ -1158,6 +1173,7 @@ files:
1158
1173
  - pg_rails/lib/pg_rails/current_attributes_support.rb
1159
1174
  - pg_rails/lib/pg_rails/dotenv_support.rb
1160
1175
  - pg_rails/lib/pg_rails/redis_support.rb
1176
+ - pg_rails/lib/pg_rails/rspec_logger_matchers.rb
1161
1177
  - pg_rails/lib/pg_rails/vcr_support.rb
1162
1178
  - pg_rails/lib/version.rb
1163
1179
  - pg_rails/scss/bootstrap_overrides.scss