pubnub 3.5.14 → 3.6.7

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.

Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/3.5_to_3.6_upgrade_notes.md +148 -0
  3. data/{CHANGELOG → CHANGELOG.txt} +15 -0
  4. data/Gemfile.lock +5 -4
  5. data/LICENSE.txt +28 -0
  6. data/README.md +164 -19
  7. data/Rakefile +1 -6
  8. data/examples/demo_console.rb +370 -329
  9. data/fixtures/vcr_cassettes/grant-multiple-channels-presence-multi-1.yml +44 -0
  10. data/fixtures/vcr_cassettes/grant-multiple-channels-presence-multi-2.yml +44 -0
  11. data/fixtures/vcr_cassettes/grant-multiple-channels-presence-multi-3.yml +44 -0
  12. data/fixtures/vcr_cassettes/grant-multiple-channels-presence-multi-4.yml +44 -0
  13. data/fixtures/vcr_cassettes/grant-multiple-channels-presence.yml +44 -0
  14. data/fixtures/vcr_cassettes/heartbeated-subscribe.yml +1 -1
  15. data/fixtures/vcr_cassettes/here_now-nonssl-block-valid-200-async.yml +1 -1
  16. data/fixtures/vcr_cassettes/here_now-nonssl-block-valid-200-sync.yml +1 -1
  17. data/fixtures/vcr_cassettes/here_now-nonssl-block-valid-non-200-async.yml +1 -1
  18. data/fixtures/vcr_cassettes/here_now-nonssl-block-valid-non-200-sync.yml +1 -1
  19. data/fixtures/vcr_cassettes/here_now-nonssl-parameter-valid-200-async.yml +1 -1
  20. data/fixtures/vcr_cassettes/here_now-nonssl-parameter-valid-200-sync.yml +1 -1
  21. data/fixtures/vcr_cassettes/here_now-nonssl-parameter-valid-non-200-async.yml +1 -1
  22. data/fixtures/vcr_cassettes/here_now-nonssl-parameter-valid-non-200-sync.yml +1 -1
  23. data/fixtures/vcr_cassettes/here_now-ssl-block-valid-200-async.yml +1 -1
  24. data/fixtures/vcr_cassettes/here_now-ssl-block-valid-200-sync.yml +1 -1
  25. data/fixtures/vcr_cassettes/here_now-ssl-block-valid-non-200-async.yml +1 -1
  26. data/fixtures/vcr_cassettes/here_now-ssl-block-valid-non-200-sync.yml +1 -1
  27. data/fixtures/vcr_cassettes/here_now-ssl-parameter-valid-200-async.yml +1 -1
  28. data/fixtures/vcr_cassettes/here_now-ssl-parameter-valid-200-sync.yml +1 -1
  29. data/fixtures/vcr_cassettes/here_now-ssl-parameter-valid-non-200-async.yml +1 -1
  30. data/fixtures/vcr_cassettes/here_now-ssl-parameter-valid-non-200-sync.yml +1 -1
  31. data/fixtures/vcr_cassettes/leave-nonssl-block-valid-200-async.yml +1 -1
  32. data/fixtures/vcr_cassettes/leave-nonssl-block-valid-200-sync.yml +1 -1
  33. data/fixtures/vcr_cassettes/leave-nonssl-block-valid-non-200-async.yml +1 -1
  34. data/fixtures/vcr_cassettes/leave-nonssl-block-valid-non-200-sync.yml +1 -1
  35. data/fixtures/vcr_cassettes/leave-nonssl-parameter-valid-200-async.yml +1 -1
  36. data/fixtures/vcr_cassettes/leave-nonssl-parameter-valid-200-sync.yml +1 -1
  37. data/fixtures/vcr_cassettes/leave-nonssl-parameter-valid-non-200-async.yml +1 -1
  38. data/fixtures/vcr_cassettes/leave-nonssl-parameter-valid-non-200-sync.yml +1 -1
  39. data/fixtures/vcr_cassettes/leave-ssl-block-valid-200-async.yml +1 -1
  40. data/fixtures/vcr_cassettes/leave-ssl-block-valid-200-sync.yml +1 -1
  41. data/fixtures/vcr_cassettes/leave-ssl-block-valid-non-200-async.yml +1 -1
  42. data/fixtures/vcr_cassettes/leave-ssl-block-valid-non-200-sync.yml +1 -1
  43. data/fixtures/vcr_cassettes/leave-ssl-parameter-valid-200-async.yml +1 -1
  44. data/fixtures/vcr_cassettes/leave-ssl-parameter-valid-200-sync.yml +1 -1
  45. data/fixtures/vcr_cassettes/leave-ssl-parameter-valid-non-200-async.yml +1 -1
  46. data/fixtures/vcr_cassettes/leave-ssl-parameter-valid-non-200-sync.yml +1 -1
  47. data/fixtures/vcr_cassettes/state-async-set-state-via-subbedclient-2.yml +140 -0
  48. data/fixtures/vcr_cassettes/state-async-set-state-via-subbedclient.yml +131 -0
  49. data/fixtures/vcr_cassettes/state-async-set-state-via-subscribe.yml +90 -0
  50. data/fixtures/vcr_cassettes/state-set-state-via-client-2.yml +140 -0
  51. data/fixtures/vcr_cassettes/state-set-state-via-client.yml +90 -0
  52. data/fixtures/vcr_cassettes/state-set-state-via-subscribe.yml +90 -0
  53. data/fixtures/vcr_cassettes/where_now-ssl-block-invalid-200-async.yml +49 -0
  54. data/fixtures/vcr_cassettes/where_now-ssl-block-invalid-200-sync.yml +49 -0
  55. data/fixtures/vcr_cassettes/where_now-ssl-block-invalid-non-200-async.yml +49 -0
  56. data/fixtures/vcr_cassettes/where_now-ssl-block-invalid-non-200-sync.yml +49 -0
  57. data/fixtures/vcr_cassettes/where_now-ssl-block-valid-200-async.yml +49 -0
  58. data/fixtures/vcr_cassettes/where_now-ssl-block-valid-200-sync.yml +49 -0
  59. data/fixtures/vcr_cassettes/where_now-ssl-block-valid-non-200-async.yml +49 -0
  60. data/fixtures/vcr_cassettes/where_now-ssl-block-valid-non-200-sync.yml +49 -0
  61. data/fixtures/vcr_cassettes/where_now-ssl-parameter-invalid-200-async.yml +49 -0
  62. data/fixtures/vcr_cassettes/where_now-ssl-parameter-invalid-200-sync.yml +49 -0
  63. data/fixtures/vcr_cassettes/where_now-ssl-parameter-invalid-non-200-async.yml +49 -0
  64. data/fixtures/vcr_cassettes/where_now-ssl-parameter-invalid-non-200-sync.yml +49 -0
  65. data/fixtures/vcr_cassettes/where_now-ssl-parameter-valid-200-async.yml +49 -0
  66. data/fixtures/vcr_cassettes/where_now-ssl-parameter-valid-200-sync.yml +49 -0
  67. data/fixtures/vcr_cassettes/where_now-ssl-parameter-valid-non-200-async.yml +49 -0
  68. data/fixtures/vcr_cassettes/where_now-ssl-parameter-valid-non-200-sync.yml +49 -0
  69. data/lib/pubnub.rb +1 -2
  70. data/lib/pubnub/client.rb +97 -21
  71. data/lib/pubnub/configuration.rb +1 -1
  72. data/lib/pubnub/envelope.rb +3 -2
  73. data/lib/pubnub/event.rb +9 -5
  74. data/lib/pubnub/events/audit.rb +1 -1
  75. data/lib/pubnub/events/grant.rb +1 -1
  76. data/lib/pubnub/events/heartbeat.rb +7 -3
  77. data/lib/pubnub/events/here_now.rb +7 -4
  78. data/lib/pubnub/events/history.rb +1 -1
  79. data/lib/pubnub/events/leave.rb +10 -4
  80. data/lib/pubnub/events/presence.rb +1 -1
  81. data/lib/pubnub/events/publish.rb +6 -2
  82. data/lib/pubnub/events/revoke.rb +1 -1
  83. data/lib/pubnub/events/set_state.rb +77 -0
  84. data/lib/pubnub/events/state.rb +63 -0
  85. data/lib/pubnub/events/subscribe.rb +7 -0
  86. data/lib/pubnub/events/where_now.rb +55 -0
  87. data/lib/pubnub/pam.rb +10 -16
  88. data/lib/pubnub/version.rb +2 -2
  89. data/pubnub.gemspec +21 -19
  90. data/spec/lib/channel_presence_concat_pam_spec.rb +94 -0
  91. data/spec/lib/client_spec.rb +3 -4
  92. data/spec/lib/heartbeat_spec.rb +16 -16
  93. data/spec/lib/integration/global_here_now_dpc_spec.rb +10 -10
  94. data/spec/lib/integration/global_here_now_spec.rb +8 -8
  95. data/spec/lib/integration/here_now_dpc_spec.rb +24 -24
  96. data/spec/lib/integration/here_now_spec.rb +24 -24
  97. data/spec/lib/integration/leave_dpc_spec.rb +24 -25
  98. data/spec/lib/integration/leave_spec.rb +24 -24
  99. data/spec/lib/integration/publish_spec.rb +5 -0
  100. data/spec/lib/integration/state_spec.rb +84 -0
  101. data/spec/lib/integration/where_now_spec.rb +312 -0
  102. metadata +108 -26
  103. data/LICENSE +0 -27
  104. data/VERSION +0 -1
  105. data/examples/demo_console_new.rb +0 -286
  106. data/fixtures/vcr_cassettes/heartbeat-non200.yml +0 -667
  107. data/spec/tools/pam-test-generator.rb +0 -367
  108. data/spec/tools/test-generator.rb +0 -310
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pubsub.pubnub.com/v1/auth/grant/sub-key/sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe?channel=demo,demo1,demo2,demo-pnpres,demo1-pnpres,demo2-pnpres&pnsdk=PubNub-Ruby/3.6.7&r=1&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&ttl=1440&uuid=f0ac67ef-912f-4797-be67-a59745107306&w=1
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
+ - Fri, 17 Oct 2014 12:32:40 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '327'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Access-Control-Allow-Methods:
38
+ - GET
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":200,"service":"Access Manager","message":"Success","payload":{"channels":{"demo2-pnpres":{"r":1,"w":1},"demo":{"r":1,"w":1},"demo2":{"r":1,"w":1},"demo1":{"r":1,"w":1},"demo1-pnpres":{"r":1,"w":1},"demo-pnpres":{"r":1,"w":1}},"subscribe_key":"sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe","ttl":1440,"level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Oct 2014 12:32:54 GMT
44
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pubsub.pubnub.com/v1/auth/grant/sub-key/sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe?channel=demo,demo1,demo2,demo-pnpres,demo1-pnpres,demo2-pnpres&pnsdk=PubNub-Ruby/3.6.7&r=1&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&ttl=1440&uuid=f0ac67ef-912f-4797-be67-a59745107306&w=1
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
+ - Fri, 17 Oct 2014 12:32:41 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '327'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Access-Control-Allow-Methods:
38
+ - GET
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":200,"service":"Access Manager","message":"Success","payload":{"channels":{"demo2-pnpres":{"r":1,"w":1},"demo":{"r":1,"w":1},"demo2":{"r":1,"w":1},"demo1":{"r":1,"w":1},"demo1-pnpres":{"r":1,"w":1},"demo-pnpres":{"r":1,"w":1}},"subscribe_key":"sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe","ttl":1440,"level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Oct 2014 12:32:55 GMT
44
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pubsub.pubnub.com/v1/auth/grant/sub-key/sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe?channel=demo,demo1,demo2,demo-pnpres,demo1-pnpres,demo2-pnpres&pnsdk=PubNub-Ruby/3.6.7&r=1&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&ttl=1440&uuid=f0ac67ef-912f-4797-be67-a59745107306&w=1
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
+ - Fri, 17 Oct 2014 12:32:42 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '327'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Access-Control-Allow-Methods:
38
+ - GET
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":200,"service":"Access Manager","message":"Success","payload":{"channels":{"demo2-pnpres":{"r":1,"w":1},"demo":{"r":1,"w":1},"demo2":{"r":1,"w":1},"demo1":{"r":1,"w":1},"demo1-pnpres":{"r":1,"w":1},"demo-pnpres":{"r":1,"w":1}},"subscribe_key":"sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe","ttl":1440,"level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Oct 2014 12:32:55 GMT
44
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pubsub.pubnub.com/v1/auth/grant/sub-key/sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe?channel=demo,demo1,demo2,demo-pnpres,demo1-pnpres,demo2-pnpres&pnsdk=PubNub-Ruby/3.6.7&r=1&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&ttl=1440&uuid=f0ac67ef-912f-4797-be67-a59745107306&w=1
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
+ - Fri, 17 Oct 2014 12:32:42 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '327'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Access-Control-Allow-Methods:
38
+ - GET
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":200,"service":"Access Manager","message":"Success","payload":{"channels":{"demo2-pnpres":{"r":1,"w":1},"demo":{"r":1,"w":1},"demo2":{"r":1,"w":1},"demo1":{"r":1,"w":1},"demo1-pnpres":{"r":1,"w":1},"demo-pnpres":{"r":1,"w":1}},"subscribe_key":"sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe","ttl":1440,"level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Oct 2014 12:32:56 GMT
44
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://pubsub.pubnub.com/v1/auth/grant/sub-key/sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe?channel=demo,demo-pnpres&pnsdk=PubNub-Ruby/3.6.7&r=1&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&ttl=1440&uuid=f0ac67ef-912f-4797-be67-a59745107306&w=1
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
+ - Fri, 17 Oct 2014 12:32:39 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '225'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Access-Control-Allow-Methods:
38
+ - GET
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":200,"service":"Access Manager","message":"Success","payload":{"channels":{"demo":{"r":1,"w":1},"demo-pnpres":{"r":1,"w":1}},"subscribe_key":"sub-c-53c3d30a-4135-11e3-9970-02ee2ddab7fe","ttl":1440,"level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Oct 2014 12:32:52 GMT
44
+ recorded_with: VCR 2.9.2
@@ -43,7 +43,7 @@ http_interactions:
43
43
  recorded_at: Thu, 27 Mar 2014 21:52:00 GMT
