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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5465aef67621617cb67b5575b3d8210071c9b29e0df6259b89c5cec71e42e5ff
4
- data.tar.gz: '0813eccf40b22222c657d29e18fb4f65dd393dd45e67dc3767771d91c3992796'
3
+ metadata.gz: '079b1dd49ca55175f23ad66e3237cba1437a3b046db9631b1541ae630d31a996'
4
+ data.tar.gz: 3728ef3fc6b4da313cdf0eb8c8aa8e76b5d2b2756f5f830a2f68f4e2edd7a76f
5
5
  SHA512:
6
- metadata.gz: 8bb877f7d69b890b29d4b79ee1d943f1ae26c796009bd4b8a1553518447f740e08e87feb08e6216ffbd402b9ee09b3404578c84475f6d3ee022abba83c60dc9b
7
- data.tar.gz: 4cfb8781cddece288029589fc34859f07629e51f3b6d9b8d7dcdfe342a7c2b786d934d8e8d55f5b300b885673abfdc15fafc6aea1a09c2ee6f3432aab914b762
6
+ metadata.gz: a96841c65178ec69d31f3deb9744dd0afaf1173fe149a1be33c8234ae8ef8c8aaf9e337843d8afa01492f1c3aaae8374d7a9d11021dab37688f580d4c08b6616
7
+ data.tar.gz: 5a7ac658a2757d90f3356824731c436225272951ab261eb19a5c15f6b82ab81076be58808d12fb23c596f22bebf562b31e187b1c8493e2aca79cebc668456b4e
data/.gitignore CHANGED
@@ -42,7 +42,7 @@ build-iPhoneSimulator/
42
42
 
43
43
  # for a library or gem, you might want to ignore these files since the code is
44
44
  # intended to run in multiple environments; otherwise, check them in:
45
- # Gemfile.lock
45
+ Gemfile.lock
46
46
  # .ruby-version
47
47
  # .ruby-gemset
48
48
 
@@ -2,7 +2,8 @@ language: ruby
2
2
  before_install:
3
3
  - gem update bundler
4
4
  rvm:
5
- - 2.3.8
6
- - 2.4.6
7
- - 2.5.5
8
- - 2.6.3
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
8
+ - 2.6
9
+ - 2.7
@@ -1,3 +1,6 @@
1
+ ## August 3rd, 2020 - 1.1.3
2
+ - Fixed Argument Error on delete_user
3
+
1
4
  ## April 23th, 2020 - 1.1.2
2
5
  - Fixed ArgumentError when no users was passed
3
6
 
@@ -112,7 +112,7 @@ module StreamChat
112
112
  end
113
113
 
114
114
  def delete_user(user_id, **options)
115
- delete("users/#{user_id}", **options)
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,
@@ -1,5 +1,5 @@
1
1
  # lib/version.rb
2
2
 
3
3
  module StreamChat
4
- VERSION = "1.1.2".freeze
4
+ VERSION = "1.1.3".freeze
5
5
  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: 1.1.2
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-23 00:00:00.000000000 Z
11
+ date: 2020-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday