ach_client 4.0.0 → 5.0.0

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
2
  SHA256:
3
- metadata.gz: d054803f625f392d4b5638ceabf174fde8fd2847f0472c7a03e2d7672dd0c81e
4
- data.tar.gz: 401b32b2f18c07b93583807844ec14e2ae1f41143393fa6797db72c8b7ce8c22
3
+ metadata.gz: 3448884b23a8ca502b1506b354632c449c3f1436aa80398dccc280887abd1f49
4
+ data.tar.gz: ac997cdf2dc1a57e0c65e603e0f337a1e5c85ade85fdd4cf6915fad7ea31e729
5
5
  SHA512:
6
- metadata.gz: f2214c86385c3476239bc4aa01705ce63a95c8d2b1e3fffdb4d884cde3779eeb4f2b76c898548833fc0341a50909ab64d2edeba9f96c07635f25ac730e5f4a49
7
- data.tar.gz: 6eca53351b052f89e7be43c53dbf8a33eadb7337205641c07d30e75cce455191e9f0bc2d97b57e244eb6344d7300bf809ff50df972fb7db0c223772fb1a6410e
6
+ metadata.gz: e7c7c0ca64f40107ab389e5fcb92bdcd841054a32f29b636a71f9b4e3db47ea291899664d4c102afd6ff7bae2e31850a3353e875022232e98c6e838deb30a551
7
+ data.tar.gz: 9c1f70ab5fa6691e8ec6f998dd5bf38f023ac880648a9cc5ee2169d870f75af82fe8d5103ee2104605e7dfef6f76464526c6512c84761b09787d0a37a5a25682
@@ -11,7 +11,14 @@ module AchClient
11
11
  # @param globals [Savon::GlobalOptions] Savon's global options
12
12
  # @param locals [Savon::LocalOptions] Savon's global options
13
13
  # @return [NilClass] returns nothing so the request is not mutated
14
- def notify(operation_name, builder, _globals, _locals)
14
+ def notify(operation_name, builder, globals, _locals)
15
+ # Since Savon only lets us register observers globally this method is called by any other Savon clients outside
16
+ # this library. We don't want to log for those other clients so we check to see that the request came from
17
+ # AchClient by comparing the wsdl to our known wsdls
18
+ return unless [
19
+ AchClient::ICheckGateway.wsdl,
20
+ AchClient::AchWorks.wsdl
21
+ ].include?(globals.instance_variable_get(:@options)[:wsdl])
15
22
  # Send the xml body to the logger job
16
23
  AchClient::Logging::LogProviderJob.perform_async(
17
24
  body: builder.to_s,
@@ -1,4 +1,4 @@
1
1
  module AchClient
2
2
  # Increment this when changes are published
3
- VERSION = '4.0.0'
3
+ VERSION = '5.0.0'
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: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Cotter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-03 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ach