pubnub 4.2.4 → 4.4.0

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.

Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -0
  3. data/.pubnub.yml +160 -118
  4. data/.travis.yml +9 -20
  5. data/CHANGELOG.md +29 -5
  6. data/Gemfile.lock +62 -68
  7. data/README.md +1 -1
  8. data/VERSION +1 -1
  9. data/fixtures/vcr_cassettes/examples/grant/1913.yml +1 -1
  10. data/fixtures/vcr_cassettes/examples/grant/1944.yml +8 -9
  11. data/fixtures/vcr_cassettes/examples/grant/1945.yml +359 -9
  12. data/fixtures/vcr_cassettes/examples/history/100.yml +46 -0
  13. data/fixtures/vcr_cassettes/examples/history/include_meta__encrypted.yml +46 -0
  14. data/fixtures/vcr_cassettes/examples/history/include_token__encrypted.yml +45 -0
  15. data/fixtures/vcr_cassettes/examples/history/no_includes__encrypted.yml +45 -0
  16. data/fixtures/vcr_cassettes/examples/subscribe/0.yml +2 -2
  17. data/fixtures/vcr_cassettes/examples/subscribe/1.yml +2 -2
  18. data/fixtures/vcr_cassettes/examples/subscribe/10.yml +2 -2
  19. data/fixtures/vcr_cassettes/examples/subscribe/100.yml +2 -2
  20. data/fixtures/vcr_cassettes/examples/subscribe/101.yml +2 -2
  21. data/fixtures/vcr_cassettes/examples/subscribe/102.yml +2 -2
  22. data/fixtures/vcr_cassettes/examples/subscribe/103.yml +2 -2
  23. data/fixtures/vcr_cassettes/examples/subscribe/104.yml +2 -2
  24. data/fixtures/vcr_cassettes/examples/subscribe/105.yml +2 -2
  25. data/fixtures/vcr_cassettes/examples/subscribe/106.yml +2 -2
  26. data/fixtures/vcr_cassettes/examples/subscribe/107.yml +2 -2
  27. data/fixtures/vcr_cassettes/examples/subscribe/11.yml +2 -2
  28. data/fixtures/vcr_cassettes/examples/subscribe/12.yml +2 -2
  29. data/fixtures/vcr_cassettes/examples/subscribe/13.yml +2 -2
  30. data/fixtures/vcr_cassettes/examples/subscribe/14.yml +2 -2
  31. data/fixtures/vcr_cassettes/examples/subscribe/15.yml +2 -2
  32. data/fixtures/vcr_cassettes/examples/subscribe/16.yml +2 -2
  33. data/fixtures/vcr_cassettes/examples/subscribe/17.yml +2 -2
  34. data/fixtures/vcr_cassettes/examples/subscribe/18.yml +2 -2
  35. data/fixtures/vcr_cassettes/examples/subscribe/180.yml +2 -2
  36. data/fixtures/vcr_cassettes/examples/subscribe/181.yml +2 -2
  37. data/fixtures/vcr_cassettes/examples/subscribe/182.yml +2 -2
  38. data/fixtures/vcr_cassettes/examples/subscribe/183.yml +2 -2
  39. data/fixtures/vcr_cassettes/examples/subscribe/184.yml +2 -2
  40. data/fixtures/vcr_cassettes/examples/subscribe/185.yml +2 -2
  41. data/fixtures/vcr_cassettes/examples/subscribe/186.yml +2 -2
  42. data/fixtures/vcr_cassettes/examples/subscribe/187.yml +2 -2
  43. data/fixtures/vcr_cassettes/examples/subscribe/188.yml +2 -2
  44. data/fixtures/vcr_cassettes/examples/subscribe/189.yml +2 -2
  45. data/fixtures/vcr_cassettes/examples/subscribe/19.yml +2 -2
  46. data/fixtures/vcr_cassettes/examples/subscribe/190.yml +2 -2
  47. data/fixtures/vcr_cassettes/examples/subscribe/191.yml +2 -2
  48. data/fixtures/vcr_cassettes/examples/subscribe/192.yml +2 -2
  49. data/fixtures/vcr_cassettes/examples/subscribe/193.yml +2 -2
  50. data/fixtures/vcr_cassettes/examples/subscribe/194.yml +2 -2
  51. data/fixtures/vcr_cassettes/examples/subscribe/195.yml +2 -2
  52. data/fixtures/vcr_cassettes/examples/subscribe/196.yml +2 -2
  53. data/fixtures/vcr_cassettes/examples/subscribe/197.yml +2 -2
  54. data/fixtures/vcr_cassettes/examples/subscribe/2.yml +2 -2
  55. data/fixtures/vcr_cassettes/examples/subscribe/20.yml +2 -2
  56. data/fixtures/vcr_cassettes/examples/subscribe/21.yml +2 -2
  57. data/fixtures/vcr_cassettes/examples/subscribe/22.yml +2 -2
  58. data/fixtures/vcr_cassettes/examples/subscribe/23.yml +2 -2
  59. data/fixtures/vcr_cassettes/examples/subscribe/24.yml +2 -2
  60. data/fixtures/vcr_cassettes/examples/subscribe/25.yml +2 -2
  61. data/fixtures/vcr_cassettes/examples/subscribe/26.yml +2 -2
  62. data/fixtures/vcr_cassettes/examples/subscribe/27.yml +2 -2
  63. data/fixtures/vcr_cassettes/examples/subscribe/270.yml +2 -2
  64. data/fixtures/vcr_cassettes/examples/subscribe/271.yml +2 -2
  65. data/fixtures/vcr_cassettes/examples/subscribe/272.yml +2 -2
  66. data/fixtures/vcr_cassettes/examples/subscribe/273.yml +2 -2
  67. data/fixtures/vcr_cassettes/examples/subscribe/274.yml +2 -2
  68. data/fixtures/vcr_cassettes/examples/subscribe/275.yml +2 -2
  69. data/fixtures/vcr_cassettes/examples/subscribe/276.yml +2 -2
  70. data/fixtures/vcr_cassettes/examples/subscribe/277.yml +2 -2
  71. data/fixtures/vcr_cassettes/examples/subscribe/278.yml +2 -2
  72. data/fixtures/vcr_cassettes/examples/subscribe/279.yml +2 -2
  73. data/fixtures/vcr_cassettes/examples/subscribe/28.yml +2 -2
  74. data/fixtures/vcr_cassettes/examples/subscribe/280.yml +2 -2
  75. data/fixtures/vcr_cassettes/examples/subscribe/281.yml +2 -2
  76. data/fixtures/vcr_cassettes/examples/subscribe/282.yml +2 -2
  77. data/fixtures/vcr_cassettes/examples/subscribe/283.yml +2 -2
  78. data/fixtures/vcr_cassettes/examples/subscribe/284.yml +2 -2
  79. data/fixtures/vcr_cassettes/examples/subscribe/285.yml +2 -2
  80. data/fixtures/vcr_cassettes/examples/subscribe/286.yml +2 -2
  81. data/fixtures/vcr_cassettes/examples/subscribe/287.yml +2 -2
  82. data/fixtures/vcr_cassettes/examples/subscribe/29.yml +2 -2
  83. data/fixtures/vcr_cassettes/examples/subscribe/3.yml +2 -2
  84. data/fixtures/vcr_cassettes/examples/subscribe/30.yml +2 -2
  85. data/fixtures/vcr_cassettes/examples/subscribe/31.yml +2 -2
  86. data/fixtures/vcr_cassettes/examples/subscribe/32.yml +2 -2
  87. data/fixtures/vcr_cassettes/examples/subscribe/33.yml +2 -2
  88. data/fixtures/vcr_cassettes/examples/subscribe/34.yml +2 -2
  89. data/fixtures/vcr_cassettes/examples/subscribe/35.yml +2 -2
  90. data/fixtures/vcr_cassettes/examples/subscribe/36.yml +2 -2
  91. data/fixtures/vcr_cassettes/examples/subscribe/360.yml +2 -2
  92. data/fixtures/vcr_cassettes/examples/subscribe/361.yml +2 -2
  93. data/fixtures/vcr_cassettes/examples/subscribe/362.yml +2 -2
  94. data/fixtures/vcr_cassettes/examples/subscribe/363.yml +2 -2
  95. data/fixtures/vcr_cassettes/examples/subscribe/364.yml +2 -2
  96. data/fixtures/vcr_cassettes/examples/subscribe/365.yml +2 -2
  97. data/fixtures/vcr_cassettes/examples/subscribe/366.yml +2 -2
  98. data/fixtures/vcr_cassettes/examples/subscribe/367.yml +2 -2
  99. data/fixtures/vcr_cassettes/examples/subscribe/368.yml +2 -2
  100. data/fixtures/vcr_cassettes/examples/subscribe/369.yml +2 -2
  101. data/fixtures/vcr_cassettes/examples/subscribe/37.yml +2 -2
  102. data/fixtures/vcr_cassettes/examples/subscribe/370.yml +2 -2
  103. data/fixtures/vcr_cassettes/examples/subscribe/371.yml +2 -2
  104. data/fixtures/vcr_cassettes/examples/subscribe/372.yml +2 -2
  105. data/fixtures/vcr_cassettes/examples/subscribe/373.yml +2 -2
  106. data/fixtures/vcr_cassettes/examples/subscribe/374.yml +2 -2
  107. data/fixtures/vcr_cassettes/examples/subscribe/375.yml +2 -2
  108. data/fixtures/vcr_cassettes/examples/subscribe/376.yml +2 -2
  109. data/fixtures/vcr_cassettes/examples/subscribe/377.yml +2 -2
  110. data/fixtures/vcr_cassettes/examples/subscribe/38.yml +2 -2
  111. data/fixtures/vcr_cassettes/examples/subscribe/39.yml +2 -2
  112. data/fixtures/vcr_cassettes/examples/subscribe/4.yml +2 -2
  113. data/fixtures/vcr_cassettes/examples/subscribe/40.yml +2 -2
  114. data/fixtures/vcr_cassettes/examples/subscribe/41.yml +2 -2
  115. data/fixtures/vcr_cassettes/examples/subscribe/42.yml +2 -2
  116. data/fixtures/vcr_cassettes/examples/subscribe/43.yml +2 -2
  117. data/fixtures/vcr_cassettes/examples/subscribe/44.yml +2 -2
  118. data/fixtures/vcr_cassettes/examples/subscribe/45.yml +2 -2
  119. data/fixtures/vcr_cassettes/examples/subscribe/46.yml +2 -2
  120. data/fixtures/vcr_cassettes/examples/subscribe/47.yml +2 -2
  121. data/fixtures/vcr_cassettes/examples/subscribe/48.yml +2 -2
  122. data/fixtures/vcr_cassettes/examples/subscribe/49.yml +2 -2
  123. data/fixtures/vcr_cassettes/examples/subscribe/5.yml +2 -2
  124. data/fixtures/vcr_cassettes/examples/subscribe/50.yml +2 -2
  125. data/fixtures/vcr_cassettes/examples/subscribe/51.yml +2 -2
  126. data/fixtures/vcr_cassettes/examples/subscribe/52.yml +2 -2
  127. data/fixtures/vcr_cassettes/examples/subscribe/53.yml +2 -2
  128. data/fixtures/vcr_cassettes/examples/subscribe/54.yml +2 -2
  129. data/fixtures/vcr_cassettes/examples/subscribe/55.yml +2 -2
  130. data/fixtures/vcr_cassettes/examples/subscribe/56.yml +2 -2
  131. data/fixtures/vcr_cassettes/examples/subscribe/57.yml +2 -2
  132. data/fixtures/vcr_cassettes/examples/subscribe/58.yml +2 -2
  133. data/fixtures/vcr_cassettes/examples/subscribe/59.yml +2 -2
  134. data/fixtures/vcr_cassettes/examples/subscribe/6.yml +2 -2
  135. data/fixtures/vcr_cassettes/examples/subscribe/60.yml +2 -2
  136. data/fixtures/vcr_cassettes/examples/subscribe/61.yml +2 -2
  137. data/fixtures/vcr_cassettes/examples/subscribe/62.yml +2 -2
  138. data/fixtures/vcr_cassettes/examples/subscribe/63.yml +2 -2
  139. data/fixtures/vcr_cassettes/examples/subscribe/64.yml +2 -2
  140. data/fixtures/vcr_cassettes/examples/subscribe/65.yml +2 -2
  141. data/fixtures/vcr_cassettes/examples/subscribe/66.yml +2 -2
  142. data/fixtures/vcr_cassettes/examples/subscribe/67.yml +2 -2
  143. data/fixtures/vcr_cassettes/examples/subscribe/68.yml +2 -2
  144. data/fixtures/vcr_cassettes/examples/subscribe/69.yml +2 -2
  145. data/fixtures/vcr_cassettes/examples/subscribe/7.yml +2 -2
  146. data/fixtures/vcr_cassettes/examples/subscribe/70.yml +2 -2
  147. data/fixtures/vcr_cassettes/examples/subscribe/71.yml +2 -2
  148. data/fixtures/vcr_cassettes/examples/subscribe/72.yml +2 -2
  149. data/fixtures/vcr_cassettes/examples/subscribe/73.yml +2 -2
  150. data/fixtures/vcr_cassettes/examples/subscribe/74.yml +2 -2
  151. data/fixtures/vcr_cassettes/examples/subscribe/75.yml +2 -2
  152. data/fixtures/vcr_cassettes/examples/subscribe/76.yml +2 -2
  153. data/fixtures/vcr_cassettes/examples/subscribe/77.yml +2 -2
  154. data/fixtures/vcr_cassettes/examples/subscribe/78.yml +2 -2
  155. data/fixtures/vcr_cassettes/examples/subscribe/79.yml +2 -2
  156. data/fixtures/vcr_cassettes/examples/subscribe/8.yml +2 -2
  157. data/fixtures/vcr_cassettes/examples/subscribe/80.yml +2 -2
  158. data/fixtures/vcr_cassettes/examples/subscribe/81.yml +2 -2
  159. data/fixtures/vcr_cassettes/examples/subscribe/82.yml +2 -2
  160. data/fixtures/vcr_cassettes/examples/subscribe/83.yml +2 -2
  161. data/fixtures/vcr_cassettes/examples/subscribe/84.yml +2 -2
  162. data/fixtures/vcr_cassettes/examples/subscribe/85.yml +2 -2
  163. data/fixtures/vcr_cassettes/examples/subscribe/86.yml +2 -2
  164. data/fixtures/vcr_cassettes/examples/subscribe/87.yml +2 -2
  165. data/fixtures/vcr_cassettes/examples/subscribe/88.yml +2 -2
  166. data/fixtures/vcr_cassettes/examples/subscribe/89.yml +2 -2
  167. data/fixtures/vcr_cassettes/examples/subscribe/9.yml +2 -2
  168. data/fixtures/vcr_cassettes/examples/subscribe/90.yml +2 -2
  169. data/fixtures/vcr_cassettes/examples/subscribe/91.yml +2 -2
  170. data/fixtures/vcr_cassettes/examples/subscribe/92.yml +2 -2
  171. data/fixtures/vcr_cassettes/examples/subscribe/93.yml +2 -2
  172. data/fixtures/vcr_cassettes/examples/subscribe/94.yml +2 -2
  173. data/fixtures/vcr_cassettes/examples/subscribe/95.yml +2 -2
  174. data/fixtures/vcr_cassettes/examples/subscribe/96.yml +2 -2
  175. data/fixtures/vcr_cassettes/examples/subscribe/97.yml +2 -2
  176. data/fixtures/vcr_cassettes/examples/subscribe/98.yml +2 -2
  177. data/fixtures/vcr_cassettes/examples/subscribe/99.yml +2 -2
  178. data/fixtures/vcr_cassettes/lib/events/get_all_channels_metadata.yml +39 -0
  179. data/fixtures/vcr_cassettes/lib/events/get_all_uuid_metadata.yml +76 -0
  180. data/fixtures/vcr_cassettes/lib/events/{get_space_memberships.yml → get_channel_members.yml} +5 -6
  181. data/fixtures/vcr_cassettes/lib/events/get_channel_metadata.yml +37 -0
  182. data/fixtures/vcr_cassettes/lib/events/{get_members.yml → get_memberships.yml} +10 -11
  183. data/fixtures/vcr_cassettes/lib/events/get_uuid_metadata.yml +76 -0
  184. data/fixtures/vcr_cassettes/lib/events/grant-error.yml +2 -2
  185. data/fixtures/vcr_cassettes/lib/events/grant.yml +10 -11
  186. data/fixtures/vcr_cassettes/lib/events/remove_channel_members.yml +78 -0
  187. data/fixtures/vcr_cassettes/lib/events/{delete_space.yml → remove_channel_metadata.yml} +5 -6
  188. data/fixtures/vcr_cassettes/lib/events/{manage_memberships_remove.yml → remove_memberships.yml} +8 -9
  189. data/fixtures/vcr_cassettes/lib/events/remove_uuid_metadata.yml +76 -0
  190. data/fixtures/vcr_cassettes/lib/events/set_channel_members.yml +39 -0
  191. data/fixtures/vcr_cassettes/lib/events/set_channel_metadata.yml +39 -0
  192. data/fixtures/vcr_cassettes/lib/events/{manage_members_add.yml → set_memberships.yml} +8 -9
  193. data/fixtures/vcr_cassettes/lib/events/set_uuid_metadata.yml +78 -0
  194. data/fixtures/vcr_cassettes/lib/events/{subscribe-space-delete-async.yml → subscribe-channel-metadata-remove-sync.yml} +12 -14
  195. data/fixtures/vcr_cassettes/lib/events/subscribe-channel-metadata-set-async.yml +75 -0
  196. data/fixtures/vcr_cassettes/lib/events/{subscribe-member-remove-async.yml → subscribe-member-remove-sync.yml} +12 -14
  197. data/fixtures/vcr_cassettes/lib/events/subscribe-member-set-async.yml +75 -0
  198. data/fixtures/vcr_cassettes/lib/events/subscribe-membership-remove-async.yml +12 -14
  199. data/fixtures/vcr_cassettes/lib/events/{subscribe-user-update-async.yml → subscribe-membership-set-async.yml} +12 -14
  200. data/fixtures/vcr_cassettes/lib/events/{subscribe-user-delete-async.yml → subscribe-uuid-metadata-remove-sync.yml} +12 -14
  201. data/fixtures/vcr_cassettes/lib/events/subscribe-uuid-metadata-set-async.yml +75 -0
  202. data/fixtures/vcr_cassettes/lib/events/subscribe-with-presence.yml +2 -2
  203. data/lib/pubnub/client.rb +14 -14
  204. data/lib/pubnub/client/events.rb +4 -2
  205. data/lib/pubnub/client/paged_history.rb +1 -1
  206. data/lib/pubnub/constants.rb +19 -18
  207. data/lib/pubnub/event.rb +30 -16
  208. data/lib/pubnub/event/formatter.rb +4 -0
  209. data/lib/pubnub/event/signature.rb +22 -7
  210. data/lib/pubnub/events/get_all_channels_metadata.rb +92 -0
  211. data/lib/pubnub/events/get_all_uuid_metadata.rb +92 -0
  212. data/lib/pubnub/events/get_channel_members.rb +100 -0
  213. data/lib/pubnub/events/{get_user.rb → get_channel_metadata.rb} +22 -15
  214. data/lib/pubnub/events/get_memberships.rb +100 -0
  215. data/lib/pubnub/events/{get_space.rb → get_uuid_metadata.rb} +22 -15
  216. data/lib/pubnub/events/grant.rb +10 -1
  217. data/lib/pubnub/events/history.rb +17 -2
  218. data/lib/pubnub/events/remove_channel_members.rb +117 -0
  219. data/lib/pubnub/events/{delete_space.rb → remove_channel_metadata.rb} +12 -12
  220. data/lib/pubnub/events/remove_memberships.rb +117 -0
  221. data/lib/pubnub/events/{delete_user.rb → remove_uuid_metadata.rb} +12 -12
  222. data/lib/pubnub/events/set_channel_members.rb +120 -0
  223. data/lib/pubnub/events/{create_space.rb → set_channel_metadata.rb} +26 -16
  224. data/lib/pubnub/events/set_memberships.rb +120 -0
  225. data/lib/pubnub/events/{update_space.rb → set_uuid_metadata.rb} +27 -18
  226. data/lib/pubnub/formatter.rb +3 -3
  227. data/lib/pubnub/pam.rb +2 -11
  228. data/lib/pubnub/subscribe_callback.rb +1 -3
  229. data/lib/pubnub/subscribe_event/formatter.rb +26 -17
  230. data/lib/pubnub/subscriber.rb +5 -6
  231. data/lib/pubnub/validators/get_all_channels_metadata.rb +29 -0
  232. data/lib/pubnub/validators/get_all_uuid_metadata.rb +29 -0
  233. data/lib/pubnub/validators/get_channel_members.rb +39 -0
  234. data/lib/pubnub/validators/get_channel_metadata.rb +39 -0
  235. data/lib/pubnub/validators/get_memberships.rb +39 -0
  236. data/lib/pubnub/validators/get_uuid_metadata.rb +39 -0
  237. data/lib/pubnub/validators/grant.rb +37 -2
  238. data/lib/pubnub/validators/remove_channel_members.rb +52 -0
  239. data/lib/pubnub/validators/remove_channel_metadata.rb +39 -0
  240. data/lib/pubnub/validators/remove_memberships.rb +52 -0
  241. data/lib/pubnub/validators/remove_uuid_metadata.rb +39 -0
  242. data/lib/pubnub/validators/set_channel_members.rb +78 -0
  243. data/lib/pubnub/validators/set_channel_metadata.rb +62 -0
  244. data/lib/pubnub/validators/set_memberships.rb +78 -0
  245. data/lib/pubnub/validators/set_uuid_metadata.rb +62 -0
  246. data/lib/pubnub/version.rb +1 -1
  247. data/pubnub.gemspec +1 -1
  248. data/spec/examples/grant_examples_spec.rb +36 -0
  249. data/spec/examples/history_examples_spec.rb +85 -0
  250. data/spec/lib/event/formatter_spec.rb +22 -0
  251. data/spec/lib/events/channel_metadata_spec.rb +58 -0
  252. data/spec/lib/events/grant_spec.rb +3 -2
  253. data/spec/lib/events/membership_spec.rb +25 -22
  254. data/spec/lib/events/subscribe_spec.rb +58 -45
  255. data/spec/lib/events/uuid_metadata_spec.rb +56 -0
  256. data/spec/lib/subscribe_event/formatter_spec.rb +22 -0
  257. data/spec/spec_helper.rb +1 -1
  258. metadata +79 -72
  259. data/fixtures/vcr_cassettes/lib/events/create_space.yml +0 -40
  260. data/fixtures/vcr_cassettes/lib/events/create_user.yml +0 -40
  261. data/fixtures/vcr_cassettes/lib/events/delete_user.yml +0 -38
  262. data/fixtures/vcr_cassettes/lib/events/get_space.yml +0 -38
  263. data/fixtures/vcr_cassettes/lib/events/get_spaces.yml +0 -40
  264. data/fixtures/vcr_cassettes/lib/events/get_user.yml +0 -38
  265. data/fixtures/vcr_cassettes/lib/events/get_users.yml +0 -40
  266. data/fixtures/vcr_cassettes/lib/events/manage_members_remove.yml +0 -83
  267. data/fixtures/vcr_cassettes/lib/events/manage_memberships_add.yml +0 -40
  268. data/fixtures/vcr_cassettes/lib/events/subscribe-member-add-async.yml +0 -77
  269. data/fixtures/vcr_cassettes/lib/events/subscribe-membership-add-async.yml +0 -77
  270. data/fixtures/vcr_cassettes/lib/events/subscribe-space-update-async.yml +0 -77
  271. data/fixtures/vcr_cassettes/lib/events/update_space.yml +0 -40
  272. data/fixtures/vcr_cassettes/lib/events/update_user.yml +0 -40
  273. data/lib/pubnub/events/create_user.rb +0 -84
  274. data/lib/pubnub/events/get_members.rb +0 -93
  275. data/lib/pubnub/events/get_space_memberships.rb +0 -93
  276. data/lib/pubnub/events/get_spaces.rb +0 -90
  277. data/lib/pubnub/events/get_users.rb +0 -90
  278. data/lib/pubnub/events/manage_members.rb +0 -105
  279. data/lib/pubnub/events/manage_memberships.rb +0 -105
  280. data/lib/pubnub/events/update_user.rb +0 -86
  281. data/lib/pubnub/validators/create_space.rb +0 -44
  282. data/lib/pubnub/validators/create_user.rb +0 -44
  283. data/lib/pubnub/validators/delete_space.rb +0 -32
  284. data/lib/pubnub/validators/delete_user.rb +0 -32
  285. data/lib/pubnub/validators/get_members.rb +0 -32
  286. data/lib/pubnub/validators/get_space.rb +0 -32
  287. data/lib/pubnub/validators/get_space_memberships.rb +0 -32
  288. data/lib/pubnub/validators/get_spaces.rb +0 -16
  289. data/lib/pubnub/validators/get_user.rb +0 -32
  290. data/lib/pubnub/validators/get_users.rb +0 -16
  291. data/lib/pubnub/validators/manage_members.rb +0 -45
  292. data/lib/pubnub/validators/manage_memberships.rb +0 -45
  293. data/lib/pubnub/validators/update_space.rb +0 -45
  294. data/lib/pubnub/validators/update_user.rb +0 -45
  295. data/spec/lib/events/space_spec.rb +0 -75
  296. data/spec/lib/events/user_spec.rb +0 -75
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc21969d3b09c173e29fbfbdb2290feeccba00e876e538c08148f760284bff70
4
- data.tar.gz: a41639584833e86165fcb6131ac041d9c00b159740c804bb5326f5e7b3c7db4f
3
+ metadata.gz: 5f8b275c721b9de530bc31977a8ce13bc80f09ddbdab4b86aa95290e356efb69
4
+ data.tar.gz: e1a95809c417d251ca1cf4845d1b0afe4a8542aed89e7770955eb6c7f4ded259
5
5
  SHA512:
