pubnub 4.0.22 → 4.0.23

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: 0d7d15f3c1f519a978e6f12b92fdc10c51753205
4
- data.tar.gz: 691e2f2ba026b3833815d05c6e7aa8a719046dee
3
+ metadata.gz: a669116c6ba475d9b9fc6bf8ff088a9dc14c9029
4
+ data.tar.gz: 26cb93550d57410ae0883984f37a86de4f8a0b97
5
5
  SHA512:
6
- metadata.gz: 084e53aa0b103379ec4d8d4496946e91c1bc5139d96537dcfd1dd7d0e0f2b4bbfe7d7fa5a0fa386ed871b14481d34eec83023fcec128cfc3d5938232ceae268b
7
- data.tar.gz: f9c31a7516a831f67db353f0d4a48b0d0521f01bf9402aaebda95f74b67fe02d8a0d999192e23c7c001439c49a8b6d177a7120572937de5e18fbd62b85748347
6
+ metadata.gz: c14ebefffa1b9bc3fbbab756433b5bbd90d91ec383676754a847a07e602dee9f1d44bbf5bc1ac57a40da3d240dd2cbcedcb32597e9b6847de3505f3e323a39ff
7
+ data.tar.gz: 291fcb39ba0d46e70f23fc0d7c0230cd9d7bf26ed2f4e59b0ada9ea43a6fa55153ec106bc3cd292762d405386915df131755ecbd9e31c97dd2594c294a3a7e3c
@@ -1,5 +1,12 @@
1
1
  ---
2
- changelog:
2
+ changelog:
3
+ -
4
+ changes:
5
+ -
6
+ text: "Fixed HereNow envelope generation"
7
+ type: bug
8
+ date: 26-07-2017
9
+ version: "4.0.23"
3
10
  -
4
11
  changes:
5
12
  -
@@ -246,4 +253,4 @@ supported-platforms:
246
253
  - "Windows 7 or later, amd64, 386, use rubyinstaller and dev pack."
247
254
  - "Apart from the above, PubNub Ruby SDK works on mostly all platforms where the supported Ruby versions work. To use ssl connection, Ruby should be compiled with openssl support."
248
255
  version: "PubNub Ruby SDK"
249
- version: "4.0.22"
256
+ version: "4.0.23"
@@ -1,3 +1,6 @@
1
+ ##### 4.0.23
2
+ * Fixed HereNow envelope generation
3
+
1
4
  ##### 4.0.22
2
5
  * Fixed signature generation and channel name escaping
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.22
1
+ 4.0.23
@@ -67,9 +67,9 @@ module Pubnub
67
67
  data: {
68
68
  uuids: parsed_response['uuids'],
69
69
  occupancy: parsed_response['occupancy'],
70
- total_occupancy: parsed_response['total_occupancy'],
71
- total_channels: parsed_response['total_channels'],
72
- channels: parsed_response['channels']
70
+ total_occupancy: (parsed_response['payload'] ? parsed_response['payload']['total_occupancy'] : nil),
71
+ total_channels: (parsed_response['payload'] ? parsed_response['payload']['total_channels'] : nil),
72
+ channels: (parsed_response['payload'] ? parsed_response['payload']['channels'] : nil)
73
73
  }
74
74
  },
75
75
 
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '4.0.22'
3
+ VERSION = '4.0.23'
4
4
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'celluloid', '~> 0.17'
22
22
  spec.add_dependency 'json', '>= 1.8', '< 3'
23
- spec.add_dependency 'httpclient', '~> 2.8'
23
+ spec.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
24
24
  spec.add_dependency 'dry-validation', '~> 0.10'
25
25
  spec.add_development_dependency 'bundler', '~> 1.7'
26
26
  end
@@ -32,7 +32,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
32
32
 
33
33
  expect(envelope.result[:code]).to eq(200)
34
34
  expect(envelope.result[:operation]).to eq(:here_now)
35
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
35
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
36
36
 
37
37
  end
38
38
  end
@@ -50,7 +50,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
50
50
 
51
51
  expect(envelope.result[:code]).to eq(200)
52
52
  expect(envelope.result[:operation]).to eq(:here_now)
53
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
53
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
54
54
 
55
55
  end
56
56
  end
@@ -68,7 +68,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
68
68
 
69
69
  expect(envelope.result[:code]).to eq(200)
70
70
  expect(envelope.result[:operation]).to eq(:here_now)
71
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
71
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
72
72
 
73
73
  end
74
74
  end
@@ -87,7 +87,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
87
87
 
88
88
  expect(envelope.result[:code]).to eq(200)
89
89
  expect(envelope.result[:operation]).to eq(:here_now)
90
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
90
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
91
91
 
92
92
  end
93
93
  end
@@ -106,7 +106,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
106
106
 
107
107
  expect(envelope.result[:code]).to eq(200)
108
108
  expect(envelope.result[:operation]).to eq(:here_now)
109
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
109
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
110
110
 
111
111
  end
112
112
  end
@@ -125,7 +125,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
125
125
 
126
126
  expect(envelope.result[:code]).to eq(200)
127
127
  expect(envelope.result[:operation]).to eq(:here_now)
128
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
128
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
129
129
 
130
130
  end
131
131
  end
