paystack-ruby 1.0.0 → 1.0.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: 20dd26b874ff452a577606c377865c231718eed6eb4b79fc7aa0baae84756384
4
- data.tar.gz: d9fbffe98368c82182dbe69dcd1219ecf48b7767346688edb06e03477a852cd2
3
+ metadata.gz: e5ad921b8b1711073c8f0d9f861e482f8941d4b22b1f3752140c2ad66c3ab459
4
+ data.tar.gz: 694942cce63473338111a64f957f2d7c7a146402a2ff0329e4a4261ab87cd53d
5
5
  SHA512:
6
- metadata.gz: e486673d6965ce49c39a76f8f04d3900b436ab14a64856909be06580963dfb619b7a036ea1efcd5b799ec134aec7551006a4fe6ccff3a751995f4e8f8393871d
7
- data.tar.gz: f3c628cc339cd55e06e90423ab4d00fcde5c05817e56e7aa92e50b30f5699a898b7f9328d3ed8f608674e9d100f9b6640328438b5d2356859b2bb16dfa3dcc71
6
+ metadata.gz: 9194d8ce604ae3ec89b98f9fbe75d349eab1c23e367e5a5446c4c6db9068f440107a9a8c7115202226af8b68005b8ea95163f2fa07b15caf0183d6fb1236a042
7
+ data.tar.gz: 0423c1558e96abd92f61ea67a951a14ea1fc64d3c50b21773d91da98853dcdc2507374b8d4d66bc05e2bc3ffda8a88c29c84e8def74aaf09c7b24de85429ea07
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.1] - 2026-07-14
4
+
5
+ - Mask API keys in `inspect`/`to_s` output on `Client`, `BaseResource`, and `Transport`
6
+
3
7
  ## [0.1.0] - 2026-06-16
4
8
 
5
9
  - Initial release
@@ -9,5 +9,13 @@ module Paystack
9
9
  instance.instance_variable_set(:@transport, transport)
10
10
  instance
11
11
  end
12
+
13
+ def inspect
14
+ @transport.inspect
15
+ end
16
+
17
+ def to_s
18
+ @transport.to_s
19
+ end
12
20
  end
13
21
  end
@@ -142,5 +142,13 @@ module Paystack
142
142
  @virtual_terminal ||= Resources::VirtualTerminal.new(@transport)
143
143
  end
144
144
 
145
+
146
+ def inspect
147
+ @transport.inspect
148
+ end
149
+
150
+ def to_s
151
+ @transport.to_s
152
+ end
145
153
  end
146
154
  end
@@ -60,5 +60,23 @@ module Paystack
60
60
  read_timeout: 30
61
61
  }
62
62
  end
63
+
64
+ def masked_api_key
65
+ visible_prefix = 8
66
+ visible_suffix = 4
67
+ return "[key too short to mask]" if @api_key.nil? || @api_key.length <= visible_prefix + visible_suffix
68
+
69
+ "#{@api_key[0, visible_prefix]}#{"*" * 8}#{@api_key[-visible_suffix, visible_suffix]}"
70
+ end
71
+
72
+ public
73
+
74
+ def inspect
75
+ "#<#{self.class.name} api_key=#{masked_api_key.inspect}>"
76
+ end
77
+
78
+ def to_s
79
+ inspect
80
+ end
63
81
  end
64
82
  end
@@ -2,5 +2,5 @@
2
2
  # Autogenerated — do not edit manually
3
3
 
4
4
  module Paystack
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paystack-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paystack
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 4.0.10
107
+ rubygems_version: 4.0.16
108
108
  specification_version: 4
109
109
  summary: Ruby SDK for the Paystack API
110
110
  test_files: []