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: ebdac0cb65c314ce3ab7afc599d77a00f21d518881b7f068e6232f5ab0a22185
4
- data.tar.gz: aa1db7446a18336bd247f2f5746d522c5117082fbe2442b81a0b9aa09b774197
3
+ metadata.gz: 5f0b9016b0347f66b314011c0a0a77106df02a77372071bb3239ff650a6106dc
4
+ data.tar.gz: 5a5a2e0177334428ba4a6e8544baef6747f95afa13264ec880aaf535a330be39
5
5
  SHA512:
6
- metadata.gz: 61c5afb7bd8d19cf58727d5a989954ed1b6cbd4b6cf7b3c2e63c9a9731dc57906ff6fd03c275d77cff3d891440fb44bc80becec8ea32896ea57971010a8c3c49
7
- data.tar.gz: 73a4875db7eed84fe8e89b6c41dff51c73ddc8a6f6aeb2d48aae28447e2769f52f8e9aba5dbb1af9f28b98d2b70f4b28eb472cf8c8630d316fd4a4751759d749
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.25)
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.953.0)
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
- update_record(record, column)
65
- expect(data_pipeline_client).to have_received(:post).with(pipeline_payload)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = '3.19.25'
4
+ VERSION = '3.19.26'
5
5
  end
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.25
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-09 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday