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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +8 -0
- data/lib/addons-api/client.rb +20 -0
- data/lib/addons-api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1b72d88ee50d9bba87b0045123bb74d0ec2420b6320bd2f78536956bcb810fa
|
4
|
+
data.tar.gz: 59e40d4fc52edb2af6fb54f6f557db3c03005988030a69c24b733b74a9b5941c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa813a00351ae0668f2796923e1ed24c52b462354896f200b842edb831540aeab5e2d348fc71365731f80557a86a2b6f5059202f6a8dd67f33d870aee9e5546
|
7
|
+
data.tar.gz: e5241d87058dfd890451c8a0b186d5c0c38bc59922f2444e00961c5b92b316885b30317e4f5011832acf9231244317f536d10633ee7b1e1c4d2ca8b4a548c80d
|
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
|
|
data/lib/addons-api/client.rb
CHANGED
@@ -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)
|
data/lib/addons-api/version.rb
CHANGED
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
|
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-
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|