zquickblox 1.0.0 → 1.0.1

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: 457285c98a5129345c6d2583d6e99c1b977c562d
4
- data.tar.gz: 20669e4eb40ab7434cbdab27520fec728b6f746d
3
+ metadata.gz: 1369af8e34496409943492e131207ad8ed4d2a0b
4
+ data.tar.gz: 9e4f87009235dc5c3c2f9c206a07b620d99b9b83
5
5
  SHA512:
6
- metadata.gz: fb08cdc440ef71bcbdb55affa3098fe3d947ef4d59487f3b0d978df8d03b43cb31153ed4c69e2a71f3ce7243ce077837b916e7379501f59d108dcdd68b28deab
7
- data.tar.gz: 4f8c728a2ea9c84331f51651e2b45a370086ce89694ce8162f4d0fe089683f143af0ffcf7a9e6747e62449f8a25a4701369fa6dfe32399f7ba2336c95735a641
6
+ metadata.gz: 6a47cc84e93431300f223ea321d008be9f32d506e649b726b611ac662ccbb88219d1e30426d02ee67e4b4167cc470b85f94745febd4884b61fc0574e6258e025
7
+ data.tar.gz: 8c1e8ca2e319d049e82aa8f6437040429e8c48f4b42ab02d2c614e7a82cf7d8a0fa132dd668c5c262bb6178140c6ac567f9d76223956e906f607ac893d09869b
@@ -1,9 +1,10 @@
1
1
  module ZQuickblox
2
2
  module Dialog
3
3
  class GetDialogsRequest < Request
4
- def initialize(params)
4
+ def initialize(params = nil)
5
5
  super()
6
- params = params.map { |key, value| "#{key}=#{value}" }.join("&")
6
+ params = params.map { |key, value| "#{key}=#{value}" }.join("&") if params
7
+ params = "" if params.nil?
7
8
  @uri = "/chat/Dialog.json?#{params}"
8
9
  @method = :get
9
10
  end
@@ -5,7 +5,7 @@ require_relative "dialog/get_dialogs_request"
5
5
  module ZQuickblox
6
6
  module Dialog
7
7
  class << self
8
- def get(login, password, params)
8
+ def get(login, password, params=nil)
9
9
  request = ZQuickblox::Dialog::GetDialogsRequest.new(params)
10
10
  run_request(login, password, request)
11
11
  response = ZQuickblox::Util.symbolize_keys(request.response_body)
@@ -1,3 +1,3 @@
1
1
  module ZQuickblox
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zquickblox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thuong Nguyen