salesforce_ar_sync 5.2.0 → 5.2.1
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/README.md +2 -0
- data/lib/salesforce_ar_sync/salesforce_sync.rb +2 -2
- data/lib/salesforce_ar_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d83e1e9497d87d16d9fdebccfee16539bf0487188be9075402327f4db317e20
|
4
|
+
data.tar.gz: 6c34017e100080e5ef5c2210a33285631cdb97b80c9104281b478e370d519edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b54b2e245692b924ca1f254eedc27e9d60db2eff15326c3abe8d7dd3b966198d025202f55ba3d391da8cdb4a6f3b2714b02ed6f8aaf0bee49ebc2aa648b7bf2
|
7
|
+
data.tar.gz: 12ebd84b8779026de0675804dbe9dbbae4080e40f1e365aad1931733eb1b39d50c762a7163dde23338312814befb6b0bebccadfdb9879e78f7a5e362815ae45f
|
data/README.md
CHANGED
@@ -327,6 +327,8 @@ configuration variable _SALESFORCE_AR_SYNC_CONFIG["SYNC_ENABLED"]_
|
|
327
327
|
|
328
328
|
You can trigger a manual sync of any configured attributes. All checks to skip syncing or to sync asynchronously will still be executed.
|
329
329
|
|
330
|
+
If the record does not exist in Salesforce, the provided attributes will be ignored and all attributes will be synced.
|
331
|
+
|
330
332
|
```ruby
|
331
333
|
my_user_record.salesforce_sync(:email)
|
332
334
|
|
@@ -224,8 +224,8 @@ module SalesforceArSync
|
|
224
224
|
else
|
225
225
|
if salesforce_object_exists?
|
226
226
|
salesforce_update_object(attributes_to_update) if attributes_to_update.present?
|
227
|
-
|
228
|
-
salesforce_create_object(
|
227
|
+
elsif salesforce_id.nil?
|
228
|
+
salesforce_create_object(salesforce_attributes_to_update(!new_record?))
|
229
229
|
end
|
230
230
|
end
|
231
231
|
rescue Exception => ex
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforce_ar_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Halliday
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2025-07-
|
15
|
+
date: 2025-07-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: actionpack-xml_parser
|