strongmind-platform-sdk 3.19.6 → 3.19.8
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: a96d5aa7945fd70fc71dc5bca7a00756038727655e4e007a9bfad83a7251b54b
|
4
|
+
data.tar.gz: de985f9fa3bb6e62c1f2be87b4a9b265d267b03d8635e4010b37725cd9920dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07877c3c9e11727ca2ae0712cb7ba783d7ceafe713e2ab916bc7b6c1dd25a8d3b8ba2a047c2007707454e9bacdb3a4df984df6221ee5d3459d132ee5bd25ff73'
|
7
|
+
data.tar.gz: 1aeefbe7d613d46efc392043ea769567a1da826e7f9aa3abe6dfb5e6d318e10cfe990be636bc87b259dc20737ad4399b5c2fc0bcbc0629b4fee6c2d93ecb826f
|
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.8)
|
5
5
|
activesupport (~> 7.1)
|
6
6
|
aws-sdk-secretsmanager (~> 1.66)
|
7
7
|
faraday (~> 2.5, >= 2.5.2)
|
@@ -95,7 +95,7 @@ GEM
|
|
95
95
|
public_suffix (>= 2.0.2, < 6.0)
|
96
96
|
ast (2.4.2)
|
97
97
|
aws-eventstream (1.3.0)
|
98
|
-
aws-partitions (1.
|
98
|
+
aws-partitions (1.934.0)
|
99
99
|
aws-sdk-cloudwatch (1.91.0)
|
100
100
|
aws-sdk-core (~> 3, >= 3.193.0)
|
101
101
|
aws-sigv4 (~> 1.1)
|
data/README.md
CHANGED
@@ -153,6 +153,13 @@ class MyModel < ApplicationRecord
|
|
153
153
|
end
|
154
154
|
```
|
155
155
|
|
156
|
+
### Configuration
|
157
|
+
You will need the following ENV variables set in your application to send data to the Data Pipeline (found in bitwarden):
|
158
|
+
* DATA_PIPELINE_HOST
|
159
|
+
* DATA_PIPELINE_USERNAME
|
160
|
+
* DATA_PIPELINE_PASSWORD
|
161
|
+
|
162
|
+
|
156
163
|
### Testing
|
157
164
|
|
158
165
|
To test the `DataPipelineable` concern for a model, include the common shared examples in the model's spec file:
|
@@ -68,10 +68,12 @@ module PlatformSdk
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def update_record(record, column)
|
71
|
+
new_record = build(described_class.to_s.underscore.to_sym)
|
72
|
+
|
71
73
|
column_class = record[column]
|
72
74
|
case column_class
|
73
75
|
when String
|
74
|
-
record.update!(column =>
|
76
|
+
record.update!(column => new_record[column])
|
75
77
|
when Integer
|
76
78
|
record.update!(column => 69)
|
77
79
|
when Boolean
|
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.8
|
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-05-
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|