spyri-api 0.1.1 → 0.1.2

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: 814cdd58f0095f4ee13a2620f11a16772e69b17ea7fb44351cb137a17d49d847
4
- data.tar.gz: d319f88449d8a23d4de85381a7dbb0262ef33c6922978eefb010d4d9769807d5
3
+ metadata.gz: e99acff211e898fa9ffde40e736795ff8e357b19dbec0fd7ad2367478d4d3d93
4
+ data.tar.gz: f3a7fdbd14a68c952d4de5f846d7287a1c54901a003749f4fde51b4f3d18ee5c
5
5
  SHA512:
6
- metadata.gz: 9f13d6c99d3a6b86a3ee86e4dd4f4688b16e3bdd9600890d45aba46d7b5cd7c625e9c56271547b5dbd7a081c707ebf673219ffddae0e09bfe190b2e63ee2941b
7
- data.tar.gz: c13bd4678dc229b6491b3bd4a9f9d6829b49dc77d5e14b24cdbc8cd7c1bcbaa41af23b08b320dc6ee4b4a19621077bad7dc7c437d040fd03e4741069fa7528d1
6
+ metadata.gz: e5c24e5b5316625119881df9f80701c4d2465925a0ec83ec3da6692fa2ab5544636cab134921126b6e6ee5688716ce675b4b47fd80f1558f8cc720317e4b32ad
7
+ data.tar.gz: 46b578d1132ed5d2bd2554c662cb62719a22e51e12998bb1b10a54e508b8459a8b0d902c52c73b67689ec856e3b1661bd30ab18cedf76dbfbce67a4321488834
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.1.2] - 2024-12-04
2
+
3
+ - Add update and terminate methods to subscriptions
4
+
5
+ ## [0.1.1] - 2024-11-06
6
+
7
+ - Remove rails dependency
8
+
1
9
  ## [0.1.0] - 2024-11-06
2
10
 
3
11
  - Initial release
12
+
@@ -31,5 +31,15 @@ module SpyriApi
31
31
  @api_client.call_api(:POST, path, body: { subscription: subscription_object })
32
32
  end
33
33
 
34
+ def update(id, subscription_object)
35
+ path = "#{BASEPATH}/#{id}"
36
+ @api_client.call_api(:PATCH, path, body: { subscription: subscription_object })
37
+ end
38
+
39
+ def terminate(id)
40
+ path = "#{BASEPATH}/#{id}/terminate"
41
+ @api_client.call_api(:PATCH, path)
42
+ end
43
+
34
44
  end
35
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpyriApi
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spyri-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pabois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon