pscb_integration 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/.travis.yml +6 -3
- data/lib/pscb_integration/client.rb +4 -1
- data/lib/pscb_integration/config.rb +5 -2
- data/lib/pscb_integration/version.rb +1 -1
- data/pscb_integration.gemspec +2 -2
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 944fc4310d065da1b37fd4ce7e36e13ae6acc90eff6eee7adfed8d48be243088
|
4
|
+
data.tar.gz: 0fb10fcf2ef529b459a7dca22adea2fe4f988d7bc34d2161153575028abb3ffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4f98d103981d85000ffb3158972e433ef4a778a0cc24a3115a8c9ed421df4d1ce8fdeb5736f3bafa92eec7f3ff7c03a51af587c10e5bb08e096fab47baeef2
|
7
|
+
data.tar.gz: 6e203dc1067a08787d4f928cea0a50be1397911575dcdcb35768dc869d8026204be7cd8b8114f0f11fadb5c5078d18a91acab63f7b2717abe9680435a9e53f8b
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.3
|
data/.travis.yml
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
|
+
cache: bundler
|
3
4
|
|
4
5
|
rvm:
|
5
|
-
- 2.
|
6
|
-
- 2.
|
6
|
+
- 2.4.5
|
7
|
+
- 2.5.3
|
8
|
+
- 2.6.1
|
7
9
|
- ruby-head
|
8
10
|
|
9
11
|
matrix:
|
@@ -11,8 +13,9 @@ matrix:
|
|
11
13
|
- rvm: ruby-head
|
12
14
|
fast_finish: true
|
13
15
|
|
14
|
-
before_install: gem update --remote bundler
|
16
|
+
# before_install: gem update --remote bundler
|
15
17
|
install:
|
18
|
+
- gem install bundler -v 1.17.3
|
16
19
|
- bundle install --retry=3
|
17
20
|
script:
|
18
21
|
- bundle exec rspec
|
@@ -106,6 +106,9 @@ module PscbIntegration
|
|
106
106
|
response = @client.post(path) do |request|
|
107
107
|
request.headers['Signature'] = signature(body)
|
108
108
|
request.body = body
|
109
|
+
|
110
|
+
request.options.timeout = config.timeout
|
111
|
+
request.options.open_timeout = config.timeout
|
109
112
|
end
|
110
113
|
|
111
114
|
Right(response.body)
|
@@ -137,4 +140,4 @@ module PscbIntegration
|
|
137
140
|
end
|
138
141
|
end
|
139
142
|
end
|
140
|
-
end
|
143
|
+
end
|
@@ -1,11 +1,14 @@
|
|
1
1
|
module PscbIntegration
|
2
2
|
class Config
|
3
|
-
attr_accessor :host, :market_place, :secret_key, :demo_secret_key, :confirm_payment_callback
|
3
|
+
attr_accessor :host, :market_place, :secret_key, :demo_secret_key, :confirm_payment_callback,
|
4
|
+
:timeout
|
4
5
|
|
5
6
|
def initialize(attrs = {})
|
6
7
|
attrs.each do |name, value|
|
7
8
|
public_send("#{name}=", value)
|
8
9
|
end
|
10
|
+
|
11
|
+
self.timeout ||= 5
|
9
12
|
end
|
10
13
|
end
|
11
|
-
end
|
14
|
+
end
|
data/pscb_integration.gemspec
CHANGED
@@ -28,14 +28,14 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency 'rails', '~> 4.2'
|
29
29
|
|
30
30
|
spec.add_development_dependency 'addressable', '~> 2.5'
|
31
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
31
|
+
spec.add_development_dependency 'bundler', '~> 1.17'
|
32
32
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
|
33
33
|
spec.add_development_dependency 'fear-rspec', '>= 0.2.0'
|
34
34
|
spec.add_development_dependency 'rake', '~> 10.0'
|
35
35
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
36
36
|
spec.add_development_dependency 'rspec-rails', '~> 3.0'
|
37
37
|
spec.add_development_dependency 'simplecov'
|
38
|
-
spec.add_development_dependency 'sqlite3'
|
38
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3.6'
|
39
39
|
spec.add_development_dependency 'vcr', '~> 2.9'
|
40
40
|
spec.add_development_dependency 'webmock', '~> 1.17'
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pscb_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Emelyanov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.17'
|
90
90
|
type: :development
|
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: '1.
|
96
|
+
version: '1.17'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: codeclimate-test-reporter
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: sqlite3
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 1.3.6
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 1.3.6
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: vcr
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,6 +229,7 @@ extra_rdoc_files: []
|
|
229
229
|
files:
|
230
230
|
- ".gitignore"
|
231
231
|
- ".rspec"
|
232
|
+
- ".ruby-version"
|
232
233
|
- ".travis.yml"
|
233
234
|
- Gemfile
|
234
235
|
- LICENSE.txt
|
@@ -267,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
268
|
version: '0'
|
268
269
|
requirements: []
|
269
270
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.6
|
271
|
+
rubygems_version: 2.7.6
|
271
272
|
signing_key:
|
272
273
|
specification_version: 4
|
273
274
|
summary: PSCB payment gateway integration
|