paytree 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10a40048e820db73f15da4bdc6511d33883870c4dd31fa6ed97fdffab5078171
4
- data.tar.gz: 6325d61fc365dc3a7264f3564af03aead8da63aaec305f3604b58dba20d0094a
3
+ metadata.gz: 03f7bf934f81e5f84019e8e2a20026e49db6f363433e7c00ce5b6d6ddbf6d177
4
+ data.tar.gz: 6698c7711565529fcd2397120d40fad539e2df905832549f06a8b565f0576a85
5
5
  SHA512:
6
- metadata.gz: 2d953e2487d35dbcd709d174fbf2f03c1199a9cefbdfe913d0209f093840a16ac3ae8ba9d3a4ef401f2480657c9cb1858a400ae08db9494807e1420a88939cdc
7
- data.tar.gz: a50c13a82b78bfd06726ad4b8acd1759e0e196a0eb7e28b4fbc618683f3dde4dae0142ec848237992d23ba8532ff1ffaa3f65d9662e39ef95fb5c01a97afa140
6
+ metadata.gz: 3c50a67fe8d0d6b65a6e7268c010097a8c191b991c6bcc5f20ad13cbd227c0621e2fe658d1aec1cb646d1c1e6a95439165b618bf56ed8f6811f37cdfb56c0f5f
7
+ data.tar.gz: b4379981cb0ba478550d60de21a74948ca5b7d7ae5d22210cd1cecf6a349a9bfa3bef32fa574d43483bb9bb1b770e432a621315522ac0eb798ef280fe88c9712
data/README.md CHANGED
@@ -1,6 +1,16 @@
1
+ <p align="center">
2
+ <img src="https://badge.fury.io/rb/paytree.svg" />
3
+ <img src="https://img.shields.io/badge/license-MIT-green.svg" />
4
+ <img src="https://img.shields.io/badge/ruby-3.2+-red" />
5
+ <a href="https://github.com/mundanecodes/paytree/actions">
6
+ <img src="https://github.com/mundanecodes/paytree/actions/workflows/ci.yml/badge.svg" />
7
+ </a>
8
+ </p>
9
+
1
10
  # Paytree
2
11
 
3
- A simple, highly opinionated Rails-optional Ruby gem for mobile money integrations. Currently supports Kenya's M-Pesa via the Daraja API with plans for additional providers.
12
+ A simple, highly opinionated Rails-optional Ruby gem for mobile money integrations.
13
+ Currently supports Kenya's M-Pesa via the Daraja API with plans for additional providers.
4
14
 
5
15
  ## Features
6
16
 
@@ -268,10 +278,10 @@ unless response.success?
268
278
  puts response.code # "404.001.03" (if available)
269
279
  puts response.data # {
270
280
  # "requestId" => "",
271
- # "errorCode" => "404.001.03",
281
+ # "errorCode" => "404.001.03",
272
282
  # "errorMessage" => "Invalid Access Token"
273
283
  # }
274
-
284
+
275
285
  # Check if error is retryable (based on configuration)
276
286
  if response.retryable?
277
287
  puts "This error can be retried"
@@ -1,3 +1,3 @@
1
1
  module Paytree
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/paytree-0.2.0.gem ADDED
Binary file
data/paytree.gemspec CHANGED
@@ -6,8 +6,10 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Charles Chuck"]
7
7
  spec.email = ["chalcchuck@gmail.com"]
8
8
 
9
- spec.summary = "Rails-optional payments abstraction for M-Pesa (Daraja) and more."
10
- spec.description = "Clean, adapter-based Ruby DSL for mobile money integrations like M-Pesa via Daraja, with future provider support (Tingg, Airtel, Cellulant)."
9
+ spec.summary = "A Ruby wrapper for the Mpesa API in Kenya."
10
+ spec.description = <<~DESC
11
+ Paytree is a lightweight Ruby wrapper for the full Mpesa API suite in Kenya - including B2C, C2B, STK Push and more. It supports certificate encryption, clean facades, and a pluggable adapter system (e.g. Daraja, Airtel..). Built for Rails and pure Ruby apps.
12
+ DESC
11
13
  spec.homepage = "https://github.com/mundanecodes/paytree"
12
14
  spec.license = "MIT"
13
15
  spec.required_ruby_version = ">= 3.2.0"
@@ -20,6 +22,8 @@ Gem::Specification.new do |spec|
20
22
  spec.metadata["wiki_uri"] = "https://github.com/mundanecodes/paytree/wiki"
21
23
  spec.metadata["mailing_list_uri"] = "https://github.com/mundanecodes/paytree/discussions"
22
24
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
25
+ spec.metadata["keywords"] = "mpesa,mpesa-api,b2c,stk-push,mobile-money,payments,daraja"
26
+ spec.metadata["rubygems_mfa_required"] = "true"
23
27
 
24
28
  spec.files = Dir.chdir(__dir__) do
25
29
  `git ls-files -z`.split("\x0").reject do |f|
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paytree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Chuck
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -80,8 +79,12 @@ dependencies:
80
79
  - - ">="
81
80
  - !ruby/object:Gem::Version
82
81
  version: '0'
83
- description: Clean, adapter-based Ruby DSL for mobile money integrations like M-Pesa
84
- via Daraja, with future provider support (Tingg, Airtel, Cellulant).
82
+ description: 'Paytree is a lightweight Ruby wrapper for the full Mpesa API suite in
83
+ Kenya - including B2C, C2B, STK Push and more. It supports certificate encryption,
84
+ clean facades, and a pluggable adapter system (e.g. Daraja, Airtel..). Built for
85
+ Rails and pure Ruby apps.
86
+
87
+ '
85
88
  email:
86
89
  - chalcchuck@gmail.com
87
90
  executables: []
@@ -120,6 +123,7 @@ files:
120
123
  - lib/paytree/response.rb
121
124
  - lib/paytree/utils/error_handling.rb
122
125
  - lib/paytree/version.rb
126
+ - paytree-0.2.0.gem
123
127
  - paytree.gemspec
124
128
  - sig/paytree.rbs
125
129
  homepage: https://github.com/mundanecodes/paytree
@@ -134,7 +138,8 @@ metadata:
134
138
  wiki_uri: https://github.com/mundanecodes/paytree/wiki
135
139
  mailing_list_uri: https://github.com/mundanecodes/paytree/discussions
136
140
  allowed_push_host: https://rubygems.org
137
- post_install_message:
141
+ keywords: mpesa,mpesa-api,b2c,stk-push,mobile-money,payments,daraja
142
+ rubygems_mfa_required: 'true'
138
143
  rdoc_options: []
139
144
  require_paths:
140
145
  - lib
@@ -149,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
154
  - !ruby/object:Gem::Version
150
155
  version: '0'
151
156
  requirements: []
152
- rubygems_version: 3.5.3
153
- signing_key:
157
+ rubygems_version: 3.6.9
154
158
  specification_version: 4
155
- summary: Rails-optional payments abstraction for M-Pesa (Daraja) and more.
159
+ summary: A Ruby wrapper for the Mpesa API in Kenya.
156
160
  test_files: []