vpos 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 +7 -0
- data/.github/workflows/ruby.yml +39 -0
- data/.gitignore +25 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +43 -0
- data/LICENSE.txt +21 -0
- data/README.md +124 -0
- data/Rakefile +2 -0
- data/azure-pipelines.yml +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/vpos.rb +102 -0
- data/lib/vpos/version.rb +3 -0
- data/tags +20 -0
- data/vpos.gemspec +29 -0
- metadata +114 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ff2cd9a72fe1b6d4f15620e7301b5872f535be5892209bdd4eb55cdc66c0e9aa
|
4
|
+
data.tar.gz: 7ddfa1be6078bf1411d6d8805bdff893aa8c34c93d904616461796aee4d6efb2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f8a2b905f9ae393f69a8697f6de8d9de09f11b24ee9eee47f7e1e990e17940a4247a7688f7a1a0af70acd0bf14a05e60d3a5f29045bfed5782a3cc221e8d2a40
|
7
|
+
data.tar.gz: 7bb873d2b2644f4f0f0074ea98619ba268ebd9120f4807cabb80f86c9e62b4bc18b12985f14c69fff1a4b72dc418782c957f3214aaa70aa1c5a134b1c0fa3ac6
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ main ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ main ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
26
|
+
# uses: ruby/setup-ruby@v1
|
27
|
+
uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
|
28
|
+
with:
|
29
|
+
ruby-version: 2.6
|
30
|
+
- name: Install dependencies
|
31
|
+
run: bundle install
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
34
|
+
env:
|
35
|
+
MERCHANT_VPOS_TOKEN: ${{ secrets.MERCHANT_VPOS_TOKEN }}
|
36
|
+
GPO_POS_ID: ${{ secrets.GPO_POS_ID }}
|
37
|
+
GPO_SUPERVISOR_CARD: ${{ secrets.GPO_SUPERVISOR_CARD }}
|
38
|
+
VPOS_PAYMENT_CALLBACK_URL: ${{ secrets.VPOS_PAYMENT_CALLBACK_URL }}
|
39
|
+
VPOS_REFUND_CALLBACK_URL: ${{ secrets.VPOS_REFUND_CALLBACK_URL }}
|
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
*.sassc
|
4
|
+
.bundle
|
5
|
+
.config
|
6
|
+
.yardoc
|
7
|
+
.rvmrc
|
8
|
+
.rspec
|
9
|
+
.sass-cache
|
10
|
+
.DS_Store
|
11
|
+
Gemfile.lock # gem projects only!
|
12
|
+
InstalledFiles
|
13
|
+
_yardoc
|
14
|
+
doc/
|
15
|
+
coverage
|
16
|
+
lib/bundler/man
|
17
|
+
capybara-*.html
|
18
|
+
pkg
|
19
|
+
rdoc
|
20
|
+
spec/reports
|
21
|
+
spec/tmp
|
22
|
+
test/tmp
|
23
|
+
test/version_tmp
|
24
|
+
tmp
|
25
|
+
example.rb
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
vpos (0.1.2)
|
5
|
+
httparty (~> 0.18.1)
|
6
|
+
rspec (~> 3.9.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.4.4)
|
12
|
+
httparty (0.18.1)
|
13
|
+
mime-types (~> 3.0)
|
14
|
+
multi_xml (>= 0.5.2)
|
15
|
+
mime-types (3.3.1)
|
16
|
+
mime-types-data (~> 3.2015)
|
17
|
+
mime-types-data (3.2020.0512)
|
18
|
+
multi_xml (0.6.0)
|
19
|
+
rake (10.5.0)
|
20
|
+
rspec (3.9.0)
|
21
|
+
rspec-core (~> 3.9.0)
|
22
|
+
rspec-expectations (~> 3.9.0)
|
23
|
+
rspec-mocks (~> 3.9.0)
|
24
|
+
rspec-core (3.9.3)
|
25
|
+
rspec-support (~> 3.9.3)
|
26
|
+
rspec-expectations (3.9.2)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.9.0)
|
29
|
+
rspec-mocks (3.9.1)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.9.0)
|
32
|
+
rspec-support (3.9.3)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
bundler (~> 2.1.4)
|
39
|
+
rake (~> 10.0)
|
40
|
+
vpos!
|
41
|
+
|
42
|
+
BUNDLED WITH
|
43
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Sergio Maziano
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
# vPOS Ruby
|
2
|
+
|
3
|
+

