stream-ruby 4.3.0 → 4.4.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/activities.rb +1 -0
- data/lib/stream/feed.rb +1 -0
- data/lib/stream/reactions.rb +1 -1
- 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: 45db9a7a90e49d324f2dbbd689708e746c6568b2782719752b31edfe2179c83f
|
4
|
+
data.tar.gz: 0455ef9b94b2416d12b41ef8193d1c849ef433386b7d33d1c6f2832ba4e94d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be8cebeaeff425c71151891d29881f15745619bcf231f5a91241864ea87387edc5ab87522b539490f0c305016e9d0c8f7062f1bf9c17912a340c1b9fa9b966b
|
7
|
+
data.tar.gz: 5054648ea28fa389fc0e097271b4184e84514c70a8f9ce2f17df85db373b71caf956eeadafe70ba74f49121136af81576afc798cb99edb50c1ec074afaca46cb
|
data/lib/stream/activities.rb
CHANGED
@@ -40,6 +40,7 @@ module Stream
|
|
40
40
|
uri = params[:enrich] || params[:reactions] ? '/enrich/activities/' : '/activities/'
|
41
41
|
if params[:reactions].respond_to?(:keys)
|
42
42
|
params[:withOwnReactions] = true if params[:reactions][:own]
|
43
|
+
params[:withFirstReactions] = true if params[:reactions][:first]
|
43
44
|
params[:withRecentReactions] = true if params[:reactions][:recent]
|
44
45
|
params[:withReactionCounts] = true if params[:reactions][:counts]
|
45
46
|
params[:withOwnChildren] = true if params[:reactions][:children]
|
data/lib/stream/feed.rb
CHANGED
@@ -42,6 +42,7 @@ module Stream
|
|
42
42
|
params[:mark_seen] = params[:mark_seen].join(',') if params[:mark_seen]&.is_a?(Array)
|
43
43
|
if params[:reactions].respond_to?(:keys)
|
44
44
|
params[:withOwnReactions] = true if params[:reactions][:own]
|
45
|
+
params[:withFirstReactions] = true if params[:reactions][:first]
|
45
46
|
params[:withRecentReactions] = true if params[:reactions][:recent]
|
46
47
|
params[:withReactionCounts] = true if params[:reactions][:counts]
|
47
48
|
params[:withOwnChildren] = true if params[:reactions][:children]
|
data/lib/stream/reactions.rb
CHANGED
@@ -57,7 +57,7 @@ module Stream
|
|
57
57
|
field = 'user_id'
|
58
58
|
value = params[:user_id]
|
59
59
|
end
|
60
|
-
params.delete(field.to_sym) unless field.empty?
|
60
|
+
params.delete(field.to_sym) unless field.empty? && field != 'user_id'
|
61
61
|
uri = if kind.nil? || kind.empty?
|
62
62
|
"/reaction/#{field}/#{value}/"
|
63
63
|
else
|
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: 4.
|
4
|
+
version: 4.4.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: 2021-
|
13
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|