stream-chat-ruby 2.0.0 → 2.1.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
2
  SHA256:
3
- metadata.gz: c7a819d41561a5fe8bf986b1ddcdc093a985a6de19bd256071a88efb4d790d58
4
- data.tar.gz: e5cdc6e77fa5e453afbbbdf482c61f791a6896c47fe903f56acdca9794f662a6
3
+ metadata.gz: 9b1c2b73dbb2e8e0e65aaa47da051ad41694ae5faf6c1d6d1de9e368d9f6bea6
4
+ data.tar.gz: 45a43c071349a05ce38a9df5840182ce299f3c41942c351dfb033aad314bba32
5
5
  SHA512:
6
- metadata.gz: 97fce2a3420903a2b9a88e7197a58683a5e3d0d54139350aec0d7c5029fd657352e2102be57fb398f5e389f5d97a500c5a88fce744f19ae2ffab2c5410ce297e
7
- data.tar.gz: c9c2c76a61e874e43778b6181e1a2f68191aec1e0444272f043f6086f83f9151ae5a29d7c1255a60bf695520cdbe6e09bc5f87becda1dac93c461468a8b50539
6
+ metadata.gz: 37f5d1762e3185a5a92698b0e3ea9f8358d21a5d90c9683387b29a8b64e31e6548d1ac3090bf111b83175e1a228ecf6ed711123e9b080ea01332de5d8d33a9d4
7
+ data.tar.gz: 68eb7fee75f01cae1d684fd4c9f51354914656193e4681d2d8a398659613f45bbf37f2322874d01e12f41a395f9a6f68431586a36b1c7094ccf770d85012c3eb
@@ -1,3 +1,6 @@
1
+ ## October 5th, 2020 - 2.1.0
2
+ - Add support for blocklist
3
+
1
4
  ## October 2nd, 2020 - 2.0.0
2
5
  - Drop EOL Ruby versions: 2.3 && 2.4
3
6
  - Setup Rubocop and mark string literals as frozen
@@ -202,7 +202,7 @@ module StreamChat
202
202
  end
203
203
 
204
204
  def update_channel_type(channel_type, **options)
205
- put("channeltypes/#{channel_type}", **options)
205
+ put("channeltypes/#{channel_type}", data: options)
206
206
  end
207
207
 
208
208
  def delete_channel_type(channel_type)
@@ -242,6 +242,26 @@ module StreamChat
242
242
  signature == x_signature
243
243
  end
244
244
 
245
+ def list_blocklists
246
+ get('blocklists')
247
+ end
248
+
249
+ def get_blocklist(name)
250
+ get("blocklists/#{name}")
251
+ end
252
+
253
+ def create_blocklist(name, words)
254
+ post('blocklists', data: { "name": name, "words": words })
255
+ end
256
+
257
+ def update_blocklist(name, words)
258
+ put("blocklists/#{name}", data: { "words": words })
259
+ end
260
+
261
+ def delete_blocklist(name)
262
+ delete("blocklists/#{name}")
263
+ end
264
+
245
265
  def put(relative_url, params: nil, data: nil)
246
266
  make_http_request(:put, relative_url, params: params, data: data)
247
267
  end
@@ -3,5 +3,5 @@
3
3
  # lib/version.rb
4
4
 
5
5
  module StreamChat
6
- VERSION = '2.0.0'
6
+ VERSION = '2.1.0'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mircea Cosbuc