stream-chat-ruby 2.9.0 → 2.10.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: 31e7de9bf8ce95a2bf565ac99b5a686deb0195bb3ec20f2004ec784f84d00ff0
4
- data.tar.gz: '0959555927fa04219edc014cac1247cbca8942387360b2099080138ddbd22664'
3
+ metadata.gz: e9f49f20f526f3ddd42becd925d877020fea2b4afdca80327a1d31beeafcdd76
4
+ data.tar.gz: d38e3c3390338c96f30ff692459aebd0c54addab98071130e089b9aed9a5ec13
5
5
  SHA512:
6
- metadata.gz: 70608f85204fb4a1c9451fed4f27281579d23c5e558aea25d752735309b62409cdd15986ad6cb1550e65a5e9072fde29b1792fbf16c2dc5fc1c8b020f1f68b96
7
- data.tar.gz: 4907cdf3f110e825a47c45f0759684e9bf3ae4449f74ff8546238d60f39e92c611f1f3e8b3fd855dfe2bf06846432968ee7fa56ee46f3cc946b03af63885b121
6
+ metadata.gz: a58994964df76b94ef804b25372acdf6cfe2d142f32fdfed54be0bcff81d5203ec5d8e38e5c0a0f216e43b2ba4713a35e722fa8eff92204f95e458a5ce3644a7
7
+ data.tar.gz: 721e797d9968d088e90578548794457812e483c50ff12d138fbbbda37af3f5328d7290fb97103ea82b164462182a45a18bb64185c1d0df27e06cd3e6064befdf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## June 4th, 2021 - 2.10.0
2
+
3
+ - Add custom command CRUD support
4
+
1
5
  ## May 31st, 2021 - 2.9.0
2
6
 
3
7
  - Add support for app and user level token revoke
@@ -352,6 +352,26 @@ module StreamChat
352
352
  post('check_sqs', data: { sqs_key: sqs_key, sqs_secret: sqs_secret, sqs_url: sqs_url })
353
353
  end
354
354
 
355
+ def create_command(command)
356
+ post('commands', data: command)
357
+ end
358
+
359
+ def get_command(name)
360
+ get("commands/#{name}")
361
+ end
362
+
363
+ def update_command(name, command)
364
+ put("commands/#{name}", data: command)
365
+ end
366
+
367
+ def delete_command(name)
368
+ delete("commands/#{name}")
369
+ end
370
+
371
+ def list_commands
372
+ get('commands')
373
+ end
374
+
355
375
  private
356
376
 
357
377
  def get_default_params
@@ -364,8 +384,8 @@ module StreamChat
364
384
 
365
385
  def get_default_headers
366
386
  {
367
- "Content-Type": 'application/json',
368
- "X-Stream-Client": get_user_agent
387
+ 'Content-Type': 'application/json',
388
+ 'X-Stream-Client': get_user_agent
369
389
  }
370
390
  end
371
391
 
@@ -3,5 +3,5 @@
3
3
  # lib/version.rb
4
4
 
5
5
  module StreamChat
6
- VERSION = '2.9.0'
6
+ VERSION = '2.10.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mircea Cosbuc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday