zquickblox 1.0.2 → 1.0.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
  SHA1:
3
- metadata.gz: 7efee1621862ea12d85e7380fcf483075c10a792
4
- data.tar.gz: 161e242feb33f8c92040aa3e77b0f9189ce24bcb
3
+ metadata.gz: 4d87d086e7ff68a648ccaec293158490b2d2068c
4
+ data.tar.gz: 8b1cb38892190918442f443d5f1c740b138bbd82
5
5
  SHA512:
6
- metadata.gz: 72f27a935122a51697b2153f5ee80a59f462cac7a43a6c9abbd46213d87013e4ddc9de78111be34d64ab5446ac522efdd9319fe63320dab5457ddbf3c12ff765
7
- data.tar.gz: 8c7353c0fec5d99d79d82c5769a3e269ce0241b160699185a38d4151ac789ac5faaa3648b9bf9ad3acf22c135e061c46eae40dafaa114a75a8ec05de819e5d65
6
+ metadata.gz: f23d329dfadb9b413e6cf684f4997a0e8ec8355dbf456559d4ad6731ec283905bdb76009fd6bdf883074d7ed87ed67b850076dd1d58aaa9570d90943c341a076
7
+ data.tar.gz: 98754acef0e9b4e43ae1eef30a77825f21dfe1349ef9bf82096cb3f5ffaa678c4690e7a3e429298c2403188e36a32c5d8067c047b9922bf722b1ebe5719c7a5a
@@ -27,7 +27,7 @@ module ZQuickblox
27
27
 
28
28
  def update(login, password, id, params)
29
29
  dialog = Dialog.new(params)
30
- params = dialog.build_params
30
+ params = dialog.build_update_params
31
31
  request = ZQuickblox::Dialog::UpdateDialogRequest.new(id, params)
32
32
  run_request(login, password, request)
33
33
  dialog = Dialog.new(ZQuickblox::Util.symbolize_keys(request.response_body))
@@ -62,13 +62,25 @@ module ZQuickblox
62
62
  end
63
63
 
64
64
  def build_params
65
- @params = {
65
+ {
66
66
  "type": @type,
67
67
  "occupants_ids": @occupants_ids,
68
68
  "name": @name,
69
69
  "photo": @photo
70
70
  }
71
71
  end
72
+
73
+ def build_update_params
74
+ {
75
+ "type": @type,
76
+ "push_all": {
77
+ "occupants_ids": @occupants_ids
78
+ },
79
+ "name": @name,
80
+ "photo": @photo
81
+ }
82
+ end
83
+
72
84
  end
73
85
  end
74
86
  end
@@ -1,3 +1,3 @@
1
1
  module ZQuickblox
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zquickblox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thuong Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler