bitpesa 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b61dc56d2e2bf5d8dde923b877478868e4bc71c
4
- data.tar.gz: 165c230d90658805e2c997d30cb43dad7352bd2e
3
+ metadata.gz: 704fa8f2bbaedfaf7c1385d527bd44563e702ad2
4
+ data.tar.gz: 66c042b464dac3d099d4c4a5481de40cb33faa6d
5
5
  SHA512:
6
- metadata.gz: 809a31b9b1c4021cafab72c7010f5a48463f7bba82016d9a12624a5c34a93678635c3df874bb86f406c5f9303518c49c815911ae06a69d4f43f8583792d13fab
7
- data.tar.gz: aa753b95469e580fe6dc77ccd61a1f6a70a1b5f12e31d3391b0e81277f0537731ab1b137761d274ecf0d63490936a0942b251754969ae993968e0f494c2f47f0
6
+ metadata.gz: a7bd88a5833f2a590df9632e990e2757fcc79f27b574597ab5ab7ac5c07f9bbb3b209bd0291d8db97c22ae821c31e0858f04a0b4038bcc4968b7ad1418a2193e
7
+ data.tar.gz: dc5d5e1cbeb1502b517a073d576aa1584af3057830bf99567519e1af665a033b4f742cc312f0bb6e674098d83429bbd45ded50c2687c8bd9aab9b5b88fc10657
@@ -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 $stderr
87
+ connection.set_debug_output($stderr) if debug
87
88
  connection
88
89
  end
89
90
 
@@ -1,3 +1,3 @@
1
1
  module BitPesa
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-02-02 00:00:00.000000000 Z
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