6
- metadata.gz: 8343d63cb3fa5b68eba36c1b51e1eca7a09b143b505934bc503a8b2e31aefac6be6481f8fba92c4fe246b89a5fa37ad800cb07ea8b3db74f8d9ba3c449b6a3fa
7
- data.tar.gz: a2d8e31da67fc5234887e6dcc5cbb5e11e047293eb648184b7d559f52a5121eaa84288d6572a5a0af9ab165ebdb7dcbd0532506969cdc791a3d7dad7d1c89ed8
6
+ metadata.gz: 520398c604c98552438102a972bda7a32bb597550bf91fcf2980990dd99d9e655b0b150a098191ad6a39ee0c9fcb893f2967ad551dd317138db78d8bc9586acf
7
+ data.tar.gz: d39f1d0d61e7c090eb59ad061d9b194e2e94b73e7abf60c72772f4542208c2be081a1a096cc030ecfa75b88e3ee2d2a541416a12d8c21afaf4581ef25c823c4a
@@ -0,0 +1 @@
1
+ * @parfeon @CraigLn
@@ -1,6 +1,50 @@
1
1
  ---
2
- version: "4.2.4"
2
+ version: "4.4.0"
3
3
  changelog:
4
+ -
5
+ changes:
6
+ -
7
+ text: "Add simplified Objects API support with UUID and Channel metadata / membership management."
8
+ type: feature
9
+ -
10
+ text: "Add uuid and parameter to Grant API along with new Objects permissions: `get`, `update` and `join`."
11
+ type: feature
12
+ date: 21-10-2020
13
+ version: v4.4.0
14
+ -
15
+ changes:
16
+ -
17
+ text: "Add `delete` permission for `channel` to Grant."
18
+ type: feature
19
+ date: 18-10-2020
20
+ version: v4.3.0
21
+ -
22
+ changes:
23
+ -
24
+ text: "Don't suppress runtime errors."
25
+ type: bug
26
+ date: 14-09-2020
27
+ version: v4.2.7
28
+ -
29
+ changes:
30
+ -
31
+ text: "History can now respond with message meta information."
32
+ type: feature
33
+ -
34
+ text: "Added official support for Ruby 2.7.X"
35
+ type: feature
36
+ -
37
+ text: "History properly decrypts messages when using the \"include_token\" parameter."
38
+ type: bug
39
+ date: 25-08-2020
40
+ version: v4.2.6
41
+ -
42
+ changes:
43
+ -
44
+ text: "Fixed Message Counts channel timetokens by disabling alphabetic sorting of the channels list."
45
+ type: bug
46
+ date: 02-06-2020
47
+ version: v4.2.5
4
48
  -
