web47core 2.0.1 → 2.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +111 -41
  3. data/app/controllers/status_controller.rb +8 -3
  4. data/app/helpers/core_form_helper.rb +6 -6
  5. data/app/helpers/core_helper.rb +1 -1
  6. data/app/helpers/core_link_helper.rb +47 -8
  7. data/app/helpers/core_nav_bar_helper.rb +5 -4
  8. data/app/helpers/core_table_helper.rb +80 -0
  9. data/app/helpers/model_modal_helper.rb +3 -3
  10. data/app/views/common/_create_actions.html.haml +12 -0
  11. data/app/views/common/_update_actions.html.haml +10 -0
  12. data/app/views/cron/_edit.html.haml +15 -17
  13. data/app/views/cron/_index.html.haml +74 -67
  14. data/app/views/delayed_job_metrics/_index.html.haml +27 -0
  15. data/app/views/delayed_job_metrics/index.html.haml +1 -0
  16. data/app/views/delayed_job_workers/_index.html.haml +27 -0
  17. data/app/views/delayed_job_workers/index.html.haml +1 -0
  18. data/app/views/delayed_jobs/_index.html.haml +47 -52
  19. data/app/views/delayed_jobs/_show.html.haml +15 -13
  20. data/app/views/system_configurations/_edit.html.haml +14 -9
  21. data/app/views/system_configurations/_show.html.haml +18 -12
  22. data/config/brakeman.ignore +26 -0
  23. data/config/brakeman.yml +2 -0
  24. data/config/locales/en.yml +21 -3
  25. data/lib/app/controllers/concerns/core_delayed_job_metrics_controller.rb +35 -0
  26. data/lib/app/controllers/concerns/core_delayed_job_workers_controller.rb +35 -0
  27. data/lib/app/controllers/concerns/core_delayed_jobs_controller.rb +2 -3
  28. data/lib/app/jobs/cron/command.rb +1 -4
  29. data/lib/app/jobs/cron/record_delayed_job_metrics.rb +25 -0
  30. data/lib/app/jobs/cron/restart_orphaned_delayed_jobs.rb +44 -0
  31. data/lib/app/jobs/cron/server.rb +32 -15
  32. data/lib/app/jobs/cron/switchboard_sync_configuration.rb +2 -0
  33. data/lib/app/jobs/cron/switchboard_sync_models.rb +2 -0
  34. data/lib/app/jobs/cron/trim_collection.rb +1 -1
  35. data/lib/app/jobs/cron/trim_delayed_job_metrics.rb +29 -0
  36. data/lib/app/jobs/cron/trim_delayed_job_workers.rb +39 -0
  37. data/lib/app/jobs/cron/trim_failed_delayed_jobs.rb +2 -0
  38. data/lib/app/models/api_token.rb +9 -0
  39. data/lib/app/models/command_job.rb +12 -11
  40. data/lib/app/models/concerns/api_tokenable.rb +38 -0
  41. data/lib/app/models/concerns/aws_configuration.rb +65 -0
  42. data/lib/app/models/concerns/cdn_url.rb +7 -0
  43. data/lib/app/models/concerns/core_smtp_configuration.rb +65 -0
  44. data/lib/app/models/concerns/core_system_configuration.rb +18 -201
  45. data/lib/app/models/concerns/delayed_job_configuration.rb +24 -0
  46. data/lib/app/models/concerns/email_able.rb +6 -2
  47. data/lib/app/models/concerns/google_sso_configuration.rb +32 -0
  48. data/lib/app/models/concerns/search_able.rb +16 -0
  49. data/lib/app/models/concerns/server_process_able.rb +69 -0
  50. data/lib/app/models/concerns/slack_configuration.rb +38 -0
  51. data/lib/app/models/concerns/standard_model.rb +5 -2
  52. data/lib/app/models/concerns/switchboard_configuration.rb +43 -0
  53. data/lib/app/models/concerns/twilio_configuration.rb +37 -0
  54. data/lib/app/models/concerns/zendesk_configuration.rb +92 -0
  55. data/lib/app/models/{delayed_job.rb → delayed/backend/delayed_job.rb} +41 -0
  56. data/lib/app/models/delayed/jobs/metric.rb +61 -0
  57. data/lib/app/models/delayed/jobs/run.rb +40 -0
  58. data/lib/app/models/delayed/jobs/worker.rb +43 -0
  59. data/lib/app/models/delayed/plugins/time_keeper.rb +33 -0
  60. data/lib/app/models/delayed/worker.rb +24 -0
  61. data/lib/app/models/email_notification.rb +2 -1
  62. data/lib/app/models/email_template.rb +5 -6
  63. data/lib/app/models/notification.rb +12 -2
  64. data/lib/app/models/sms_notification.rb +9 -6
  65. data/lib/app/models/template.rb +12 -12
  66. data/lib/web47core/version.rb +1 -1
  67. data/lib/web47core.rb +33 -9
  68. metadata +114 -69
