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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e930123aa3744cc2502f5c149ff6d3ac84bb2b3
|
4
|
+
data.tar.gz: f40e73b54f5d772900442f8f781e59cb86e3b0b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f919110b50b429783472663fd4d66c6790dc61b2e0956f1b77d0190148cde22fa2d2d763817dbd9bdb106ace6bd5ec4fc3e3e0dc950e2f7982c2aafae04735
|
7
|
+
data.tar.gz: b1a6b6020cc24a3a3c960a13f54084b3b4ee228e426b378a6df6215c0f8871e8a5b40adb7b0a504193681a88f9329fd221497380dea8cd2cc52cf3e567c70583
|
data/CHANGELOG.txt
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Give it a try and share with us your thoughts!
|
|
6
6
|
|
7
7
|
# Please direct all Support Questions and Concerns to Support@PubNub.com
|
8
8
|
|
9
|
-
## PubNub Gem version 3.7.
|
9
|
+
## PubNub Gem version 3.7.6
|
10
10
|
|
11
11
|
##### YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
|
12
12
|
##### http://www.pubnub.com/account
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.7.6
|
@@ -0,0 +1,126 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://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: http://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: http://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: http://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: http://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: http://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: http://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: http://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: http://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: http://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
|