wallets 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/.gitignore +36 -0
- data/.rubocop.yml +8 -0
- data/.simplecov +37 -0
- data/AGENTS.md +5 -0
- data/CHANGELOG.md +17 -0
- data/CLAUDE.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +740 -0
- data/Rakefile +30 -0
- data/lib/generators/wallets/install_generator.rb +43 -0
- data/lib/generators/wallets/templates/create_wallets_tables.rb.erb +113 -0
- data/lib/generators/wallets/templates/initializer.rb +87 -0
- data/lib/wallets/callback_context.rb +28 -0
- data/lib/wallets/callbacks.rb +53 -0
- data/lib/wallets/configuration.rb +119 -0
- data/lib/wallets/engine.rb +23 -0
- data/lib/wallets/models/allocation.rb +47 -0
- data/lib/wallets/models/concerns/has_wallets.rb +93 -0
- data/lib/wallets/models/transaction.rb +154 -0
- data/lib/wallets/models/transfer.rb +122 -0
- data/lib/wallets/models/wallet.rb +654 -0
- data/lib/wallets/railtie.rb +7 -0
- data/lib/wallets/version.rb +5 -0
- data/lib/wallets.rb +45 -0
- data/sig/wallets.rbs +3 -0
- data/wallets.webp +0 -0
- metadata +96 -0
data/wallets.webp
ADDED
|
Binary file
|
metadata
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wallets
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- rameerez
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2026-03-18 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rails
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '6.1'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9.0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '6.1'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9.0'
|
|
32
|
+
description: Allow your users to have wallets with money-like balances for value /
|
|
33
|
+
assets holding and transfering. Supports multiple currencies. Useful to add append-only,
|
|
34
|
+
multi-asset wallets to your Rails app with balances, transfers, FIFO allocations,
|
|
35
|
+
row-level locking, and full audit trails. Use it for in-game resources, reward apps,
|
|
36
|
+
marketplace balances, gig-economy earnings, and internal value transfers between
|
|
37
|
+
app users.
|
|
38
|
+
email:
|
|
39
|
+
- rubygems@rameerez.com
|
|
40
|
+
executables: []
|
|
41
|
+
extensions: []
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
files:
|
|
44
|
+
- ".gitignore"
|
|
45
|
+
- ".rubocop.yml"
|
|
46
|
+
- ".simplecov"
|
|
47
|
+
- AGENTS.md
|
|
48
|
+
- CHANGELOG.md
|
|
49
|
+
- CLAUDE.md
|
|
50
|
+
- LICENSE.txt
|
|
51
|
+
- README.md
|
|
52
|
+
- Rakefile
|
|
53
|
+
- lib/generators/wallets/install_generator.rb
|
|
54
|
+
- lib/generators/wallets/templates/create_wallets_tables.rb.erb
|
|
55
|
+
- lib/generators/wallets/templates/initializer.rb
|
|
56
|
+
- lib/wallets.rb
|
|
57
|
+
- lib/wallets/callback_context.rb
|
|
58
|
+
- lib/wallets/callbacks.rb
|
|
59
|
+
- lib/wallets/configuration.rb
|
|
60
|
+
- lib/wallets/engine.rb
|
|
61
|
+
- lib/wallets/models/allocation.rb
|
|
62
|
+
- lib/wallets/models/concerns/has_wallets.rb
|
|
63
|
+
- lib/wallets/models/transaction.rb
|
|
64
|
+
- lib/wallets/models/transfer.rb
|
|
65
|
+
- lib/wallets/models/wallet.rb
|
|
66
|
+
- lib/wallets/railtie.rb
|
|
67
|
+
- lib/wallets/version.rb
|
|
68
|
+
- sig/wallets.rbs
|
|
69
|
+
- wallets.webp
|
|
70
|
+
homepage: https://github.com/rameerez/wallets
|
|
71
|
+
licenses:
|
|
72
|
+
- MIT
|
|
73
|
+
metadata:
|
|
74
|
+
allowed_push_host: https://rubygems.org
|
|
75
|
+
homepage_uri: https://github.com/rameerez/wallets
|
|
76
|
+
source_code_uri: https://github.com/rameerez/wallets/tree/main
|
|
77
|
+
changelog_uri: https://github.com/rameerez/wallets/blob/main/CHANGELOG.md
|
|
78
|
+
rubygems_mfa_required: 'true'
|
|
79
|
+
rdoc_options: []
|
|
80
|
+
require_paths:
|
|
81
|
+
- lib
|
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
|
+
requirements:
|
|
84
|
+
- - ">="
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: 3.1.0
|
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '0'
|
|
92
|
+
requirements: []
|
|
93
|
+
rubygems_version: 3.6.2
|
|
94
|
+
specification_version: 4
|
|
95
|
+
summary: Add user wallets with money-like balances to your Rails app.
|
|
96
|
+
test_files: []
|