stream-ruby 5.0.0 → 5.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: bfd203a2357656c046a91325ce2082936352b3b176843a21d0eb3d6e3106bbf8
4
- data.tar.gz: 0546e91f47555557d7c4356bcbb14d481e1c9c5e6026782363a7dd5552fe4e5e
3
+ metadata.gz: ba8d09150e3b322d059f8ff8e7290e9cd9f7d8079fa38822ecff8e3800fc40ba
4
+ data.tar.gz: 74a37da7d4dba7f7e6bfb87bb9e186ce1fc1bef771c78f91d3b658d3c19feb50
5
5
  SHA512:
6
- metadata.gz: 0ab9393abc7fa7cc42325ca2d004c80b14b8e25b00fa65d93c79327d8adb99f02a0f29a10e228690d9608cabf04241adac86f78015fc544fbe0fdc17b6e21540
7
- data.tar.gz: 9a3a83f3ae7b6b9c5e8c7593688ca01d4a147fc8d13bb3fc9a16a80d795d507d02a0a31829ae17da6b0c2f725e2a69f057c23056b58297f6ada1996d9bb71e90
6
+ metadata.gz: ef20d4fb49ad4e287cbe9e1c513f19fa5c4d0aa72afcadaa6f4171f1abd38aa1ab5e140c72f53cc80569d855d5576f159aaa122c3b0a7beff69bec53ffe138fe
7
+ data.tar.gz: 0f74c8d39d9fdd82cac6bb9ba22fa761f312822d4c124411ecc3ee9ace757b954b5b7b020620ae3ea6290f840669a848605280350b8c5ba0390aebcc00dd9808
@@ -26,9 +26,18 @@ module Stream
26
26
  make_reaction_request(:put, {}, data, endpoint: uri)
27
27
  end
28
28
 
29
- def delete(reaction_id)
29
+ def delete(reaction_id, soft: false)
30
30
  uri = "/reaction/#{reaction_id}/"
31
- make_reaction_request(:delete, {}, {}, endpoint: uri)
31
+ if soft
32
+ make_reaction_request(:delete, { soft: soft }, {}, endpoint: uri)
33
+ else
34
+ make_reaction_request(:delete, {}, {}, endpoint: uri)
35
+ end
36
+ end
37
+
38
+ def restore(reaction_id)
39
+ uri = "/reaction/#{reaction_id}/restore/"
40
+ make_reaction_request(:put, {}, {}, endpoint: uri)
32
41
  end
33
42
 
34
43
  def add_child(kind, parent_id, user_id, data: nil, target_feeds: nil, target_feeds_extra_data: nil)
@@ -1,3 +1,3 @@
1
1
  module Stream
2
- VERSION = '5.0.0'.freeze
2
+ VERSION = '5.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbugli
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-03-31 00:00:00.000000000 Z
13
+ date: 2023-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday