sf_connect 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bbd8b629514161ddfce2d6e3b7339dec55eec9f83239fa35900e455afcf8c74
4
- data.tar.gz: 34254fdbe07ce3b7a5d57ae7147f6237293880900470ee06f78188c7ecaeb5a8
3
+ metadata.gz: cdab593ae705aa3e91a638d9d7679cd4f40c988b3d261242cf61f4ed20155d16
4
+ data.tar.gz: 97bd41340a528b7fbfac2125d7895f1c66bc3265f351e7dab738c08179468deb
5
5
  SHA512:
6
- metadata.gz: 91e4bc66a5470b3b0cd4fc46652f7b7d0d7f862cf74d411541de0b20b261599641472e2a37e48a26cf1c2750cbaf959506b466946a065b998dcf5ce712f677e1
7
- data.tar.gz: 760587c3c70be8694c11e90470efef931c9730d9d2cbbe361f3455a0a640797536ab463ee78a91da9f0ca2ec8e2d4bb6452c02cef09347c9af0c99bbacf503cf
6
+ metadata.gz: 3cd8e3776446c9fa0f4a077ecddc6940be8c3f3ffd65f5e5a03ed23f14c972d2da89747cfc7fc890deddeb3b317c193cc9b0ad59f75a4af3f2f30e5252831945
7
+ data.tar.gz: 1abf6aee240460bacac1304ca666cc924842fd5bde5ebe41302c6b9fa0d636c35bcc1186761496c4169d54ef6c2c925b9ad4fd47d9d47fc31ded2b9a50f6700f
@@ -35,9 +35,13 @@ module SfConnect
35
35
  record
36
36
  end
37
37
 
38
+ def import_records_for_salesforce(records)
39
+ upsert_all records
40
+ end
41
+
38
42
  def download_salesforce_records(batch_size = 1000)
39
43
  fetch_all.each_slice(batch_size) do |records|
40
- upsert_all records.map(&:for_download)
44
+ import_records_for_salesforce records.map(&:for_download)
41
45
  end
42
46
  end
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module SfConnect
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sf_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masa (Aileron inc)