5
49
  changes:
6
50
  -
@@ -12,7 +56,7 @@ changelog:
12
56
  -
13
57
  text: "Update PAM signature generator to correctly sort the query string parameters based on key instead of combined key and value."
14
58
  type: bug
15
- date: 05 22, 2020
59
+ date: 22-05-2020
16
60
  version: v4.2.4
17
61
  -
18
62
  changes:
@@ -20,7 +64,7 @@ changelog:
20
64
  text: "Resolved issue with subscribe loop where the connection was reinitiated after receiving a 4xx error code from the server"
21
65
  type: bugfix
22
66
  date: 14-02-2020
23
- version: "4.2.4"
67
+ version: "4.4.0"
24
68
  -
25
69
  changes:
26
70
  -
@@ -116,210 +160,210 @@ changelog:
116
160
  date: 26-07-2017
117
161
  version: "4.0.23"
118
162
  -
119
- changes:
120
- -
163
+ changes:
164
+ -
121
165
  text: "Fixed signature generation and channel name escaping"
122
166
  type: bug
123
167
  date: 31-05-2017
124
168
  version: "4.0.22"
125
- -
126
- changes:
127
- -
169
+ -
170
+ changes:
171
+ -
128
172
  text: "Fixed signature generation"
129
173
  type: bug
