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.

Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +6 -0
  3. data/README.md +11 -0
  4. data/VERSION +1 -1
  5. data/examples/demo_console.rb +0 -1
  6. data/fixtures/vcr_cassettes/auth_key_flow_auth_publish.yml +45 -0
  7. data/fixtures/vcr_cassettes/auth_key_flow_empty_auth_audit.yml +44 -0
  8. data/fixtures/vcr_cassettes/auth_key_flow_instead_auth_audit.yml +44 -0
  9. data/fixtures/vcr_cassettes/auth_key_flow_no_auth_publish.yml +45 -0
  10. data/fixtures/vcr_cassettes/auth_key_flow_non_auth_audit.yml +44 -0
  11. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-array.yml +2 -2
  12. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-hash.yml +2 -2
  13. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-integer.yml +2 -2
  14. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-mix.yml +2 -2
  15. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-multi-mix.yml +2 -2
  16. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-string.yml +2 -2
  17. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-array.yml +2 -2
  18. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-hash.yml +2 -2
  19. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-integer.yml +2 -2
  20. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-mix.yml +2 -2
  21. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-one-channel-string.yml +2 -2
  22. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-array.yml +2 -2
  23. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-hash.yml +2 -2
  24. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-integer.yml +2 -2
  25. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-mix.yml +2 -2
  26. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-multi-mix.yml +2 -2
  27. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-many-channels-string.yml +2 -2
  28. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-array.yml +2 -2
  29. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-hash.yml +2 -2
  30. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-integer.yml +2 -2
  31. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-mix.yml +2 -2
  32. data/fixtures/vcr_cassettes/formatting-envelope-subscribe-without-cipherkey-one-channel-string.yml +2 -2
  33. data/fixtures/vcr_cassettes/heartbeat-non200.yml +519 -0
  34. data/fixtures/vcr_cassettes/heartbeat-test.yml +91 -0
  35. data/fixtures/vcr_cassettes/heartbeated-subscribe.yml +136 -0
  36. data/fixtures/vcr_cassettes/here_now_global-nonssl-block-invalid-200-sync.yml +49 -0
  37. data/fixtures/vcr_cassettes/here_now_global-nonssl-block-invalid-non-200-sync.yml +49 -0
  38. data/fixtures/vcr_cassettes/here_now_global-nonssl-block-valid-200-sync.yml +49 -0
  39. data/fixtures/vcr_cassettes/here_now_global-nonssl-block-valid-non-200-sync.yml +49 -0
  40. data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-invalid-200-sync.yml +49 -0
  41. data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-invalid-non-200-sync.yml +49 -0
  42. data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-valid-200-sync.yml +49 -0
  43. data/fixtures/vcr_cassettes/here_now_global-nonssl-parameter-valid-non-200-sync.yml +49 -0
  44. data/fixtures/vcr_cassettes/here_now_global-ssl-block-invalid-200-sync.yml +49 -0
  45. data/fixtures/vcr_cassettes/here_now_global-ssl-block-invalid-non-200-sync.yml +49 -0
  46. data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-200-async.yml +49 -0
  47. data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-200-sync.yml +49 -0
  48. data/fixtures/vcr_cassettes/here_now_global-ssl-block-valid-non-200-sync.yml +49 -0
  49. data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-invalid-200-sync.yml +49 -0
  50. data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-invalid-non-200-sync.yml +49 -0
  51. data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-valid-200-sync.yml +49 -0
  52. data/fixtures/vcr_cassettes/here_now_global-ssl-parameter-valid-non-200-sync.yml +49 -0
  53. data/fixtures/vcr_cassettes/new_ones/multiplexed_subscribe.yml +854 -0
  54. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-array-of-hashes.yml +1 -1
  55. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-200-invalid.yml +1 -1
  56. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-200-valid.yml +1 -1
  57. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-non200-invalid.yml +1 -1
  58. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-http-non200-valid.yml +1 -1
  59. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-200-invalid.yml +1 -1
  60. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-200-valid.yml +1 -1
  61. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-non200-invalid.yml +1 -1
  62. data/fixtures/vcr_cassettes/new_ones/publish/publish-encrypted-https-non200-valid.yml +1 -1
  63. data/fixtures/vcr_cassettes/new_ones/publish/publish-http-200-invalid.yml +1 -1
  64. data/fixtures/vcr_cassettes/new_ones/publish/publish-http-200-valid.yml +1 -1
  65. data/fixtures/vcr_cassettes/new_ones/publish/publish-http-non200-invalid.yml +1 -1
  66. data/fixtures/vcr_cassettes/new_ones/publish/publish-http-non200-valid.yml +1 -1
  67. data/fixtures/vcr_cassettes/new_ones/publish/publish-https-200-invalid.yml +1 -1
  68. data/fixtures/vcr_cassettes/new_ones/publish/publish-https-200-valid.yml +1 -1
  69. data/fixtures/vcr_cassettes/new_ones/publish/publish-https-non200-invalid.yml +1 -1
  70. data/fixtures/vcr_cassettes/new_ones/publish/publish-https-non200-valid.yml +1 -1
  71. data/fixtures/vcr_cassettes/new_ones/publish/publish-plain-array-of-hashes.yml +1 -1
  72. data/fixtures/vcr_cassettes/non-heartbeated-subscribe.yml +44 -0
  73. data/fixtures/vcr_cassettes/pam20.yml +1 -1
  74. data/fixtures/vcr_cassettes/single-event-invalid-json.yml +15 -138
  75. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-200-async.yml +86 -0
  76. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-200-sync.yml +86 -0
  77. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-non-200-async.yml +86 -0
  78. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-invalid-non-200-sync.yml +86 -0
  79. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-200-async.yml +86 -0
  80. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-200-sync.yml +86 -0
  81. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-non-200-async.yml +86 -0
  82. data/fixtures/vcr_cassettes/v3-presence-nonssl-block-valid-non-200-sync.yml +86 -0
  83. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-200-async.yml +86 -0
  84. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-200-sync.yml +86 -0
  85. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-non-200-async.yml +86 -0
  86. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-invalid-non-200-sync.yml +86 -0
  87. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-200-async.yml +86 -0
  88. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-200-sync.yml +86 -0
  89. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-non-200-async.yml +86 -0
  90. data/fixtures/vcr_cassettes/v3-presence-nonssl-parameter-valid-non-200-sync.yml +86 -0
  91. data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-200-async.yml +86 -0
  92. data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-200-sync.yml +86 -0
  93. data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-non-200-async.yml +86 -0
  94. data/fixtures/vcr_cassettes/v3-presence-ssl-block-invalid-non-200-sync.yml +86 -0
  95. data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-200-async.yml +86 -0
  96. data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-200-sync.yml +86 -0
  97. data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-non-200-async.yml +86 -0
  98. data/fixtures/vcr_cassettes/v3-presence-ssl-block-valid-non-200-sync.yml +86 -0
  99. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-200-async.yml +86 -0
  100. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-200-sync.yml +86 -0
  101. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-non-200-async.yml +86 -0
  102. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-invalid-non-200-sync.yml +86 -0
  103. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-200-async.yml +86 -0
  104. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-200-sync.yml +86 -0
  105. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-non-200-async.yml +86 -0
  106. data/fixtures/vcr_cassettes/v3-presence-ssl-parameter-valid-non-200-sync.yml +86 -0
  107. data/lib/pubnub/client.rb +57 -31
  108. data/lib/pubnub/crypto.rb +6 -6
  109. data/lib/pubnub/event.rb +64 -45
  110. data/lib/pubnub/events/heartbeat.rb +59 -0
  111. data/lib/pubnub/events/here_now.rb +19 -10
  112. data/lib/pubnub/events/leave.rb +17 -9
  113. data/lib/pubnub/exceptions.rb +1 -1
  114. data/lib/pubnub/formatter.rb +1 -0
  115. data/lib/pubnub/pam.rb +5 -0
  116. data/lib/version.rb +1 -1
  117. data/pubnub.gemspec +2 -2
  118. data/spec/lib/auth_key_flow_spec.rb +60 -0
  119. data/spec/lib/heartbeat_spec.rb +110 -0
  120. data/spec/lib/integration/global_here_now_spec.rb +541 -0
  121. data/spec/lib/integration/multiplexed_subscribe_flow_spec.rb +44 -0
  122. data/spec/lib/integration/publish_spec.rb +1699 -373
  123. data/spec/lib/integration/publish_spec_old.rb +541 -0
  124. data/spec/lib/integration/v3_presence_spec.rb +557 -0
  125. metadata +68 -4
  126. data/examples/demo_console.rb~ +0 -307
  127. data/spec/lib/new_integration/publish_spec.rb +0 -1867
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 823024dba735d78188dfb40014ad66a746ec1633
4
- data.tar.gz: ee58ab64b1c20f62864edeaa36f76d5ba046b624
3
+ metadata.gz: 101ccc5365ffa2fba48aa9ae86809cd46252759d
4
+ data.tar.gz: f497be3f1cc10e368cf3dfa6de728b69765e5ff6
5
5
  SHA512:
