pg_rails 7.0.8.pre.alpha.56 → 7.0.8.pre.alpha.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/admin/audits.rb +2 -0
- data/pg_engine/app/admin/emails.rb +22 -0
- data/pg_engine/app/controllers/admin/emails_controller.rb +37 -0
- data/pg_engine/app/decorators/email_decorator.rb +22 -0
- data/pg_engine/app/mailers/pg_engine/base_mailer.rb +40 -0
- data/pg_engine/app/models/email.rb +71 -0
- data/pg_engine/app/policies/email_policy.rb +31 -0
- data/pg_engine/app/views/admin/emails/_form.html.slim +16 -0
- data/pg_engine/app/views/admin/emails/show.html.slim +29 -0
- data/pg_engine/config/initializers/action_mailer.rb +2 -0
- data/pg_engine/config/routes.rb +209 -0
- data/pg_engine/db/migrate/20240506194106_create_emails.rb +34 -0
- data/pg_engine/lib/pg_engine/email_observer.rb +67 -0
- data/pg_engine/lib/pg_engine/mailgun/log_sync.rb +71 -0
- data/pg_engine/lib/pg_engine.rb +4 -0
- data/pg_engine/spec/controllers/admin/emails_controller_spec.rb +204 -0
- data/pg_engine/spec/controllers/admin/users_controller_spec.rb +3 -3
- data/pg_engine/spec/factories/emails.rb +28 -0
- data/pg_engine/spec/lib/pg_engine/mailgun/log_sync_spec.rb +25 -0
- data/pg_engine/spec/models/email_spec.rb +13 -0
- data/pg_layout/app/views/layouts/pg_layout/mailer.html.slim +11 -0
- data/pg_layout/app/views/layouts/pg_layout/mailer.text.slim +4 -0
- data/pg_rails/lib/pg_rails/redis_support.rb +6 -0
- data/pg_rails/lib/version.rb +1 -1
- data/pg_scaffold/lib/generators/pg_rspec/scaffold/templates/controller_spec.rb +2 -2
- metadata +76 -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.
|
4
|
+
version: 7.0.8.pre.alpha.58
|
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-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -486,6 +486,62 @@ dependencies:
|
|
486
486
|
- - "~>"
|
487
487
|
- !ruby/object:Gem::Version
|
488
488
|
version: '5.1'
|
489
|
+
- !ruby/object:Gem::Dependency
|
490
|
+
name: kredis
|
491
|
+
requirement: !ruby/object:Gem::Requirement
|
492
|
+
requirements:
|
493
|
+
- - "~>"
|
494
|
+
- !ruby/object:Gem::Version
|
495
|
+
version: 1.7.0
|
496
|
+
type: :runtime
|
497
|
+
prerelease: false
|
498
|
+
version_requirements: !ruby/object:Gem::Requirement
|
499
|
+
requirements:
|
500
|
+
- - "~>"
|
501
|
+
- !ruby/object:Gem::Version
|
502
|
+
version: 1.7.0
|
503
|
+
- !ruby/object:Gem::Dependency
|
504
|
+
name: mailgun-ruby
|
505
|
+
requirement: !ruby/object:Gem::Requirement
|
506
|
+
requirements:
|
507
|
+
- - "~>"
|
508
|
+
- !ruby/object:Gem::Version
|
509
|
+
version: 1.2.14
|
510
|
+
type: :runtime
|
511
|
+
prerelease: false
|
512
|
+
version_requirements: !ruby/object:Gem::Requirement
|
513
|
+
requirements:
|
514
|
+
- - "~>"
|
515
|
+
- !ruby/object:Gem::Version
|
516
|
+
version: 1.2.14
|
517
|
+
- !ruby/object:Gem::Dependency
|
518
|
+
name: vcr
|
519
|
+
requirement: !ruby/object:Gem::Requirement
|
520
|
+
requirements:
|
521
|
+
- - "~>"
|
522
|
+
- !ruby/object:Gem::Version
|
523
|
+
version: 6.2.0
|
524
|
+
type: :development
|
525
|
+
prerelease: false
|
526
|
+
version_requirements: !ruby/object:Gem::Requirement
|
527
|
+
requirements:
|
528
|
+
- - "~>"
|
529
|
+
- !ruby/object:Gem::Version
|
530
|
+
version: 6.2.0
|
531
|
+
- !ruby/object:Gem::Dependency
|
532
|
+
name: webmock
|
533
|
+
requirement: !ruby/object:Gem::Requirement
|
534
|
+
requirements:
|
535
|
+
- - "~>"
|
536
|
+
- !ruby/object:Gem::Version
|
537
|
+
version: 3.20.0
|
538
|
+
type: :development
|
539
|
+
prerelease: false
|
540
|
+
version_requirements: !ruby/object:Gem::Requirement
|
541
|
+
requirements:
|
542
|
+
- - "~>"
|
543
|
+
- !ruby/object:Gem::Version
|
544
|
+
version: 3.20.0
|
489
545
|
- !ruby/object:Gem::Dependency
|
490
546
|
name: letter_opener
|
491
547
|
requirement: !ruby/object:Gem::Requirement
|
@@ -846,6 +902,7 @@ files:
|
|
846
902
|
- pg_engine/app/admin/accounts.rb
|
847
903
|
- pg_engine/app/admin/audits.rb
|
848
904
|
- pg_engine/app/admin/dashboard.rb
|
905
|
+
- pg_engine/app/admin/emails.rb
|
849
906
|
- pg_engine/app/admin/mensaje_contactos.rb
|
850
907
|
- pg_engine/app/admin/user_accounts.rb
|
851
908
|
- pg_engine/app/admin/users.rb
|
@@ -853,6 +910,7 @@ files:
|
|
853
910
|
- pg_engine/app/assets/stylesheets/active_admin.scss
|
854
911
|
- pg_engine/app/assets/stylesheets/pg_rails_b5.scss
|
855
912
|
- pg_engine/app/controllers/admin/accounts_controller.rb
|
913
|
+
- pg_engine/app/controllers/admin/emails_controller.rb
|
856
914
|
- pg_engine/app/controllers/admin/user_accounts_controller.rb
|
857
915
|
- pg_engine/app/controllers/admin/users_controller.rb
|
858
916
|
- pg_engine/app/controllers/concerns/pg_engine/resource.rb
|
@@ -863,6 +921,7 @@ files:
|
|
863
921
|
- pg_engine/app/controllers/users/confirmations_controller.rb
|
864
922
|
- pg_engine/app/controllers/users/registrations_controller.rb
|
865
923
|
- pg_engine/app/decorators/account_decorator.rb
|
924
|
+
- pg_engine/app/decorators/email_decorator.rb
|
866
925
|
- pg_engine/app/decorators/mensaje_contacto_decorator.rb
|
867
926
|
- pg_engine/app/decorators/pg_engine/base_decorator.rb
|
868
927
|
- pg_engine/app/decorators/user_account_decorator.rb
|
@@ -879,13 +938,16 @@ files:
|
|
879
938
|
- pg_engine/app/lib/pg_engine/error_helper.rb
|
880
939
|
- pg_engine/app/lib/pg_engine/filtros_builder.rb
|
881
940
|
- pg_engine/app/lib/pg_form_builder.rb
|
941
|
+
- pg_engine/app/mailers/pg_engine/base_mailer.rb
|
882
942
|
- pg_engine/app/models/account.rb
|
883
943
|
- pg_engine/app/models/current.rb
|
944
|
+
- pg_engine/app/models/email.rb
|
884
945
|
- pg_engine/app/models/mensaje_contacto.rb
|
885
946
|
- pg_engine/app/models/pg_engine/base_record.rb
|
886
947
|
- pg_engine/app/models/user.rb
|
887
948
|
- pg_engine/app/models/user_account.rb
|
888
949
|
- pg_engine/app/policies/account_policy.rb
|
950
|
+
- pg_engine/app/policies/email_policy.rb
|
889
951
|
- pg_engine/app/policies/mensaje_contacto_policy.rb
|
890
952
|
- pg_engine/app/policies/pg_engine/application_policy.rb
|
891
953
|
- pg_engine/app/policies/user_account_policy.rb
|
@@ -896,6 +958,8 @@ files:
|
|
896
958
|
- pg_engine/app/views/admin/accounts/edit.html.slim
|
897
959
|
- pg_engine/app/views/admin/accounts/new.html.slim
|
898
960
|
- pg_engine/app/views/admin/accounts/show.html.slim
|
961
|
+
- pg_engine/app/views/admin/emails/_form.html.slim
|
962
|
+
- pg_engine/app/views/admin/emails/show.html.slim
|
899
963
|
- pg_engine/app/views/admin/user_accounts/_form.html.slim
|
900
964
|
- pg_engine/app/views/admin/user_accounts/_user_account.html.slim
|
901
965
|
- pg_engine/app/views/admin/user_accounts/edit.html.slim
|
@@ -934,17 +998,21 @@ files:
|
|
934
998
|
- pg_engine/db/migrate/20240305200900_nombre_user.rb
|
935
999
|
- pg_engine/db/migrate/20240314114503_remove_hash_ids.rb
|
936
1000
|
- pg_engine/db/migrate/20240428152916_create_mensaje_contactos.rb
|
1001
|
+
- pg_engine/db/migrate/20240506194106_create_emails.rb
|
937
1002
|
- pg_engine/db/seeds.rb
|
938
1003
|
- pg_engine/lib/pg_engine.rb
|
939
1004
|
- pg_engine/lib/pg_engine/configuracion.rb
|
940
1005
|
- pg_engine/lib/pg_engine/core_ext.rb
|
1006
|
+
- pg_engine/lib/pg_engine/email_observer.rb
|
941
1007
|
- pg_engine/lib/pg_engine/engine.rb
|
942
1008
|
- pg_engine/lib/pg_engine/error.rb
|
1009
|
+
- pg_engine/lib/pg_engine/mailgun/log_sync.rb
|
943
1010
|
- pg_engine/lib/pg_engine/route_helpers.rb
|
944
1011
|
- pg_engine/lib/pg_engine/utils/pdf_preview_generator.rb
|
945
1012
|
- pg_engine/lib/pg_engine/utils/pg_logger.rb
|
946
1013
|
- pg_engine/lib/tasks/auto_anotar_modelos.rake
|
947
1014
|
- pg_engine/spec/controllers/admin/accounts_controller_spec.rb
|
1015
|
+
- pg_engine/spec/controllers/admin/emails_controller_spec.rb
|
948
1016
|
- pg_engine/spec/controllers/admin/user_accounts_controller_spec.rb
|
949
1017
|
- pg_engine/spec/controllers/admin/users_controller_spec.rb
|
950
1018
|
- pg_engine/spec/controllers/concerns/pg_engine/resource_helper_spec.rb
|
@@ -954,6 +1022,7 @@ files:
|
|
954
1022
|
- pg_engine/spec/controllers/users/confirmations_controller_spec.rb
|
955
1023
|
- pg_engine/spec/controllers/users/registrations_controller_spec.rb
|
956
1024
|
- pg_engine/spec/factories/accounts.rb
|
1025
|
+
- pg_engine/spec/factories/emails.rb
|
957
1026
|
- pg_engine/spec/factories/mensaje_contactos.rb
|
958
1027
|
- pg_engine/spec/factories/user_accounts.rb
|
959
1028
|
- pg_engine/spec/factories/users.rb
|
@@ -963,9 +1032,11 @@ files:
|
|
963
1032
|
- pg_engine/spec/fixtures/test.pdf
|
964
1033
|
- pg_engine/spec/helpers/pg_engine/pg_rails_helper_spec.rb
|
965
1034
|
- pg_engine/spec/lib/pg_engine/error_helper_spec.rb
|
1035
|
+
- pg_engine/spec/lib/pg_engine/mailgun/log_sync_spec.rb
|
966
1036
|
- pg_engine/spec/lib/pg_engine/utils/pg_engine/pg_logger_spec.rb
|
967
1037
|
- pg_engine/spec/lib/pg_form_builder_spec.rb
|
968
1038
|
- pg_engine/spec/models/account_spec.rb
|
1039
|
+
- pg_engine/spec/models/email_spec.rb
|
969
1040
|
- pg_engine/spec/models/mensaje_contacto_spec.rb
|
970
1041
|
- pg_engine/spec/models/pg_engine/base_record_spec.rb
|
971
1042
|
- pg_engine/spec/models/user_account_spec.rb
|
@@ -1012,6 +1083,8 @@ files:
|
|
1012
1083
|
- pg_layout/app/views/layouts/pg_layout/container_logo.html.slim
|
1013
1084
|
- pg_layout/app/views/layouts/pg_layout/containerized.html.slim
|
1014
1085
|
- pg_layout/app/views/layouts/pg_layout/devise.html.slim
|
1086
|
+
- pg_layout/app/views/layouts/pg_layout/mailer.html.slim
|
1087
|
+
- pg_layout/app/views/layouts/pg_layout/mailer.text.slim
|
1015
1088
|
- pg_layout/app/views/pg_layout/_default_error_message.html.erb
|
1016
1089
|
- pg_layout/app/views/pg_layout/_error.html.erb
|
1017
1090
|
- pg_layout/app/views/pg_layout/_flash.html.slim
|
@@ -1028,6 +1101,7 @@ files:
|
|
1028
1101
|
- pg_rails/lib/pg_rails/capybara_support.rb
|
1029
1102
|
- pg_rails/lib/pg_rails/current_attributes_support.rb
|
1030
1103
|
- pg_rails/lib/pg_rails/dotenv_support.rb
|
1104
|
+
- pg_rails/lib/pg_rails/redis_support.rb
|
1031
1105
|
- pg_rails/lib/pg_rails/vcr_support.rb
|
1032
1106
|
- pg_rails/lib/version.rb
|
1033
1107
|
- pg_rails/scss/bootstrap_overrides.scss
|