pubnub 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pubnub might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 073b843850f0f7ef524956d1790888537dd85d1b
4
- data.tar.gz: 78d98c67a1d37bdea2ebeca38a89483e6cff8c0b
3
+ metadata.gz: 1ec69e2f934994f13ad892fa9bb99c5170d0fa3e
4
+ data.tar.gz: 02ecad4661a1d1186bd42e08de10ff90c90399c0
5
5
  SHA512:
6
- metadata.gz: c89703845876a25e3c67d84313b9d0679905fd83cae885048c0d9c590693a1853fcac9ed3d408f71322a0164df36594f194d06819603f5ce07efb4fc48471229
7
- data.tar.gz: 6b04ae9b1f799c28053170dfe39f9d097f2055a42b56f3c9535d904f7219d02fb369a29bcf148bd0bfadcae7be89a0ddd682b08c439564411402a03663fb193d
6
+ metadata.gz: cdd4fd80ca70e5465061f1b689e328ea13056163b021eb2cfaf94d3634dcfb712297fbb5bf858c281f0621080614b11497d6c058914a24847d4488b484839664
7
+ data.tar.gz: 60b29f531f05c0df780a007f98dd9729339709724c3e9747f2d2e16614a5ce3263045649139cc375f045ac911b4d65f22a7866ea73591daa6572cf4a835b2eeb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (4.0.2)
4
+ pubnub (4.0.4)
5
5
  celluloid (~> 0.17)
6
6
  dry-validation (~> 0.8)
7
7
  httpclient (~> 2.8)
@@ -148,4 +148,4 @@ DEPENDENCIES
148
148
  webmock
149
149
 
150
150
  BUNDLED WITH
151
- 1.12.3
151
+ 1.12.5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.3
1
+ 4.0.4
@@ -103,7 +103,7 @@ module Pubnub
103
103
  error_envelope(parsed_response, error, request: request, response: response)
104
104
  else
105
105
  valid_envelope(parsed_response, request: request, response: response)
106
- end
106
+ end
107
107
  end
108
108
 
109
109
  def valid_envelope(parsed_response, req_res_objects)
@@ -141,68 +141,28 @@ module Pubnub
141
141
  end
142
142
 
143
143
  def error_envelope(parsed_response, error, req_res_objects)
144
- if error
145
- Pubnub::ErrorEnvelope.new(
146
- event: @event,
147
- event_options: @given_options,
148
- timetoken: nil,
149
- status: {
150
- code: req_res_objects[:response].code,
151
- operation: define_operation,
152
- client_request: req_res_objects[:request],
153
- server_response: req_res_objects[:response],
154
- data: nil,
155
- category: :json_parse_error,
156
- error: true,
157
- auto_retried: false,
158
-
159
- current_timetoken: nil,
160
- last_timetoken: nil,
161
- subscribed_channels: nil,
162
- subscribed_channel_groups: nil,
163
-
164
- config: get_config
165
- },
166
-
167
- result: {
168
- data: parsed_response['payload'],
169
- code: req_res_objects[:response].code,
170
- operation: define_operation,
171
- client_request: req_res_objects[:request],
172
- server_response: req_res_objects[:response]
173
- }
174
- )
175
- else
176
- ErrorEnvelope.new(
144
+ Pubnub::ErrorEnvelope.new(
177
145
  event: @event,
178
146
  event_options: @given_options,
179
147
  timetoken: nil,
180
148
  status: {
181
- code: req_res_objects[:response].code,
182
- client_request: req_res_objects[:request],
183
- server_response: req_res_objects[:response],
184
- category: nil,
185
- error: true,
186
- auto_retried: false,
187
-
188
- current_timetoken: nil,
189
- last_timetoken: nil,
190
- subscribed_channels: nil,
191
- subscribed_channel_groups: nil,
192
-
193
- config: get_config
194
-
195
- },
196
-
197
- result: {
198
- data: parsed_response['payload'],
199
- code: req_res_objects[:response].code,
200
- operation: define_operation,
201
- client_request: req_res_objects[:request],
202
- server_response: req_res_objects[:response]
149
+ code: req_res_objects[:response].code,
150
+ operation: define_operation,
151
+ client_request: req_res_objects[:request],
152
+ server_response: req_res_objects[:response],
153
+ data: nil,
154
+ category: (error ? Pubnub::Constants::STATUS_NON_JSON_RESPONSE : Pubnub::Constants::STATUS_ERROR),
155
+ error: true,
156
+ auto_retried: false,
157
+
158
+ current_timetoken: nil,
159
+ last_timetoken: nil,
160
+ subscribed_channels: nil,
161
+ subscribed_channel_groups: nil,
162
+
163
+ config: get_config
203
164
  }
204
- )
205
- end
165
+ )
206
166
  end
207
167
 
208
168
  def define_operation
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '4.0.3'
3
+ VERSION = '4.0.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubnub
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -10585,7 +10585,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
10585
10585
  version: '0'
10586
10586
  requirements: []
10587
10587
  rubyforge_project:
10588
- rubygems_version: 2.2.5
10588
+ rubygems_version: 2.5.1
10589
10589
  signing_key:
10590
10590
  specification_version: 4
10591
10591
  summary: PubNub Official Ruby gem.