44
44
  - request:
45
45
  method: get
46
- uri: http://pubsub.pubnub.com/v2/presence/sub-key/demo-36/channel/ruby_test/heartbeat?pnsdk=PubNub-Ruby/3.5.1&state=%7B%7D&uuid=0bf9787a-92fd-4eff-b4e6-7ebda6482827
46
+ uri: http://pubsub.pubnub.com/v2/presence/sub-key/demo-36/channel/ruby_test/heartbeat?pnsdk=PubNub-Ruby/3.5.1&uuid=0bf9787a-92fd-4eff-b4e6-7ebda6482827
47
47
  body:
48
48
  encoding: US-ASCII
49
49
  string: ''
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:58 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:57 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:36:00 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:59 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:36:06 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:36:05 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:36:08 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:36:06 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:37 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:35 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:40 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:38 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:49 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:47 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:51 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"uuids":["rubytests"],"occupancy":1}'
45
+ string: "{\"status\": 200, \"message\": \"OK\", \"service\": \"Presence\", \"uuids\": [\"rubytest\"], \"occupancy\": 1}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:35:49 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"action": "leave"}'
45
+ string: "{\"status\": 200, \"action\": \"leave\", \"message\": \"OK\", \"service\": \"Presence\"}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:37:06 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"action": "leave"}'
45
+ string: "{\"status\": 200, \"action\": \"leave\", \"message\": \"OK\", \"service\": \"Presence\"}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:37:04 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"action": "leave"}'
45
+ string: "{\"status\": 200, \"action\": \"leave\", \"message\": \"OK\", \"service\": \"Presence\"}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:37:08 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"action": "leave"}'
45
+ string: "{\"status\": 200, \"action\": \"leave\", \"message\": \"OK\", \"service\": \"Presence\"}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:37:07 GMT
48
48
  recorded_with: VCR 2.8.0
@@ -42,7 +42,7 @@ http_interactions:
42
42
  - Pubnub Presence
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"action": "leave"}'
45
+ string: "{\"status\": 200, \"action\": \"leave\", \"message\": \"OK\", \"service\": \"Presence\"}"
46
46
  http_version:
47
47
  recorded_at: Wed, 22 Jan 2014 22:37:14 GMT
48
48
  recorded_with: VCR 2.8.0