pubnub 3.7.1 → 3.7.5
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.txt +12 -0
- data/Gemfile.lock +5 -2
- data/README.md +16 -54
- data/fixtures/vcr_cassettes/paged-history-async.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-pages-async.yml +141 -0
- data/fixtures/vcr_cassettes/paged-history-pages-ssl-async.yml +141 -0
- data/fixtures/vcr_cassettes/paged-history-pages-ssl-sync.yml +141 -0
- data/fixtures/vcr_cassettes/paged-history-pages-start-async.yml +95 -0
- data/fixtures/vcr_cassettes/paged-history-pages-start-ssl-async.yml +95 -0
- data/fixtures/vcr_cassettes/paged-history-pages-start-ssl-sync.yml +95 -0
- data/fixtures/vcr_cassettes/paged-history-pages-start-sync.yml +95 -0
- data/fixtures/vcr_cassettes/paged-history-pages-sync.yml +140 -0
- data/fixtures/vcr_cassettes/paged-history-ssl-async.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-ssl-sync.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-start-async.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-start-ssl-async.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-start-ssl-sync.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-start-sync.yml +49 -0
- data/fixtures/vcr_cassettes/paged-history-sync.yml +49 -0
- data/lib/pubnub/client.rb +27 -22
- data/lib/pubnub/event.rb +1 -2
- data/lib/pubnub/events/here_now.rb +3 -3
- data/lib/pubnub/formatter.rb +2 -2
- data/lib/pubnub/pam.rb +1 -1
- data/lib/pubnub/version.rb +1 -1
- data/spec/lib/integration/paged_history_spec.rb +284 -0
- metadata +32 -15
@@ -0,0 +1,140 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:55:57 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
recorded_at: Mon, 18 May 2015 11:55:57 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319499779635079&uuid=rubytests
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- '*/*'
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
Connection:
|
62
|
+
- keep-alive
|
63
|
+
Keep-Alive:
|
64
|
+
- 30
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Date:
|
71
|
+
- Mon, 18 May 2015 11:55:58 GMT
|
72
|
+
Content-Type:
|
73
|
+
- text/javascript; charset="UTF-8"
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
Connection:
|
77
|
+
- keep-alive
|
78
|
+
Cache-Control:
|
79
|
+
- no-cache
|
80
|
+
Access-Control-Allow-Origin:
|
81
|
+
- '*'
|
82
|
+
Access-Control-Allow-Methods:
|
83
|
+
- GET
|
84
|
+
Age:
|
85
|
+
- '0'
|
86
|
+
Server:
|
87
|
+
- Pubnub
|
88
|
+
body:
|
89
|
+
encoding: UTF-8
|
90
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
91
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
92
|
+
http_version:
|
93
|
+
recorded_at: Mon, 18 May 2015 11:55:58 GMT
|
94
|
+
- request:
|
95
|
+
method: get
|
96
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319499779635079&uuid=rubytests
|
97
|
+
body:
|
98
|
+
encoding: US-ASCII
|
99
|
+
string: ''
|
100
|
+
headers:
|
101
|
+
Accept-Encoding:
|
102
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
103
|
+
Accept:
|
104
|
+
- '*/*'
|
105
|
+
User-Agent:
|
106
|
+
- Ruby
|
107
|
+
Connection:
|
108
|
+
- keep-alive
|
109
|
+
Keep-Alive:
|
110
|
+
- 30
|
111
|
+
response:
|
112
|
+
status:
|
113
|
+
code: 200
|
114
|
+
message: OK
|
115
|
+
headers:
|
116
|
+
Date:
|
117
|
+
- Mon, 18 May 2015 11:55:58 GMT
|
118
|
+
Content-Type:
|
119
|
+
- text/javascript; charset="UTF-8"
|
120
|
+
Transfer-Encoding:
|
121
|
+
- chunked
|
122
|
+
Connection:
|
123
|
+
- keep-alive
|
124
|
+
Cache-Control:
|
125
|
+
- no-cache
|
126
|
+
Access-Control-Allow-Origin:
|
127
|
+
- '*'
|
128
|
+
Access-Control-Allow-Methods:
|
129
|
+
- GET
|
130
|
+
Age:
|
131
|
+
- '0'
|
132
|
+
Server:
|
133
|
+
- Pubnub
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
137
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
138
|
+
http_version:
|
139
|
+
recorded_at: Mon, 18 May 2015 11:55:58 GMT
|
140
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:54:55 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:54:56 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:54:11 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:54:11 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319447984449246&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:59:06 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:59:07 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319447984449246&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:55:06 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:55:06 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319447984449246&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:54:22 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:54:22 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&start=14319447984449246&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:55: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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:55:47 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/bot?auth=demoish_authkey&count=100&pnsdk=PubNub-Ruby/3.7.2&uuid=rubytests
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Connection:
|
17
|
+
- keep-alive
|
18
|
+
Keep-Alive:
|
19
|
+
- 30
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Mon, 18 May 2015 11:55:36 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
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Server:
|
42
|
+
- Pubnub
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
|
46
|
+
- 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 18 May 2015 11:55:36 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|