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 +4 -4
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/pubnub/events/channel_registration.rb +18 -58
- data/lib/pubnub/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ec69e2f934994f13ad892fa9bb99c5170d0fa3e
|
4
|
+
data.tar.gz: 02ecad4661a1d1186bd42e08de10ff90c90399c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd4fd80ca70e5465061f1b689e328ea13056163b021eb2cfaf94d3634dcfb712297fbb5bf858c281f0621080614b11497d6c058914a24847d4488b484839664
|
7
|
+
data.tar.gz: 60b29f531f05c0df780a007f98dd9729339709724c3e9747f2d2e16614a5ce3263045649139cc375f045ac911b4d65f22a7866ea73591daa6572cf4a835b2eeb
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
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
|
-
|
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
|
-
|
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
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
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
|
data/lib/pubnub/version.rb
CHANGED
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.
|
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-
|
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.
|
10588
|
+
rubygems_version: 2.5.1
|
10589
10589
|
signing_key:
|
10590
10590
|
specification_version: 4
|
10591
10591
|
summary: PubNub Official Ruby gem.
|