bygpay 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 7a059301c0d3e744230e6498b1f7df5058c88aaf
4
- data.tar.gz: d082d4051373a2d33f24aaec0f8a6bd2399a256c
3
+ metadata.gz: d97997559b9bd855bd554bb46231a17be6b14a76
4
+ data.tar.gz: a8cdcb4d21790731a3ca05c57f15941e26b330dc
5
5
  SHA512:
6
- metadata.gz: af82337c4032f15986d51b443222e793d3075e6f8ca7f21674231f037667ff2685f12c13aea6b350ac856ca91d8e7ee3281ee414ffdca1182504469c1da1a97f
7
- data.tar.gz: 136c3f524bbe10a71b320508606b0de8be236df99ad18dc6200f6d544444b8bcc1d1492c1bcdc7159b6f252fea70752eacb3b775286be11b3bf00d372e12ca71
6
+ metadata.gz: 1ba24a2f45bce7c47a873a71795e1ea03cab4900eed5c2f5981f3e8a381767f36115023ad5736f10618c4571644249f8b3da037ffc4711b8e11faacb1de425c1
7
+ data.tar.gz: 62db8eef7d67f30f767b0e3289ae276719c5bfd6b12d147382622aba5c3d7fd40a5a1d23161c2e3e2908a62126bb9c50635c66c84fe276161cdc2d62d248d9b8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [![Code Climate](https://codeclimate.com/github/nukturnal/bygpay/badges/gpa.svg)](https://codeclimate.com/github/nukturnal/bygpay)
1
+ [![Code Climate](https://codeclimate.com/github/nukturnal/bygpay/badges/gpa.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)
2
2
 
3
- # Bygpay
3
+ # Bygpay Ruby SDK
4
4
 
5
5
  Ruby wrapper around Bygpay Payment Gateway. Bygpay is a self hosted payment processing gateway which gives merchants / business better flexiblity and control when it comes to payment processing.
6
6
 
@@ -129,7 +129,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
129
129
 
130
130
  ## Contributing
131
131
 
132
- Bug reports and pull requests are welcome on GitHub at https://github.com/nukturnal/bygpay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
132
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nukturnal/bygpay_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
133
133
 
134
134
 
135
135
  ## License
data/bygpay.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = "Bygpay Payment Gateway Ruby SDK"
13
13
  spec.description = "Ruby Wrapper to process payments via any installed Bygpay Payment Gateway"
14
- spec.homepage = "https://github.com/nukturnal/bygpay"
14
+ spec.homepage = "https://github.com/nukturnal/bygpay_ruby"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
data/lib/bygpay/utils.rb CHANGED
@@ -4,7 +4,8 @@ module Bygpay
4
4
  module Utils
5
5
  extend self
6
6
 
7
- attr_accessor :status, :response_text, :transaction_id, :uuid, :result, :response
7
+ attr_accessor :status, :response_text, :transaction_id,
8
+ :uuid, :result, :response
8
9
 
9
10
  # Mobile Deposit transactions endpoint
10
11
  def mobile_deposit_endpoint
@@ -58,13 +59,12 @@ module Bygpay
58
59
  # }
59
60
  # }
60
61
  def parse_response(body)
61
- result = JSON.parse(body)
62
- @result = result
63
- @transaction_id = result['data']['trnx_code']
64
- @response_text = result['message']
65
- @uuid = result['data']['uuid']
66
- @status = result['data']['status']
67
- @response = result['status'] == 'success'
62
+ @result = JSON.parse(body)
63
+ @transaction_id = @result['data']['trnx_code']
64
+ @response_text = @result['message']
65
+ @uuid = @result['data']['uuid']
66
+ @status = @result['data']['status']
67
+ @response = @result['status'] == 'success'
68
68
  end
69
69
 
70
70
  # global Bygpay connect
@@ -1,3 +1,3 @@
1
1
  module Bygpay
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bygpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-06-14 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,7 +93,7 @@ files:
93
93
  - lib/bygpay/version.rb
94
94
  - lib/bygpay/withdraw/mobile.rb
95
95
  - lib/bygpay/withdrawals.rb
96
- homepage: https://github.com/nukturnal/bygpay
96
+ homepage: https://github.com/nukturnal/bygpay_ruby
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}