flutterwave 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 273fe5aaf4f8f929e7f3579a2e3862d016704027
4
- data.tar.gz: 7658f624f764bd070c708b85e1cabf983298a6bd
3
+ metadata.gz: 3172572a49fdb2abd02410011a00ad46969b4582
4
+ data.tar.gz: 8b13520766fd3d620c099b526ed4d35423ab7122
5
5
  SHA512:
6
- metadata.gz: 41d08641f6303ed74ec7a8c1908df3b972a01e0105cc5a6afd3fe7c980d83978fbc4dd642627b1afb1216350af8a2494e568b477717faab0e262da3f07f86f6e
7
- data.tar.gz: 9c544fd6958d10121fcbb90ebea9e1babd2a56099dfba44198cb96890f89a5957a5fda44061f6f4e6e1882c0cdc7a346c3a17bd6a8b9a8b2c527f741b6ea2869
6
+ metadata.gz: 98eea64e4fe5c9942c214ecc8c02afa49d26d0060bb85b82c353e124f4838bf2e74f7cb95beccb46b39d97d05b3edb67fa938f33c3308e8254f2ad349d275844
7
+ data.tar.gz: 80b3030ad9a7ad30e6deadd231ec11a82df354cd7c890051ae7b4ebcfc42ffb4d35a17720b62e97be024894f0483b357104eb0d0d5bcc62b2e292340cfd9b6fc
data/README.md CHANGED
@@ -6,6 +6,13 @@ Ruby SDK for convenient access to the Flutterwave API from Ruby applications. Fu
6
6
 
7
7
  gem install flutterwave
8
8
 
9
+ By default, the base API URL used is the test/staging URL - `http://staging1flutterwave.co:8080`
10
+ To change to production, set the value of the `FLUTTERWAVE_BASE_URL` environment variable to `https://prod1flutterwave.co:8181`
11
+
12
+
13
+ Here's a guide on cross-platform ways to set environment variables - https://www.twilio.com/blog/2015/02/managing-development-environment-variables-across-multiple-ruby-applications.html
14
+
15
+
9
16
  ## Usage
10
17
 
11
18
  The library needs to be configured with your merchant key and API key. These are accessible from the Settings panel at https://www.flutterwavedev.com/
@@ -1,7 +1,8 @@
1
1
  module Flutterwave
2
2
  module Utils
3
3
  module Constants
4
- BASE_URL = 'http://staging1flutterwave.co:8080'.freeze
4
+ BASE_URL = ENV['FLUTTERWAVE_BASE_URL'] ||
5
+ 'http://staging1flutterwave.co:8080'.freeze
5
6
  KEY = 'tk_0f86a4ef436f76faab1d3'.freeze
6
7
 
7
8
  BANK = {
@@ -1,3 +1,3 @@
1
1
  module Flutterwave
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flutterwave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobi Oduah