vpos 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 8370f4a90ad50fe5d01bfac9624ab58308ed93162e89f812d3c079666bcfe34d
4
- data.tar.gz: 52eaab59d6381acd36fe3123838e044eb245d233d6dee5a512e37023e66b4287
3
+ metadata.gz: 4afd795dda51f97e50f6cd03781acca39a4f5d36619bddfe55d4515ad8506f5f
4
+ data.tar.gz: 3f7553fc7b5705c86c074c0e76fce57528683cb81ca1c3ec1192e6ef6f00e9c0
5
5
  SHA512:
6
- metadata.gz: c58b139c3f768eebe04c2c97fe5398ce1a9cb94c2e8fbaa04eff8449ff069493b26900c5cb7937beea387b0820fd594293aeed96f27d86b693bf28e04946fb54
7
- data.tar.gz: bc3e0f3b9991fa73dbe7002bb73d14cbb3e52a6d3d0d2e4b632962784081da33ebf3113504f934478cc86f16e0c1e5f3d12c7f9ced3756d181cb600ab0831534
6
+ metadata.gz: d1d4d000a8aa386223660b120a015dd0bb45a7092355d22d7ad097a4add8bd31314891f976faca280c07c88bc2f8b234d0ce07db68265bb244331ca926ba10f2
7
+ data.tar.gz: 817be562e7dfcacaf0bbad89a71bbd6a2e9f5c0b2385b360803795cb0d1293f3d0dcfb01ac3a55b11d4052af74dea307fa58ef56841426dbbd3377c6eb8be5ba
data/Gemfile.lock CHANGED
@@ -1,37 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vpos (1.0.2)
5
- concurrent-ruby
4
+ vpos (1.0.3)
6
5
  httparty (~> 0.18.1)
7
6
  rspec (~> 3.9, >= 3.9.0)
8
7
 
9
8
  GEM
10
9
  remote: https://rubygems.org/
11
10
  specs:
12
- concurrent-ruby (1.1.9)
13
11
  diff-lcs (1.4.4)
14
12
  httparty (0.18.1)
15
13
  mime-types (~> 3.0)
16
14
  multi_xml (>= 0.5.2)
17
15
  mime-types (3.3.1)
18
16
  mime-types-data (~> 3.2015)
19
- mime-types-data (3.2021.0901)
17
+ mime-types-data (3.2021.0225)
20
18
  multi_xml (0.6.0)
21
19
  rake (12.3.3)
22
- rspec (3.10.0)
23
- rspec-core (~> 3.10.0)
24
- rspec-expectations (~> 3.10.0)
25
- rspec-mocks (~> 3.10.0)
26
- rspec-core (3.10.1)
27
- rspec-support (~> 3.10.0)
28
- rspec-expectations (3.10.1)
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.4)
29
27
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.10.0)
31
- rspec-mocks (3.10.2)
28
+ rspec-support (~> 3.9.0)
29
+ rspec-mocks (3.9.1)
32
30
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.10.0)
34
- rspec-support (3.10.2)
31
+ rspec-support (~> 3.9.0)
32
+ rspec-support (3.9.4)
35
33
 
36
34
  PLATFORMS
37
35
  ruby
@@ -42,4 +40,4 @@ DEPENDENCIES
42
40
  vpos!
43
41
 
44
42
  BUNDLED WITH
45
- 2.2.27
43
+ 2.2.6
data/lib/vpos/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VposModule
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/vpos.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  require_relative "vpos_module"
2
- require "concurrent"
3
2
 
4
3
  class Vpos
5
4
  include VposModule
6
- include Concurrent::Async
7
5
 
8
6
  def initialize(token: set_token, pos_id: default_pos_id, supervisor_card: default_supervisor_card, payment_callback_url: default_payment_callback_url, refund_callback_url: default_refund_callback_url)
9
7
  @token = token
data/lib/vpos_module.rb CHANGED
@@ -26,6 +26,11 @@ module VposModule
26
26
  return_vpos_object(request)
27
27
  end
28
28
 
29
+ def get_transactions
30
+ request = HTTParty.get("#{host}/transactions", set_headers)
31
+ return_vpos_object(request)
32
+ end
33
+
29
34
  def get_request_id(response)
30
35
  if response[:location].nil?
31
36
  HTTParty.get("#{host}/references/invalid", set_headers)
@@ -63,6 +68,6 @@ module VposModule
63
68
  end
64
69
 
65
70
  def host
66
- "https://api.vpos.ao/api/v1"
71
+ "https://vpos.ao/api/v1"
67
72
  end
68
73
  end
data/vpos.gemspec CHANGED
@@ -22,9 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.3'
25
+ spec.add_development_dependency "bundler", '~> 2.2', '>= 2.2.3'
26
26
  spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
27
- spec.add_dependency 'httparty', '~> 0.18.1'
28
- spec.add_dependency 'concurrent-ruby'
29
- spec.add_dependency 'rspec', '~> 3.9', ">= 3.9.0"
27
+ spec.add_dependency "httparty", "~> 0.18.1"
28
+ spec.add_dependency "rspec", '~> 3.9', ">= 3.9.0"
30
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Maziano
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,20 +64,6 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 0.18.1
67
- - !ruby/object:Gem::Dependency
68
- name: concurrent-ruby
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- type: :runtime
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
67
  - !ruby/object:Gem::Dependency
82
68
  name: rspec
83
69
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +111,7 @@ homepage: https://github.com/v-pos/vpos-ruby
125
111
  licenses:
126
112
  - MIT
127
113
  metadata: {}
128
- post_install_message:
114
+ post_install_message:
129
115
  rdoc_options: []
130
116
  require_paths:
131
117
  - lib
@@ -140,9 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
126
  - !ruby/object:Gem::Version
141
127
  version: '0'
142
128
  requirements: []
143
- rubyforge_project:
129
+ rubyforge_project:
144
130
  rubygems_version: 2.7.6.2
145
- signing_key:
131
+ signing_key:
146
132
  specification_version: 4
147
133
  summary: The one stop shop for online payments in Angola.
148
134
  test_files: []