pubnub 3.5.1 → 3.5.3
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/CHANGELOG +6 -0
- data/README.md +11 -0
- data/VERSION +1 -1
- data/examples/demo_console.rb +0 -1
- data/fixtures/vcr_cassettes/auth_key_flow_auth_publish.yml +45 -0
- data/fixtures/vcr_cassettes/auth_key_flow_empty_auth_audit.yml +44 -0
- data/fixtures/vcr_cassettes/auth_key_flow_instead_auth_audit.yml +44 -0
- data/fixtures/vcr_cassettes/auth_key_flow_no_auth_publish.yml +45 -0
- data/fixtures/vcr_cassettes/auth_key_flow_non_auth_audit.yml +44 -0
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-array.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-hash.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-integer.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-multi-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-string.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-array.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-hash.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-integer.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-string.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-array.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-hash.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-integer.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-multi-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-string.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-array.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-hash.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-integer.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-mix.yml +2 -2
- data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-string.yml +2 -2
- data/fixtures/vcr_cassettes/heartbeat-non200.yml +519 -0
- data/fixtures/vcr_cassettes/heartbeat-test.yml +91 -0
- data/fixtures/vcr_cassettes/heartbeated-subscribe.yml +136 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-block-invalid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-block-invalid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-block-valid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-block-valid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-invalid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-invalid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-valid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-valid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-block-invalid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-block-invalid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-200-async.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-invalid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-invalid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-valid-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-valid-non-200-sync.yml +49 -0
- data/fixtures/vcr_cassettes/new_ones/multiplexed_subscribe.yml +854 -0
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-array-of-hashes.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-non200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-non200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-non200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-non200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-http-200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-http-200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-http-non200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-http-non200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-https-200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-https-200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-https-non200-invalid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-https-non200-valid.yml +1 -1
- data/fixtures/vcr_cassettes/new_ones/publish/publish-plain-array-of-hashes.yml +1 -1
- data/fixtures/vcr_cassettes/non-heartbeated-subscribe.yml +44 -0
- data/fixtures/vcr_cassettes/pam20.yml +1 -1
- data/fixtures/vcr_cassettes/single-event-invalid-json.yml +15 -138
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-non-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-200-sync.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-non-200-async.yml +86 -0
- data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-non-200-sync.yml +86 -0
- data/lib/pubnub/client.rb +57 -31
- data/lib/pubnub/crypto.rb +6 -6
- data/lib/pubnub/event.rb +64 -45
- data/lib/pubnub/events/heartbeat.rb +59 -0
- data/lib/pubnub/events/here_now.rb +19 -10
- data/lib/pubnub/events/leave.rb +17 -9
- data/lib/pubnub/exceptions.rb +1 -1
- data/lib/pubnub/formatter.rb +1 -0
- data/lib/pubnub/pam.rb +5 -0
- data/lib/version.rb +1 -1
- data/pubnub.gemspec +2 -2
- data/spec/lib/auth_key_flow_spec.rb +60 -0
- data/spec/lib/heartbeat_spec.rb +110 -0
- data/spec/lib/integration/global_here_now_spec.rb +541 -0
- data/spec/lib/integration/multiplexed_subscribe_flow_spec.rb +44 -0
- data/spec/lib/integration/publish_spec.rb +1699 -373
- data/spec/lib/integration/publish_spec_old.rb +541 -0
- data/spec/lib/integration/v3_presence_spec.rb +557 -0
- metadata +68 -4
- data/examples/demo_console.rb~ +0 -307
- data/spec/lib/new_integration/publish_spec.rb +0 -1867
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 500
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"]'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 500
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"]'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 500
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/0?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 07 Apr 2014 17:25:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '24'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"13968915474479311"]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 07 Apr 2014 17:25:48 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/demo-36/demo-pnpres/0/13968915474479311?auth=demoish_authkey&pnsdk=PubNub-Ruby/3.5.2&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 500
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Mon, 07 Apr 2014 17:25:54 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '131'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "join", "timestamp": 1396891554, "uuid": "a1259d2d-7a7c-485f-8076-028a327e976d",
|
83
|
+
"occupancy": 1}],"13968915543625014"'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Mon, 07 Apr 2014 17:25:55 GMT
|
86
|
+
recorded_with: VCR 2.8.0
|