strongmind-platform-sdk 3.19.12 → 3.19.13

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: f51b19ad7dfc60230158963a43cb8ed825ecbc4317f2ebd6cae0f953ae660535
4
- data.tar.gz: 866d4c83d9c4b964a10b9ce00cfdedc570a5d98116507e4445a20848461a507d
3
+ metadata.gz: e7c3c712c2fc562f84a6c9c689aff656811166a69fd465c8c7be28fc5f74b9de
4
+ data.tar.gz: c4ee9b6c0a9431888b896be1a10e16784a484a73581d5df3d55a6cfc1a981319
5
5
  SHA512:
6
- metadata.gz: 3eb54deacfcc857d009dbb1d3e28c990cc3705c29f1a0323664f554a4ab06023cf5146d26235132108f604a6d990b839f10c5945f04c1b27d2b046580f28e6d3
7
- data.tar.gz: 6726411078df88893d8fdeb8bb95b3b27253c72f16f48d83a485275fb49f23ca4fc905ad7807a1eb2f70656abd2fd8f3a1c7a0d122921e0b767310f8d2e3d197
6
+ metadata.gz: 7283e747a0e4bdb2b91cefe583fa871b4d3a232a4898b4b1e63f1764b0c692da2cf102302963afd4b3b12c536a84e9a3ec25968165464f1d2aeb5f92f88cc0dd
7
+ data.tar.gz: 3951f91be2df18a8ac2fcf8f18699df96516cb78beae5fb21547383a2ffa19561bd88121abd621b9490a7ee29b537d40cbb863d52849e40a793b77b49576c337
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.19.12)
4
+ strongmind-platform-sdk (3.19.13)
5
5
  activesupport (~> 7.1)
6
6
  aws-sdk-secretsmanager (~> 1.66)
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -45,8 +45,12 @@ module PlatformSdk
45
45
  data_hash = { action: }.merge!(attributes.symbolize_keys)
46
46
 
47
47
  data_hash.merge!(pipeline_additional_attributes)
48
+ Rails.logger.info("Data Hash after merge of additional attrs: #{data_hash}")
48
49
 
49
- data_hash.except(*pipeline_excluded_attributes)
50
+ data_hash = data_hash.except(*pipeline_excluded_attributes)
51
+
52
+ Rails.logger.info("Data Pipeline Payload: #{data_hash}")
53
+ data_hash
50
54
  end
51
55
 
52
56
  def pipeline_additional_attributes
@@ -64,9 +68,17 @@ module PlatformSdk
64
68
  pipeline_password: ENV.fetch('DATA_PIPELINE_PASSWORD', '')
65
69
  }
66
70
  client = PlatformSdk::DataPipeline::Client.new(credentials)
67
- client.post(pipeline_payload(action)) unless Rails.env.development?
71
+
72
+ begin
73
+ client.post(pipeline_payload(action)) unless Rails.env.development?
74
+ rescue => e
75
+ Rails.logger.info("Error posting to data pipeline: #{e.message}")
76
+ end
77
+
68
78
  return unless respond_to?(:one_roster_data_type) && !Rails.env.development?
69
79
 
80
+ Rails.logger.info('POSTING TO ONE ROSTER...')
81
+
70
82
  client.post(one_roster_pipeline_payload(deleted: action == "destroyed"))
71
83
  end
72
84
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.19.12"
4
+ VERSION = "3.19.13"
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.12
4
+ version: 3.19.13
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-31 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday