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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 101ccc5365ffa2fba48aa9ae86809cd46252759d
|
4
|
+
data.tar.gz: f497be3f1cc10e368cf3dfa6de728b69765e5ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
3.5.3
|
data/examples/demo_console.rb
CHANGED
@@ -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=×tamp=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=×tamp=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=×tamp=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?
|
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?
|
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?
|
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?
|
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: ''
|
data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-integer.yml
CHANGED
@@ -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?
|
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?
|
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?
|
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?
|
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: ''
|
data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-multi-mix.yml
CHANGED
@@ -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?
|
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?
|
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: ''
|
data/fixtures/vcr_cassettes/formatting-envelope-subscribe-cipherkey-many-channels-string.yml
CHANGED
@@ -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?
|
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?
|
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?
|
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?
|
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?
|
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?
|
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?
|
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?
|
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: ''
|