130
174
  date: 18-04-2017
131
175
  version: "4.0.21"
132
- -
133
- changes:
134
- -
176
+ -
177
+ changes:
178
+ -
135
179
  text: "origin can now be set in initialized client"
136
180
  type: improvement
137
- -
181
+ -
138
182
  text: "presence interval support"
139
183
  type: improvement
140
- -
184
+ -
141
185
  text: "allows using multiple cipher keys"
142
186
  type: improvement
143
187
  date: 11-04-2017
144
188
  version: "4.0.20"
145
- -
146
- changes:
147
- -
189
+ -
190
+ changes:
191
+ -
148
192
  text: "Fixed sync subscribe not terminating actors"
149
193
  type: bug
150
194
  date: 02-03-2017
151
195
  version: v4.0.18
152
- -
153
- changes:
154
- -
196
+ -
197
+ changes:
198
+ -
155
199
  text: "Added a bit more debug logging"
156
200
  type: improvement
157
- -
201
+ -
158
202
  text: "Updated default origin"
159
203
  type: improvement
160
204
  date: 21-12-2016
161
205
  version: v4.0.17
162
- -
163
- changes:
164
- -
206
+ -
207
+ changes:
208
+ -
165
209
  text: "Fixed missing channel group parameter in leave event"
166
210
  type: bug
