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: 27b831b59ae528ac6025284c8e8a7a3a1e1b8281f9c58a112b322efb9e995fad
4
- data.tar.gz: bb2321d929178a6b5b90ab47ece14301c3749f97c5b61bda81339b14f082652e
3
+ metadata.gz: a96d5aa7945fd70fc71dc5bca7a00756038727655e4e007a9bfad83a7251b54b
4
+ data.tar.gz: de985f9fa3bb6e62c1f2be87b4a9b265d267b03d8635e4010b37725cd9920dbc
5
5
  SHA512:
6
- metadata.gz: 9dbb90cdbbd0c4c55bfda24557cbb1043b7efa84822a5e517af37a68f491cca565be87cc3a47fce8bf4122eba9e519632862cc05a481276db30b51a0122c5178
7
- data.tar.gz: fceda5b320331e15198ff8a102f926da1f44e394fac06ab065a9c960ce3cbdb21754b25f89b6895d774ff9398c081c6f4da5b5b5b7214a3c58da48556963d2e1
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.6)
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.933.0)
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 => 'new value')
76
+ record.update!(column => new_record[column])
75
77
  when Integer
76
78
  record.update!(column => 69)
77
79
  when Boolean
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.19.6"
4
+ VERSION = "3.19.8"
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.6
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-22 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday