ach_client 0.6.6 → 0.6.7

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: 53af6bdeb431e497b2cb9973ffd59fc02f6aa6b6
4
- data.tar.gz: 41ff3a0115650a12f627c3cdfca4500301ca4225
3
+ metadata.gz: 25a6f91853e2d339481de30d9f4906c30097292f
4
+ data.tar.gz: 639d4d67290731fe3d8f4ad60c71722d88b9d3e4
5
5
  SHA512:
6
- metadata.gz: e871b86cb7045baaac422410b22fee420a3db22f1a6c2d82b479b446d785a55ed4ff1f0208747bd304280c3bcda1d4a9d3fbfc7c04d1db433f22d9e7b512ffda
7
- data.tar.gz: eb17248f02c4549b71d529747584b7e8db55d9e4662e246bbf4ca13f17a77e01feb93083ca0b73a4210918f8179ade147563b33d1b143a3c62d13b363f18a43d
6
+ metadata.gz: 439a49ca24e8cc36de4ce77d11097116798df9b10cdd42c04d5a4525d1b7e97b2045ac2c6eb5d8aa304ddf1ca19151df38484c5fdc63cd4cc7899a860d126592
7
+ data.tar.gz: 24ed20359c230a47345c49dbf421ad54a4afbd219a3fa41305afc54743fb94ecd1f6d03a27f3deff20f3117110a864792929e74d7f062de3803b109b804a1ced
data/README.md CHANGED
@@ -222,8 +222,8 @@ AchClient::Logging.log_filters = [
222
222
  To enable encryption of logs, provide both a `password` and a `salt`
223
223
 
224
224
  ```ruby
225
- AchClient::Logging.password = 'password'
226
- AchClient::Logging.salt = 'pepper'
225
+ AchClient::Logging.encryption_password = 'password'
226
+ AchClient::Logging.encryption_salt = 'pepper'
227
227
  ```
228
228
 
229
229
  Logs will be encrypted after they are filtered, but before they are passed to the `LogProvider` implementation you chose.
@@ -257,6 +257,7 @@ Some test configuration values are provided for testing/development of this gem.
257
257
  | `loc_i_d` | Company credential provided by AchWorks |
258
258
  | `s_s_s` | Company credential provided by AchWorks |
259
259
  | `wsdl` | URL for the WSDL for AchWorks SOAP API |
260
+ | `client_timeout_seconds` | Seconds to wait for a web response (optional) |
260
261
 
261
262
  ### ICheckGateway
262
263
 
@@ -267,6 +268,7 @@ Some test configuration values are provided for testing/development of this gem.
267
268
  | `api_key` | Company credential provided by ICheckGateway |
268
269
  | `live` | `true` if you want transactions to be actually processed, `false` otherwise. Note: `true` only works with your production credentials, and `false` only works with the shared test credentials |
269
270
  | `wsdl` | URL for the WSDL for ICheckGateway SOAP API |
271
+ | `client_timeout_seconds` | Seconds to wait for a web response (optional) |
270
272
 
271
273
  ### NACHA + SFTP Providers
272
274
 
@@ -12,6 +12,10 @@ module AchClient
12
12
  # requests to the provider
13
13
  class_attribute :_soap_client
14
14
 
15
+ # @return [Integer] Number of seconds to leave connections open before
16
+ # raising HTTPClient::ConnectTimeoutError.
17
+ class_attribute :client_timeout_seconds
18
+
15
19
  # Makes a SOAP request to the provider, without any error handling, and
16
20
  # returns the savon response after logging it
17
21
  # @param method [Symbol] SOAP operation to call against the provider
@@ -34,7 +38,11 @@ module AchClient
34
38
  # @return [Savon::Client] The Savon client object to use for making SOAP
35
39
  # requests to the provider
36
40
  private_class_method def self.soap_client
37
- self._soap_client ||= Savon.client(wsdl: self.wsdl) do
41
+ self._soap_client ||= Savon.client(
42
+ wsdl: self.wsdl,
43
+ open_timeout: self.client_timeout_seconds,
44
+ read_timeout: self.client_timeout_seconds
45
+ ) do
38
46
  # Lets us use symbols as keys without Savon changing the case
39
47
  # { 'Key' => 'Value' } == { Key: 'Value' }
40
48
  convert_request_keys_to :none
@@ -1,4 +1,4 @@
1
1
  module AchClient
2
2
  # Increment this when changes are published
3
- VERSION = '0.6.6'
3
+ VERSION = '0.6.7'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ach_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Cotter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2017-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ach
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.6.8
342
+ rubygems_version: 2.6.11
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: Adapter to interact with various ACH service providers