6
- metadata.gz: 28a9736826cd12c73c302bd94afcec9b22fda0785b849cb793a4aceb3cf1890e68bb604467748ae0110a2ad02035499e6bab25378cf3d2bee72229bd75c5cbb4
7
- data.tar.gz: 016fc32654f807868280218ab34370054a75492b37f154a69f8c8900b41effa0b6f856c294548bf7334f77ab098cfc9830c9e383dd99d07dbe06544fd2b7e937
6
+ metadata.gz: 96d73debc55451d3f59f6d6a0d113a7fc61c1d89cb92f40d08e77506494833bcb245393b49c8b55a11b53dfb5be680510156c77157fdae917aeb5bfdac80a423
7
+ data.tar.gz: bc8d11c4899b877a3013bc1c31340d3438ec6da9fa94d556a01d92827e89759b104312de990b6a4a9363d0e7634a2ae49961948e22a5a9034a7ae5f09cad70e7
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 3.6.3 Release
2
+ . Fixed issues with PAM where grant/revoke/audit may not use the correct auth key (when explicitly provided)
3
+
4
+ 3.6.0 Release
5
+ . Exposed HTTP/S Proxy Support
6
+
1
7
  3-17-14 - 3.5.1 Release
2
8
  . PAM Support!
3
9
  . extensive refactor, removed a lot of dependencies, such as Faraday for HTTP_SYNC mode
