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 +4 -4
- data/lib/zquickblox/dialog.rb +14 -2
- data/lib/zquickblox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d87d086e7ff68a648ccaec293158490b2d2068c
|
4
|
+
data.tar.gz: 8b1cb38892190918442f443d5f1c740b138bbd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23d329dfadb9b413e6cf684f4997a0e8ec8355dbf456559d4ad6731ec283905bdb76009fd6bdf883074d7ed87ed67b850076dd1d58aaa9570d90943c341a076
|
7
|
+
data.tar.gz: 98754acef0e9b4e43ae1eef30a77825f21dfe1349ef9bf82096cb3f5ffaa678c4690e7a3e429298c2403188e36a32c5d8067c047b9922bf722b1ebe5719c7a5a
|
data/lib/zquickblox/dialog.rb
CHANGED
@@ -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.
|
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
|
-
|
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
|
data/lib/zquickblox/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|