167
211
  date: ~
168
212
  version: v4.0.16
169
- -
170
- changes:
171
- -
213
+ -
214
+ changes:
215
+ -
172
216
  text: "Fixed PAM signature when some special characters are present"
173
217
  type: bug
174
218
  date: ~
175
219
  version: v4.0.15
176
- -
177
- changes:
178
- -
220
+ -
221
+ changes:
222
+ -
179
223
  text: "Added ttl parameter for publish"
180
224
  type: improvement
181
225
  date: ~
182
226
  version: v4.0.14
183
- -
184
- changes:
185
- -
227
+ -
228
+ changes:
229
+ -
186
230
  text: "Changed init message log level to debug"
187
231
  type: improvement
188
232
  date: ~
189
233
  version: v4.0.13
190
- -
191
- changes:
192
- -
234
+ -
235
+ changes:
236
+ -
193
237
  text: "Added alert on catchup failure (REQUEST_MESSAGE_COUNT_EXCEEDED)"
194
238
  type: improvement
195
239
  date: ~
196
240
  version: v4.0.12
197
- -
198
- changes:
199
- -
241
+ -
242
+ changes:
243
+ -
200
244
  text: "Added super admin mode (Enabled when secret key is set on Pubnub::Client init)"
201
245
  type: improvement
