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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ee4d35878468c931fa680a6cb4c051a0ba5009e0
4
- data.tar.gz: ca6ef9d1d745024227e28b8a3aa7ae2004e7b0fb
2
+ SHA256:
3
+ metadata.gz: 944fc4310d065da1b37fd4ce7e36e13ae6acc90eff6eee7adfed8d48be243088
4
+ data.tar.gz: 0fb10fcf2ef529b459a7dca22adea2fe4f988d7bc34d2161153575028abb3ffe
5
5
  SHA512:
6
- metadata.gz: e62adb1234a48c5072a373aba03e4d3caba44d244862919f86c50c0952e52494d3111dfc9fd8a7187572a50b2aa12935deab2ddf33482c2e65e3e8471cb00297
7
- data.tar.gz: 5ff1d02cbc251780307ea87414b6c02f779e3e6798b5e2348723c9b43b733afd44a554e17d46f376a5ee903fbd30dfc03acade10576c66ed3cd6a53d23c75dd5
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.3.4
6
- - 2.4.1
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
@@ -1,3 +1,3 @@
1
1
  module PscbIntegration
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -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.13'
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.1
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: 2018-01-21 00:00:00.000000000 Z
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.13'
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.13'
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: '0'
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: '0'
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.13
271
+ rubygems_version: 2.7.6
271
272
  signing_key:
272
273
  specification_version: 4
273
274
  summary: PSCB payment gateway integration