salesforce_bulk_client 0.0.2 → 0.0.3
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/salesforce_bulk_client/job.rb +4 -4
- data/lib/salesforce_bulk_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e29d108681994dc7f19677132ab2b6d4f63bae78
|
|
4
|
+
data.tar.gz: 8f1f18b1f3a7667893675190919200789dd1c6a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81ede2671e06830687b57e5618b8d6910a8fe78e99ae226904482bceca63ec3aa3b3e883eac2e62dffea715ae0d0a88c6ebbfaefa820d1c99e0f532d42307383
|
|
7
|
+
data.tar.gz: 335bde9f192c52e297ab58a1a8dedeec7f74c4ad6027d733f93a1a905125a902155cafd72425f4040e9331eefe32d022385a1cc89b72c30283f08092ed50fb54
|
|
@@ -109,7 +109,7 @@ module SalesforceBulkClient
|
|
|
109
109
|
|
|
110
110
|
batches_ready = @batch_ids.all? do |batch_id|
|
|
111
111
|
batch_info = batch_info_map[batch_id] = self.check_batch_status(batch_id)
|
|
112
|
-
batch_info.state != 'Queued' && batch_info != 'InProgress'
|
|
112
|
+
batch_info.state != 'Queued' && batch_info.state != 'InProgress'
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
if batches_ready
|
|
@@ -126,9 +126,9 @@ module SalesforceBulkClient
|
|
|
126
126
|
end
|
|
127
127
|
job_status = self.check_job_status
|
|
128
128
|
|
|
129
|
-
batch_infos.each_with_index do |
|
|
130
|
-
if
|
|
131
|
-
batch_infos[i].merge!({ 'response' => self.get_batch_result(
|
|
129
|
+
batch_infos.each_with_index do |batch_info, i|
|
|
130
|
+
if batch_info.state == 'Completed' && return_result == true
|
|
131
|
+
batch_infos[i].merge!({ 'response' => self.get_batch_result(batch_info.id)})
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|