easemob 0.3.0 → 0.3.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: 8055d485f3b40b7996d8bf5419069d97e63385e1
4
- data.tar.gz: c636336061874989cad3240a2a7683df9deab07d
3
+ metadata.gz: da16331e57505694980d8c22d0c50665007f8ae3
4
+ data.tar.gz: '049b4f09bb5fa013fddc2262e3b80baaf8210ef8'
5
5
  SHA512:
6
- metadata.gz: 11491457c0ef576aa92f23437c01497654da88241fea5235aa8722c4819f7d9e98900f00456da2e6c2022a298ff97e55a473a9684067c51352870a1aa98dc4c0
7
- data.tar.gz: 8b0e157de9dd3aa419656af2b8e723534f891fd2e917a5e26e23ea877e6029ab54a2a989dfd57b015f450ee7131aae5d6c9dca119f4296b3ddbef50aab727753
6
+ metadata.gz: 6fdb7fce330b73c0eccaff986354726bd33f99681e628f38dd1625d604572fcfb940959faed57490ceece9a289bc9cd919e3179a073f0f8272a6b8de6ee03bb2
7
+ data.tar.gz: b3e11e79f85410084535fc52951bcffaf67547c362e66ae3f257b2b81e4ce7d7eba43634e0299f85efe41d89fcbba1db4ada2ef21ca1603249695b0111e3324c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -10,7 +10,7 @@ module Easemob
10
10
  attr_reader :timestamp
11
11
  attr_reader :duration
12
12
  attr_reader :organization
13
- attr_reader :applicationName
13
+ attr_reader :application_name
14
14
  attr_reader :cursor
15
15
  attr_reader :count
16
16
 
@@ -22,7 +22,7 @@ module Easemob
22
22
  return if http_response.code != 200 \
23
23
  || http_response.headers['Content-Type'].index('application/octet-stream')
24
24
 
25
- @body_hash = JSON.parse(http_response.body.to_s)
25
+ @body_hash = JSON.parse(@body)
26
26
  @action = @body_hash['action']
27
27
  @application = @body_hash['application']
28
28
  @params = @body_hash['params']
@@ -32,7 +32,7 @@ module Easemob
32
32
  @timestamp = @body_hash['timestamp']
33
33
  @duration = @body_hash['duration']
34
34
  @organization = @body_hash['organization']
35
- @applicationName = @body_hash['applicationName']
35
+ @application_name = @body_hash['applicationName']
36
36
  @cursor = @body_hash['cursor']
37
37
  @count = @body_hash['count']
38
38
  end
@@ -48,4 +48,4 @@ module Easemob
48
48
  applicationName: #{@applicationName}, cursor: #{@cursor}, count: #{@count})"
49
49
  end
50
50
  end
51
- end
51
+ end
@@ -2,12 +2,8 @@ require_relative 'base_message'
2
2
 
3
3
  module Easemob
4
4
  class ChatMessage < Easemob::BaseMessage
5
-
6
5
  def all_success?
7
- flag = true
8
- @data.values.each{ |ar| flag = false if ar != 'success' }
9
-
10
- flag
6
+ @data.values.all? { |ar| ar == 'success' }
11
7
  end
12
8
  end
13
- end
9
+ end
@@ -3,4 +3,4 @@ require_relative 'base_message'
3
3
  module Easemob
4
4
  class FileoperationMessage < Easemob::BaseMessage
5
5
  end
6
- end
6
+ end
@@ -3,4 +3,4 @@ require_relative 'base_message'
3
3
  module Easemob
4
4
  class GroupMessage < Easemob::BaseMessage
5
5
  end
6
- end
6
+ end
@@ -3,4 +3,4 @@ require_relative 'base_message'
3
3
  module Easemob
4
4
  class UserMessage < Easemob::BaseMessage
5
5
  end
6
- end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Easemob
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easemob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Guo
@@ -30,7 +30,7 @@ cert_chain:
30
30
  R5k6Ma92sW8jupX4cqbSu9rntdVQkNRpoHIrfU0MZT0cKsg/D1zMteylxrO3KMsz
31
31
  SPQRv+nrI1J0zevFqb8010heoR8SDyUA0Mm3+Q==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-12-05 00:00:00.000000000 Z
33
+ date: 2016-12-06 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: http
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- aL'��q. ���'�ŝK��m*0�ħ��'PH'�T�7�whˀݗ��a�a������h|h���q9�Ơi3��j #�<�QGԩL[��5��A8�[�u
2
- ��T_a=ls���4
3
- �#�eۇ��5�ʝyw�\��F��F�bkW?>z!��D��A� �a�mэN��� -oa����c,�e�T16��OV�g�}y�E��Z�0�;0��������to†T���sb�ީ$�~�ޕfWW�����
1
+ _sfť��,�ɠ������0j���6�a�c%���cމ��*�^�05 %��b��
2
+ yw�N1���$I�F ā����C�w��g��*��V�6�e��#Og