ruby-x402 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/CHANGELOG.md +12 -0
- data/README.md +102 -0
- data/docs/rails.md +60 -0
- data/lib/generators/x402/install_generator.rb +21 -0
- data/lib/generators/x402/templates/x402.rb +31 -0
- data/lib/x402/config.rb +120 -0
- data/lib/x402/encoding.rb +18 -0
- data/lib/x402/errors.rb +22 -0
- data/lib/x402/facilitator/engine.rb +24 -0
- data/lib/x402/facilitator/requests_controller.rb +68 -0
- data/lib/x402/facilitator_client.rb +155 -0
- data/lib/x402/rack/require_payment.rb +113 -0
- data/lib/x402/rails/controller_concern.rb +27 -0
- data/lib/x402/rails/settle_job.rb +30 -0
- data/lib/x402/railtie.rb +35 -0
- data/lib/x402/server/requirements.rb +74 -0
- data/lib/x402/types/networks.rb +19 -0
- data/lib/x402/types/payment_payload.rb +94 -0
- data/lib/x402/types/payment_requirements.rb +120 -0
- data/lib/x402/types/responses.rb +153 -0
- data/lib/x402/version.rb +5 -0
- data/lib/x402.rb +23 -0
- metadata +74 -0
metadata
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ruby-x402
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Vernus
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Server-side Ruby implementation of the x402 protocol providing Rack middleware
|
|
14
|
+
to require payments and a facilitator client for verify/settle flows. Supports the
|
|
15
|
+
'exact' scheme across EVM and Solana networks.
|
|
16
|
+
email:
|
|
17
|
+
- support@vernus.one
|
|
18
|
+
executables: []
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- CHANGELOG.md
|
|
23
|
+
- README.md
|
|
24
|
+
- docs/rails.md
|
|
25
|
+
- lib/generators/x402/install_generator.rb
|
|
26
|
+
- lib/generators/x402/templates/x402.rb
|
|
27
|
+
- lib/x402.rb
|
|
28
|
+
- lib/x402/config.rb
|
|
29
|
+
- lib/x402/encoding.rb
|
|
30
|
+
- lib/x402/errors.rb
|
|
31
|
+
- lib/x402/facilitator/engine.rb
|
|
32
|
+
- lib/x402/facilitator/requests_controller.rb
|
|
33
|
+
- lib/x402/facilitator_client.rb
|
|
34
|
+
- lib/x402/rack/require_payment.rb
|
|
35
|
+
- lib/x402/rails/controller_concern.rb
|
|
36
|
+
- lib/x402/rails/settle_job.rb
|
|
37
|
+
- lib/x402/railtie.rb
|
|
38
|
+
- lib/x402/server/requirements.rb
|
|
39
|
+
- lib/x402/types/networks.rb
|
|
40
|
+
- lib/x402/types/payment_payload.rb
|
|
41
|
+
- lib/x402/types/payment_requirements.rb
|
|
42
|
+
- lib/x402/types/responses.rb
|
|
43
|
+
- lib/x402/version.rb
|
|
44
|
+
homepage: https://github.com/coinbase/x402
|
|
45
|
+
licenses:
|
|
46
|
+
- Apache-2.0
|
|
47
|
+
metadata:
|
|
48
|
+
source_code_uri: https://github.com/vernusone/ruby-x402
|
|
49
|
+
homepage_uri: https://github.com/coinbase/x402
|
|
50
|
+
changelog_uri: https://github.com/vernusone/ruby-x402/blob/main/CHANGELOG.md
|
|
51
|
+
documentation_uri: https://github.com/vernusone/ruby-x402#readme
|
|
52
|
+
issue_tracker_uri: https://github.com/vernusone/ruby-x402/issues
|
|
53
|
+
rails: optional
|
|
54
|
+
post_install_message:
|
|
55
|
+
rdoc_options: []
|
|
56
|
+
require_paths:
|
|
57
|
+
- lib
|
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '3.1'
|
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0'
|
|
68
|
+
requirements: []
|
|
69
|
+
rubygems_version: 3.5.6
|
|
70
|
+
signing_key:
|
|
71
|
+
specification_version: 4
|
|
72
|
+
summary: Rack middleware and facilitator client for the x402 payments protocol (EVM
|
|
73
|
+
+ Solana).
|
|
74
|
+
test_files: []
|