intacct-rest 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: 5a6731f918358600559712cf46245ade06051c5baad36679f586098ba8292ce7
4
- data.tar.gz: '08a147feac379d3549d35d7ac345796ac2686d22ae605f2d857cdf625c0011ba'
3
+ metadata.gz: fbabc66529a62bef665361bb37f64dfa58a5ed926258b88248dc88d6cbb40830
4
+ data.tar.gz: f73628b88a781f830f9c4dc078c9661763a43bff4d10730c70570325bdfb4d82
5
5
  SHA512:
6
- metadata.gz: 21137e073809b557d7f6fe00595c60423e85b04d0616683a6826e7c29ada6f645a4b2069d8596164c2c4c80b53e16182232112dfaf5c7ade25a3971aac29e16b
7
- data.tar.gz: 1e962684b6d9ee8838c83be7b2dc3ba04471cd5ff578296ba55a7f09431c4575dcbf9f7b033eae9e61afd0ace2ebdc923108bda184fc189d3ceb909910d8cf55
6
+ metadata.gz: aa366e0841d5c19cfcca51df288b70b0b39d81e00a2951c58adc83a3707032cff37ae612f000ee048b46f0c245a733733ccafe4cc9f73a7f3b2b7d3e16dfa14b
7
+ data.tar.gz: 812ace2d1008a2c7b0fc59f857be8be300fb0fe61824f9950b7031f44384337766e80ce1c41ed44c46775f3ca80fc5143dffdb58f77c52e25d25ff5cda4e4aa1
@@ -66,6 +66,8 @@ module IntacctRest
66
66
  end
67
67
 
68
68
  def parse_json(body, path)
69
+ return {} if body.nil? || body.empty?
70
+
69
71
  JSON.parse(body)
70
72
  rescue JSON::ParserError => e
71
73
  raise_reported IntacctRest::ResponseParseError.new("#{e.message} (#{path})", raw_body: body),
@@ -1,3 +1,3 @@
1
1
  module IntacctRest
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacct-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo Espinoza