hooksmith 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +52 -0
- data/README.md +295 -64
- data/lib/hooksmith/config/provider.rb +25 -4
- data/lib/hooksmith/configuration.rb +46 -7
- data/lib/hooksmith/dispatcher.rb +71 -34
- data/lib/hooksmith/errors.rb +240 -0
- data/lib/hooksmith/idempotency.rb +107 -0
- data/lib/hooksmith/instrumentation.rb +112 -0
- data/lib/hooksmith/jobs/dispatcher_job.rb +63 -0
- data/lib/hooksmith/rails/webhooks_controller.rb +152 -0
- data/lib/hooksmith/request.rb +110 -0
- data/lib/hooksmith/verifiers/base.rb +79 -0
- data/lib/hooksmith/verifiers/bearer_token.rb +79 -0
- data/lib/hooksmith/verifiers/hmac.rb +184 -0
- data/lib/hooksmith/version.rb +1 -1
- data/lib/hooksmith.rb +51 -1
- metadata +32 -3
metadata
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hooksmith
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gregoryrivage
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
11
|
-
dependencies:
|
|
10
|
+
date: 2025-12-25 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: base64
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.1'
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 0.1.0
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - "~>"
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '0.1'
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 0.1.0
|
|
12
32
|
description: Hooksmith is a gem that allows you to handle webhooks in your Rails application.
|
|
13
33
|
It provides a simple and flexible way to receive, validate, and process webhooks
|
|
14
34
|
from various services. With Hooksmith, you can easily configure webhook endpoints,
|
|
@@ -32,10 +52,19 @@ files:
|
|
|
32
52
|
- lib/hooksmith/config/provider.rb
|
|
33
53
|
- lib/hooksmith/configuration.rb
|
|
34
54
|
- lib/hooksmith/dispatcher.rb
|
|
55
|
+
- lib/hooksmith/errors.rb
|
|
35
56
|
- lib/hooksmith/event_recorder.rb
|
|
57
|
+
- lib/hooksmith/idempotency.rb
|
|
58
|
+
- lib/hooksmith/instrumentation.rb
|
|
59
|
+
- lib/hooksmith/jobs/dispatcher_job.rb
|
|
36
60
|
- lib/hooksmith/logger.rb
|
|
37
61
|
- lib/hooksmith/processor/base.rb
|
|
62
|
+
- lib/hooksmith/rails/webhooks_controller.rb
|
|
38
63
|
- lib/hooksmith/railtie.rb
|
|
64
|
+
- lib/hooksmith/request.rb
|
|
65
|
+
- lib/hooksmith/verifiers/base.rb
|
|
66
|
+
- lib/hooksmith/verifiers/bearer_token.rb
|
|
67
|
+
- lib/hooksmith/verifiers/hmac.rb
|
|
39
68
|
- lib/hooksmith/version.rb
|
|
40
69
|
- sig/hooksmith.rbs
|
|
41
70
|
homepage: https://github.com/gregoryrivage/hooksmith
|