|
4
|
+
[](https://www.nextbss.co.ao)
|
5
|
+
|
6
|
+
This ruby library helps you easily interact with the vPOS API,
|
7
|
+
Allowing merchants apps/services to request a payment from a client through his/her mobile phone number.
|
8
|
+
|
9
|
+
The service currently works for solutions listed below:
|
10
|
+
|
11
|
+
EMIS (Multicaixa Express)
|
12
|
+
|
13
|
+
Want to know more about how we are empowering merchants in Angola? See our [website](https://vpos.ao)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
- Simple interface
|
17
|
+
- Uniform plain old objects are returned by all official libraries, so you don't have
|
18
|
+
to serialize/deserialize the JSON returned by our API.
|
19
|
+
|
20
|
+
### Documentation
|
21
|
+
Does interacting directly with our API service sound better to you?
|
22
|
+
See our documentation on [developer.vpos.ao](https://developer.vpos.ao)
|
23
|
+
|
24
|
+
## Installation
|
25
|
+
```ruby
|
26
|
+
gem 'vpos'
|
27
|
+
```
|
28
|
+
|
29
|
+
or
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
gem install `vpos`
|
33
|
+
```
|
34
|
+
|
35
|
+
### Configuration
|
36
|
+
This ruby library requires you set up the following environment variables on your machine before
|
37
|
+
interacting with the API using this library:
|
38
|
+
|
39
|
+
| Variable | Description
|
40
|
+
| --- | --- |
|
41
|
+
| `GPO_POS_ID` | The Point of Sale ID provided by EMIS |
|
42
|
+
| `GPO_SUPERVISOR_CARD` | The Supervisor card ID provided by EMIS |
|
43
|
+
| `MERCHANT_VPOS_TOKEN` | The API token provided by vPOS |
|
44
|
+
| `PAYMENT_CALLBACK_URL` | The URL that will handle payment notifications |
|
45
|
+
| `REFUND_CALLBACK_URL` | The URL that will handle refund notifications |
|
46
|
+
| `VPOS_ENVIRONMENT` | The vPOS environment, leave empty for `sandbox` mode and use `"prd"` for `production`. |
|
47
|
+
|
48
|
+
Don't have this information? [Talk to us](suporte@vpos.ao)
|
49
|
+
|
50
|
+
Given you have set up all the environment variables above with the correct information, you will now
|
51
|
+
be able to authenticate and communicate effectively with our API using this library.
|
52
|
+
|
53
|
+
The next section will show the various payment actions that can be performed by you, the merchant.
|
54
|
+
|
55
|
+
### Get all Transactions
|
56
|
+
This endpoint retrieves all transactions.
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
require 'vpos'
|
60
|
+
transactions = Vpos.get_transactions
|
61
|
+
```
|
62
|
+
|
63
|
+
### Get a specific Transaction
|
64
|
+
Retrieves a transaction given a valid transaction ID.
|
65
|
+
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
require 'vpos'
|
69
|
+
transactions = Vpos.get_transaction("1jHbXEbRTIbbwaoJ6w06nLcRG7X")
|
70
|
+
```
|
71
|
+
|
72
|
+
| Argument | Description | Type |
|
73
|
+
| --- | --- | --- |
|
74
|
+
| `id` | An existing Transaction ID | `string`
|
75
|
+
|
76
|
+
### New Payment Transaction
|
77
|
+
Creates a new payment transaction given a valid mobile number associated with a `MULTICAIXA` account
|
78
|
+
and a valid amount.
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
require 'vpos'
|
82
|
+
payment = Vpos.new_payment("900111222", "123.45")
|
83
|
+
```
|
84
|
+
|
85
|
+
| Argument | Description | Type |
|
86
|
+
| --- | --- | --- |
|
87
|
+
| `mobile` | The mobile number of the client who will pay | `string`
|
88
|
+
| `amount` | The amount the client should pay, eg. "259.99", "259,000.00" | `string`
|
89
|
+
|
90
|
+
### Request Refund
|
91
|
+
Given an existing `parent_transaction_id`, request a refund.
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
require 'vpos'
|
95
|
+
|
96
|
+
refund = Vpos.new_refund("1kTFGhJH8i58uD9MdJpMjWnoE")
|
97
|
+
```
|
98
|
+
|
99
|
+
| Argument | Description | Type |
|
100
|
+
| --- | --- | --- |
|
101
|
+
| `parent_transaction_id` | The ID of transaction you wish to refund | `string`
|
102
|
+
|
103
|
+
### Poll Transaction Status
|
104
|
+
Poll the status of a transaction given a valid `request_id`.
|
105
|
+
|
106
|
+
Note: The `request_id` in this context is essentially the `transaction_id` of an existing request.
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
require 'vpos'
|
110
|
+
transactions = Vpos.get_request("1jHbXEbRTIbbwaoJ6w06nLcRG7X")
|
111
|
+
```
|
112
|
+
|
113
|
+
| Argument | Description | Type |
|
114
|
+
| --- | --- | --- |
|
115
|
+
| `request_id` | The ID of transaction you wish to poll | `string`
|
116
|
+
|
117
|
+
|
118
|
+
### Have any doubts?
|
119
|
+
In case of any doubts, bugs, or the like, please leave an issue. We would love to help.
|
120
|
+
|
121
|
+
License
|
122
|
+
----------------
|
123
|
+
|
124
|
+
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/azure-pipelines.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Ruby
|
2
|
+
# Package your Ruby project.
|
3
|
+
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
+
|
6
|
+
trigger:
|
7
|
+
- main
|
8
|
+
|
9
|
+
pool:
|
10
|
+
vmImage: 'ubuntu-latest'
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- task: UseRubyVersion@0
|
14
|
+
inputs:
|
15
|
+
versionSpec: '>= 2.5'
|
16
|
+
|
17
|
+
- script: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --retry=3 --jobs=4
|
20
|
+
displayName: 'Install Bundler'
|
21
|
+
|
22
|
+
- script: |
|
23
|
+
gem install rspec
|
24
|
+
|
25
|
+
- script: bundle exec rspec
|
26
|
+
displayName: 'Run Tests'
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "vpos"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/vpos.rb
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
require "vpos/version"
|
2
|
+
require "httparty"
|
3
|
+
require "securerandom"
|
4
|
+
|
5
|
+
module Vpos
|
6
|
+
class Error < StandardError; end
|
7
|
+
include HTTParty
|
8
|
+
follow_redirects false
|
9
|
+
|
10
|
+
def self.new_payment(customer, amount, pos_id: default_pos_id, callback_url: default_payment_callback_url)
|
11
|
+
content = set_headers
|
12
|
+
content[:body] = {type:"payment", pos_id: pos_id, mobile: customer, amount: amount, callback_url: callback_url}.to_json
|
13
|
+
request = post("#{host}/transactions", content)
|
14
|
+
return_vpos_object(request)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.new_refund(transaction_id, supervisor_card: default_supervisor_card, callback_url: default_refund_callback_url)
|
18
|
+
content = set_headers
|
19
|
+
content[:body] = {type: "refund", parent_transaction_id: transaction_id, supervisor_card: supervisor_card, callback_url: callback_url}.to_json
|
20
|
+
request = post("#{host}/transactions", content)
|
21
|
+
return_vpos_object(request)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.get_transaction(transaction_id)
|
25
|
+
request = get("#{host}/transactions/#{transaction_id}", set_headers)
|
26
|
+
return_vpos_object(request)
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.get_transactions
|
30
|
+
request = get("#{host}/transactions", set_headers)
|
31
|
+
return_vpos_object(request)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.get_request_id(request)
|
35
|
+
if request[:location].nil?
|
36
|
+
get("#{host}/references/invalid", set_headers)
|
37
|
+
else
|
38
|
+
if request[:status] == 202
|
39
|
+
request[:location].gsub("/api/v1/requests/", "")
|
40
|
+
else
|
41
|
+
request[:location].gsub("/api/v1/transactions/", "")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.get_request(request_id)
|
47
|
+
request = get("#{host}/requests/#{request_id}", set_headers)
|
48
|
+
return_vpos_object(request)
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
def self.return_vpos_object(request)
|
53
|
+
case request.response.code.to_i
|
54
|
+
when 200, 201
|
55
|
+
return {status: request.response.code.to_i, message: request.response.message, data: request.parsed_response}
|
56
|
+
when 202, 303
|
57
|
+
return {status: request.response.code.to_i, message: request.response.message, location: request.headers["location"]}
|
58
|
+
else
|
59
|
+
return {status: request.response.code.to_i, message: request.response.message, details: request.parsed_response["errors"]}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.set_headers
|
64
|
+
content = {}
|
65
|
+
headers = {'Content-Type' => "application/json", 'Accept' => "application/json", 'Authorization' => set_token, 'Idempotency-Key' => SecureRandom.uuid}
|
66
|
+
content[:headers] = headers
|
67
|
+
return content
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.default_pos_id
|
71
|
+
pos_id = ENV["GPO_POS_ID"]
|
72
|
+
return "#{pos_id}".to_i
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.default_supervisor_card
|
76
|
+
supervisor_card = ENV["GPO_SUPERVISOR_CARD"]
|
77
|
+
return "#{supervisor_card}"
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.set_token
|
81
|
+
token = ENV["MERCHANT_VPOS_TOKEN"]
|
82
|
+
return "Bearer #{token}"
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.default_payment_callback_url
|
86
|
+
url = ENV["PAYMENT_CALLBACK_URL"]
|
87
|
+
return url
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.default_refund_callback_url
|
91
|
+
url = ENV["REFUND_CALLBACK_URL"]
|
92
|
+
return url
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.host
|
96
|
+
if ENV["VPOS_ENVIRONMENT"] == "prd"
|
97
|
+
return "https://api.vpos.ao/api/v1"
|
98
|
+
else
|
99
|
+
return "https://sandbox.vpos.ao/api/v1"
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
data/lib/vpos/version.rb
ADDED
data/tags
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
2
|
+
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
3
|
+
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
4
|
+
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
5
|
+
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
6
|
+
!_TAG_PROGRAM_VERSION 5.9~svn20110310 //
|
7
|
+
Error lib/vpos.rb /^ class Error < StandardError; end$/;" c class:Vpos
|
8
|
+
Vpos lib/vpos.rb /^module Vpos$/;" m
|
9
|
+
Vpos lib/vpos/version.rb /^module Vpos$/;" m
|
10
|
+
default_payment_callback_url lib/vpos.rb /^ def self.default_payment_callback_url$/;" F class:Vpos
|
11
|
+
default_pos_id lib/vpos.rb /^ def self.default_pos_id$/;" F class:Vpos
|
12
|
+
default_refund_callback_url lib/vpos.rb /^ def self.default_refund_callback_url$/;" F class:Vpos
|
13
|
+
default_supervisor_card lib/vpos.rb /^ def self.default_supervisor_card$/;" F class:Vpos
|
14
|
+
get_request lib/vpos.rb /^ def self.get_request(location)$/;" F class:Vpos
|
15
|
+
get_transaction lib/vpos.rb /^ def self.get_transaction(transaction_id)$/;" F class:Vpos
|
16
|
+
get_transactions lib/vpos.rb /^ def self.get_transactions$/;" F class:Vpos
|
17
|
+
new_payment lib/vpos.rb /^ def self.new_payment(customer, amount, pos_id: default_pos_id, callback_url: default_payment_callback_url)$/;" F class:Vpos
|
18
|
+
new_refund lib/vpos.rb /^ def self.new_refund(transaction_id, supervisor_card: default_supervisor_card, callback_url: default_refund_callback_url)$/;" F class:Vpos
|
19
|
+
set_headers lib/vpos.rb /^ def self.set_headers$/;" F class:Vpos
|
20
|
+
set_token lib/vpos.rb /^ def self.set_token$/;" F class:Vpos
|
data/vpos.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "vpos/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "vpos"
|
7
|
+
spec.version = Vpos::VERSION
|
8
|
+
spec.authors = ["Sergio Maziano"]
|
9
|
+
spec.email = ["sergio@nextbss.co.ao"]
|
10
|
+
|
11
|
+
spec.summary = %q{The one stop shop for online payments in Angola.}
|
12
|
+
spec.description = %q{The one stop shop for online payments in Angola. This gem allows you process payments requests from EMIS GPO through vPOS.}
|
13
|
+
spec.homepage = "https://github.com/nextbss/vpos-ruby"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 2.1.4"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_dependency "httparty", "~> 0.18.1"
|
28
|
+
spec.add_dependency "rspec", "~> 3.9.0"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vpos
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergio Maziano
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.1.4
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.1.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: httparty
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.18.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.18.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.9.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.9.0
|
69
|
+
description: The one stop shop for online payments in Angola. This gem allows you
|
70
|
+
process payments requests from EMIS GPO through vPOS.
|
71
|
+
email:
|
72
|
+
- sergio@nextbss.co.ao
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".github/workflows/ruby.yml"
|
78
|
+
- ".gitignore"
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- azure-pipelines.yml
|
85
|
+
- bin/console
|
86
|
+
- bin/setup
|
87
|
+
- lib/vpos.rb
|
88
|
+
- lib/vpos/version.rb
|
89
|
+
- tags
|
90
|
+
- vpos.gemspec
|
91
|
+
homepage: https://github.com/nextbss/vpos-ruby
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubygems_version: 3.0.3
|
111
|
+
signing_key:
|
112
|
+
specification_version: 4
|
113
|
+
summary: The one stop shop for online payments in Angola.
|
114
|
+
test_files: []
|