metadata CHANGED
@@ -1,35 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2023-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '7'
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '6'
30
- - - "<"
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
- version: '7'
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
33
41
  - !ruby/object:Gem::Dependency
34
42
  name: aws-sdk-autoscaling
35
43
  requirement: !ruby/object:Gem::Requirement
@@ -208,42 +216,50 @@ dependencies:
208
216
  name: mongoid
209
217
  requirement: !ruby/object:Gem::Requirement
210
218
  requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: '7'
214
219
  - - "<"
215
220
  - !ruby/object:Gem::Version
216
- version: '8'
221
+ version: '7'
217
222
  type: :runtime
218
223
  prerelease: false
219
224
  version_requirements: !ruby/object:Gem::Requirement
220
225
  requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- version: '7'
224
226
  - - "<"
225
227
  - !ruby/object:Gem::Version
226
- version: '8'
228
+ version: '7'
227
229
  - !ruby/object:Gem::Dependency
228
230
  name: rails
229
231
  requirement: !ruby/object:Gem::Requirement
230
232
  requirements:
231
233
  - - ">="
232
234
  - !ruby/object:Gem::Version
233
- version: '6'
235
+ version: '5'
234
236
  - - "<"
235
237
  - !ruby/object:Gem::Version
236
- version: '7'
238
+ version: '6'
237
239
  type: :runtime
238
240
  prerelease: false
239
241
  version_requirements: !ruby/object:Gem::Requirement
240
242
  requirements:
241
243
  - - ">="
242
244
  - !ruby/object:Gem::Version
243
- version: '6'
245
+ version: '5'
244
246
  - - "<"
245
247
  - !ruby/object:Gem::Version
246
- version: '7'
248
+ version: '6'
249
+ - !ruby/object:Gem::Dependency
250
+ name: railties
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ type: :runtime
257
+ prerelease: false
258
+ version_requirements: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
247
263
  - !ruby/object:Gem::Dependency
248
264
  name: redis
249
265
  requirement: !ruby/object:Gem::Requirement
@@ -310,80 +326,56 @@ dependencies:
310
326
  requirements:
311
327
  - - ">="
312
328
  - !ruby/object:Gem::Version
313
- version: 3.7.4
314
- - - "<"
315
- - !ruby/object:Gem::Version
316
- version: '4'
329
+ version: '0'
317
330
  type: :runtime
318
331
  prerelease: false
319
332
  version_requirements: !ruby/object:Gem::Requirement
320
333
  requirements:
321
334
  - - ">="
322
335
  - !ruby/object:Gem::Version
323
- version: 3.7.4
324
- - - "<"
325
- - !ruby/object:Gem::Version
326
- version: '4'
336
+ version: '0'
327
337
  - !ruby/object:Gem::Dependency
328
338
  name: sass-rails
329
339
  requirement: !ruby/object:Gem::Requirement
330
340
  requirements:
331
341
  - - ">="
332
342
  - !ruby/object:Gem::Version
333
- version: '6.0'
334
- - - "<"
335
- - !ruby/object:Gem::Version
336
- version: '7'
343
+ version: '0'
337
344
  type: :runtime
338
345
  prerelease: false
339
346
  version_requirements: !ruby/object:Gem::Requirement
340
347
  requirements:
341
348
  - - ">="
342
349
  - !ruby/object:Gem::Version
343
- version: '6.0'
344
- - - "<"
345
- - !ruby/object:Gem::Version
346
- version: '7'
350
+ version: '0'
347
351
  - !ruby/object:Gem::Dependency
348
352
  name: twilio-ruby
349
353
  requirement: !ruby/object:Gem::Requirement
350
354
  requirements:
351
- - - "<="
352
- - !ruby/object:Gem::Version
353
- version: '4.13'
354
355
  - - ">="
355
356
  - !ruby/object:Gem::Version
356
- version: '3.0'
357
+ version: '5'
357
358
  type: :runtime
358
359
  prerelease: false
359
360
  version_requirements: !ruby/object:Gem::Requirement
360
361
  requirements:
361
- - - "<="
362
- - !ruby/object:Gem::Version
363
- version: '4.13'
364
362
  - - ">="
365
363
  - !ruby/object:Gem::Version
366
- version: '3.0'
364
+ version: '5'
367
365
  - !ruby/object:Gem::Dependency
368
366
  name: tzinfo
369
367
  requirement: !ruby/object:Gem::Requirement
370
368
  requirements:
371
369
  - - ">="
372
370
  - !ruby/object:Gem::Version
373
- version: '2'
374
- - - "<"
375
- - !ruby/object:Gem::Version
376
- version: '3'
371
+ version: '0'
377
372
  type: :runtime
