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 +4 -4
- data/lib/stream/reactions.rb +11 -2
- data/lib/stream/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: ba8d09150e3b322d059f8ff8e7290e9cd9f7d8079fa38822ecff8e3800fc40ba
|
4
|
+
data.tar.gz: 74a37da7d4dba7f7e6bfb87bb9e186ce1fc1bef771c78f91d3b658d3c19feb50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef20d4fb49ad4e287cbe9e1c513f19fa5c4d0aa72afcadaa6f4171f1abd38aa1ab5e140c72f53cc80569d855d5576f159aaa122c3b0a7beff69bec53ffe138fe
|
7
|
+
data.tar.gz: 0f74c8d39d9fdd82cac6bb9ba22fa761f312822d4c124411ecc3ee9ace757b954b5b7b020620ae3ea6290f840669a848605280350b8c5ba0390aebcc00dd9808
|
data/lib/stream/reactions.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/stream/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|