hooktrace 0.1.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 +7 -0
- data/.rspec +1 -0
- data/.rubocop.yml +47 -0
- data/CHANGELOG.md +39 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +190 -0
- data/Rakefile +10 -0
- data/exe/hooktrace +9 -0
- data/lib/generators/hooktrace/install_generator.rb +29 -0
- data/lib/generators/hooktrace/templates/create_hooktrace_events.rb.erb +25 -0
- data/lib/hooktrace/cli.rb +139 -0
- data/lib/hooktrace/contract.rb +202 -0
- data/lib/hooktrace/contracts/paypal.json +8773 -0
- data/lib/hooktrace/contracts/stripe.json +29320 -0
- data/lib/hooktrace/error.rb +38 -0
- data/lib/hooktrace/event_record.rb +71 -0
- data/lib/hooktrace/field.rb +46 -0
- data/lib/hooktrace/importers/open_api_schema_converter.rb +158 -0
- data/lib/hooktrace/importers/paypal_open_api.rb +113 -0
- data/lib/hooktrace/importers/stripe_open_api.rb +118 -0
- data/lib/hooktrace/result.rb +38 -0
- data/lib/hooktrace/storage/active_record_store.rb +141 -0
- data/lib/hooktrace/storage/file_store.rb +103 -0
- data/lib/hooktrace/validator.rb +173 -0
- data/lib/hooktrace/version.rb +5 -0
- data/lib/hooktrace/web/assets/application.css +358 -0
- data/lib/hooktrace/web/views/contracts.erb +41 -0
- data/lib/hooktrace/web/views/event_detail.erb +53 -0
- data/lib/hooktrace/web/views/events.erb +100 -0
- data/lib/hooktrace/web/views/layout.erb +143 -0
- data/lib/hooktrace/web.rb +224 -0
- data/lib/hooktrace/webhook_processor.rb +171 -0
- data/lib/hooktrace.rb +273 -0
- data/sig/hooktrace.rbs +4 -0
- metadata +103 -0
metadata
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: hooktrace
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Sachin Singh Tomar
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rack
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '2.1'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '4'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '2.1'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '4'
|
|
33
|
+
description: Hooktrace validates incoming Stripe, PayPal, and custom webhooks against
|
|
34
|
+
OpenAPI contracts with ActiveRecord and File storage and a mountable Rack dashboard.
|
|
35
|
+
email:
|
|
36
|
+
- singh19sachin404@gmail.com
|
|
37
|
+
executables:
|
|
38
|
+
- hooktrace
|
|
39
|
+
extensions: []
|
|
40
|
+
extra_rdoc_files: []
|
|
41
|
+
files:
|
|
42
|
+
- ".rspec"
|
|
43
|
+
- ".rubocop.yml"
|
|
44
|
+
- CHANGELOG.md
|
|
45
|
+
- CODE_OF_CONDUCT.md
|
|
46
|
+
- LICENSE.txt
|
|
47
|
+
- README.md
|
|
48
|
+
- Rakefile
|
|
49
|
+
- exe/hooktrace
|
|
50
|
+
- lib/generators/hooktrace/install_generator.rb
|
|
51
|
+
- lib/generators/hooktrace/templates/create_hooktrace_events.rb.erb
|
|
52
|
+
- lib/hooktrace.rb
|
|
53
|
+
- lib/hooktrace/cli.rb
|
|
54
|
+
- lib/hooktrace/contract.rb
|
|
55
|
+
- lib/hooktrace/contracts/paypal.json
|
|
56
|
+
- lib/hooktrace/contracts/stripe.json
|
|
57
|
+
- lib/hooktrace/error.rb
|
|
58
|
+
- lib/hooktrace/event_record.rb
|
|
59
|
+
- lib/hooktrace/field.rb
|
|
60
|
+
- lib/hooktrace/importers/open_api_schema_converter.rb
|
|
61
|
+
- lib/hooktrace/importers/paypal_open_api.rb
|
|
62
|
+
- lib/hooktrace/importers/stripe_open_api.rb
|
|
63
|
+
- lib/hooktrace/result.rb
|
|
64
|
+
- lib/hooktrace/storage/active_record_store.rb
|
|
65
|
+
- lib/hooktrace/storage/file_store.rb
|
|
66
|
+
- lib/hooktrace/validator.rb
|
|
67
|
+
- lib/hooktrace/version.rb
|
|
68
|
+
- lib/hooktrace/web.rb
|
|
69
|
+
- lib/hooktrace/web/assets/application.css
|
|
70
|
+
- lib/hooktrace/web/views/contracts.erb
|
|
71
|
+
- lib/hooktrace/web/views/event_detail.erb
|
|
72
|
+
- lib/hooktrace/web/views/events.erb
|
|
73
|
+
- lib/hooktrace/web/views/layout.erb
|
|
74
|
+
- lib/hooktrace/webhook_processor.rb
|
|
75
|
+
- sig/hooktrace.rbs
|
|
76
|
+
homepage: https://github.com/hooktrace/hooktrace
|
|
77
|
+
licenses:
|
|
78
|
+
- MIT
|
|
79
|
+
metadata:
|
|
80
|
+
rubygems_mfa_required: 'true'
|
|
81
|
+
homepage_uri: https://github.com/hooktrace/hooktrace
|
|
82
|
+
source_code_uri: https://github.com/hooktrace/hooktrace
|
|
83
|
+
changelog_uri: https://github.com/hooktrace/hooktrace/blob/main/CHANGELOG.md
|
|
84
|
+
post_install_message:
|
|
85
|
+
rdoc_options: []
|
|
86
|
+
require_paths:
|
|
87
|
+
- lib
|
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
|
+
requirements:
|
|
90
|
+
- - ">="
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: 3.1.0
|
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
98
|
+
requirements: []
|
|
99
|
+
rubygems_version: 3.3.3
|
|
100
|
+
signing_key:
|
|
101
|
+
specification_version: 4
|
|
102
|
+
summary: Webhook contract validation and schema drift detection engine
|
|
103
|
+
test_files: []
|