data/README.md CHANGED
@@ -448,6 +448,17 @@ Mixing up some async pubs and subs, using blocks and callbacks.
448
448
  #### serial_publish
449
449
  Publish 10000 times with an explicit 0.05s delay between publishes
450
450
 
451
+ ## Proxy support
452
+ Basic proxy is supported using ENV global, before initializing pubnub just set:
453
+
454
+ ```ruby
455
+ ENV['HTTP_PROXY'] = 'http://my.poxy/'
456
+ ENV['HTTP_PROXY_USER'] = 'user'
457
+ ENV['HTTP_PROXY_PASS'] = 'secret'
458
+ ```
459
+
460
+ after that you can initialize pubnub object as always.
461
+
451
462
  ## Comment on Passenger users
452
463
  Passenger is orphaning threads and it causes issues with EM which is need to run async pubnub events.
453
464
  Below is fix that worked with our tests. You should fire that code from your initializers.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.1
1
+ 3.5.3
@@ -25,7 +25,6 @@ case keys_option
25
25
  pub_key = 'pub-c-a2650a22-deb1-44f5-aa87-1517049411d5'
26
26
  sec_key = 'sec-c-YjFmNzYzMGMtYmI3NC00NzJkLTlkYzYtY2MwMzI4YTJhNDVh'
