addons-api 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00a56abad0f35243e4cdb784c6cc2002aa08280fbaa578cf5f370389abbc37d1
4
- data.tar.gz: 49efbe2bca086b8b5a41904a77c60cb441f55800b25e1fe286757c1667649464
3
+ metadata.gz: b1b72d88ee50d9bba87b0045123bb74d0ec2420b6320bd2f78536956bcb810fa
4
+ data.tar.gz: 59e40d4fc52edb2af6fb54f6f557db3c03005988030a69c24b733b74a9b5941c
5
5
  SHA512:
6
- metadata.gz: c91634a84c28abd7484a99073319c2db23e866e6ae2c7c67c9745461f260c0b4e3228848429c4ac74605c20cbcb493c7cd7a05c09fcd3c102595fb3bb68d99ea
7
- data.tar.gz: 040e96fda608dd0fbfb0a5802051001cac96e0a1203bc512e066ff8c8f21db582aec8878656ec7a56b59d683f3526548a8d29ccbe43a179331797fd16f5c1cb8
6
+ metadata.gz: 6aa813a00351ae0668f2796923e1ed24c52b462354896f200b842edb831540aeab5e2d348fc71365731f80557a86a2b6f5059202f6a8dd67f33d870aee9e5546
7
+ data.tar.gz: e5241d87058dfd890451c8a0b186d5c0c38bc59922f2444e00961c5b92b316885b30317e4f5011832acf9231244317f536d10633ee7b1e1c4d2ca8b4a548c80d
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.0.9"
2
+ ".": "1.1.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.0](https://github.com/addonsio/addons-ruby/compare/addons-api/v1.0.9...addons-api/v1.1.0) (2024-02-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * bump release ([#10](https://github.com/addonsio/addons-ruby/issues/10)) ([12f4f8e](https://github.com/addonsio/addons-ruby/commit/12f4f8ed48ce69179026d4866054dfaae3187814))
9
+ * release 1.1.0 ([12f4f8e](https://github.com/addonsio/addons-ruby/commit/12f4f8ed48ce69179026d4866054dfaae3187814))
10
+
3
11
  ## [1.0.9](https://github.com/addonsio/addons-ruby/compare/addons-api-v1.0.8...addons-api/v1.0.9) (2024-02-08)
4
12
 
5
13
 
@@ -247,6 +247,10 @@ module AddonsApi
247
247
  @client = client
248
248
  end
249
249
 
250
+ def sso(team_id, addon_id, body = {})
251
+ @sso_resource ||= Sso.new(@client)
252
+ end
253
+
250
254
  def action
251
255
  @action_resource ||= Action.new(@client)
252
256
  end
@@ -275,6 +279,22 @@ module AddonsApi
275
279
  @client.request(:patch, "#{BASE_PATH}/#{team_id}/addons/#{addon_id}", body: body)
276
280
  end
277
281
 
282
+ class Sso
283
+ def initialize(client)
284
+ @client = client
285
+ end
286
+
287
+ # Get the configuration of an addon.
288
+ def create(team_id, addon_id)
289
+ @client.request(:post, "#{BASE_PATH}/#{team_id}/addons/#{addon_id}/sso")
290
+ end
291
+
292
+ # Mark an addon as deprovisioned with callback URL.
293
+ def create_with_callback_url(callback_url)
294
+ @client.request(:post, "sso", base_url: callback_url)
295
+ end
296
+ end
297
+
278
298
  # Configuration of an Addon
279
299
  class Config
280
300
  def initialize(client)
@@ -1,3 +1,3 @@
1
1
  module AddonsApi
2
- VERSION = '1.0.9'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addons-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - motymichaely
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler