bygpay 0.2.4 → 0.2.5

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
- SHA1:
3
- metadata.gz: 476dae06f05d44825808c2615b0d5246e14d1cef
4
- data.tar.gz: 23a341f51de1fd9fb0cd5afe258e46809289d2fe
2
+ SHA256:
3
+ metadata.gz: 675d72ab96a505d67977afcfc2df9754653aeff11349b4f437fb4e53546e05ad
4
+ data.tar.gz: fc9c7489fbed34cc3218f2728be6973082131818884ecccd4c71773b411d242d
5
5
  SHA512:
6
- metadata.gz: cf8222521ad9896c74e0af9e904d7f73f3751fec4a96907539e94f0d2b6778b7757135de49fcc57840368d04dd08d60505f70fde5e4298c4bd7cbfbb456e2a69
7
- data.tar.gz: 8c1d417f28e03680b94c93c11c49f247eb837f41d5c3f320eb92dc656ded3595a5c68aa1775857303c167453157e31eaf1575acc3d9b86431b0a0f23f95ebccc
6
+ metadata.gz: 43c6d967557eb04665f7a905ba20ef3a5a001274cb4c24c6a3e8db2bd80ac0ef8d7e5391e9a9819b92396da228c5d699787e46a62b2a173949ed8062da83a7dd
7
+ data.tar.gz: bcdbd1fec5f6175a6d72f8f4e9b6b1d49cf7e630f79e494e3c18fb0d2a6fe34b0ddd598ee284a96a5d52131178d511d7735d1bf5a3d1f2e7e6c5cfb54ef007cb
data/.travis.yml CHANGED
@@ -1,14 +1,21 @@
1
- addons:
2
- code_climate:
3
- repo_token: ea1ac3f76e7689a49786a2b7d8fa8ace6ef3f87f7c00825fed66ca6cc22dc4be
4
- after_success:
5
- - bundle exec codeclimate-test-reporter
6
- sudo: false
1
+ env:
2
+ global:
3
+ - CC_TEST_REPORTER_ID=9a87b9735c0709a65cb1353b8865776cf2dfbc8e2963a34a0ec583b1438afb7c
4
+ before_script:
5
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
6
+ - chmod +x ./cc-test-reporter
7
+ - ./cc-test-reporter before-build
8
+ script:
9
+ - bundle exec rspec
7
10
  language: ruby
8
11
  rvm:
12
+ - 2.5.0
13
+ - 2.4.3
9
14
  - 2.4.0
10
15
  - 2.3.0
11
16
  - 2.2.0
12
- - 2.1.0
17
+ - 2.1
13
18
  - 2.0.0
