├── .editorconfig ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .rubocop.yml ├── .standard.yml ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── config └── routes.rb ├── example ├── .gitattributes ├── .gitignore ├── .ruby-version ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── app │ ├── assets │ │ ├── images │ │ │ └── .keep │ │ └── stylesheets │ │ │ └── application.css │ ├── controllers │ │ ├── application_controller.rb │ │ └── concerns │ │ │ └── .keep │ ├── helpers │ │ └── application_helper.rb │ ├── models │ │ ├── application_record.rb │ │ └── concerns │ │ │ └── .keep │ ├── views │ │ └── layouts │ │ │ └── application.html.erb │ └── webhooks │ │ └── webhook_test_handler.rb ├── bin │ ├── bundle │ ├── rails │ ├── rake │ └── setup ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── credentials.yml.enc │ ├── database.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── assets.rb │ │ ├── content_security_policy.rb │ │ ├── filter_parameter_logging.rb │ │ ├── generators.rb │ │ ├── inflections.rb │ │ ├── munster.rb │ │ └── permissions_policy.rb │ ├── locales │ │ └── en.yml │ ├── puma.rb │ └── routes.rb ├── db │ ├── migrate │ │ └── 20240523125859_create_munster_tables.rb │ ├── schema.rb │ └── seeds.rb ├── lib │ ├── assets │ │ └── .keep │ └── tasks │ │ └── .keep ├── log │ └── .keep ├── public │ ├── 404.html │ ├── 422.html │ ├── 500.html │ ├── apple-touch-icon-precomposed.png │ ├── apple-touch-icon.png │ ├── favicon.ico │ └── robots.txt ├── test │ ├── controllers │ │ └── .keep │ ├── fixtures │ │ └── files │ │ │ └── .keep │ ├── helpers │ │ └── .keep │ ├── integration │ │ └── .keep │ ├── models │ │ └── .keep │ └── test_helper.rb ├── tmp │ ├── .keep │ └── pids │ │ └── .keep └── vendor │ └── .keep ├── handler-examples ├── customer_io_handler.rb ├── revolut_business_v1_handler.rb ├── revolut_business_v2_handler.rb └── starling_payments_handler.rb ├── lib ├── munster.rb ├── munster │ ├── base_handler.rb │ ├── controllers │ │ └── receive_webhooks_controller.rb │ ├── engine.rb │ ├── install_generator.rb │ ├── jobs │ │ └── processing_job.rb │ ├── models │ │ └── received_webhook.rb │ ├── templates │ │ ├── add_headers_to_munster_webhooks.rb.erb │ │ ├── create_munster_tables.rb.erb │ │ └── munster.rb │ └── version.rb └── tasks │ └── munster_tasks.rake ├── munster.gemspec └── test ├── munster_test.rb ├── test-webhook-handlers ├── .DS_Store ├── extract_id_handler.rb ├── failing_with_concealed_errors.rb ├── failing_with_exposed_errors.rb ├── inactive_handler.rb ├── invalid_handler.rb ├── private_handler.rb └── webhook_test_handler.rb ├── test_app.rb └── test_helper.rb /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.standard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/.standard.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/Rakefile -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/config/routes.rb -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/.gitattributes -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-3.2.2 2 | -------------------------------------------------------------------------------- /example/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/Gemfile -------------------------------------------------------------------------------- /example/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/Gemfile.lock -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/README.md -------------------------------------------------------------------------------- /example/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/Rakefile -------------------------------------------------------------------------------- /example/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- 1 | /* Application styles */ 2 | -------------------------------------------------------------------------------- /example/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /example/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module ApplicationHelper 4 | end 5 | -------------------------------------------------------------------------------- /example/app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/app/models/application_record.rb -------------------------------------------------------------------------------- /example/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /example/app/webhooks/webhook_test_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/app/webhooks/webhook_test_handler.rb -------------------------------------------------------------------------------- /example/bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/bin/bundle -------------------------------------------------------------------------------- /example/bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/bin/rails -------------------------------------------------------------------------------- /example/bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/bin/rake -------------------------------------------------------------------------------- /example/bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/bin/setup -------------------------------------------------------------------------------- /example/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config.ru -------------------------------------------------------------------------------- /example/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/application.rb -------------------------------------------------------------------------------- /example/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/boot.rb -------------------------------------------------------------------------------- /example/config/credentials.yml.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/credentials.yml.enc -------------------------------------------------------------------------------- /example/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/database.yml -------------------------------------------------------------------------------- /example/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/environment.rb -------------------------------------------------------------------------------- /example/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/environments/development.rb -------------------------------------------------------------------------------- /example/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/environments/production.rb -------------------------------------------------------------------------------- /example/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/environments/test.rb -------------------------------------------------------------------------------- /example/config/initializers/assets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/assets.rb -------------------------------------------------------------------------------- /example/config/initializers/content_security_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/content_security_policy.rb -------------------------------------------------------------------------------- /example/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /example/config/initializers/generators.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/generators.rb -------------------------------------------------------------------------------- /example/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/inflections.rb -------------------------------------------------------------------------------- /example/config/initializers/munster.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/munster.rb -------------------------------------------------------------------------------- /example/config/initializers/permissions_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/initializers/permissions_policy.rb -------------------------------------------------------------------------------- /example/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/locales/en.yml -------------------------------------------------------------------------------- /example/config/puma.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/puma.rb -------------------------------------------------------------------------------- /example/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/config/routes.rb -------------------------------------------------------------------------------- /example/db/migrate/20240523125859_create_munster_tables.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/db/migrate/20240523125859_create_munster_tables.rb -------------------------------------------------------------------------------- /example/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/db/schema.rb -------------------------------------------------------------------------------- /example/db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/db/seeds.rb -------------------------------------------------------------------------------- /example/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/public/404.html -------------------------------------------------------------------------------- /example/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/public/422.html -------------------------------------------------------------------------------- /example/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/public/500.html -------------------------------------------------------------------------------- /example/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/public/robots.txt -------------------------------------------------------------------------------- /example/test/controllers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/test/fixtures/files/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/test/helpers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/test/integration/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/test/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/example/test/test_helper.rb -------------------------------------------------------------------------------- /example/tmp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/tmp/pids/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/vendor/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /handler-examples/customer_io_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/handler-examples/customer_io_handler.rb -------------------------------------------------------------------------------- /handler-examples/revolut_business_v1_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/handler-examples/revolut_business_v1_handler.rb -------------------------------------------------------------------------------- /handler-examples/revolut_business_v2_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/handler-examples/revolut_business_v2_handler.rb -------------------------------------------------------------------------------- /handler-examples/starling_payments_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/handler-examples/starling_payments_handler.rb -------------------------------------------------------------------------------- /lib/munster.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster.rb -------------------------------------------------------------------------------- /lib/munster/base_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/base_handler.rb -------------------------------------------------------------------------------- /lib/munster/controllers/receive_webhooks_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/controllers/receive_webhooks_controller.rb -------------------------------------------------------------------------------- /lib/munster/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/engine.rb -------------------------------------------------------------------------------- /lib/munster/install_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/install_generator.rb -------------------------------------------------------------------------------- /lib/munster/jobs/processing_job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/jobs/processing_job.rb -------------------------------------------------------------------------------- /lib/munster/models/received_webhook.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/models/received_webhook.rb -------------------------------------------------------------------------------- /lib/munster/templates/add_headers_to_munster_webhooks.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/templates/add_headers_to_munster_webhooks.rb.erb -------------------------------------------------------------------------------- /lib/munster/templates/create_munster_tables.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/templates/create_munster_tables.rb.erb -------------------------------------------------------------------------------- /lib/munster/templates/munster.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/munster/templates/munster.rb -------------------------------------------------------------------------------- /lib/munster/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Munster 4 | VERSION = "0.4.2" 5 | end 6 | -------------------------------------------------------------------------------- /lib/tasks/munster_tasks.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/lib/tasks/munster_tasks.rake -------------------------------------------------------------------------------- /munster.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/munster.gemspec -------------------------------------------------------------------------------- /test/munster_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/munster_test.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/.DS_Store -------------------------------------------------------------------------------- /test/test-webhook-handlers/extract_id_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/extract_id_handler.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/failing_with_concealed_errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/failing_with_concealed_errors.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/failing_with_exposed_errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/failing_with_exposed_errors.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/inactive_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/inactive_handler.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/invalid_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/invalid_handler.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/private_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/private_handler.rb -------------------------------------------------------------------------------- /test/test-webhook-handlers/webhook_test_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test-webhook-handlers/webhook_test_handler.rb -------------------------------------------------------------------------------- /test/test_app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test_app.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheddar-me/munster/HEAD/test/test_helper.rb --------------------------------------------------------------------------------