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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4b1a3482014d1b1506b37bc8740aca689461aa4
4
- data.tar.gz: c8b546230f0cb24477739c34b9e9cdd168ceff1a
3
+ metadata.gz: 95932a51a4853c46ab32efbc3966fcc9dea30092
4
+ data.tar.gz: 993f025df912d379a1daeedde5cafe38e4b95c6c
5
5
  SHA512:
6
- metadata.gz: 1c6dd571ce7820226c2888749c699f40ad0c5370668f8a1486e0b53ea9d7dd46c2260f927e81e694ec51c8b075b565d6c5dc97aee29bf5482922b029429c52bb
7
- data.tar.gz: 6ae74d44a8a982668c73c4193875f95b6c504dd9acd77067c24b1627b6a43e857c550f8369dde6a45e7c3525959353c25e4d76be444226478f3f1abd1f61f81f
6
+ metadata.gz: df96830774b80de6d3bf766aec1744848cbafbe1a6013a181c232f1bd7a4cab371ac94b62ad846dd9df907511970918b6ebd814c88af3edc37750423db10e8c0
7
+ data.tar.gz: 3aca2c1d101a0c43943a9c76c6814fb634dad049ccb6c5e80c48a059ca795063929928f1757c575b256e67aff590131384d048d59a617529883201a74c99f82d
@@ -1,3 +1,15 @@
1
+ 3.7.5 Release
2
+ . Fixed global #here_now
3
+
4
+ 3.7.4 Release
5
+ . Added #auth_key
6
+
7
+ 3.7.3 Release
8
+ . Fixed paged_history
9
+
10
+ 3.7.2 Release
11
+ . Fixed issue when some channels names weren't resolved properly to call callback
12
+
1
13
  3.7.1 Release
2
14
  . Fixed memory leak
3
15
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (3.7.0)
4
+ pubnub (3.7.4)
5
5
  eventmachine (~> 1.0)
6
6
  json (~> 1.8)
7
7
  net-http-persistent (~> 2.9)
@@ -16,7 +16,7 @@ GEM
16
16
  safe_yaml (~> 1.0.0)
17
17
  diff-lcs (1.2.5)
18
18
  eventmachine (1.0.7)
19
- json (1.8.2)
19
+ json (1.8.3)
20
20
  memory_profiler (0.0.4)
21
21
  method_source (0.8.2)
22
22
  net-http-persistent (2.9.4)
@@ -55,3 +55,6 @@ DEPENDENCIES
55
55
  ruby-prof
56
56
  vcr
57
57
  webmock
58
+
59
+ BUNDLED WITH
60
+ 1.10.3
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
+ ## Celluloid Beta version
2
+ We're happy to announce new ruby Pubnub client version is ready for public beta - you can find in celluloid branch in this repository.
3
+ It uses celluloid instead of eventmachine and it's compatible with Ruby 2.0+, JRuby 1.7+, and Rubinius 2.0.
4
+ Basic usage remains unchanged and it's backward compatible so you don't have to change your code!
5
+ Give it a try and share with us your thoughts!
6
+
1
7
  # Please direct all Support Questions and Concerns to Support@PubNub.com
2
8
 
3
- ## PubNub Gem version 3.7.1
9
+ ## PubNub Gem version 3.7.5
4
10
 
5
11
  ##### YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
6
12
  ##### http://www.pubnub.com/account
@@ -17,10 +23,10 @@ We've made the response format compatible across all operations. This may break
17
23
  Examples of affected operations can be found [here](3.5_to_3.6_upgrade_notes.md).
18
24
 
19
25
  ### Upgrading from PubNub 3.3.x and Earlier
20
- PubNub 3.7.1 is NOT compatible with earlier than 3.4 versions of Pubnub Ruby Client.
26
+ PubNub 3.7.3 is NOT compatible with earlier than 3.4 versions of Pubnub Ruby Client.
21
27
 
22
28
  ### Upgrading from PubNub 3.4 and higher versions
23
- PubNub 3.7.1 is compatible with 3.4 version.
29
+ PubNub 3.7.3 is compatible with 3.4 version.
24
30
 
25
31
  ## Important Notice about Blocking vs Non-Blocking Calls
26
32
 