14
- before_install: gem install bundler -v 1.14.6
19
+ before_install: gem install bundler --pre
20
+ after_script:
21
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Gem Version](https://badge.fury.io/rb/bygpay.svg)](https://badge.fury.io/rb/bygpay) [![Code Climate](https://codeclimate.com/github/nukturnal/bygpay/badges/gpa.svg)](https://codeclimate.com/github/nukturnal/bygpay) [![Test Coverage](https://codeclimate.com/github/nukturnal/bygpay/badges/coverage.svg)](https://codeclimate.com/github/nukturnal/bygpay/coverage) [![Issue Count](https://codeclimate.com/github/nukturnal/bygpay/badges/issue_count.svg)](https://codeclimate.com/github/nukturnal/bygpay) [![codebeat badge](https://codebeat.co/badges/8db86406-18f8-4c2d-bacf-58ac1c700c0a)](https://codebeat.co/projects/github-com-nukturnal-bygpay-master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/7425ac54e6484723a5482a92fc7f35ef)](https://www.codacy.com/app/nukturnal/bygpay?utm_source=github.com&utm_medium=referral&utm_content=nukturnal/bygpay&utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.org/nukturnal/bygpay_ruby.svg?branch=master)](https://travis-ci.org/nukturnal/bygpay_ruby)
1
+ [![Gem Version](https://badge.fury.io/rb/bygpay.svg)](https://badge.fury.io/rb/bygpay) [![Code Climate](https://codeclimate.com/github/nukturnal/bygpay_ruby/badges/gpa.svg)](https://codeclimate.com/github/nukturnal/bygpay_ruby) [![Test Coverage](https://codeclimate.com/github/nukturnal/bygpay_ruby/badges/coverage.svg)](https://codeclimate.com/github/nukturnal/bygpay_ruby/coverage) [![Issue Count](https://codeclimate.com/github/nukturnal/bygpay_ruby/badges/issue_count.svg)](https://codeclimate.com/github/nukturnal/bygpay_ruby) [![codebeat badge](https://codebeat.co/badges/f32a71e8-3b38-4f6f-9018-07fa503e487e)](https://codebeat.co/projects/github-com-nukturnal-bygpay_ruby-master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/7425ac54e6484723a5482a92fc7f35ef)](https://www.codacy.com/app/nukturnal/bygpay_ruby?utm_source=github.com&utm_medium=referral&utm_content=nukturnal/bygpay_ruby&utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.org/nukturnal/bygpay_ruby.svg?branch=master)](https://travis-ci.org/nukturnal/bygpay_ruby)
2
2
 
3
3
  # Bygpay Ruby SDK
4
4
 
@@ -35,7 +35,7 @@ Bygpay.configure do |config|
35
35
  config.deposit_card_path = '/deposits/card'
36
36
  config.deposit_status_overide_path = '/deposits/status-overide'
37
37
  config.deposit_status_path = '/deposits'
38
-
38
+
39
39
  config.withdraw_mobile_path = '/withdrawals/mobile'
40
40
  config.withdraw_status_overide_path = '/withdrawals/status-overide'
41
41
  config.withdraw_status_path = '/withdrawals'
@@ -54,15 +54,15 @@ Bygpay gateway uses four types of status messages to mark transactions.
54
54
 
55
55
  #### Mobile Money
56
56
 
57
- Currently SDK supports MTN, AIRTEL, TIGO, VODAFONE, you may refer to your Bygpay Gateway documentations for more provider options.
57
+ Currently SDK supports MTN, AIRTEL, TIGO, VODAFONE, you may refer to your Bygpay Gateway documentations for more provider options.
58
58
 
59
- Mobile Money transactions are not onetime requests because of their inherent nature, need to rely on checking the transaction status or callback POST from Bygpay Gateway to verify the status of the transaction.
59
+ Mobile Money transactions are not onetime requests because of their inherent nature, need to rely on checking the transaction status or callback POST from Bygpay Gateway to verify the status of the transaction.
60
60
 
61
61
  ```ruby
62
62
  # Making a Mobile Money Deposit Request
63
63
  deposit = Bygpay::Deposit::Mobile.new
64
64
  mobile_payload = {
65
- walletno: '0244124550',
65
+ walletno: '0244124550',
66
66
  provider: 'MTN',
67
67
  currency: 'USD', # optional
68
68
  token: '23571', # Optional (Only required for Vodafone Payments)
@@ -85,14 +85,14 @@ Supports VISA, MasterCard and any other cards based on the processors available
85
85
 
86
86
  ```ruby
87
87
  # Making a Mobile Money Deposit Request
88
- # Please note that some of the optional fields might be required base on
88
+ # Please note that some of the optional fields might be required base on
89
89
  # which processors the BygPay Gateway is using.
90
90
  deposit = Bygpay::Deposit::Card.new
91
- card_data = {
92
- card_number: '4111111111111111',
93
- amount: 0.10,
94
- expiry_month: 6,
95
- expiry_year: 2017,
91
+ card_data = {
92
+ card_number: '4111111111111111',
93
+ amount: 0.10,
94
+ expiry_month: 6,
95
+ expiry_year: 2017,
96
96
  cvv: 123,
97
97
  country: 'GH', # Optional country ISO code
98
98
  currency: 'USD', # Optional currency ISO code
@@ -175,4 +175,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/nuktur
175
175
  ## License
176
176
 
177
177
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
178
-
data/bygpay.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'bygpay/version'
@@ -21,11 +22,11 @@ Gem::Specification.new do |spec|
21
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
23
  spec.require_paths = ["lib"]
23
24
 
24
- spec.add_development_dependency "bundler", "~> 1.14"
25
- spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "bundler"
26
+ spec.add_development_dependency "rake"
26
27
  spec.add_development_dependency "rspec", "~> 3.0"
27
28
  spec.add_development_dependency "simplecov"
28
29
  spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
29
- spec.add_dependency "http", "~> 2.0"
30
- spec.add_dependency "hashie", "~> 3.5.5"
30
+ spec.add_dependency "http"
31
+ spec.add_dependency "hashie"
31
32
  end
@@ -4,7 +4,7 @@ module Bygpay
4
4
  class BygResponse
5
5
  SUCCESS = 'success'
6
6
  FAILED = 'fail'
7
- PENDING = ['accepted','pending']
7
+ PENDING = %w(accepted pending)
8
8
 
9
9
  attr_accessor :data
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Bygpay
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bygpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alfred Rowe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -84,30 +84,30 @@ dependencies:
84
84
  name: http
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '2.0'
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '2.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hashie
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 3.5.5
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 3.5.5
110
+ version: '0'
111
111
  description: Ruby Wrapper to process payments via any installed Bygpay Payment Gateway
112
112
  email:
113
113
  - alfred@encodevlabs.com
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.6.13
160
+ rubygems_version: 2.7.7
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Bygpay Payment Gateway Ruby SDK