pubnub 4.0.9 → 4.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pubnub might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.pubnub.yml +49 -3
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/fixtures/vcr_cassettes/examples/status_request_message_count_exceeded.yml +1484 -0
- data/fixtures/vcr_cassettes/lib/super_admin/cg.yml +47 -0
- data/fixtures/vcr_cassettes/lib/super_admin/here_now.yml +47 -0
- data/fixtures/vcr_cassettes/lib/super_admin/history.yml +46 -0
- data/fixtures/vcr_cassettes/lib/super_admin/leave.yml +46 -0
- data/fixtures/vcr_cassettes/lib/super_admin/presence.yml +79 -0
- data/fixtures/vcr_cassettes/lib/super_admin/publish.yml +40 -0
- data/fixtures/vcr_cassettes/lib/super_admin/state.yml +47 -0
- data/fixtures/vcr_cassettes/lib/super_admin/subscribe.yml +77 -0
- data/fixtures/vcr_cassettes/lib/super_admin/time.yml +40 -0
- data/fixtures/vcr_cassettes/lib/super_admin/where_now.yml +47 -0
- data/lib/pubnub/client.rb +4 -0
- data/lib/pubnub/configuration.rb +2 -1
- data/lib/pubnub/constants.rb +2 -0
- data/lib/pubnub/event.rb +78 -20
- data/lib/pubnub/events/audit.rb +4 -0
- data/lib/pubnub/events/channel_registration.rb +3 -36
- data/lib/pubnub/events/grant.rb +4 -0
- data/lib/pubnub/events/heartbeat.rb +5 -38
- data/lib/pubnub/events/here_now.rb +5 -38
- data/lib/pubnub/events/history.rb +5 -38
- data/lib/pubnub/events/leave.rb +4 -39
- data/lib/pubnub/events/presence.rb +6 -0
- data/lib/pubnub/events/publish.rb +12 -45
- data/lib/pubnub/events/revoke.rb +4 -0
- data/lib/pubnub/events/set_state.rb +5 -33
- data/lib/pubnub/events/state.rb +5 -38
- data/lib/pubnub/events/subscribe.rb +6 -0
- data/lib/pubnub/events/time.rb +4 -37
- data/lib/pubnub/events/where_now.rb +4 -37
- data/lib/pubnub/formatter.rb +7 -5
- data/lib/pubnub/pam.rb +0 -18
- data/lib/pubnub/single_event.rb +0 -4
- data/lib/pubnub/subscribe_event.rb +3 -1
- data/lib/pubnub/subscribe_event/callbacks.rb +11 -0
- data/lib/pubnub/subscriber.rb +31 -0
- data/lib/pubnub/version.rb +1 -1
- data/spec/examples/channel_registration_examples_spec.rb +0 -1
- data/spec/examples/heartbeat_examples_spec.rb +0 -1
- data/spec/examples/here_now_examples_spec.rb +0 -1
- data/spec/examples/history_examples_spec.rb +0 -1
- data/spec/examples/leave_examples_spec.rb +0 -1
- data/spec/examples/presence_examples_spec.rb +0 -1
- data/spec/examples/publish_examples_spec.rb +0 -865
- data/spec/examples/revoke_examples_spec.rb +3888 -3888
- data/spec/examples/set_state_examples_spec.rb +0 -1
- data/spec/examples/state_examples_spec.rb +0 -1
- data/spec/examples/status_request_message_count_exceeded_spec.rb +41 -0
- data/spec/examples/subscribe_examples_spec.rb +0 -445
- data/spec/examples/time_examples_spec.rb +0 -1
- data/spec/examples/where_now_examples_spec.rb +0 -1
- data/spec/lib/events/channel_registration_spec.rb +0 -1
- data/spec/lib/events/heartbeat_spec.rb +0 -1
- data/spec/lib/events/here_now_spec.rb +0 -1
- data/spec/lib/events/history_spec.rb +0 -1
- data/spec/lib/events/leave_spec.rb +0 -1
- data/spec/lib/events/presence_spec.rb +0 -4
- data/spec/lib/events/publish_spec.rb +0 -3
- data/spec/lib/events/state_spec.rb +0 -1
- data/spec/lib/events/subscribe_spec.rb +0 -7
- data/spec/lib/events/time_spec.rb +0 -1
- data/spec/lib/events/timeout_handling_spec.rb +30 -0
- data/spec/lib/events/where_now_spec.rb +0 -1
- data/spec/lib/super_admin_spec.rb +166 -0
- data/spec/spec_helper.rb +5 -3
- metadata +33 -16
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v1/channel-registration/sub-key/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/channel-group/demo?add=demo&pnsdk=PubNub-Ruby/4.0.10&signature=SelPXMxzc4/C3yw7gF%2B6jBUTBIHMk9qEG0kscHSDHkM=×tamp=1477672650&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 28 Oct 2016 16:37:30 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 28 Oct 2016 16:37:30 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '79'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
Accept-Ranges:
|
36
|
+
- bytes
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Server:
|
40
|
+
- Pubnub
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status": 200, "message": "OK", "service": "channel-registry", "error":
|
44
|
+
false}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 28 Oct 2016 16:37:30 GMT
|
47
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/presence/sub-key/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/channel/demo?pnsdk=PubNub-Ruby/4.0.10&signature=7aPUXLeMx1NsCGYIcuPbzrzbxbUk8PBGVV4aw86f5I8=×tamp=1477672650&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 28 Oct 2016 16:37:30 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 28 Oct 2016 16:37:30 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '84'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- OPTIONS, GET, POST
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Accept-Ranges:
|
36
|
+
- bytes
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Server:
|
40
|
+
- Pubnub Presence
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status": 200, "message": "OK", "service": "Presence", "uuids": [],
|
44
|
+
"occupancy": 0}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 28 Oct 2016 16:37:30 GMT
|
47
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/channel/demo?pnsdk=PubNub-Ruby/4.0.10&signature=cEUCi2rgbaYRqQK2O5pZKgyzZqTUbunM1cVnrNNbwoA=×tamp=1477672650&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 28 Oct 2016 16:37:31 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 28 Oct 2016 16:37:31 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '149'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
Accept-Ranges:
|
36
|
+
- bytes
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Server:
|
40
|
+
- Pubnub
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '[["whatever","whatever","whatever","whatever","whatever","whatever","whatever","whatever","whatever","whatever"],14776530853215033,14776708437883718]'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 28 Oct 2016 16:37:31 GMT
|
46
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/presence/sub-key/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/channel/demo/leave?pnsdk=PubNub-Ruby/4.0.10&signature=6Fhs/rKwSDrfYw/Lp%2B4l8bgyRZcYB5iSBQdf%2Bx2KTBk=×tamp=1477907746&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Mon, 31 Oct 2016 09:55:46 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 31 Oct 2016 09:55:47 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '74'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- OPTIONS, GET, POST
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Accept-Ranges:
|
36
|
+
- bytes
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Server:
|
40
|
+
- Pubnub Presence
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status": 200, "action": "leave", "message": "OK", "service": "Presence"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Mon, 31 Oct 2016 09:55:47 GMT
|
46
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/subscribe/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/demo-pnpres/0?pnsdk=PubNub-Ruby/4.0.10&signature=oHxIow765Eyb/y0ZSLKjn5uPzVBrmyu2BzCT1m0U5ZU=&t=%7B%22r%22:0,%22t%22:0%7D×tamp=1477921137&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Mon, 31 Oct 2016 13:38:57 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 31 Oct 2016 13:38:57 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"14779206578026961","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 31 Oct 2016 13:38:57 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://pubsub.pubnub.com/v2/subscribe/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/demo-pnpres/0?pnsdk=PubNub-Ruby/4.0.10&signature=FUsTfMjnXmhnDtK9jbeA1ia66zrB7/I4a0twcQlx2Us=&t=%7B%22r%22:12,%22t%22:%2214779206578026961%22%7D×tamp=1477921137&uuid=ruby-test
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Mon, 31 Oct 2016 13:38:57 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Mon, 31 Oct 2016 13:39:07 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '275'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"14779211470460676","r":12},"m":[{"a":"5","f":0,"p":{"t":"14779211469961647","r":2},"k":"sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe","c":"demo-pnpres","d":{"action":
|
75
|
+
"join", "timestamp": 1477921146, "uuid": "a2b1772e-1861-4fc5-971b-a3ed92ec09cb",
|
76
|
+
"occupancy": 2}}]}'
|
77
|
+
http_version:
|
78
|
+
recorded_at: Mon, 31 Oct 2016 13:39:07 GMT
|
79
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/publish/pub-c-9bb9ae77-a60c-4788-96ab-75cbe5d5dd11/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/0/demo/0/%22whatever%22?ortt=%7B%22t%22:14779190077911314%7D&pnsdk=PubNub-Ruby/4.0.10&seqn=1&signature=ikUwwlpPUzr8v%2Bjy4Xxfdy50hIiIougqT6rIx26DYMU=×tamp=1477919007&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Mon, 31 Oct 2016 13:03:27 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 31 Oct 2016 13:03:27 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '30'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '[1,"Sent","14779190079049695"]'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 31 Oct 2016 13:03:27 GMT
|
40
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/presence/sub_key/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/channel/demo/uuid/whatever?pnsdk=PubNub-Ruby/4.0.10&signature=kQ4fMFemsF0GqYwS9jlkLvFzmdph/RLxl8vYsXzGIQg=×tamp=1477672672&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 28 Oct 2016 16:37:52 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 28 Oct 2016 16:37:53 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '109'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- OPTIONS, GET, POST
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Accept-Ranges:
|
36
|
+
- bytes
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Server:
|
40
|
+
- Pubnub Presence
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status": 200, "uuid": "whatever", "service": "Presence", "message":
|
44
|
+
"OK", "payload": {}, "channel": "demo"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 28 Oct 2016 16:37:53 GMT
|
47
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/subscribe/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/demo/0?pnsdk=PubNub-Ruby/4.0.10&signature=4dmtXDIhe78aSSmkfQHsXeu1as0TgYCJZL4j%2BgtARGc=&t=%7B%22r%22:0,%22t%22:0%7D×tamp=1477921157&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Mon, 31 Oct 2016 13:39:17 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 31 Oct 2016 13:39:17 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"14779203266170510","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 31 Oct 2016 13:39:17 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://pubsub.pubnub.com/v2/subscribe/sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe/demo/0?pnsdk=PubNub-Ruby/4.0.10&signature=I00tErPeMneSwZ97kwKGdbwC7Dp9weu5G9eGpD0EkWI=&t=%7B%22r%22:12,%22t%22:%2214779203266170510%22%7D×tamp=1477921157&uuid=ruby-test
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Mon, 31 Oct 2016 13:39:17 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Mon, 31 Oct 2016 13:39:29 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '247'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"14779211691421092","r":12},"m":[{"a":"5","f":0,"i":"a2b1772e-1861-4fc5-971b-a3ed92ec09cb","s":1,"o":{"t":"14779211690225532"},"p":{"t":"14779211691429715","r":12},"k":"sub-c-f9f24520-9c56-11e6-a681-02ee2ddab7fe","c":"demo","d":"demo"}]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Mon, 31 Oct 2016 13:39:29 GMT
|
77
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/time/0?pnsdk=PubNub-Ruby/4.0.10&signature=5RastD6LJb52hD9754BaA8MbMYMsIMSqM0OCkEcUORE=×tamp=1477672693&uuid=ruby-test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 28 Oct 2016 16:38:13 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 28 Oct 2016 16:38:13 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '19'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: "[14776726935812957]"
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 28 Oct 2016 16:38:13 GMT
|
40
|
+
recorded_with: VCR 3.0.1
|