202
246
  date: ~
203
247
  version: v4.0.11
204
- -
205
- changes:
206
- -
248
+ -
249
+ changes:
250
+ -
207
251
  text: "Better single events timeout handling"
208
252
  type: improvement
209
- -
253
+ -
210
254
  text: "DRYed envelope formatting a bit"
211
255
  type: improvement
212
256
  date: ~
213
257
  version: v4.0.10
214
- -
215
- changes:
216
- -
258
+ -
259
+ changes:
260
+ -
217
261
  text: "Removed json dependency"
218
262
  type: improvement
219
- -
263
+ -
220
264
  text: "Updated dependecies"
221
265
  type: improvement
222
266
  date: ~
223
267
  version: v4.0.9
224
- -
225
- changes:
226
- -
268
+ -
269
+ changes:
270
+ -
227
271
  text: "Updated dry-validation."
228
272
  type: improvement
229
- -
273
+ -
230
274
  text: "Dropped support for ruby 2.0."
231
275
  type: improvement
232
276
  date: ~
233
277
  version: v4.0.8
234
- -
235
- changes:
236
- -
278
+ -
279
+ changes:
280
+ -
237
281
  text: "Added message decrypting in history."
238
282
  type: improvement
239
283
  date: ~
240
284
  version: v4.0.7