@@ -319,87 +325,43 @@ pubnub.time("callback" => @my_callback)
319
325
  ### Channel Groups
320
326
 
321
327
  Channel grouping is new feature introduced in Pubnub 3.7. It allows to group
322
- channels into channel-groups and channel-groups into namespaces. For example you
323
- can add `weather` and `sport` channel to `news` channel group, and `news` and
324
- `local_ads` to `tv` namespace. Namespaces and channel groups are described as
325
- `namespace:channel_group` e.g. `tv:news`. All channel-groups in namespace are
326
- described as `namespace:` e.g. `tv:`. Non-namespaced channel groups are
327
- described as `non-namespaced-channel-group` eg. `global_alerts`.
328
+ channels into channel-groups. For example you can add `weather` and `sport`
329
+ channel to `news` channel group.
328
330
 
329
331
  All channel groups specific operations can be issued with
330
332
  `#channel_registration` method.
331
333
 
332
334
  #### Getting info
333
335
 
334
- ##### Getting all namespaces
335
-
336
- ```ruby
337
- # Response envelope will hold info as hash in payload attribute.
338
- pubnub.channel_registration(action: :list_namespaces, http_sync: true)
339
- ```
340
-
341
- ##### Getting all non-namespaced channel groups
336
+ ##### Getting all channel groups
342
337
 
343
338
  ```ruby
344
339
  # Response envelope will hold info as hash in payload attribute.
345
340
  pubnub.channel_registration(action: :list_groups, http_sync: true)
346
341
  ```
347
342
 
348
- ##### Getting all channel groups in given namespace
349
-
350
- ```ruby
351
- # Response envelope will hold info as hash in payload attribute.
352
- pubnub.channel_registration(action: :get, group: 'foo:', http_sync: true)
353
- ```
354
-
355
343
  ##### Getting all channels in channel group
356
344
 
357
345
  ```ruby
358
346
  # Response envelope will hold info as hash in payload attribute.
359
- pubnub.channel_registration(action: :get, group: 'foo:foo', http_sync: true)
347
+ pubnub.channel_registration(action: :get, group: 'foo', http_sync: true)
360
348
  ```
361
349
 
362
350
  #### Adding
363
351
 
364
- ##### Add channel to namespaced channel group
365
-
366
- ```ruby
367
- pubnub.channel_registration(action: :add, group: 'foo:new_group', channel: :bot, http_sync: true)
368
- ```
369
-
370
- ##### Add channel to non-namespaced channel group
352
+ ##### Add channel to channel group
371
353
 
372
354
  ```ruby
373
355
  pubnub.channel_registration(action: :add, group: 'new_group', channel: :bot, http_sync: true)
374
356
  ```
375
357
 
376
- #### Removing
377
-
378
- ##### Remove namespace and all channel groups
379
-
380
- ```ruby
381
- pubnub.channel_registration(action: :remove, group: 'foo:', http_sync: true)
382
- ```
383
-
384
- ##### Remove namespaced channel group
385
-
386
- ```ruby
387
- pubnub.channel_registration(action: :remove, group: 'foo:cg', http_sync: true)
388
- ```
389
-
390
- ##### Remove non-namespaced channel group
358
+ ##### Remove channel group
391
359
 
392
360
  ```ruby
393
361
  pubnub.channel_registration(action: :remove, group: 'cg', http_sync: true)
394
362
  ```
395
363
 
396
- ##### Remove channel from namespaced channel group
397
-
398
- ```ruby
399
- pubnub.channel_registration(action: :remove, group: 'foo:cg', channel: :to_remove, http_sync: true)
400
- ```
401
-
402
- ##### Remove channel from non-namespaced channel group
364
+ ##### Remove channel from channel group
403
365
 
