strongmind-platform-sdk 3.19.24 → 3.19.25
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/Gemfile.lock +5 -5
- data/lib/platform_sdk/active_record/data_pipelineable.rb +15 -3
- data/lib/platform_sdk/spec_support/shared_examples/data_pipelineable_examples.rb +5 -1
- data/lib/platform_sdk/spec_support/shared_examples/one_roster_data_pipelineable_examples.rb +5 -1
- data/lib/platform_sdk/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: ebdac0cb65c314ce3ab7afc599d77a00f21d518881b7f068e6232f5ab0a22185
|
4
|
+
data.tar.gz: aa1db7446a18336bd247f2f5746d522c5117082fbe2442b81a0b9aa09b774197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c5afb7bd8d19cf58727d5a989954ed1b6cbd4b6cf7b3c2e63c9a9731dc57906ff6fd03c275d77cff3d891440fb44bc80becec8ea32896ea57971010a8c3c49
|
7
|
+
data.tar.gz: 73a4875db7eed84fe8e89b6c41dff51c73ddc8a6f6aeb2d48aae28447e2769f52f8e9aba5dbb1af9f28b98d2b70f4b28eb472cf8c8630d316fd4a4751759d749
|
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.25)
|
5
5
|
activesupport (~> 7.1)
|
6
6
|
asset_sync
|
7
7
|
aws-sdk-secretsmanager (~> 1.66)
|
@@ -103,11 +103,11 @@ 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.953.0)
|
107
107
|
aws-sdk-cloudwatch (1.96.0)
|
108
108
|
aws-sdk-core (~> 3, >= 3.201.0)
|
109
109
|
aws-sigv4 (~> 1.5)
|
110
|
-
aws-sdk-core (3.201.
|
110
|
+
aws-sdk-core (3.201.1)
|
111
111
|
aws-eventstream (~> 1, >= 1.3.0)
|
112
112
|
aws-partitions (~> 1, >= 1.651.0)
|
113
113
|
aws-sigv4 (~> 1.8)
|
@@ -133,7 +133,7 @@ GEM
|
|
133
133
|
erubi (1.12.0)
|
134
134
|
ethon (0.16.0)
|
135
135
|
ffi (>= 1.15.0)
|
136
|
-
excon (0.
|
136
|
+
excon (0.111.0)
|
137
137
|
factory_bot (6.4.6)
|
138
138
|
activesupport (>= 5.0.0)
|
139
139
|
faker (3.3.1)
|
@@ -145,7 +145,7 @@ GEM
|
|
145
145
|
faraday-retry (2.2.1)
|
146
146
|
faraday (~> 2.0)
|
147
147
|
ffi (1.16.3)
|
148
|
-
fog-aws (3.
|
148
|
+
fog-aws (3.24.0)
|
149
149
|
fog-core (~> 2.1)
|
150
150
|
fog-json (~> 1.1)
|
151
151
|
fog-xml (~> 0.1)
|
@@ -7,9 +7,21 @@ module PlatformSdk
|
|
7
7
|
extend ActiveSupport::Concern
|
8
8
|
|
9
9
|
included do
|
10
|
-
after_create
|
11
|
-
before_destroy
|
12
|
-
after_update
|
10
|
+
after_create :send_pipeline_create
|
11
|
+
before_destroy :send_pipeline_destroy
|
12
|
+
after_update :send_pipeline_update
|
13
|
+
end
|
14
|
+
|
15
|
+
def send_pipeline_create
|
16
|
+
send_to_pipeline('created')
|
17
|
+
end
|
18
|
+
|
19
|
+
def send_pipeline_update
|
20
|
+
send_to_pipeline('modified')
|
21
|
+
end
|
22
|
+
|
23
|
+
def send_pipeline_destroy
|
24
|
+
send_to_pipeline('destroyed')
|
13
25
|
end
|
14
26
|
|
15
27
|
def pipeline_payload(action)
|
@@ -54,8 +54,12 @@ module PlatformSdk
|
|
54
54
|
context 'after_update callbacks' do
|
55
55
|
let(:action) { 'modified' }
|
56
56
|
|
57
|
-
|
57
|
+
before do
|
58
|
+
allow(record).to receive(:send_pipeline_create)
|
58
59
|
record.save!
|
60
|
+
end
|
61
|
+
|
62
|
+
it "defines an after_update callback" do
|
59
63
|
column = column_to_update(record)
|
60
64
|
update_record(record, column)
|
61
65
|
expect(data_pipeline_client).to have_received(:post).with(pipeline_payload)
|
@@ -78,8 +78,12 @@ module PlatformSdk
|
|
78
78
|
context "after_update callbacks" do
|
79
79
|
let(:action) { "modified" }
|
80
80
|
|
81
|
-
|
81
|
+
before do
|
82
|
+
allow(record).to receive(:send_pipeline_create)
|
82
83
|
record.save!
|
84
|
+
end
|
85
|
+
|
86
|
+
it "defines an after_update callback" do
|
83
87
|
column = column_to_update(record)
|
84
88
|
update_record(record, column)
|
85
89
|
expect(data_pipeline_client).to have_received(:post).with(pipeline_payload)
|
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.25
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|