remi 0.2.18 → 0.2.19

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
  SHA1:
3
- metadata.gz: 7c112dfed8a5515c7c839e41c038181c79364504
4
- data.tar.gz: a7185273e9bb567e70a83bf09a8670cf85d4d223
3
+ metadata.gz: 9b1844e0c62caecbd5d416c5b2ea035f38dae670
4
+ data.tar.gz: 5246aa674a9f203aef16ff6d775625cc0441fe40
5
5
  SHA512:
6
- metadata.gz: 81645e029daa594ec66f7b109443f1337a1e2af0c5d85daf0f54d6e3f6254ad4c02ba637b31b96eb487aa2f3c1a8df535b90f7f67b29b2f61eb291d8bc052443
7
- data.tar.gz: 6a700425dc41377ffa5e56aa34a46eb4c7d9d9f9e9d37c48c631379f0cf3336e8fab1188a43d7b908b39dbbfa154176bc0473427932c92b1823795e4504897aa
6
+ metadata.gz: 774b90bd45ff5474a8e402928b5b40979c0a1e9dc6b2d08dced42dee25c567c5806aeb2b2d68a0f98efb1388ef5f3b2be6d47bcc80da1b7b3842152dfafce653
7
+ data.tar.gz: 3f2ff9109ea794f6f2006ca66d7f9cc55ba574e826391d2a57c15172fcc1a25047c28709d270266e2f9abf03c38ce031fd693f70d07964208b34a5ad60eaf2dd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- remi (0.2.18)
4
+ remi (0.2.19)
5
5
  activesupport (~> 4.2)
6
6
  bond (~> 0.5)
7
7
  cucumber (~> 2.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Remi
2
- VERSION = '0.2.18'
2
+ VERSION = '0.2.19'
3
3
  end
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.18
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-01 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daru