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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f82c7be6c43499e9a1cc39406dba3536addda37b09e7d0633681a66a51df4e29
4
- data.tar.gz: ed30ac1258dcc0725d88a125d2c66149d2e71ba3b004ff70c27caf7cd2f5198b
3
+ metadata.gz: 45db9a7a90e49d324f2dbbd689708e746c6568b2782719752b31edfe2179c83f
4
+ data.tar.gz: 0455ef9b94b2416d12b41ef8193d1c849ef433386b7d33d1c6f2832ba4e94d08
5
5
  SHA512:
6
- metadata.gz: 98a3991725770abe6c28746f4d172f6fce5b236301c05ad74b8df342902aec34564f2bc61f3e7aabc9a8daeabea0ca75de728d68a7461d9b06ab4e30332ebfe7
7
- data.tar.gz: c319666f57917ec387936d0637c0162430b9f0cb93ffb4dc72e0de7767103a4d26e7690f60faae4bcb105ae062a95c5e40e4f77d19846665997bb6e7585a325d
6
+ metadata.gz: 3be8cebeaeff425c71151891d29881f15745619bcf231f5a91241864ea87387edc5ab87522b539490f0c305016e9d0c8f7062f1bf9c17912a340c1b9fa9b966b
7
+ data.tar.gz: 5054648ea28fa389fc0e097271b4184e84514c70a8f9ce2f17df85db373b71caf956eeadafe70ba74f49121136af81576afc798cb99edb50c1ec074afaca46cb
@@ -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]
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Stream
2
- VERSION = '4.3.0'.freeze
2
+ VERSION = '4.4.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: 4.3.0
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-09-27 00:00:00.000000000 Z
13
+ date: 2021-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday