quickbooks-ruby 2.0.2 → 2.0.3

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: 8168dc0e28267b4342b56bdfc689af6a7edb151694fe1fca9fd6e9a827528687
4
- data.tar.gz: e6f4f347dff9732e61298357fc74d7ec68cde532718279cb1d785cd6b38909d7
3
+ metadata.gz: 984503e5cdf57dff8779bb3e019329543063f0cc0c782375cdad4afa7b28d55c
4
+ data.tar.gz: d71a71a34772c21278e1c978142a6987b247c92371ac131ef37c1767c38e4349
5
5
  SHA512:
6
- metadata.gz: 88b3bf54416112c1aff009c9c6e9dce8ab437ec806a855627f9abf6dda1804a2419f94bbbe07d04aaa91503bfe8a7a630c0b85fb8f174bb805a4fe901138bd20
7
- data.tar.gz: 25421b3b29a88dcca907940274b84b1d10f819489da6a66ffbd7d8b835a3a7d84667ec69bb63d9828df0e6ed916b6183c372d5e05f1a475d01d5f2ffefb56527
6
+ metadata.gz: f59fd3a45baec15ee4909be96ce416dfc57e9fdbb3b7f2e496aa1e87610ce17f56da5efffa9e0e49c284aaeaab127e6b693ae18a541a9eaf024abca560820654
7
+ data.tar.gz: 6e51e37b4a5b451895aa093e5a3470299dc2d1e877e1eeb0335e0c861a70a02e191ef0a7e674da3ddecb3b5aa21b8cd5ec9270b4eabd7991ba265a046c677ca6
@@ -1,8 +1,10 @@
1
1
  module Quickbooks
2
2
  module Util
3
3
  module Logging
4
+ attr_writer :log
5
+
4
6
  def log(msg)
5
- ::Quickbooks.log(msg)
7
+ ::Quickbooks.log(msg) if log?
6
8
  end
7
9
 
8
10
  def log_multiple(messages)
@@ -14,7 +16,7 @@ module Quickbooks
14
16
  end
15
17
 
16
18
  def log?
17
- ::Quickbooks.log?
19
+ defined?(@log) ? @log : ::Quickbooks.log?
18
20
  end
19
21
 
20
22
  def condense_logs?
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
 
5
5
  end
@@ -246,10 +246,8 @@ module Quickbooks
246
246
  end
247
247
 
248
248
  def log(msg)
249
- if log?
250
- logger.info(msg)
251
- logger.flush if logger.respond_to?(:flush)
252
- end
249
+ logger.info(msg)
250
+ logger.flush if logger.respond_to?(:flush)
253
251
  end
254
252
  end # << self
255
253
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Caughlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-02 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2