cats_core 1.5.2 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/cats/core/commodities_controller.rb +2 -2
  3. data/app/controllers/cats/core/dispatch_authorizations_controller.rb +3 -3
  4. data/app/controllers/cats/core/dispatch_transactions_controller.rb +2 -2
  5. data/app/controllers/cats/core/lost_commodities_controller.rb +2 -2
  6. data/app/controllers/cats/core/receipt_authorizations_controller.rb +4 -3
  7. data/app/controllers/cats/core/receipt_transactions_controller.rb +3 -2
  8. data/app/controllers/cats/core/receipts_controller.rb +2 -2
  9. data/app/controllers/cats/core/stacks_controller.rb +3 -3
  10. data/app/models/cats/core/application_setting.rb +10 -0
  11. data/app/models/cats/core/authorization.rb +14 -8
  12. data/app/models/cats/core/commodity.rb +10 -0
  13. data/app/models/cats/core/dispatch.rb +3 -19
  14. data/app/models/cats/core/dispatch_authorization.rb +13 -0
  15. data/app/models/cats/core/dispatch_plan.rb +3 -1
  16. data/app/models/cats/core/dispatch_plan_item.rb +4 -3
  17. data/app/models/cats/core/dispatch_transaction.rb +23 -10
  18. data/app/models/cats/core/hub_authorization.rb +15 -9
  19. data/app/models/cats/core/lost_commodity.rb +29 -0
  20. data/app/models/cats/core/receipt.rb +22 -0
  21. data/app/models/cats/core/receipt_authorization.rb +5 -8
  22. data/app/models/cats/core/receipt_transaction.rb +13 -5
  23. data/app/models/cats/core/rhn_request.rb +25 -8
  24. data/app/models/cats/core/stack.rb +3 -0
  25. data/app/models/cats/core/stack_transaction.rb +1 -0
  26. data/app/models/cats/core/transaction.rb +4 -0
  27. data/app/models/cats/core/unit_conversion.rb +21 -3
  28. data/app/notifications/cats/core/dispatch_notification.rb +2 -0
  29. data/app/serializers/cats/core/commodity_serializer.rb +1 -1
  30. data/app/serializers/cats/core/dispatch_authorization_serializer.rb +2 -1
  31. data/app/serializers/cats/core/dispatch_plan_item_serializer.rb +1 -1
  32. data/app/serializers/cats/core/dispatch_transaction_serializer.rb +2 -1
  33. data/app/serializers/cats/core/lost_commodity_serializer.rb +1 -1
  34. data/app/serializers/cats/core/receipt_authorization_serializer.rb +1 -1
  35. data/app/serializers/cats/core/receipt_serializer.rb +2 -1
  36. data/app/serializers/cats/core/receipt_transaction_serializer.rb +1 -1
  37. data/app/serializers/cats/core/stack_serializer.rb +1 -1
  38. data/app/services/cats/core/authorization_service.rb +2 -0
  39. data/app/services/cats/core/dispatch_plan_service.rb +1 -0
  40. data/app/utils/cats/core/util.rb +15 -0
  41. data/app/utils/cats/core/validation_util.rb +20 -0
  42. data/db/migrate/20210717033223_create_cats_core_commodities.rb +5 -0
  43. data/db/migrate/20210717171101_create_cats_core_stacks.rb +4 -0
  44. data/db/migrate/20210718042755_create_cats_core_rhn_requests.rb +4 -0
  45. data/db/migrate/20210718045516_create_cats_core_dispatches.rb +1 -1
  46. data/db/migrate/20210718055414_create_cats_core_dispatch_authorizations.rb +4 -0
  47. data/db/migrate/20210718202957_create_cats_core_dispatch_transactions.rb +4 -0
  48. data/db/migrate/20210727074646_create_cats_core_receipt_authorizations.rb +4 -0
  49. data/db/migrate/20210727105834_create_cats_core_receipts.rb +4 -0
  50. data/db/migrate/20210728041505_create_cats_core_lost_commodities.rb +4 -0
  51. data/db/migrate/20210814160628_create_cats_core_receipt_transactions.rb +4 -0
  52. data/db/migrate/20210814175406_create_cats_core_stack_transactions.rb +4 -0
  53. data/db/migrate/20220209083928_create_cats_core_hub_authorizations.rb +4 -0
  54. data/db/migrate/20220923190857_create_cats_core_application_settings.rb +14 -0
  55. data/lib/cats/core/version.rb +1 -1
  56. data/spec/factories/cats/core/application_settings.rb +7 -0
  57. data/spec/factories/cats/core/commodities.rb +1 -0
  58. data/spec/factories/cats/core/dispatch_authorizations.rb +1 -0
  59. data/spec/factories/cats/core/dispatch_transactions.rb +5 -4
  60. data/spec/factories/cats/core/dispatches.rb +7 -1
  61. data/spec/factories/cats/core/hub_authorizations.rb +1 -0
  62. data/spec/factories/cats/core/lost_commodities.rb +1 -0
  63. data/spec/factories/cats/core/receipt_authorizations.rb +1 -0
  64. data/spec/factories/cats/core/receipt_transactions.rb +5 -1
  65. data/spec/factories/cats/core/receipts.rb +1 -0
  66. data/spec/factories/cats/core/rhn_requests.rb +1 -0
  67. data/spec/factories/cats/core/stack_transactions.rb +1 -0
  68. data/spec/factories/cats/core/stacks.rb +1 -0
  69. metadata +7 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-17 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -282,6 +282,7 @@ files:
282
282
  - app/jobs/cats/core/application_job.rb
283
283
  - app/models/cats/core/application_module.rb
284
284
  - app/models/cats/core/application_record.rb
285
+ - app/models/cats/core/application_setting.rb
285
286
  - app/models/cats/core/authorization.rb
286
287
  - app/models/cats/core/beneficiary.rb
287
288
  - app/models/cats/core/beneficiary_category.rb
@@ -398,6 +399,8 @@ files:
398
399
  - app/services/cats/core/space_service.rb
399
400
  - app/services/cats/core/stack_service.rb
400
401
  - app/services/cats/core/token_auth_service.rb
402
+ - app/utils/cats/core/util.rb
403
+ - app/utils/cats/core/validation_util.rb
401
404
  - config/routes.rb
402
405
  - db/migrate/20210715114238_create_cats_core_application_modules.rb
403
406
  - db/migrate/20210715114910_create_cats_core_users.rb
@@ -471,12 +474,14 @@ files:
471
474
  - db/migrate/20220626063501_create_cats_core_loans.rb
472
475
  - db/migrate/20220626063757_create_cats_core_swaps.rb
473
476
  - db/migrate/20220626132050_create_cats_core_round_beneficiaries.rb
477
+ - db/migrate/20220923190857_create_cats_core_application_settings.rb
474
478
  - lib/cats/core.rb
475
479
  - lib/cats/core/engine.rb
476
480
  - lib/cats/core/version.rb
477
481
  - lib/cats_core.rb
478
482
  - lib/tasks/cats_core_tasks.rake
479
483
  - spec/factories/cats/core/application_modules.rb
484
+ - spec/factories/cats/core/application_settings.rb
480
485
  - spec/factories/cats/core/beneficiaries.rb
481
486
  - spec/factories/cats/core/beneficiary_categories.rb
482
487
  - spec/factories/cats/core/beneficiary_plan_items.rb