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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a366e664f19f09c3ad3f31088f75d90e4d11ba5b2708d59a5a8e470ebc0276c
4
- data.tar.gz: 2f37638a57e5769698051c8cbbdcaa49dce50de4eae90d12da6a59dabc5b0765
3
+ metadata.gz: 1d83e1e9497d87d16d9fdebccfee16539bf0487188be9075402327f4db317e20
4
+ data.tar.gz: 6c34017e100080e5ef5c2210a33285631cdb97b80c9104281b478e370d519edd
5
5
  SHA512:
6
- metadata.gz: 401722023c03c42c8dd070a8259dd0e5ddeec6306414ebd6d66d23de4055857a5fac177943d61bc8f81e2e5be508295c5cd22673e9a7be1adcd1e66adcdf1fad
7
- data.tar.gz: 60529516c0d6350377dd7f9b229cd6642a6025dc9c72bf107331dd323232fa8526453b7c727a8dd57de754576f1687e1f72f7790643dcdeab43772148614659a
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
- else
228
- salesforce_create_object(attributes_to_update(!new_record?)) if salesforce_id.nil?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SalesforceArSync
4
- VERSION = '5.2.0'
4
+ VERSION = '5.2.1'
5
5
  end
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.0
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 00:00:00.000000000 Z
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