quickbooks_web_connector 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickbooks_web_connector/errors.rb +6 -0
- data/lib/quickbooks_web_connector/job.rb +1 -1
- data/lib/quickbooks_web_connector/soap_wrapper/defaultServant.rb +14 -4
- data/lib/quickbooks_web_connector/version.rb +1 -1
- data/lib/quickbooks_web_connector.rb +1 -0
- data/spec/dummy/log/test.log +678 -0
- data/spec/lib/quickbooks_web_connector/job_spec.rb +1 -1
- data/spec/lib/quickbooks_web_connector/soap_wrapper/defaultServant_spec.rb +9 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/redis/dump.rdb +0 -0
- data/spec/support/redis/stdout +378150 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e912797e3e57c180ac2352fd6af413756477b6
|
4
|
+
data.tar.gz: 69a2215d9cfd9cfaec81791f45bcf0e0e1d40073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a8cc565adfe6f49e9faba2cae56efef59d819366a3bc77af8bc573ee96a81bf323923ac20a11a182c5d1f73903bd4038bfe4c0bfac3c7a2155acc8465a2687
|
7
|
+
data.tar.gz: e328d02a1a61d429c35c0fbb551b80f66134dd0a4d69de319599ff846ee5b6c4dc8f7bf7f1144707458fe4503f063b8366166a2423d26c9689e83cb702f57252
|
@@ -74,10 +74,20 @@ module QuickbooksWebConnector
|
|
74
74
|
# parameters SendRequestXMLResponse - {http://developer.intuit.com/}sendRequestXMLResponse
|
75
75
|
#
|
76
76
|
def sendRequestXML(parameters)
|
77
|
-
job = QuickbooksWebConnector::Job.peek
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
if (job = QuickbooksWebConnector::Job.peek)
|
78
|
+
case (request_xml = job.request_xml)
|
79
|
+
when :failed
|
80
|
+
raise RequestXMLError
|
81
|
+
else
|
82
|
+
SendRequestXMLResponse.new request_xml
|
83
|
+
end
|
84
|
+
else
|
85
|
+
SendRequestXMLResponse.new nil
|
86
|
+
end
|
87
|
+
rescue RequestXMLError
|
88
|
+
# Remove the job from the queue since it fails to build. The job should have already created a failure.
|
89
|
+
QuickbooksWebConnector.pop
|
90
|
+
retry
|
81
91
|
end
|
82
92
|
|
83
93
|
# SYNOPSIS
|
@@ -3,6 +3,7 @@ require 'securerandom'
|
|
3
3
|
require 'soap/rpc/standaloneServer'
|
4
4
|
|
5
5
|
require 'quickbooks_web_connector/config'
|
6
|
+
require 'quickbooks_web_connector/errors'
|
6
7
|
require 'quickbooks_web_connector/failure'
|
7
8
|
require 'quickbooks_web_connector/job'
|
8
9
|
require 'quickbooks_web_connector/json_coder'
|