378
373
  prerelease: false
379
374
  version_requirements: !ruby/object:Gem::Requirement
380
375
  requirements:
381
376
  - - ">="
382
377
  - !ruby/object:Gem::Version
383
- version: '2'
384
- - - "<"
385
- - !ruby/object:Gem::Version
386
- version: '3'
378
+ version: '0'
387
379
  - !ruby/object:Gem::Dependency
388
380
  name: validate_url
389
381
  requirement: !ruby/object:Gem::Requirement
@@ -404,6 +396,34 @@ dependencies:
404
396
  - - "<"
405
397
  - !ruby/object:Gem::Version
406
398
  version: '2'
399
+ - !ruby/object:Gem::Dependency
400
+ name: valid_url
401
+ requirement: !ruby/object:Gem::Requirement
402
+ requirements:
403
+ - - ">="
404
+ - !ruby/object:Gem::Version
405
+ version: '0'
406
+ type: :runtime
407
+ prerelease: false
408
+ version_requirements: !ruby/object:Gem::Requirement
409
+ requirements:
410
+ - - ">="
411
+ - !ruby/object:Gem::Version
412
+ version: '0'
413
+ - !ruby/object:Gem::Dependency
414
+ name: brakeman
415
+ requirement: !ruby/object:Gem::Requirement
416
+ requirements:
417
+ - - ">="
418
+ - !ruby/object:Gem::Version
419
+ version: '0'
420
+ type: :development
421
+ prerelease: false
422
+ version_requirements: !ruby/object:Gem::Requirement
423
+ requirements:
424
+ - - ">="
425
+ - !ruby/object:Gem::Version
426
+ version: '0'
407
427
  - !ruby/object:Gem::Dependency
408
428
  name: codacy-coverage
409
429
  requirement: !ruby/object:Gem::Requirement
@@ -504,22 +524,16 @@ dependencies:
504
524
  name: minitest-rails
505
525
  requirement: !ruby/object:Gem::Requirement
506
526
  requirements:
507
- - - ">="
527
+ - - "~>"
508
528
  - !ruby/object:Gem::Version
509
- version: '6'
510
- - - "<"
511
- - !ruby/object:Gem::Version
512
- version: '7'
529
+ version: '3'
513
530
  type: :development
514
531
  prerelease: false
515
532
  version_requirements: !ruby/object:Gem::Requirement
516
533
  requirements:
517
- - - ">="
534
+ - - "~>"
518
535
  - !ruby/object:Gem::Version
519
- version: '6'
520
- - - "<"
521
- - !ruby/object:Gem::Version
522
- version: '7'
536
+ version: '3'
523
537
  - !ruby/object:Gem::Dependency
524
538
  name: minitest-reporters
525
539
  requirement: !ruby/object:Gem::Requirement
@@ -580,16 +594,16 @@ dependencies:
580
594
  name: simplecov
581
595
  requirement: !ruby/object:Gem::Requirement
582
596
  requirements:
583
- - - '='
597
+ - - ">="
584
598
  - !ruby/object:Gem::Version
585
- version: 0.17.1
599
+ version: '0'
586
600
  type: :development
587
601
  prerelease: false
588
602
  version_requirements: !ruby/object:Gem::Requirement
589
603
  requirements:
590
- - - '='
604
+ - - ">="
591
605
  - !ruby/object:Gem::Version
592
- version: 0.17.1
606
+ version: '0'
593
607
  - !ruby/object:Gem::Dependency
594
608
  name: test-unit
595
609
  requirement: !ruby/object:Gem::Requirement
@@ -667,6 +681,7 @@ files:
667
681
  - app/helpers/core_helper.rb
668
682
  - app/helpers/core_link_helper.rb
669
683
  - app/helpers/core_nav_bar_helper.rb
684
+ - app/helpers/core_table_helper.rb
670
685
  - app/helpers/model_modal_helper.rb
671
686
  - app/views/admin/cron/edit.html.haml
672
687
  - app/views/admin/cron/index.html.haml
@@ -674,12 +689,18 @@ files:
674
689
  - app/views/admin/delayed_jobs/show.html.haml
675
690
  - app/views/admin/system_configurations/edit.html.haml
676
691
  - app/views/admin/system_configurations/show.html.haml
692
+ - app/views/common/_create_actions.html.haml
677
693
  - app/views/common/_flash.html.haml
678
694
  - app/views/common/_form_actions.html.haml
695
+ - app/views/common/_update_actions.html.haml
679
696
  - app/views/cron/_edit.html.haml
680
697
  - app/views/cron/_index.html.haml
681
698
  - app/views/cron/edit.html.haml
682
699
  - app/views/cron/index.html.haml
