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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/stream-chat/client.rb +22 -2
- data/lib/stream-chat/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: e9f49f20f526f3ddd42becd925d877020fea2b4afdca80327a1d31beeafcdd76
|
4
|
+
data.tar.gz: d38e3c3390338c96f30ff692459aebd0c54addab98071130e089b9aed9a5ec13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a58994964df76b94ef804b25372acdf6cfe2d142f32fdfed54be0bcff81d5203ec5d8e38e5c0a0f216e43b2ba4713a35e722fa8eff92204f95e458a5ce3644a7
|
7
|
+
data.tar.gz: 721e797d9968d088e90578548794457812e483c50ff12d138fbbbda37af3f5328d7290fb97103ea82b164462182a45a18bb64185c1d0df27e06cd3e6064befdf
|
data/CHANGELOG.md
CHANGED
data/lib/stream-chat/client.rb
CHANGED
@@ -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
|
-
|
368
|
-
|
387
|
+
'Content-Type': 'application/json',
|
388
|
+
'X-Stream-Client': get_user_agent
|
369
389
|
}
|
370
390
|
end
|
371
391
|
|
data/lib/stream-chat/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|