strongmind-platform-sdk 3.19.14 → 3.19.15

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: 4f47de97e4fc1301412c996ab3c6d72736c3d89fe98e602d5cc890be7384c043
4
+ data.tar.gz: f98510e86a9d4a4ecf7db1a261dcfd4c6b1c3b6801067e71a97aa3b5f3f18bad
5
5
  SHA512:
6
- metadata.gz: '08ddd728575d5b9bdf091d0b085d1055e19d0e7ad1a08d4f37413aa3f03c77145f1d2cca2ca31c44b24ab2201631a67d175ff7241dfe68667205adf238b7dbfb'
7
- data.tar.gz: 92b4be7d302beef485bf7998fb35f3072680cce9bc3b266275791f08e4d2fda898cc5c67368a266fd814831beabbd7d9a80f5e1a712789e71005772edb5ed5da
6
+ metadata.gz: 543409f51579689eb9d30fa3fd2f67af5f407ec08dcaea14aac51585d72f6fcd6191c851a71357c6b933c56958b118035a0a14c5bec09f8f8e1ddffa262cc41f
7
+ data.tar.gz: a3ddbf414d291caac6a694dd5f35c2a7ba10dab5d684c9b3e00489541a8e1e152945bd9b9bcfd4de3e7367e61bb89944e3eca054aecd787bfed5a2c6330a29cb
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.15)
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.937.0)
98
+ aws-partitions (1.939.0)
99
99
  aws-sdk-cloudwatch (1.91.0)
100
100
  aws-sdk-core (~> 3, >= 3.193.0)
101
101
  aws-sigv4 (~> 1.1)
@@ -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.15"
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.15
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-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday