bluepay 1.0.8 → 1.0.9

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: c3a965bd75dc02ba14600420f531b4d411111129
4
- data.tar.gz: cb12bfe861a0378aa29413f043e0e731f37b2b45
3
+ metadata.gz: 594d73e0c6efe1a5547b08abcfc0faf6dced8a35
4
+ data.tar.gz: 9bf399e1fccd527a4c6d743cfad9ff1d2750c861
5
5
  SHA512:
6
- metadata.gz: 4ca8468b17913aee83f6cd0d3f65f76282dcdb99cf30fe4f130d71d0dec1a911824cf8cafe5adb77fa570435674e8ac42e9b1e5728590e04713dfe0d30e01c0c
7
- data.tar.gz: 50b2f2fe732bda378daf7772fac652b007055b70e30de2fd1369b5f35f98b3e8daa949a1b1b5a02a833ecd2a6d9ea71d5923bfea29811478a3a37b65ee985b60
6
+ metadata.gz: d31c6d53961655b9db6e489aa39dd9a6629846f83e1d41a1183c2b78c25a1ca8b17c2f309deb24972126bea2296ba8441b760b08852a65c368d02ece26d1a5ee
7
+ data.tar.gz: 9589897f2099b5adbe71c9fef51ac3f806f57648acb083ecb4e9c504058c69a4b7e0c1003b24d5c51ea0307fc38f53d42103b42459a53ce9e223bb22c178f6c9
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bluepay'
3
- s.version = '1.0.8'
4
- s.date = '2018-02-19'
3
+ s.version = '1.0.9'
4
+ s.date = '2018-03-27'
5
5
  s.summary = "BluePay gateway rubygem"
6
6
  s.description = "This gem is intended to be used along with a BluePay gateway account to process credit card and ACH transactions"
7
7
  s.authors = ["Justin Slingerland, Susan Schmidt, Eric Margules"]
@@ -114,7 +114,14 @@ class BluePay
114
114
  'Content-Type' => 'application/x-www-form-urlencoded'
115
115
  }
116
116
  # Post parameters to BluePay gateway
117
- headers, body = ua.post(path, query, queryheaders)
117
+ # Resuce SSL error and retry with ca_file absolute path.
118
+ begin
119
+ headers, body = ua.post(path, query, queryheaders)
120
+ rescue OpenSSL::SSL::SSLError
121
+ ua.ca_file = File.expand_path(File.dirname(__FILE__)) + "/" + RootCAFile
122
+ headers, body = ua.post(path, query, queryheaders)
123
+ end
124
+
118
125
  # Split the response into the response hash.
119
126
  @RESPONSE_HASH = {}
120
127
  if path == "/interfaces/bp10emu"
@@ -11,6 +11,7 @@ class BluePay
11
11
  SERVER = "secure.bluepay.com"
12
12
  # Make sure this is the correct path to your CA certificates directory
13
13
  RootCA = "/"
14
+ RootCAFile = "cacert.pem"
14
15
 
15
16
  def initialize(params = {})
16
17
  @ACCOUNT_ID = params[:account_id]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Slingerland, Susan Schmidt, Eric Margules
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem is intended to be used along with a BluePay gateway account
14
14
  to process credit card and ACH transactions
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.6.14
68
+ rubygems_version: 2.5.2
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: BluePay gateway rubygem