strongmind-platform-sdk 3.19.25 → 3.19.26
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: 5f0b9016b0347f66b314011c0a0a77106df02a77372071bb3239ff650a6106dc
|
4
|
+
data.tar.gz: 5a5a2e0177334428ba4a6e8544baef6747f95afa13264ec880aaf535a330be39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0619f6882d3bc31ab58aa50abd0561eb3a851598bf40e59bb756c23c98904ad42438acfbe11b37e7daacb025b3a7fb4c1444cc3ca45c5d0d5258a7b33f71e6fc'
|
7
|
+
data.tar.gz: 621f93fe77651a43958a69dd3de6b9c3ad01c91a82780f19fcd9e8f91474023a42fc1934ffd6749d59690ee136d1cb8aaa0bff48f2e89f7db6d4816c8109ba91
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
strongmind-platform-sdk (3.19.
|
4
|
+
strongmind-platform-sdk (3.19.26)
|
5
5
|
activesupport (~> 7.1)
|
6
6
|
asset_sync
|
7
7
|
aws-sdk-secretsmanager (~> 1.66)
|
@@ -103,7 +103,7 @@ GEM
|
|
103
103
|
unf
|
104
104
|
ast (2.4.2)
|
105
105
|
aws-eventstream (1.3.0)
|
106
|
-
aws-partitions (1.
|
106
|
+
aws-partitions (1.954.0)
|
107
107
|
aws-sdk-cloudwatch (1.96.0)
|
108
108
|
aws-sdk-core (~> 3, >= 3.201.0)
|
109
109
|
aws-sigv4 (~> 1.5)
|
@@ -20,7 +20,7 @@ module PlatformSdk
|
|
20
20
|
end
|
21
21
|
|
22
22
|
let(:record) { build(described_class.to_s.underscore.to_sym) }
|
23
|
-
let(:data_pipeline_client) { double(PlatformSdk::DataPipeline::Client)}
|
23
|
+
let(:data_pipeline_client) { double(PlatformSdk::DataPipeline::Client) }
|
24
24
|
|
25
25
|
before do
|
26
26
|
allow(PlatformSdk::DataPipeline::Client).to receive(:new).and_return(data_pipeline_client)
|
@@ -61,8 +61,10 @@ module PlatformSdk
|
|
61
61
|
|
62
62
|
it "defines an after_update callback" do
|
63
63
|
column = column_to_update(record)
|
64
|
-
|
65
|
-
|
64
|
+
unless column.nil?
|
65
|
+
update_record(record, column)
|
66
|
+
expect(data_pipeline_client).to have_received(:post).with(pipeline_payload)
|
67
|
+
end
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|
@@ -71,6 +73,7 @@ module PlatformSdk
|
|
71
73
|
columns_to_update = record.class.columns.select { |c| c.sql_type_metadata.type == type && !c.name.match?(/(_id|_type)$/) && c.name != 'id' }
|
72
74
|
return columns_to_update.first.name if columns_to_update.any?
|
73
75
|
end
|
76
|
+
nil
|
74
77
|
end
|
75
78
|
|
76
79
|
def update_record(record, column)
|
data/lib/platform_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-platform-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.19.
|
4
|
+
version: 3.19.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|