strongmind-platform-sdk 3.23.3 → 3.23.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05bed8189b523d3bfd0befd95ee4ebee78cb767e3ab25d933b20716145370ceb
|
4
|
+
data.tar.gz: b6f7b13c12a9c793a7a2431c4bd8763f8054109c8ff47307d95e3249ce9bbdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15a8c4db2b331aff159bf5eadb5f98b36a6d954170bbc99e13aed4e36c60d4c9067a9d67b963a2b7eca0831f157013f75b9be72497e0d2a7ae77597fdcbdc9b0
|
7
|
+
data.tar.gz: 8a07be69861cda2488ad3a2148b06eb1444f18a09d7dde0e0a2e0bd7eacf14d58d71c6593e6086516d709e690296dc0ebf7cffe8ae89d1c768efcb63526e997c
|
@@ -2,11 +2,13 @@
|
|
2
2
|
|
3
3
|
module PlatformSdk
|
4
4
|
module SpecSupport
|
5
|
-
RSpec.shared_examples 'OneRosterDataPipelineable' do |
|
5
|
+
RSpec.shared_examples 'OneRosterDataPipelineable' do |params = {}|
|
6
6
|
include ActiveJob::TestHelper
|
7
7
|
|
8
|
+
let(:shared_params) { params }
|
9
|
+
|
8
10
|
let(:data) do
|
9
|
-
record_keys.each_with_object({}) do |key, hash|
|
11
|
+
params[:record_keys].each_with_object({}) do |key, hash|
|
10
12
|
if key == '_type'
|
11
13
|
hash[:type] = record.try(key)
|
12
14
|
next
|
@@ -123,6 +125,10 @@ module PlatformSdk
|
|
123
125
|
end
|
124
126
|
|
125
127
|
def update_record(record, column)
|
128
|
+
if shared_params[:update_method]
|
129
|
+
send(shared_params[:update_method], record)
|
130
|
+
return
|
131
|
+
end
|
126
132
|
new_record = build(described_class.to_s.underscore.to_sym)
|
127
133
|
|
128
134
|
column_value = record[column]
|
data/lib/platform_sdk/version.rb
CHANGED