strongmind-platform-sdk 3.19.4 → 3.19.6

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: 9d80d70cf202a1338c60383231756e999d24a59f9f9355dd5458ff2aacbdd88c
4
- data.tar.gz: db7ef460805cd0679dc0644e57168005a6ed563d5a3410a331a065a3a2417468
3
+ metadata.gz: 27b831b59ae528ac6025284c8e8a7a3a1e1b8281f9c58a112b322efb9e995fad
4
+ data.tar.gz: bb2321d929178a6b5b90ab47ece14301c3749f97c5b61bda81339b14f082652e
5
5
  SHA512:
6
- metadata.gz: 59cb37389b99445ed706761425960774648b7c232d1948ee9c3fe66f71980c4b0b936b3aba6235977189394a2bb2dd0c6ac847685944e9acde12c2a09f35a7c3
7
- data.tar.gz: 3594b5bbe419c9ad257c0937231ef91a0f5b8466f53436bfe822b00e554f70793c583d00afae6b9451b20373ccce741d8e2d57bedf99f3669fa36331d0873422
6
+ metadata.gz: 9dbb90cdbbd0c4c55bfda24557cbb1043b7efa84822a5e517af37a68f491cca565be87cc3a47fce8bf4122eba9e519632862cc05a481276db30b51a0122c5178
7
+ data.tar.gz: fceda5b320331e15198ff8a102f926da1f44e394fac06ab065a9c960ce3cbdb21754b25f89b6895d774ff9398c081c6f4da5b5b5b7214a3c58da48556963d2e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.19.4)
4
+ strongmind-platform-sdk (3.19.6)
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.931.0)
98
+ aws-partitions (1.933.0)
99
99
  aws-sdk-cloudwatch (1.91.0)
100
100
  aws-sdk-core (~> 3, >= 3.193.0)
101
101
  aws-sigv4 (~> 1.1)
@@ -104,7 +104,7 @@ GEM
104
104
  aws-partitions (~> 1, >= 1.651.0)
105
105
  aws-sigv4 (~> 1.8)
106
106
  jmespath (~> 1, >= 1.6.1)
107
- aws-sdk-secretsmanager (1.94.0)
107
+ aws-sdk-secretsmanager (1.95.0)
108
108
  aws-sdk-core (~> 3, >= 3.193.0)
109
109
  aws-sigv4 (~> 1.1)
110
110
  aws-sigv4 (1.8.0)
@@ -232,7 +232,7 @@ GEM
232
232
  rake (13.2.1)
233
233
  rdoc (6.6.3.1)
234
234
  psych (>= 4.0.0)
235
- redis-client (0.22.1)
235
+ redis-client (0.22.2)
236
236
  connection_pool
237
237
  regexp_parser (2.9.1)
238
238
  reline (0.5.7)
@@ -289,7 +289,7 @@ GEM
289
289
  strongmind-oneroster-client (2.0.3)
290
290
  json (~> 2.1, >= 2.1.0)
291
291
  typhoeus (~> 1.0, >= 1.0.1)
292
- strongmind-sidekiq-cloudwatchmetrics (2.6.3)
292
+ strongmind-sidekiq-cloudwatchmetrics (2.6.4)
293
293
  aws-sdk-cloudwatch (~> 1.6)
294
294
  sidekiq (>= 5.0, < 8.0)
295
295
  sys-uname (1.2.3)
data/README.md CHANGED
@@ -165,6 +165,13 @@ RSpec.describe MyModel, type: :model do
165
165
  end
166
166
  ```
167
167
 
168
+ Make sure to stub the call to the Data Pipeline in `rails_helper.rb`
169
+
170
+ ```ruby
171
+ config.before(:each) do
172
+ allow_any_instance_of(PlatformSdk::DataPipeline::Client).to receive(:post)
173
+ end
174
+ ```
168
175
 
169
176
 
170
177
  ## Setting up IRB for API Client Testing
@@ -16,7 +16,7 @@ module PlatformSdk
16
16
  action:
17
17
  }.merge!(record.attributes.symbolize_keys)
18
18
  end
19
- let(:record) { build(described_class.to_s.downcase.to_sym) }
19
+ let(:record) { build(described_class.to_s.underscore.to_sym) }
20
20
  let(:data_pipeline_client) { double(PlatformSdk::DataPipeline::Client)}
21
21
 
22
22
  before do
@@ -61,8 +61,8 @@ module PlatformSdk
61
61
 
62
62
  def column_to_update(record)
63
63
  [:string, :integer, :boolean].each do |type|
64
- if record.class.columns.select { |c| c.sql_type_metadata.type == type }.any?
65
- return record.class.columns.select { |c| c.sql_type_metadata.type == type }.first.name
64
+ if record.class.columns.select { |c| c.sql_type_metadata.type == type && !c.name.match?(/_type$/) }.any?
65
+ return record.class.columns.select { |c| c.sql_type_metadata.type == type && !c.name.match?(/_type$/) }.first.name
66
66
  end
67
67
  end
68
68
  end
@@ -25,7 +25,7 @@ module PlatformSdk
25
25
  "message_timestamp": Time.current.utc.iso8601
26
26
  }
27
27
  end
28
- let(:record) { build(described_class.to_s.downcase.to_sym) }
28
+ let(:record) { build(described_class.to_s.underscore.to_sym) }
29
29
  let(:one_roster_common_data) do
30
30
  {
31
31
  "sourcedId": record.roster_id,
@@ -88,8 +88,8 @@ module PlatformSdk
88
88
 
89
89
  def column_to_update(record)
90
90
  %i[string integer boolean].each do |type|
91
- if record.class.columns.select { |c| c.sql_type_metadata.type == type }.any?
92
- return record.class.columns.select { |c| c.sql_type_metadata.type == type }.first.name
91
+ if record.class.columns.select { |c| c.sql_type_metadata.type == type && !c.name.match?(/_type$/) }.any?
92
+ return record.class.columns.select { |c| c.sql_type_metadata.type == type && !c.name.match?(/_type$/) }.first.name
93
93
  end
94
94
  end
95
95
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.19.4"
4
+ VERSION = "3.19.6"
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.4
4
+ version: 3.19.6
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-20 00:00:00.000000000 Z
11
+ date: 2024-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday