pubnub 3.7.5 → 3.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-false-1.yml +126 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-false-2.yml +86 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-false-3.yml +212 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-false-4.yml +168 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-true-1.yml +126 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-true-2.yml +86 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-true-3.yml +212 -0
- data/fixtures/vcr_cassettes/wc-sub-ssl-true-4.yml +168 -0
- data/lib/pubnub/envelope.rb +1 -0
- data/lib/pubnub/event.rb +112 -25
- data/lib/pubnub/events/leave.rb +12 -0
- data/lib/pubnub/events/presence.rb +2 -1
- data/lib/pubnub/events/subscribe.rb +2 -0
- data/lib/pubnub/version.rb +1 -1
- data/spec/lib/integration/wildcard_subscribe_spec.rb +150 -0
- metadata +26 -14
@@ -0,0 +1,168 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pubsub.pubnub.com/subscribe/ds/foo,foo.*/0/0?channel-group=group&pnsdk=PubNub-Ruby/3.7.5&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
|
+
- Thu, 23 Jul 2015 15:10:20 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '30'
|
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
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"14376642203952013","",""]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 Jul 2015 15:10:20 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://pubsub.pubnub.com/subscribe/ds/foo,foo.*/0/14376642203952013?channel-group=group&pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Thu, 23 Jul 2015 15:10:24 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '56'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"text":"hey"}],"14376642242988715","foo.*","foo.foo"]'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Thu, 23 Jul 2015 15:10:24 GMT
|
85
|
+
- request:
|
86
|
+
method: get
|
87
|
+
uri: http://pubsub.pubnub.com/subscribe/ds/foo,foo.*/0/14376642242988715?channel-group=group&pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
Accept-Encoding:
|
93
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
94
|
+
Accept:
|
95
|
+
- '*/*'
|
96
|
+
User-Agent:
|
97
|
+
- Ruby
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Keep-Alive:
|
101
|
+
- 30
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Date:
|
108
|
+
- Thu, 23 Jul 2015 15:10:27 GMT
|
109
|
+
Content-Type:
|
110
|
+
- text/javascript; charset="UTF-8"
|
111
|
+
Content-Length:
|
112
|
+
- '157'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
Cache-Control:
|
116
|
+
- no-cache
|
117
|
+
Access-Control-Allow-Origin:
|
118
|
+
- '*'
|
119
|
+
Access-Control-Allow-Methods:
|
120
|
+
- GET
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '[[{"action": "leave", "timestamp": 1437664227, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
124
|
+
"occupancy": 0}],"14376642278720422","foo.*","foo.foo-pnpres"]'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Thu, 23 Jul 2015 15:10:28 GMT
|
127
|
+
- request:
|
128
|
+
method: get
|
129
|
+
uri: http://pubsub.pubnub.com/subscribe/ds/foo,foo.*/0/14376642278720422?channel-group=group&pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ''
|
133
|
+
headers:
|
134
|
+
Accept-Encoding:
|
135
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
136
|
+
Accept:
|
137
|
+
- '*/*'
|
138
|
+
User-Agent:
|
139
|
+
- Ruby
|
140
|
+
Connection:
|
141
|
+
- keep-alive
|
142
|
+
Keep-Alive:
|
143
|
+
- 30
|
144
|
+
response:
|
145
|
+
status:
|
146
|
+
code: 200
|
147
|
+
message: OK
|
148
|
+
headers:
|
149
|
+
Date:
|
150
|
+
- Thu, 23 Jul 2015 15:10:30 GMT
|
151
|
+
Content-Type:
|
152
|
+
- text/javascript; charset="UTF-8"
|
153
|
+
Content-Length:
|
154
|
+
- '50'
|
155
|
+
Connection:
|
156
|
+
- keep-alive
|
157
|
+
Cache-Control:
|
158
|
+
- no-cache
|
159
|
+
Access-Control-Allow-Origin:
|
160
|
+
- '*'
|
161
|
+
Access-Control-Allow-Methods:
|
162
|
+
- GET
|
163
|
+
body:
|
164
|
+
encoding: UTF-8
|
165
|
+
string: '[[{"text":"hey"}],"14376642302336303","foo","foo"]'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Thu, 23 Jul 2015 15:10:30 GMT
|
168
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,126 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/0?pnsdk=PubNub-Ruby/3.7.5&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
|
+
- Thu, 23 Jul 2015 15:08:48 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '30'
|
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
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"14376639487464722","",""]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 Jul 2015 15:08:49 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376639487464722?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Thu, 23 Jul 2015 15:08:51 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '56'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"text":"hey"}],"14376641318913945","foo.*","foo.foo"]'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Thu, 23 Jul 2015 15:08:52 GMT
|
85
|
+
- request:
|
86
|
+
method: get
|
87
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641318913945?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
Accept-Encoding:
|
93
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
94
|
+
Accept:
|
95
|
+
- '*/*'
|
96
|
+
User-Agent:
|
97
|
+
- Ruby
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Keep-Alive:
|
101
|
+
- 30
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Date:
|
108
|
+
- Thu, 23 Jul 2015 15:09:03 GMT
|
109
|
+
Content-Type:
|
110
|
+
- text/javascript; charset="UTF-8"
|
111
|
+
Content-Length:
|
112
|
+
- '30'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
Cache-Control:
|
116
|
+
- no-cache
|
117
|
+
Access-Control-Allow-Origin:
|
118
|
+
- '*'
|
119
|
+
Access-Control-Allow-Methods:
|
120
|
+
- GET
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '[[],"14376641318913945","",""]'
|
124
|
+
http_version:
|
125
|
+
recorded_at: Thu, 23 Jul 2015 15:09:03 GMT
|
126
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/0?pnsdk=PubNub-Ruby/3.7.5&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
|
+
- Thu, 23 Jul 2015 15:09:18 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '30'
|
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
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"14376641318913945","",""]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 Jul 2015 15:09:18 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641318913945?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Thu, 23 Jul 2015 15:09:26 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '157'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "leave", "timestamp": 1437664166, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
83
|
+
"occupancy": 0}],"14376641662543427","foo.*","foo.foo-pnpres"]'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Thu, 23 Jul 2015 15:09:26 GMT
|
86
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,212 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/0?pnsdk=PubNub-Ruby/3.7.5&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
|
+
- Thu, 23 Jul 2015 15:09:49 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript; charset="UTF-8"
|
29
|
+
Content-Length:
|
30
|
+
- '30'
|
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
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '[[],"14376641726792343","",""]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 23 Jul 2015 15:09:49 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641726792343?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Thu, 23 Jul 2015 15:09:52 GMT
|
68
|
+
Content-Type:
|
69
|
+
- text/javascript; charset="UTF-8"
|
70
|
+
Content-Length:
|
71
|
+
- '157'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache
|
76
|
+
Access-Control-Allow-Origin:
|
77
|
+
- '*'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '[[{"action": "leave", "timestamp": 1437664192, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
83
|
+
"occupancy": 0}],"14376641920829590","foo.*","foo.foo-pnpres"]'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Thu, 23 Jul 2015 15:09:52 GMT
|
86
|
+
- request:
|
87
|
+
method: get
|
88
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641920829590?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
89
|
+
body:
|
90
|
+
encoding: US-ASCII
|
91
|
+
string: ''
|
92
|
+
headers:
|
93
|
+
Accept-Encoding:
|
94
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
95
|
+
Accept:
|
96
|
+
- '*/*'
|
97
|
+
User-Agent:
|
98
|
+
- Ruby
|
99
|
+
Connection:
|
100
|
+
- keep-alive
|
101
|
+
Keep-Alive:
|
102
|
+
- 30
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: OK
|
107
|
+
headers:
|
108
|
+
Date:
|
109
|
+
- Thu, 23 Jul 2015 15:09:54 GMT
|
110
|
+
Content-Type:
|
111
|
+
- text/javascript; charset="UTF-8"
|
112
|
+
Content-Length:
|
113
|
+
- '156'
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
Cache-Control:
|
117
|
+
- no-cache
|
118
|
+
Access-Control-Allow-Origin:
|
119
|
+
- '*'
|
120
|
+
Access-Control-Allow-Methods:
|
121
|
+
- GET
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: '[[{"action": "join", "timestamp": 1437664194, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
125
|
+
"occupancy": 1}],"14376641942784868","foo.*","foo.foo-pnpres"]'
|
126
|
+
http_version:
|
127
|
+
recorded_at: Thu, 23 Jul 2015 15:09:54 GMT
|
128
|
+
- request:
|
129
|
+
method: get
|
130
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641942784868?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
131
|
+
body:
|
132
|
+
encoding: US-ASCII
|
133
|
+
string: ''
|
134
|
+
headers:
|
135
|
+
Accept-Encoding:
|
136
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
|
+
Accept:
|
138
|
+
- '*/*'
|
139
|
+
User-Agent:
|
140
|
+
- Ruby
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Keep-Alive:
|
144
|
+
- 30
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 200
|
148
|
+
message: OK
|
149
|
+
headers:
|
150
|
+
Date:
|
151
|
+
- Thu, 23 Jul 2015 15:09:55 GMT
|
152
|
+
Content-Type:
|
153
|
+
- text/javascript; charset="UTF-8"
|
154
|
+
Content-Length:
|
155
|
+
- '157'
|
156
|
+
Connection:
|
157
|
+
- keep-alive
|
158
|
+
Cache-Control:
|
159
|
+
- no-cache
|
160
|
+
Access-Control-Allow-Origin:
|
161
|
+
- '*'
|
162
|
+
Access-Control-Allow-Methods:
|
163
|
+
- GET
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '[[{"action": "leave", "timestamp": 1437664194, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
167
|
+
"occupancy": 0}],"14376641948930531","foo.*","foo.foo-pnpres"]'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Thu, 23 Jul 2015 15:09:55 GMT
|
170
|
+
- request:
|
171
|
+
method: get
|
172
|
+
uri: https://pubsub.pubnub.com/subscribe/ds/foo.*/0/14376641948930531?pnsdk=PubNub-Ruby/3.7.5&uuid=rubytests
|
173
|
+
body:
|
174
|
+
encoding: US-ASCII
|
175
|
+
string: ''
|
176
|
+
headers:
|
177
|
+
Accept-Encoding:
|
178
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
179
|
+
Accept:
|
180
|
+
- '*/*'
|
181
|
+
User-Agent:
|
182
|
+
- Ruby
|
183
|
+
Connection:
|
184
|
+
- keep-alive
|
185
|
+
Keep-Alive:
|
186
|
+
- 30
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 200
|
190
|
+
message: OK
|
191
|
+
headers:
|
192
|
+
Date:
|
193
|
+
- Thu, 23 Jul 2015 15:09:56 GMT
|
194
|
+
Content-Type:
|
195
|
+
- text/javascript; charset="UTF-8"
|
196
|
+
Content-Length:
|
197
|
+
- '156'
|
198
|
+
Connection:
|
199
|
+
- keep-alive
|
200
|
+
Cache-Control:
|
201
|
+
- no-cache
|
202
|
+
Access-Control-Allow-Origin:
|
203
|
+
- '*'
|
204
|
+
Access-Control-Allow-Methods:
|
205
|
+
- GET
|
206
|
+
body:
|
207
|
+
encoding: UTF-8
|
208
|
+
string: '[[{"action": "join", "timestamp": 1437664195, "uuid": "c7769435-68b3-48b0-9065-08cafce285df",
|
209
|
+
"occupancy": 1}],"14376641960450699","foo.*","foo.foo-pnpres"]'
|
210
|
+
http_version:
|
211
|
+
recorded_at: Thu, 23 Jul 2015 15:09:56 GMT
|
212
|
+
recorded_with: VCR 2.9.2
|