404
366
  ```ruby
405
367
  pubnub.channel_registration(action: :remove, group: 'cg', channel: :to_remove, http_sync: true)
@@ -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:56:20 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:56:20 GMT
49
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,141 @@
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:59:08 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:08 GMT
49
+ - request:
50
+ method: get
51
+ 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
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ Accept:
59
+ - '*/*'
60
+ User-Agent:
61
+ - Ruby
62
+ Connection:
63
+ - keep-alive
64
+ Keep-Alive:
65
+ - 30
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Date:
72
+ - Mon, 18 May 2015 11:59:09 GMT
73
+ Content-Type:
74
+ - text/javascript; charset="UTF-8"
75
+ Transfer-Encoding:
76
+ - chunked
77
+ Connection:
78
+ - keep-alive
79
+ Cache-Control:
80
+ - no-cache
81
+ Access-Control-Allow-Origin:
82
+ - '*'
83
+ Access-Control-Allow-Methods:
84
+ - GET
85
+ Age:
86
+ - '0'
87
+ Server:
88
+ - Pubnub
89
+ body:
90
+ encoding: UTF-8
91
+ string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
92
+ - 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
93
+ http_version:
94
+ recorded_at: Mon, 18 May 2015 11:59:09 GMT
95
+ - request:
96
+ method: get
97
+ 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
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ''
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - '*/*'
106
+ User-Agent:
107
+ - Ruby
108
+ Connection:
109
+ - keep-alive
110
+ Keep-Alive:
111
+ - 30
112
+ response:
113
+ status:
114
+ code: 200
115
+ message: OK
116
+ headers:
117
+ Date:
118
+ - Mon, 18 May 2015 11:59:09 GMT
119
+ Content-Type:
120
+ - text/javascript; charset="UTF-8"
121
+ Transfer-Encoding:
122
+ - chunked
123
+ Connection:
124
+ - keep-alive
125
+ Cache-Control:
126
+ - no-cache
127
+ Access-Control-Allow-Origin:
128
+ - '*'
129
+ Access-Control-Allow-Methods:
130
+ - GET
131
+ Age:
132
+ - '0'
133
+ Server:
134
+ - Pubnub
135
+ body:
136
+ encoding: UTF-8
137
+ string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
138
+ - 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
139
+ http_version:
140
+ recorded_at: Mon, 18 May 2015 11:59:09 GMT
141
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,141 @@
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:16 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:16 GMT
49
+ - request:
50
+ method: get
51
+ 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
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ Accept:
59
+ - '*/*'
60
+ User-Agent:
61
+ - Ruby
62
+ Connection:
63
+ - keep-alive
64
+ Keep-Alive:
65
+ - 30
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Date:
72
+ - Mon, 18 May 2015 11:55:16 GMT
73
+ Content-Type:
74
+ - text/javascript; charset="UTF-8"
75
+ Transfer-Encoding:
76
+ - chunked
77
+ Connection:
78
+ - keep-alive
79
+ Cache-Control:
80
+ - no-cache
81
+ Access-Control-Allow-Origin:
82
+ - '*'
83
+ Access-Control-Allow-Methods:
84
+ - GET
85
+ Age:
86
+ - '0'
87
+ Server:
88
+ - Pubnub
89
+ body:
90
+ encoding: UTF-8
91
+ string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
92
+ - 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
93
+ http_version:
94
+ recorded_at: Mon, 18 May 2015 11:55:16 GMT
95
+ - request:
96
+ method: get
97
+ 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
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ''
101
+ headers:
102
+ Accept-Encoding:
103
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
104
+ Accept:
105
+ - '*/*'
106
+ User-Agent:
107
+ - Ruby
108
+ Connection:
109
+ - keep-alive
110
+ Keep-Alive:
111
+ - 30
112
+ response:
113
+ status:
114
+ code: 200
115
+ message: OK
116
+ headers:
117
+ Date:
118
+ - Mon, 18 May 2015 11:55:17 GMT
119
+ Content-Type:
120
+ - text/javascript; charset="UTF-8"
121
+ Transfer-Encoding:
122
+ - chunked
123
+ Connection:
124
+ - keep-alive
125
+ Cache-Control:
126
+ - no-cache
127
+ Access-Control-Allow-Origin:
128
+ - '*'
129
+ Access-Control-Allow-Methods:
130
+ - GET
131
+ Age:
132
+ - '0'
133
+ Server:
134
+ - Pubnub
135
+ body:
136
+ encoding: UTF-8
137
+ string: '[["****........... 7887 - 2015-05-18 04:52:57","*****.......... 7888
138
+ - 2015-05-18 04:52:59"],14319499779635079,14319501800508237]'
139
+ http_version:
140
+ recorded_at: Mon, 18 May 2015 11:55:17 GMT
141
+ recorded_with: VCR 2.9.2