strongmind-platform-sdk 3.19.14 → 3.19.16

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: 98bd52927d7e5a891a5f0d08859b3a93cfb972b139d32fd6a60eb7d4dc560318
4
- data.tar.gz: 9961afa772f7f38b60dc22a7eee82faffaaad308f37d3e152b3213bc58b18f39
3
+ metadata.gz: 580fb42245c26f8134f0a716acc733c0d08aeecf6d54db9146ac2fe385e1fce8
4
+ data.tar.gz: a9dc33df0401446d6887dc88686630b09be5d1fc14fb52e73576c1c17d5555c5
5
5
  SHA512:
6
- metadata.gz: '08ddd728575d5b9bdf091d0b085d1055e19d0e7ad1a08d4f37413aa3f03c77145f1d2cca2ca31c44b24ab2201631a67d175ff7241dfe68667205adf238b7dbfb'
7
- data.tar.gz: 92b4be7d302beef485bf7998fb35f3072680cce9bc3b266275791f08e4d2fda898cc5c67368a266fd814831beabbd7d9a80f5e1a712789e71005772edb5ed5da
6
+ metadata.gz: 140517212de5cb6fcd7cc63d477f9adf35d157a8a67cb872e223223f2ebcb3be536ef5d92c3f13746cfa5a480adad738afbe34ff605a7749b873577aad7f9934
7
+ data.tar.gz: 4cd2ed5a724c4843c11817fbdc8acf5388e9b94ce0204e7c73b39078ca99544d64c345afe946a3ad54c7cb3acaeda531e616274a4e86b11acc64fe7b808e6288
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.19.14)
4
+ strongmind-platform-sdk (3.19.16)
5
5
  activesupport (~> 7.1)
6
6
  aws-sdk-secretsmanager (~> 1.66)
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -95,17 +95,17 @@ 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.937.0)
99
- aws-sdk-cloudwatch (1.91.0)
100
- aws-sdk-core (~> 3, >= 3.193.0)
98
+ aws-partitions (1.941.0)
99
+ aws-sdk-cloudwatch (1.92.0)
100
+ aws-sdk-core (~> 3, >= 3.197.0)
101
101
  aws-sigv4 (~> 1.1)
102
- aws-sdk-core (3.196.1)
102
+ aws-sdk-core (3.197.0)
103
103
  aws-eventstream (~> 1, >= 1.3.0)
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.95.0)
108
- aws-sdk-core (~> 3, >= 3.193.0)
107
+ aws-sdk-secretsmanager (1.96.0)
108
+ aws-sdk-core (~> 3, >= 3.197.0)
109
109
  aws-sigv4 (~> 1.1)
110
110
  aws-sigv4 (1.8.0)
111
111
  aws-eventstream (~> 1, >= 1.0.2)
data/README.md CHANGED
@@ -124,7 +124,7 @@ class ApplicationRecord < ActiveRecord::Base
124
124
  self.abstract_class = true
125
125
 
126
126
  def self.pipeline_noun
127
- "StrongMind.Central.#{name}}"
127
+ "StrongMind.Central.#{name}"
128
128
  end
129
129
 
130
130
  def self.pipeline_meta
@@ -46,9 +46,7 @@ module PlatformSdk
46
46
 
47
47
  data_hash.merge!(pipeline_additional_attributes)
48
48
 
49
- data_hash = data_hash.except(*pipeline_excluded_attributes)
50
-
51
- data_hash
49
+ data_hash.except(*pipeline_excluded_attributes)
52
50
  end
53
51
 
54
52
  def pipeline_additional_attributes
@@ -42,6 +42,7 @@ module PlatformSdk
42
42
 
43
43
  def build_connection
44
44
  Faraday.new(@base_url) do |faraday|
45
+ faraday.request(:retry, retry_options)
45
46
  faraday.headers = default_headers
46
47
  faraday.adapter Faraday.default_adapter
47
48
  faraday.response :json, content_type: /\bjson$/, parser_options: { symbolize_names: true }
@@ -49,6 +50,16 @@ module PlatformSdk
49
50
  end
50
51
  end
51
52
 
53
+ def retry_options
54
+ {
55
+ max: 3,
56
+ interval: 0.05,
57
+ interval_randomness: 0.5,
58
+ backoff_factor: 2,
59
+ exceptions: [Faraday::ServerError]
60
+ }
61
+ end
62
+
52
63
  def default_headers
53
64
  {
54
65
  "Content-Type" => "application/json",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.19.14"
4
+ VERSION = "3.19.16"
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.14
4
+ version: 3.19.16
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-06-03 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday