bitpesa 0.0.1 → 0.0.2
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 +4 -4
- data/lib/bitpesa/client.rb +3 -2
- data/lib/bitpesa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 704fa8f2bbaedfaf7c1385d527bd44563e702ad2
|
|
4
|
+
data.tar.gz: 66c042b464dac3d099d4c4a5481de40cb33faa6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7bd88a5833f2a590df9632e990e2757fcc79f27b574597ab5ab7ac5c07f9bbb3b209bd0291d8db97c22ae821c31e0858f04a0b4038bcc4968b7ad1418a2193e
|
|
7
|
+
data.tar.gz: dc5d5e1cbeb1502b517a073d576aa1584af3057830bf99567519e1af665a033b4f742cc312f0bb6e674098d83429bbd45ded50c2687c8bd9aab9b5b88fc10657
|
data/lib/bitpesa/client.rb
CHANGED
|
@@ -12,10 +12,11 @@ module BitPesa
|
|
|
12
12
|
@secret = "API secret"
|
|
13
13
|
@base_url = "/v1"
|
|
14
14
|
@timeout = 5
|
|
15
|
+
@debug = false
|
|
15
16
|
|
|
16
17
|
class << self
|
|
17
18
|
|
|
18
|
-
attr_accessor :host, :key, :secret, :timeout
|
|
19
|
+
attr_accessor :host, :key, :secret, :timeout, :debug
|
|
19
20
|
attr_reader :base_url
|
|
20
21
|
|
|
21
22
|
def get(endpoint, payload=nil)
|
|
@@ -83,7 +84,7 @@ module BitPesa
|
|
|
83
84
|
connection.open_timeout = timeout
|
|
84
85
|
connection.read_timeout = timeout
|
|
85
86
|
connection.use_ssl = true
|
|
86
|
-
connection.set_debug_output
|
|
87
|
+
connection.set_debug_output($stderr) if debug
|
|
87
88
|
connection
|
|
88
89
|
end
|
|
89
90
|
|
data/lib/bitpesa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bitpesa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bitbond
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: BitPesa is a payment provider. See https://bitpesa.com for details.
|
|
14
14
|
email: developers@bitbond.com
|