strongmind-platform-sdk 3.20.3 → 3.21.0

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: 39887edb892678a590696aeb37862e90bbe65fe47707c50d35e82e4a372b7294
4
- data.tar.gz: 27b88720fd239285355efd10adafa07a414c10b42bbbe766b9f97eab094436f3
3
+ metadata.gz: e6ef87966021eec7c833f5d1b603373ba547f1687d953fbd8923ee33af5f5aa2
4
+ data.tar.gz: fa98f5dbd4413fceb3cbeba32bef476d9bfebbc9c7afd13e23d76e3c41c2ffed
5
5
  SHA512:
6
- metadata.gz: 68f4f165183a549546420a3419c0f006b5c539d7dc9ac5840f468b950b5c645937e7319292f6ceaaf932dbeda309c972e7ce2c55b268b7a8cf7f35fa8e37ed23
7
- data.tar.gz: 5d239540c4695351f577914f86db1f5afbda4b78d5eebf13028d5cfa9833ac517ebdf33794b3af74af00d62de38634162e06298cd7488a5154c59a321ba76a2e
6
+ metadata.gz: cb0a228aa4c60a050b539858abb6f50399d5779793863c085b5d13f22cd166007c3528d2d297338e315dfb24f3eca6661efac8455d38e1e0128f46f1aae4ed06
7
+ data.tar.gz: 88c84634da5100b977627e3347d89ecee11849b64aebc55c919213cc9ca82e856e39dcd4a637b91bdadc9f015eabbcdaff92bc4a370171df34d4b8d9cd71ddcf
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.3
1
+ 3.2.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.20.0)
4
+ strongmind-platform-sdk (3.21.0)
5
5
  asset_sync
6
6
  aws-sdk-cloudwatch
7
7
  aws-sdk-secretsmanager (~> 1.66)
@@ -30,6 +30,11 @@ module PlatformSdk
30
30
  response.body
31
31
  end
32
32
 
33
+ def post(path, payload = {})
34
+ response = @conn.post(path, payload.to_json, 'Content-Type' => 'application/json')
35
+ response.body
36
+ end
37
+
33
38
  def headers
34
39
  { "Authorization" => "Token #{@token}" }
35
40
  end
@@ -51,6 +56,13 @@ module PlatformSdk
51
56
  end
52
57
  end
53
58
 
59
+ def create_pair(payload)
60
+ raise StandardError, "Payload can not be empty." if payload.empty?
61
+
62
+ path = "api/v1/pairs"
63
+ post(path, payload)
64
+ end
65
+
54
66
  def domains(**params)
55
67
  path = 'api/v1/domains/'
56
68
  body = get(path, params)
@@ -2,8 +2,8 @@
2
2
 
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
- MINOR = 20
6
- PATCH = 3
5
+ MINOR = 21
6
+ PATCH = 0
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}"
9
9
  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.20.3
4
+ version: 3.21.0
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-11-07 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday