strongmind-platform-sdk 3.18.0 → 3.19.1

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: 7668529f3c043bc204f69d3f0776e6e8c9e8abea6bdf1c69a335d3f5705cc2e8
4
- data.tar.gz: 9e6058cd354f53a39e4e6bceacaf172ab616af924683fcfd40c332c6bf8b07b6
3
+ metadata.gz: 146cf71cc22b8b62287022ecfe1a4139c74302d1d6d08fa22c6a25b02628e443
4
+ data.tar.gz: fac3ee5ea48523de5f246976613d4e0d0dd03b8f72877484735d92ddb83190f7
5
5
  SHA512:
6
- metadata.gz: fbf1c4f53c4c88ea9eb66a825e44a30219ef3e39501293ac13630d05b10bdff29821ef0d18ce7a54948db807eb8c16ef74d79c44f8ac7bcb6e91887348dfb071
7
- data.tar.gz: d12b1686aeb1e5ab614fe844205476607b14c4e68b682e55375a829f07a17104ea9dbd05c9305fa9d3b75ee24a7f99f061b6415b1a733782048b25850a23f91e
6
+ metadata.gz: 6380d9e638bb28f53d33a12c65e948a3928b38fd28148fcbad0c0c471ad2c2fc26ae76645d824ec88c947467425a1cb6c0025bb55dbb0ff1f83d5561d8f001c5
7
+ data.tar.gz: 4d9cef2cd2731c221f48010a3e7aec6f94ccfe064df951c3cb66f3f72acf1b4d222e989a0f122c589bef80cbd9c5e0c2108b55430c4b3de7337ad2f25b3db405
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ AllCops:
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
6
- EnforcedStyle: double_quotes
6
+ EnforcedStyle: single_quotes
7
7
 
8
8
  Style/StringLiteralsInInterpolation:
9
9
  Enabled: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.18.0)
4
+ strongmind-platform-sdk (3.19.1)
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.929.0)
98
+ aws-partitions (1.931.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.93.0)
107
+ aws-sdk-secretsmanager (1.94.0)
108
108
  aws-sdk-core (~> 3, >= 3.193.0)
109
109
  aws-sigv4 (~> 1.1)
110
110
  aws-sigv4 (1.8.0)
@@ -14,7 +14,7 @@ module PlatformSdk
14
14
 
15
15
  def pipeline_payload(action)
16
16
  {
17
- "noun": pipeline_noun,
17
+ "noun": self.class.pipeline_noun,
18
18
  "identifiers": pipeline_identifiers,
19
19
  "meta": pipeline_meta,
20
20
  "data": pipeline_data(action),
@@ -23,8 +23,8 @@ module PlatformSdk
23
23
  }
24
24
  end
25
25
 
26
- def pipeline_noun
27
- "StrongMind.Central.#{self.class.name}"
26
+ def self.pipeline_noun
27
+ raise NotImplementedError, 'You must implement the pipeline_noun class method'
28
28
  end
29
29
 
30
30
  def pipeline_identifiers
@@ -39,6 +39,8 @@ module PlatformSdk
39
39
 
40
40
  def with_rescue
41
41
  yield
42
+ rescue Faraday::TimeoutError => e
43
+ raise TimeoutError, e
42
44
  rescue Faraday::ServerError => e
43
45
  raise_error_with_payload(ServerError, e)
44
46
  rescue Faraday::ClientError => e
@@ -13,5 +13,6 @@ module PlatformSdk
13
13
  class ResourceNotFound < Faraday::ResourceNotFound; end
14
14
  class ServerError < Faraday::ServerError; end
15
15
  class ClientError < Faraday::ClientError; end
16
+ class TimeoutError < Faraday::TimeoutError; end
16
17
  end
17
18
  end
@@ -3,7 +3,7 @@ module PlatformSdk
3
3
  RSpec.shared_examples "DataPipelineable" do | data = nil|
4
4
  let(:pipeline_payload) do
5
5
  {
6
- "noun": "StrongMind.Central.#{described_class.name}",
6
+ "noun": described_class.pipeline_noun,
7
7
  "identifiers": { "id": record.id },
8
8
  "meta": { "source": 'strongmind-central' },
9
9
  "data": data || default_data,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.18.0"
4
+ VERSION = "3.19.1"
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.18.0
4
+ version: 3.19.1
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-16 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday