pact_broker 2.74.1 → 2.75.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.optic/.gitignore +2 -0
  3. data/.optic/api/specification.json +1 -0
  4. data/.optic/ignore +14 -0
  5. data/CHANGELOG.md +19 -0
  6. data/DEVELOPER_SETUP.md +9 -0
  7. data/Dockerfile +1 -0
  8. data/config/database.yml +1 -1
  9. data/db/migrations/20210115_add_webhook_foreign_key_indexes.rb +49 -0
  10. data/db/migrations/20210116_add_context_to_triggered_webhook.rb +11 -0
  11. data/db/migrations/migration_helper.rb +8 -0
  12. data/docker-compose-test.yml +4 -4
  13. data/lib/pact_broker/api.rb +13 -2
  14. data/lib/pact_broker/api/decorators.rb +3 -7
  15. data/lib/pact_broker/api/decorators/configuration.rb +33 -0
  16. data/lib/pact_broker/api/decorators/decorator_context_creator.rb +13 -0
  17. data/lib/pact_broker/api/decorators/pact_collection_decorator.rb +1 -0
  18. data/lib/pact_broker/api/decorators/pacticipant_collection_decorator.rb +2 -3
  19. data/lib/pact_broker/api/decorators/reason_decorator.rb +2 -0
  20. data/lib/pact_broker/api/renderers/html_pact_renderer.rb +2 -2
  21. data/lib/pact_broker/api/resources/all_webhooks.rb +3 -3
  22. data/lib/pact_broker/api/resources/can_i_deploy_badge.rb +1 -1
  23. data/lib/pact_broker/api/resources/dashboard.rb +2 -2
  24. data/lib/pact_broker/api/resources/default_base_resource.rb +37 -12
  25. data/lib/pact_broker/api/resources/error_response_body_generator.rb +41 -0
  26. data/lib/pact_broker/api/resources/group.rb +1 -1
  27. data/lib/pact_broker/api/resources/integrations.rb +1 -1
  28. data/lib/pact_broker/api/resources/label.rb +1 -1
  29. data/lib/pact_broker/api/resources/latest_pact.rb +2 -2
  30. data/lib/pact_broker/api/resources/latest_pacts.rb +1 -1
  31. data/lib/pact_broker/api/resources/latest_verifications_for_consumer_version.rb +2 -2
  32. data/lib/pact_broker/api/resources/matrix.rb +2 -2
  33. data/lib/pact_broker/api/resources/matrix_for_consumer_and_provider.rb +1 -1
  34. data/lib/pact_broker/api/resources/pact.rb +2 -2
  35. data/lib/pact_broker/api/resources/pact_triggered_webhooks.rb +1 -1
  36. data/lib/pact_broker/api/resources/pact_versions.rb +1 -1
  37. data/lib/pact_broker/api/resources/pact_webhooks.rb +3 -3
  38. data/lib/pact_broker/api/resources/pact_webhooks_status.rb +2 -2
  39. data/lib/pact_broker/api/resources/pacticipant.rb +1 -1
  40. data/lib/pact_broker/api/resources/pacticipants.rb +3 -3
  41. data/lib/pact_broker/api/resources/pacticipants_for_label.rb +1 -1
  42. data/lib/pact_broker/api/resources/previous_distinct_pact_version.rb +1 -1
  43. data/lib/pact_broker/api/resources/provider_pacts.rb +1 -7
  44. data/lib/pact_broker/api/resources/provider_pacts_for_verification.rb +2 -2
  45. data/lib/pact_broker/api/resources/relationships.rb +1 -1
  46. data/lib/pact_broker/api/resources/tag.rb +1 -1
  47. data/lib/pact_broker/api/resources/tagged_pact_versions.rb +1 -1
  48. data/lib/pact_broker/api/resources/verification.rb +2 -2
  49. data/lib/pact_broker/api/resources/verification_triggered_webhooks.rb +1 -1
  50. data/lib/pact_broker/api/resources/verifications.rb +1 -1
  51. data/lib/pact_broker/api/resources/version.rb +1 -1
  52. data/lib/pact_broker/api/resources/versions.rb +1 -1
  53. data/lib/pact_broker/api/resources/webhook.rb +2 -2
  54. data/lib/pact_broker/api/resources/webhook_execution.rb +4 -4
  55. data/lib/pact_broker/api/resources/webhook_execution_methods.rb +1 -3
  56. data/lib/pact_broker/api/resources/webhooks.rb +3 -3
  57. data/lib/pact_broker/app.rb +8 -3
  58. data/lib/pact_broker/application_context.rb +41 -0
  59. data/lib/pact_broker/doc/controllers/app.rb +3 -2
  60. data/lib/pact_broker/domain/webhook_request.rb +1 -1
  61. data/lib/pact_broker/error.rb +0 -2
  62. data/lib/pact_broker/errors.rb +28 -0
  63. data/lib/pact_broker/errors/error_logger.rb +25 -0
  64. data/lib/pact_broker/services.rb +106 -31
  65. data/lib/pact_broker/test/http_test_data_builder.rb +35 -0
  66. data/lib/pact_broker/test/test_data_builder.rb +3 -2
  67. data/lib/pact_broker/ui/views/index/_getting-started.haml +1 -1
  68. data/lib/pact_broker/ui/views/index/show-with-tags.haml +16 -16
  69. data/lib/pact_broker/ui/views/index/show.haml +6 -6
  70. data/lib/pact_broker/ui/views/layouts/main.haml +2 -2
  71. data/lib/pact_broker/ui/views/matrix/show.haml +32 -33
  72. data/lib/pact_broker/version.rb +1 -1
  73. data/lib/pact_broker/webhooks/execution_configuration.rb +4 -0
  74. data/lib/pact_broker/webhooks/execution_configuration_creator.rb +14 -0
  75. data/lib/pact_broker/webhooks/repository.rb +3 -2
  76. data/lib/pact_broker/webhooks/service.rb +2 -1
  77. data/lib/pact_broker/webhooks/triggered_webhook.rb +1 -0
  78. data/optic.yml +5 -0
  79. data/pact_broker.gemspec +1 -1
  80. data/public/css/bootstrap-grid.css +3719 -0
  81. data/public/css/bootstrap-grid.css.map +1 -0
  82. data/public/css/bootstrap-grid.min.css +7 -0
  83. data/public/css/bootstrap-grid.min.css.map +1 -0
  84. data/public/css/bootstrap-reboot.css +331 -0
  85. data/public/css/bootstrap-reboot.css.map +1 -0
  86. data/public/css/bootstrap-reboot.min.css +8 -0
  87. data/public/css/bootstrap-reboot.min.css.map +1 -0
  88. data/public/css/bootstrap.css +8885 -5604
  89. data/public/css/bootstrap.css.map +1 -1
  90. data/public/css/bootstrap.min.css +4 -3
  91. data/public/css/bootstrap.min.css.map +1 -1
  92. data/public/images/alert.svg +1 -0
  93. data/public/images/arrow-switch.svg +1 -0
  94. data/public/images/check.svg +1 -0
  95. data/public/images/clock.svg +1 -0
  96. data/public/images/copy.svg +1 -0
  97. data/public/images/kebab-horizontal.svg +1 -0
  98. data/public/javascripts/clipboard.js +3 -3
  99. data/public/javascripts/{jquery-3.3.1.js → jquery-3.5.1.js} +1150 -642
  100. data/public/javascripts/jquery-3.5.1.min.js +2 -0
  101. data/public/javascripts/jquery-3.5.1.min.map +1 -0
  102. data/public/javascripts/matrix.js +2 -2
  103. data/public/js/bootstrap.bundle.js +7013 -0
  104. data/public/js/bootstrap.bundle.js.map +1 -0
  105. data/public/js/bootstrap.bundle.min.js +7 -0
  106. data/public/js/bootstrap.bundle.min.js.map +1 -0
  107. data/public/js/bootstrap.js +3862 -1804
  108. data/public/js/bootstrap.js.map +1 -0
  109. data/public/js/bootstrap.min.js +6 -6
  110. data/public/js/bootstrap.min.js.map +1 -0
  111. data/public/stylesheets/index.css +56 -3
  112. data/public/stylesheets/matrix.css +55 -5
  113. data/public/stylesheets/pact.css +14 -0
  114. data/regression/.gitignore +1 -0
  115. data/regression/can_i_deploy_spec.rb +42 -0
  116. data/regression/regression_helper.rb +37 -0
  117. data/regression/script/approval-all.sh +6 -0
  118. data/script/exercise-api-for-optic.sh +3 -0
  119. data/spec/lib/pact_broker/api/resources/can_i_deploy_badge_spec.rb +1 -1
  120. data/spec/lib/pact_broker/api/resources/default_base_resource_spec.rb +65 -5
  121. data/spec/lib/pact_broker/api/resources/error_response_body_generator_spec.rb +69 -0
  122. data/spec/lib/pact_broker/db/log_quietener_spec.rb +1 -1
  123. data/spec/lib/pact_broker/errors/error_logger_spec.rb +62 -0
  124. data/spec/lib/pact_broker/errors_spec.rb +55 -0
  125. data/spec/lib/pact_broker/webhooks/repository_spec.rb +5 -2
  126. data/spec/lib/pact_broker/webhooks/service_spec.rb +2 -1
  127. data/tasks/rspec.rake +6 -0
  128. metadata +54 -17
  129. data/public/css/bootstrap-theme.css +0 -587
  130. data/public/css/bootstrap-theme.css.map +0 -1
  131. data/public/css/bootstrap-theme.min.css +0 -6
  132. data/public/css/bootstrap-theme.min.css.map +0 -1
  133. data/public/fonts/glyphicons-halflings-regular.svg +0 -288
  134. data/public/javascripts/jquery-3.3.1.min.js +0 -2
  135. data/public/javascripts/jquery-3.3.1.min.map +0 -1
  136. data/spec/lib/pact_broker/api/resources/error_handler_spec.rb +0 -211

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.