@@ -143,7 +143,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
143
143
 
144
144
  expect(envelope.result[:code]).to eq(200)
145
145
  expect(envelope.result[:operation]).to eq(:here_now)
146
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
146
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
147
147
 
148
148
  end
149
149
  end
@@ -161,7 +161,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
161
161
 
162
162
  expect(envelope.result[:code]).to eq(200)
163
163
  expect(envelope.result[:operation]).to eq(:here_now)
164
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
164
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
165
165
 
166
166
  end
167
167
  end
@@ -179,7 +179,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
179
179
 
180
180
  expect(envelope.result[:code]).to eq(200)
181
181
  expect(envelope.result[:operation]).to eq(:here_now)
182
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
182
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
183
183
 
184
184
  end
185
185
  end
@@ -198,7 +198,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
198
198
 
199
199
  expect(envelope.result[:code]).to eq(200)
200
200
  expect(envelope.result[:operation]).to eq(:here_now)
201
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
201
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
202
202
 
203
203
  end
204
204
  end
@@ -217,7 +217,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
217
217
 
218
218
  expect(envelope.result[:code]).to eq(200)
219
219
  expect(envelope.result[:operation]).to eq(:here_now)
220
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
220
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
221
221
 
222
222
  end
223
223
  end
@@ -236,7 +236,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
236
236
 
237
237
  expect(envelope.result[:code]).to eq(200)
238
238
  expect(envelope.result[:operation]).to eq(:here_now)
239
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
239
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
240
240
 
241
241
  end
242
242
  end
@@ -365,7 +365,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
365
365
 
366
366
  expect(envelope.result[:code]).to eq(200)
367
367
  expect(envelope.result[:operation]).to eq(:here_now)
368
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
368
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
369
369
 
370
370
  end
371
371
  end
@@ -383,7 +383,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
383
383
 
384
384
  expect(envelope.result[:code]).to eq(200)
385
385
  expect(envelope.result[:operation]).to eq(:here_now)
386
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
386
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
387
387
 
388
388
  end
389
389
  end
@@ -401,7 +401,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
401
401
 
402
402
  expect(envelope.result[:code]).to eq(200)
403
403
  expect(envelope.result[:operation]).to eq(:here_now)
404
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
404
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
405
405
 
406
406
  end
407
407
  end
@@ -420,7 +420,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
420
420
 
421
421
  expect(envelope.result[:code]).to eq(200)
422
422
  expect(envelope.result[:operation]).to eq(:here_now)
423
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
423
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
424
424
 
425
425
  end
426
426
  end
@@ -439,7 +439,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
439
439
 
440
440
  expect(envelope.result[:code]).to eq(200)
441
441
  expect(envelope.result[:operation]).to eq(:here_now)
442
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
442
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
443
443
 
444
444
  end
445
445
  end
@@ -458,7 +458,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
458
458
 
459
459
  expect(envelope.result[:code]).to eq(200)
460
460
  expect(envelope.result[:operation]).to eq(:here_now)
461
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
461
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
462
462
 
463
463
  end
464
464
  end
@@ -476,7 +476,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
476
476
 
477
477
  expect(envelope.result[:code]).to eq(200)
478
478
  expect(envelope.result[:operation]).to eq(:here_now)
479
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
479
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
480
480
 
481
481
  end
482
482
  end
@@ -494,7 +494,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
494
494
 
495
495
  expect(envelope.result[:code]).to eq(200)
496
496
  expect(envelope.result[:operation]).to eq(:here_now)
497
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
497
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
498
498
 
499
499
  end
500
500
  end
@@ -512,7 +512,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
512
512
 
513
513
  expect(envelope.result[:code]).to eq(200)
514
514
  expect(envelope.result[:operation]).to eq(:here_now)
515
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
515
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
516
516
 
517
517
  end
518
518
  end
@@ -531,7 +531,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
531
531
 
532
532
  expect(envelope.result[:code]).to eq(200)
533
533
  expect(envelope.result[:operation]).to eq(:here_now)
534
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
534
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
535
535
 
536
536
  end
537
537
  end
@@ -550,7 +550,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
550
550
 
551
551
  expect(envelope.result[:code]).to eq(200)
552
552
  expect(envelope.result[:operation]).to eq(:here_now)
553
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
553
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
554
554
 
555
555
  end
556
556
  end
@@ -569,7 +569,7 @@ expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-clie
569
569
 
570
570
  expect(envelope.result[:code]).to eq(200)
571
571
  expect(envelope.result[:operation]).to eq(:here_now)
572
- expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>nil, :total_channels=>nil, :channels=>nil})
572
+ expect(envelope.result[:data]).to eq({:uuids=>nil, :occupancy=>nil, :total_occupancy=>1, :total_channels=>1, :channels=>{"demo"=>{"uuids"=>["ruby-test-uuid-client-one"], "occupancy"=>1}}})
573
573
 
574
574
  end
575
575
  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.22
4
+ version: 4.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -51,6 +51,9 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.8'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.8.3
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,6 +61,9 @@ dependencies:
58
61
  - - "~>"
59
62
  - !ruby/object:Gem::Version
60
63
  version: '2.8'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.8.3
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: dry-validation
63
69
  requirement: !ruby/object:Gem::Requirement