700
+ - app/views/delayed_job_metrics/_index.html.haml
701
+ - app/views/delayed_job_metrics/index.html.haml
702
+ - app/views/delayed_job_workers/_index.html.haml
703
+ - app/views/delayed_job_workers/index.html.haml
683
704
  - app/views/delayed_jobs/_index.html.haml
684
705
  - app/views/delayed_jobs/_show.html.haml
685
706
  - app/views/delayed_jobs/index.html.haml
@@ -697,10 +718,14 @@ files:
697
718
  - app/views/system_configurations/show.html.haml
698
719
  - bin/cron_server
699
720
  - bin/delayed_job
721
+ - config/brakeman.ignore
722
+ - config/brakeman.yml
700
723
  - config/locales/en.yml
701
724
  - config/routes.rb
702
725
  - lib/app/controllers/concerns/core_controller.rb
703
726
  - lib/app/controllers/concerns/core_cron_controller.rb
727
+ - lib/app/controllers/concerns/core_delayed_job_metrics_controller.rb
728
+ - lib/app/controllers/concerns/core_delayed_job_workers_controller.rb
704
729
  - lib/app/controllers/concerns/core_delayed_jobs_controller.rb
705
730
  - lib/app/controllers/concerns/core_system_configuration_controller.rb
706
731
  - lib/app/controllers/concerns/restful_controller.rb
@@ -708,6 +733,8 @@ files:
708
733
  - lib/app/jobs/cron/command.rb
709
734
  - lib/app/jobs/cron/job.rb
710
735
  - lib/app/jobs/cron/job_tab.rb
736
+ - lib/app/jobs/cron/record_delayed_job_metrics.rb
737
+ - lib/app/jobs/cron/restart_orphaned_delayed_jobs.rb
711
738
  - lib/app/jobs/cron/server.rb
712
739
  - lib/app/jobs/cron/switchboard_sync_configuration.rb
713
740
  - lib/app/jobs/cron/switchboard_sync_models.rb
@@ -716,25 +743,43 @@ files:
716
743
  - lib/app/jobs/cron/trim_collection.rb
717
744
  - lib/app/jobs/cron/trim_command_jobs.rb
718
745
  - lib/app/jobs/cron/trim_cron_servers.rb
746
+ - lib/app/jobs/cron/trim_delayed_job_metrics.rb
747
+ - lib/app/jobs/cron/trim_delayed_job_workers.rb
719
748
  - lib/app/jobs/cron/trim_failed_delayed_jobs.rb
720
749
  - lib/app/jobs/cron/trim_notifications.rb
750
+ - lib/app/models/api_token.rb
721
751
  - lib/app/models/audit_log.rb
722
752
  - lib/app/models/command_job.rb
723
753
  - lib/app/models/command_job_log.rb
754
+ - lib/app/models/concerns/api_tokenable.rb
724
755
  - lib/app/models/concerns/app47_logger.rb
756
+ - lib/app/models/concerns/aws_configuration.rb
725
757
  - lib/app/models/concerns/cdn_url.rb
726
758
  - lib/app/models/concerns/cipher_able.rb
727
759
  - lib/app/models/concerns/core_account.rb
760
+ - lib/app/models/concerns/core_smtp_configuration.rb
728
761
  - lib/app/models/concerns/core_system_configuration.rb
762
+ - lib/app/models/concerns/delayed_job_configuration.rb
729
763
  - lib/app/models/concerns/email_able.rb
730
764
  - lib/app/models/concerns/encrypted_password.rb
765
+ - lib/app/models/concerns/google_sso_configuration.rb
731
766
  - lib/app/models/concerns/role_able.rb
732
767
  - lib/app/models/concerns/search_able.rb
733
768
  - lib/app/models/concerns/secure_fields.rb
769
+ - lib/app/models/concerns/server_process_able.rb
770
+ - lib/app/models/concerns/slack_configuration.rb
734
771
  - lib/app/models/concerns/standard_model.rb
735
772
  - lib/app/models/concerns/switchboard_able.rb
773
+ - lib/app/models/concerns/switchboard_configuration.rb
736
774
  - lib/app/models/concerns/time_zone_able.rb
737
- - lib/app/models/delayed_job.rb
775
+ - lib/app/models/concerns/twilio_configuration.rb
776
+ - lib/app/models/concerns/zendesk_configuration.rb
777
+ - lib/app/models/delayed/backend/delayed_job.rb
778
+ - lib/app/models/delayed/jobs/metric.rb
779
+ - lib/app/models/delayed/jobs/run.rb
780
+ - lib/app/models/delayed/jobs/worker.rb
781
+ - lib/app/models/delayed/plugins/time_keeper.rb
782
+ - lib/app/models/delayed/worker.rb
738
783
  - lib/app/models/email_notification.rb
739
784
  - lib/app/models/email_template.rb
740
785
  - lib/app/models/notification.rb