241
- -
242
- changes:
243
- -
285
+ -
286
+ changes:
287
+ -
244
288
  text: "channel and channels are the same argument."
245
289
  type: improvement
246
- -
290
+ -
247
291
  text: "channel_group and channel_groups are the same argument."
248
292
  type: improvement
249
- -
293
+ -
250
294
  text: "added `with_presence` flag for subscribe, default false."
251
295
  type: improvement
252
296
  date: ~
253
297
  version: v4.0.6
254
- -
255
- changes:
256
- -
298
+ -
299
+ changes:
300
+ -
257
301
  text: "Required CGI."
258
302
  type: improvement
259
303
  version: v4.0.5
260
- -
261
- changes:
262
- -
304
+ -
305
+ changes:
306
+ -
263
307
  text: Added
264
308
  type: feature
265
309
  version: v4.0.2
266
- -
267
- changes:
268
- -
310
+ -
311
+ changes:
312
+ -
269
313
  text: "Updated dry-validation and EnvelopeSchema."
270
314
  type: improvement
271
315
  version: v4.0.1
272
- -
273
- changes:
274
- -
316
+ -
317
+ changes:
318
+ -
275
319
  text: "Removed auth_key and uuid setters (#set_auth_key,"
276
320
  type: feature
277
- -
321
+ -
278
322
  text: Added
279
323
  type: improvement
280
324
  version: v4.0.0
281
- -
282
- changes:
283
- -
325
+ -
326
+ changes:
327
+ -
284
328
  text: "Restored auth_key and uuid setters. Important notice: they will be removed"
285
329
  type: improvement
286
330
  version: v3.8.3
287
- -
288
- changes:
289
- -
331
+ -
332
+ changes:
333
+ -
290
334
  text: "Added :include_token parameter to history call."
291
335
  type: feature
292
336
  version: v3.8.2
293
- -
294
- changes:
295
- -
337
+ -
338
+ changes:
339
+ -
296
340
  text: "Updated celluloid dependency."
297
341
  type: improvement
298
342
  version: v3.8.1
299
- -
300
- changes:
301
- -
343
+ -
344
+ changes:
345
+ -
302
346
  text: "Release of celluloid version of pubnub gem. It's complete rewrite but public API doesn't change."
303
347
  type: improvement
304
348
  version: v3.8.0
305
- features:
306
- access:
349
+ features:
350
+ access:
307
351
  - ACCESS-GRANT
308
352
  - ACCESS-SECRET-KEY-ALL-ACCESS
309
- channel-groups:
353
+ channel-groups:
310
354
  - CHANNEL-GROUPS-ADD-CHANNELS
