stream-chat-ruby 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +5 -4
- data/CHANGELOG.md +3 -0
- data/lib/stream-chat/client.rb +5 -5
- 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: '079b1dd49ca55175f23ad66e3237cba1437a3b046db9631b1541ae630d31a996'
|
4
|
+
data.tar.gz: 3728ef3fc6b4da313cdf0eb8c8aa8e76b5d2b2756f5f830a2f68f4e2edd7a76f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a96841c65178ec69d31f3deb9744dd0afaf1173fe149a1be33c8234ae8ef8c8aaf9e337843d8afa01492f1c3aaae8374d7a9d11021dab37688f580d4c08b6616
|
7
|
+
data.tar.gz: 5a7ac658a2757d90f3356824731c436225272951ab261eb19a5c15f6b82ab81076be58808d12fb23c596f22bebf562b31e187b1c8493e2aca79cebc668456b4e
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/stream-chat/client.rb
CHANGED
@@ -112,7 +112,7 @@ module StreamChat
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def delete_user(user_id, **options)
|
115
|
-
delete("users/#{user_id}",
|
115
|
+
delete("users/#{user_id}", params: options)
|
116
116
|
end
|
117
117
|
|
118
118
|
def deactivate_user(user_id, **options)
|
@@ -268,7 +268,7 @@ module StreamChat
|
|
268
268
|
make_http_request(:patch, relative_url, params: params, data: data)
|
269
269
|
end
|
270
270
|
|
271
|
-
def send_file(relative_url, file_url, user, content_type = 'application/octet-stream')
|
271
|
+
def send_file(relative_url, file_url, user, content_type = 'application/octet-stream')
|
272
272
|
url = [@base_url, relative_url].join('/')
|
273
273
|
|
274
274
|
file = open(file_url)
|
@@ -283,7 +283,7 @@ module StreamChat
|
|
283
283
|
req.params = get_default_params
|
284
284
|
req.body = body
|
285
285
|
end
|
286
|
-
|
286
|
+
|
287
287
|
parse_response(response)
|
288
288
|
end
|
289
289
|
|
@@ -324,10 +324,10 @@ module StreamChat
|
|
324
324
|
params = params != nil ? params : {}
|
325
325
|
params = Hash[get_default_params.merge(params).sort_by { |k, v| k.to_s }]
|
326
326
|
url = "#{url}?#{URI.encode_www_form(params)}"
|
327
|
-
|
327
|
+
|
328
328
|
if %w[patch post put].include? method.to_s
|
329
329
|
body = data.to_json
|
330
|
-
end
|
330
|
+
end
|
331
331
|
|
332
332
|
response = @conn.run_request(
|
333
333
|
method,
|
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: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mircea Cosbuc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|