remi 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/features/step_definitions/remi_step.rb +6 -0
- data/lib/remi/data_source/salesforce.rb +9 -0
- data/lib/remi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b1844e0c62caecbd5d416c5b2ea035f38dae670
|
4
|
+
data.tar.gz: 5246aa674a9f203aef16ff6d775625cc0441fe40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 774b90bd45ff5474a8e402928b5b40979c0a1e9dc6b2d08dced42dee25c567c5806aeb2b2d68a0f98efb1388ef5f3b2be6d47bcc80da1b7b3842152dfafce653
|
7
|
+
data.tar.gz: 3f2ff9109ea794f6f2006ca66d7f9cc55ba574e826391d2a57c15172fcc1a25047c28709d270266e2f9abf03c38ce031fd693f70d07964208b34a5ad60eaf2dd
|
data/Gemfile.lock
CHANGED
@@ -230,6 +230,12 @@ Then /^the target field '([^']+)' is copied from the source field$/ do |target_f
|
|
230
230
|
end
|
231
231
|
end
|
232
232
|
|
233
|
+
Then /^the target field is copied from the source field '([^']+)'$/ do |source_field|
|
234
|
+
@brt.targets.fields.each do |target_field|
|
235
|
+
step "the target field '#{target_field.full_name}' is copied from the source field '#{source_field}'"
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
233
239
|
Then /^the target field is copied from the source field$/ do
|
234
240
|
@brt.targets.fields.each do |target_field|
|
235
241
|
@brt.sources.fields.each do |source_field|
|
@@ -21,6 +21,15 @@ module Remi
|
|
21
21
|
|
22
22
|
def extract
|
23
23
|
@raw_result = sf_bulk.query(@sfo, @query, 10000)
|
24
|
+
|
25
|
+
check_for_errors(@raw_result)
|
26
|
+
@raw_result
|
27
|
+
end
|
28
|
+
|
29
|
+
def check_for_errors(sf_result)
|
30
|
+
sf_result['batches'].each do |batch|
|
31
|
+
raise "Error with batch #{batch['id']} - #{batch['state']}: #{batch['stateMessage']}" unless batch['state'].first == 'Completed'
|
32
|
+
end
|
24
33
|
end
|
25
34
|
|
26
35
|
def raw_result
|
data/lib/remi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sterling Paramore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daru
|