strongmind-platform-sdk 3.3.0 → 3.4.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: cd9e8303f15c2836a1a11f1435449820b1146502186a032c170483d7a94b61ec
4
- data.tar.gz: 871fbbb7866141a5e9e0d3923ba425589315781aeb5cbd75d9626985c8816165
3
+ metadata.gz: c093e0e2efe022b81965519f1b7130b60231c84a492b50bb089b65793a60dc06
4
+ data.tar.gz: 33d39f0115aca3eabbcbae9dc6fb89dafb391d6f6f6d1da582f09117d39de1b8
5
5
  SHA512:
6
- metadata.gz: aac52f03c57ebcfcab562a8e1530582387ddd0752db515b498ec96fd9de7a18f55130eeaeaf74451d82ed3c03f2a551cf03a8245490a8dfa7f157a18db83aab8
7
- data.tar.gz: b5799b0a7106a750261f359ab1d0d41c93e733b1abaf0cf9349e89a2727ed44ba3278791bdfe0bce2d9b324bd4bff0e52f3b547c2bb9ad64ff39da4a6413491c
6
+ metadata.gz: bd187124a5476ec2967cecb1e8e1332506e5b8d1a6b0d017d686ae40841bbb1dfaa9b52e4a9e4152644a836db62b8225931cd6ded7d27f94bf4455075e60ad86
7
+ data.tar.gz: 56ec8877fd3e3c0bafd33ac412d3f7ad6aeb12a6df873394ffbac48af38b7aeda4f9fe99cc7c5f710b56c31bdd49dad503d8d6b69c0a675b84914ef682363f98
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.3.0)
4
+ strongmind-platform-sdk (3.4.0)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  devise
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -40,8 +40,8 @@ GEM
40
40
  ast (2.4.2)
41
41
  attr_required (1.0.1)
42
42
  aws-eventstream (1.2.0)
43
- aws-partitions (1.843.0)
44
- aws-sdk-core (3.185.1)
43
+ aws-partitions (1.847.0)
44
+ aws-sdk-core (3.186.0)
45
45
  aws-eventstream (~> 1, >= 1.0.2)
46
46
  aws-partitions (~> 1, >= 1.651.0)
47
47
  aws-sigv4 (~> 1.5)
@@ -56,7 +56,7 @@ GEM
56
56
  builder (3.2.4)
57
57
  concurrent-ruby (1.2.2)
58
58
  crass (1.0.6)
59
- date (3.3.3)
59
+ date (3.3.4)
60
60
  devise (4.9.3)
61
61
  bcrypt (~> 3.0)
62
62
  orm_adapter (~> 0.1)
@@ -104,18 +104,22 @@ GEM
104
104
  mini_mime (1.1.5)
105
105
  mini_portile2 (2.8.5)
106
106
  minitest (5.18.0)
107
- net-imap (0.4.2)
107
+ net-imap (0.4.4)
108
108
  date
109
109
  net-protocol
110
110
  net-pop (0.1.2)
111
111
  net-protocol
112
- net-protocol (0.2.1)
112
+ net-protocol (0.2.2)
113
113
  timeout
114
114
  net-smtp (0.4.0)
115
115
  net-protocol
116
116
  nokogiri (1.15.4)
117
117
  mini_portile2 (~> 2.8.2)
118
118
  racc (~> 1.4)
119
+ nokogiri (1.15.4-x86_64-darwin)
120
+ racc (~> 1.4)
121
+ nokogiri (1.15.4-x86_64-linux)
122
+ racc (~> 1.4)
119
123
  omniauth (2.1.1)
120
124
  hashie (>= 3.4.6)
121
125
  rack (>= 2.2.3)
@@ -144,7 +148,7 @@ GEM
144
148
  parser (3.2.2.1)
145
149
  ast (~> 2.4.1)
146
150
  public_suffix (5.0.3)
147
- racc (1.7.1)
151
+ racc (1.7.3)
148
152
  rack (2.2.8)
149
153
  rack-oauth2 (2.2.0)
150
154
  activesupport
@@ -214,13 +218,13 @@ GEM
214
218
  faraday (~> 2.0)
215
219
  faraday-follow_redirects
216
220
  thor (1.3.0)
217
- timeout (0.4.0)
221
+ timeout (0.4.1)
218
222
  typhoeus (1.4.0)
219
223
  ethon (>= 0.9.0)
220
224
  tzinfo (2.0.6)
221
225
  concurrent-ruby (~> 1.0)
222
226
  unicode-display_width (2.4.2)
223
- uri (0.12.2)
227
+ uri (0.13.0)
224
228
  validate_email (0.1.6)
225
229
  activemodel (>= 3.0)
226
230
  mail (>= 2.2.5)
@@ -127,6 +127,13 @@ module PlatformSdk
127
127
  response.body
128
128
  end
129
129
 
130
+ def update_space(space_id, title: nil)
131
+ validate_update_space_args(space_id, title)
132
+ body = { space: { title: title } }
133
+ response = patch("/spaces/#{space_id}", body.to_json)
134
+ response.body
135
+ end
136
+
130
137
  private
131
138
 
132
139
  def build_connection
@@ -180,6 +187,11 @@ module PlatformSdk
180
187
  end
181
188
  end
182
189
 
190
+ def validate_update_space_args(space_id, title)
191
+ raise ArgumentError, "space_id must have a value" if space_id.nil?
192
+ raise ArgumentError, "title must have a value" if title.nil?
193
+ end
194
+
183
195
  def validate_api_user_role!(role)
184
196
  return if VALID_API_USER_ROLES.include?(role)
185
197
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.3.0"
4
+ VERSION = "3.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team