quickbooks-ruby 1.0.22 → 1.0.23
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 +4 -4
- data/lib/quickbooks/service/base_service.rb +5 -7
- data/lib/quickbooks/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b741bafa2526fd6ff2686ed3b57ad4dd6dcb5899dfe93b18847bb2b62088b7d
|
|
4
|
+
data.tar.gz: afac6ffcc890ecbbb89bfe80402b3ff1a32753692104c52b140bc90dab772f94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dc090c1fa9ec77d616276b1548c34f9412bbd2f6bfbf5cb59209357370d18ec19ebd13c2f44c52f86ed76bdfc23fcc7d0fdcba91baf51516e892bb2c3af634e
|
|
7
|
+
data.tar.gz: abbf29a2c505eeb9bee8aab89d62d3c46b5154def85bd5bc5e63f6a4abcaa195d49dd99011ab823bda1129b304c0299f2069d862cf9143f81deea70046728895
|
|
@@ -429,8 +429,6 @@ module Quickbooks
|
|
|
429
429
|
begin
|
|
430
430
|
@last_response_xml.xpath("//xmlns:IntuitResponse/xmlns:Fault")[0] != nil
|
|
431
431
|
rescue Nokogiri::XML::XPath::SyntaxError => exception
|
|
432
|
-
#puts @last_response_xml.to_xml.to_s
|
|
433
|
-
#puts "WTF: #{exception.inspect}:#{exception.backtrace.join("\n")}"
|
|
434
432
|
true
|
|
435
433
|
end
|
|
436
434
|
end
|
|
@@ -439,20 +437,20 @@ module Quickbooks
|
|
|
439
437
|
error = {:message => "", :detail => "", :type => nil, :code => 0, :intuit_tid => @last_response_intuit_tid}
|
|
440
438
|
fault = @last_response_xml.xpath("//xmlns:IntuitResponse/xmlns:Fault")[0]
|
|
441
439
|
if fault
|
|
442
|
-
error[:type] = fault.attributes['type'].value
|
|
440
|
+
error[:type] = fault.attributes['type'].try(:value)
|
|
443
441
|
|
|
444
442
|
error_element = fault.xpath("//xmlns:Error")[0]
|
|
445
443
|
if error_element
|
|
446
444
|
code_attr = error_element.attributes['code']
|
|
447
445
|
if code_attr
|
|
448
|
-
error[:code] = code_attr.value
|
|
446
|
+
error[:code] = code_attr.try(:value)
|
|
449
447
|
end
|
|
450
448
|
element_attr = error_element.attributes['element']
|
|
451
449
|
if element_attr
|
|
452
|
-
error[:element] = code_attr.value
|
|
450
|
+
error[:element] = code_attr.try(:value)
|
|
453
451
|
end
|
|
454
|
-
error[:message] = error_element.xpath("//xmlns:Message").text
|
|
455
|
-
error[:detail] = error_element.xpath("//xmlns:Detail").text
|
|
452
|
+
error[:message] = error_element.xpath("//xmlns:Message").try(:text)
|
|
453
|
+
error[:detail] = error_element.xpath("//xmlns:Detail").try(:text)
|
|
456
454
|
end
|
|
457
455
|
end
|
|
458
456
|
|
data/lib/quickbooks/version.rb
CHANGED
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: 1.0.
|
|
4
|
+
version: 1.0.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Caughlan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|
|
@@ -390,7 +390,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
390
390
|
- !ruby/object:Gem::Version
|
|
391
391
|
version: '0'
|
|
392
392
|
requirements: []
|
|
393
|
-
|
|
393
|
+
rubyforge_project:
|
|
394
|
+
rubygems_version: 2.7.6.2
|
|
394
395
|
signing_key:
|
|
395
396
|
specification_version: 4
|
|
396
397
|
summary: REST API to Quickbooks Online
|