311
355
  - CHANNEL-GROUPS-REMOVE-CHANNELS
312
356
  - CHANNEL-GROUPS-REMOVE-GROUPS
313
357
  - CHANNEL-GROUPS-LIST-CHANNELS-IN-GROUP
314
- notify:
358
+ notify:
315
359
  - REQUEST-MESSAGE-COUNT-EXCEEDED
316
- presence:
360
+ presence:
317
361
  - PRESENCE-HERE-NOW
318
362
  - PRESENCE-WHERE-NOW
319
363
  - PRESENCE-SET-STATE
320
364
  - PRESENCE-GET-STATE
321
365
  - PRESENCE-HEARTBEAT
322
- publish:
366
+ publish:
323
367
  - PUBLISH-STORE-FLAG
324
368
  - PUBLISH-RAW-JSON
325
369
  - PUBLISH-WITH-METADATA
@@ -328,14 +372,14 @@ features:
328
372
  - PUBLISH-SYNC
329
373
  - PUBLISH-ASYNC
330
374
  - PUBLISH-MESSAGE-TTL
331
- storage:
375
+ storage:
332
376
  - STORAGE-REVERSE
333
377
  - STORAGE-INCLUDE-TIMETOKEN
334
378
  - STORAGE-START-END
335
379
  - STORAGE-COUNT
336
380
  - STORAGE-DELETE-MESSAGES
337
381
  - STORAGE-MESSAGE-COUNT
338
- subscribe:
382
+ subscribe:
339
383
  - SUBSCRIBE-CHANNELS
340
384
  - SUBSCRIBE-CHANNEL-GROUPS
341
385
  - SUBSCRIBE-PRESENCE-CHANNELS
@@ -345,43 +389,41 @@ features:
345
389
  - SUBSCRIBE-FILTER-EXPRESSION
346
390
  - SUBSCRIBE-SIGNAL-LISTENER
347
391
  - SUBSCRIBE-MEMBERSHIP-LISTENER
348
- - SUBSCRIBE-SPACE-LISTENER
349
- - SUBSCRIBE-USER-LISTENER
392
+ - SUBSCRIBE-OBJECTS-CHANNEL-LISTENER
393
+ - SUBSCRIBE-OBJECTS-UUID-LISTENER
350
394
  signal:
351
395
  - SIGNAL-SEND
352
396
  objects:
353
- - OBJECTS-GET-USERS
354
- - OBJECTS-GET-USER
355
- - OBJECTS-CREATE-USER
356
- - OBJECTS-UPDATE-USER
357
- - OBJECTS-DELETE-USER
358
- - OBJECTS-GET-SPACES
359
- - OBJECTS-CREATE-SPACE
360
- - OBJECTS-GET-SPACE
361
- - OBJECTS-UPDATE-SPACE
362
- - OBJECTS-DELETE-SPACE
363
- - OBJECTS-GET-MEMBERSHIPS
364
- - OBJECTS-MANAGE-MEMBERSHIPS
365
- - OBJECTS-GET-MEMBERS
366
- - OBJECTS-MANAGE-MEMBERS
367
- - OBJECTS-JOIN-SPACES
368
- - OBJECTS-UPDATE-MEMBERSHIPS
369
- - OBJECTS-LEAVE-SPACES
370
- - OBJECTS-ADD-MEMBERS
371
- - OBJECTS-REMOVE-MEMBERS
372
- - OBJECTS-UPDATE-MEMBERS
373
- time:
397
+ - OBJECTS-GET-ALL-UUID-METADATA
398
+ - OBJECTS-GET-UUID-METADATA
399
+ - OBJECTS-SET-UUID-METADATA
400
+ - OBJECTS-REMOVE-UUID-METADATA
401
+ - OBJECTS-GET-ALL-CHANNEL-METADATA
402
+ - OBJECTS-GET-CHANNEL-METADATA
403
+ - OBJECTS-SET-CHANNEL-METADATA
404
+ - OBJECTS-REMOVE-CHANNEL-METADATA
405
+ - OBJECTS-GET-MEMBERSHIPS-V2
406
+ - OBJECTS-SET-MEMBERSHIPS-V2
407
+ - OBJECTS-REMOVE-MEMBERSHIPS-V2
408
+ - OBJECTS-MANAGE-MEMBERSHIPS-V2
409
+ - OBJECTS-GET-CHANNEL-MEMBERS-V2
410
+ - OBJECTS-SET-CHANNEL-MEMBERS-V2
411
+ - OBJECTS-REMOVE-CHANNEL-MEMBERS-V2
412
+ - OBJECTS-MANAGE-CHANNEL-MEMBERS-V2
413
+ - OBJECTS-FILTERING
414
+ - OBJECTS-SORTING
415
+ time:
374
416
  - TIME-TIME
375
417
  name: ruby
376
418
  schema: 1
377
419
  scm: github.com/pubnub/ruby
378
- supported-platforms:
379
- -
380
- editors:
420
+ supported-platforms:
421
+ -
422
+ editors:
381
423
  - "ruby 2.6"
382
424
  - "ruby 2.5"
383
425
  - "ruby 2.4"
384
- platforms:
426
+ platforms:
385
427
  - "FreeBSD 8-STABLE or later, amd64, 386"
386
428
  - "Linux 2.6 or later, amd64, 386"
387
429
  - "macOS 10.8 or later, amd64"