27
27
 
28
-
29
28
  when 'c'
30
29
  puts 'Provide origin [demo.pubnub.com]:'
31
30
  origin = gets.chomp!.downcase
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://pubsub.pubnub.com/publish/pub-c-a2650a22-deb1-44f5-aa87-1517049411d5/sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe/sec-c-YjFmNzYzMGMtYmI3NC00NzJkLTlkYzYtY2MwMzI4YTJhNDVh/ruby_test/0/%22whatever%22?auth=ruby_client_123&pnsdk=PubNub-Ruby/3.5.2&uuid=323f51ab-4896-46f2-9437-f2bfa94a02e1
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: 403
23
+ message: Forbidden
24
+ headers:
25
+ Date:
26
+ - Thu, 10 Apr 2014 22:36:30 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Transfer-Encoding:
30
+ - chunked
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: |
42
+ {"status":403,"service":"Access Manager","error":true,"message":"Forbidden","payload":{"channels":["ruby_test"]}}
43
+ http_version:
44
+ recorded_at: Thu, 10 Apr 2014 22:36:30 GMT
45
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://pubsub.pubnub.com/v1/auth/audit/sub-key/sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe?auth=omg_so_key&channel=ruby_test&pnsdk=PubNub-Ruby/3.5.2&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&uuid=04c8e136-5040-477d-bead-acae12a98442
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
+ - Thu, 10 Apr 2014 22:44:19 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '182'
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":{"auths":{},"subscribe_key":"sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe","channel":"ruby_test","level":"user"}}'
42
+ http_version:
43
+ recorded_at: Thu, 10 Apr 2014 22:44:20 GMT
44
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://pubsub.pubnub.com/v1/auth/audit/sub-key/sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe?auth=omg_so_key&channel=ruby_test&pnsdk=PubNub-Ruby/3.5.2&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&uuid=1adda951-d9ec-4880-ae58-4cc9f31a1598
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
+ - Thu, 10 Apr 2014 22:42:28 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '182'
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":{"auths":{},"subscribe_key":"sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe","channel":"ruby_test","level":"user"}}'
42
+ http_version:
43
+ recorded_at: Thu, 10 Apr 2014 22:42:28 GMT
44
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://pubsub.pubnub.com/publish/pub-c-a2650a22-deb1-44f5-aa87-1517049411d5/sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe/0/ruby_test/0/%22whatever%22?pnsdk=PubNub-Ruby/3.5.2&uuid=afe9736c-a4f3-4d37-b0e1-3305d2ca6fdf
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: 403
23
+ message: Forbidden
24
+ headers:
25
+ Date:
26
+ - Thu, 10 Apr 2014 22:34:47 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Transfer-Encoding:
30
+ - chunked
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: |
42
+ {"status":403,"service":"Access Manager","error":true,"message":"Forbidden","payload":{"channels":["ruby_test"]}}
43
+ http_version:
44
+ recorded_at: Thu, 10 Apr 2014 22:34:47 GMT
45
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://pubsub.pubnub.com/v1/auth/audit/sub-key/sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe?channel=ruby_test&pnsdk=PubNub-Ruby/3.5.2&signature=kdDh/sFC3rSR%2Bt5AEymIc57d1velIr562V7usa5M4k0=&timestamp=1234567890&uuid=4b92172b-aa29-4ac2-997d-000e631ef735
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
+ - Thu, 10 Apr 2014 22:42:27 GMT
27
+ Content-Type:
28
+ - text/javascript; charset=UTF-8
29
+ Content-Length:
30
+ - '166'
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":{},"subscribe_key":"sub-c-a478dd2a-c33d-11e2-883f-02ee2ddab7fe","level":"channel"}}'
42
+ http_version:
43
+ recorded_at: Thu, 10 Apr 2014 22:42:28 GMT
44
+ recorded_with: VCR 2.9.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=3919598a-29e3-4436-b592-0210c1f3b169
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=3919598a-29e3-4436-b592-0210c1f3b169
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:33 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267539045524?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=3919598a-29e3-4436-b592-0210c1f3b169
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267539045524?pnsdk=PubNub-Ruby/3.5.0beta&uuid=3919598a-29e3-4436-b592-0210c1f3b169
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=be920d35-e14a-46ab-9588-5765c73ccf53
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=be920d35-e14a-46ab-9588-5765c73ccf53
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:40 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267604836316?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=be920d35-e14a-46ab-9588-5765c73ccf53
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267604836316?pnsdk=PubNub-Ruby/3.5.0beta&uuid=be920d35-e14a-46ab-9588-5765c73ccf53
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=11020cad-6e0f-449e-9901-2368aa2943e0
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=11020cad-6e0f-449e-9901-2368aa2943e0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:31 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267517376856?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=11020cad-6e0f-449e-9901-2368aa2943e0
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267517376856?pnsdk=PubNub-Ruby/3.5.0beta&uuid=11020cad-6e0f-449e-9901-2368aa2943e0
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=44f43b72-c78b-4eff-9286-5edec4d1fd8f
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=44f43b72-c78b-4eff-9286-5edec4d1fd8f
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:43 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267635133932?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=44f43b72-c78b-4eff-9286-5edec4d1fd8f
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267635133932?pnsdk=PubNub-Ruby/3.5.0beta&uuid=44f43b72-c78b-4eff-9286-5edec4d1fd8f
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=967210d7-02c0-4740-a151-32746736b458
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=967210d7-02c0-4740-a151-32746736b458
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:53:43 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267962560020?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=967210d7-02c0-4740-a151-32746736b458
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267962560020?pnsdk=PubNub-Ruby/3.5.0beta&uuid=967210d7-02c0-4740-a151-32746736b458
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=df6e86eb-0d7c-4757-8f9a-e95b12ddf761
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=df6e86eb-0d7c-4757-8f9a-e95b12ddf761
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:24 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267443657300?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=df6e86eb-0d7c-4757-8f9a-e95b12ddf761
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one,test_channel_two/0/13912267443657300?pnsdk=PubNub-Ruby/3.5.0beta&uuid=df6e86eb-0d7c-4757-8f9a-e95b12ddf761
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=02c87f66-8c73-4551-8c2f-5228ca3728f9
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=02c87f66-8c73-4551-8c2f-5228ca3728f9
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:06 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267269177836?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=02c87f66-8c73-4551-8c2f-5228ca3728f9
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267269177836?pnsdk=PubNub-Ruby/3.5.0beta&uuid=02c87f66-8c73-4551-8c2f-5228ca3728f9
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=ef500aa5-4c29-4a04-9098-4b269d7d7d85
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=ef500aa5-4c29-4a04-9098-4b269d7d7d85
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:11 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267316678648?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=ef500aa5-4c29-4a04-9098-4b269d7d7d85
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267316678648?pnsdk=PubNub-Ruby/3.5.0beta&uuid=ef500aa5-4c29-4a04-9098-4b269d7d7d85
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=008b4878-fcbd-43eb-a1d2-f143e8682b84
5
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/0?pnsdk=PubNub-Ruby/3.5.0beta&uuid=008b4878-fcbd-43eb-a1d2-f143e8682b84
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -45,7 +45,7 @@ http_interactions:
45
45
  recorded_at: Sat, 01 Feb 2014 03:52:04 GMT
46
46
  - request:
47
47
  method: get
48
- uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267244623074?auth=&pnsdk=PubNub-Ruby/3.5.0beta&uuid=008b4878-fcbd-43eb-a1d2-f143e8682b84
48
+ uri: http://pubsub.pubnub.com/subscribe/demo/test_channel_one/0/13912267244623074?pnsdk=PubNub-Ruby/3.5.0beta&uuid=008b4878-fcbd-43eb-a1d2-f143e8682b84
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''