stream-ruby 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 29d5da2d0fd022c89bf1f1fbfb5d7260e3b4d0e0
4
- data.tar.gz: 0aac9dfc71e8e0d925c7a3e81df8643ca502886f
2
+ SHA256:
3
+ metadata.gz: badc3e658484654a812323b996cdfbd788f9fa233c727b8d9bdc1d3fa3dc9229
4
+ data.tar.gz: a1a2521e4a76517dbc87186de56842f772967cf567b4763e7ae1c2cf3760e53d
5
5
  SHA512:
6
- metadata.gz: a97a8e96e4925799c90f7b01a04e017b482a5681eabf16028b3a794c78611aaa5bf946cc3c1b0e21198e9e58bb1eb94f633858dc3fb97c4cab2e166d3a5c0374
7
- data.tar.gz: 6f6929f338a722f487c6dbd0df2d4955d51c7d7fcbdd65a6902da65b0aae854ba22ec6882481409156a0e0e46600712910e7f4d1df829c264ec5784cb79f53a8
6
+ metadata.gz: 56cb9a2498641543f546f6574887c35bb8f109edd452da6bb03271ef820ebdc426f05946d00a6a18b0b7df1773251b0108de32b34ea4d9134f195fd08f184ddf
7
+ data.tar.gz: 8d024894fbe8754a84c94c539279222aa831a527c4b86b11a68a46bf3b4b33bc204823636313bec8783700fc464a5c2cad84a374a33442bcdef232a036701a57
data/lib/stream/batch.rb CHANGED
@@ -24,6 +24,26 @@ module Stream
24
24
  make_signed_request(:post, '/follow_many/', query_params, follows)
25
25
  end
26
26
 
27
+ #
28
+ # Unfollow many feeds in one single request
29
+ #
30
+ # @param [Array<Hash<:source, :target, :keep_history>>] unfollows the list of follows to remove.
31
+ #
32
+ # return [nil]
33
+ #
34
+ # @example
35
+ #
36
+ #
37
+ # unfollows = [
38
+ # {source: 'user:1', target: 'timeline:1'},
39
+ # {source: 'user:2', target: 'timeline:2', keep_history: false}
40
+ # ]
41
+ # @client.unfollow_many(unfollows)
42
+ #
43
+ def unfollow_many(unfollows)
44
+ make_signed_request(:post, '/unfollow_many/', {}, unfollows)
45
+ end
46
+
27
47
  #
28
48
  # Adds an activity to many feeds in one single request
29
49
  #
@@ -1,3 +1,3 @@
1
1
  module Stream
2
- VERSION = '2.6.1'.freeze
2
+ VERSION = '2.7.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: 2.6.1
4
+ version: 2.7.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: 2018-04-26 00:00:00.000000000 Z
13
+ date: 2018-05-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.5.2
148
+ rubygems_version: 2.7.3
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: A gem that provides a client interface for getstream.io