pubnub 4.0.6 → 4.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 768a2d3986e2ec06209a0d5c7e230b06b8faedfb
4
- data.tar.gz: d87f33805d875aedc89ebd7f6217549fd3bf04fd
3
+ metadata.gz: a8facecc325c2b5dce54550f89cc6426e4d1d2d9
4
+ data.tar.gz: 5364c4a5c7ec02f24ad5c6388ba3d9fdefd624fa
5
5
  SHA512:
6
- metadata.gz: ca31a6b9ba2d4010202a1781b4c166009d13d45266e27c321ccb4e065f4709968507bed3eb4dd215f9ad815757941dcb0b2efdcfc0d2842580326e0e747194e9
7
- data.tar.gz: 17b248c0103838208a7cf96fc2764a29c298ae71ae529183ed9921b4a87d955c3115cf50cf81ffe8c09db07f3927b2d0f03d1b74ca0f8cbd2aaac0684d33ff5f
6
+ metadata.gz: 16bb1774303a4540567a25d491477e7d0f3af02e62607a470780197ec1c4eab5d319fb0bfe5f04417b63836ca599f67bcab679b0bd6d0a61b6c2dc3678cb4c04
7
+ data.tar.gz: bb7b1fa9e0f6ec6fa38eb0cd8d40e1907d8b0a97d42102b488bff23da5e956adad9cd2584d1a3439eacb75bc45d4a869849136a3f10ffe103d7f408c4a394195
data/.pubnub.yml CHANGED
@@ -1,4 +1,92 @@
1
+ ---
2
+ changelog:
3
+ -
4
+ changes:
5
+ -
6
+ text: "channel and channels are the same argument."
7
+ type: improvement
8
+ -
9
+ text: "channel_group and channel_groups are the same argument."
10
+ type: improvement
11
+ -
12
+ text: "added `with_presence` flag for subscribe, default false."
13
+ type: improvement
14
+ date: ~
15
+ version: v4.0.6
16
+ -
17
+ changes:
18
+ -
19
+ text: "Required CGI."
20
+ type: improvement
21
+ version: v4.0.5
22
+ -
23
+ changes:
24
+ -
25
+ text: Added
26
+ type: feature
27
+ version: v4.0.2
28
+ -
29
+ changes:
30
+ -
31
+ text: "Updated dry-validation and EnvelopeSchema."
32
+ type: improvement
33
+ version: v4.0.1
34
+ -
35
+ changes:
36
+ -
37
+ text: "Removed auth_key and uuid setters (#set_auth_key,"
38
+ type: feature
39
+ -
40
+ text: Added
41
+ type: improvement
42
+ version: v4.0.0
43
+ -
44
+ changes:
45
+ -
46
+ text: "Restored auth_key and uuid setters. Important notice: they will be removed"
47
+ type: improvement
48
+ version: v3.8.3
49
+ -
50
+ changes:
51
+ -
52
+ text: "Added :include_token parameter to history call."
53
+ type: feature
54
+ version: v3.8.2
55
+ -
56
+ changes:
57
+ -
58
+ text: "Updated celluloid dependency."
59
+ type: improvement
60
+ version: v3.8.1
61
+ -
62
+ changes:
63
+ -
64
+ text: "Release of celluloid version of pubnub gem. It's complete rewrite but public API doesn't change."
65
+ type: improvement
66
+ version: v3.8.0
67
+ features:
68
+ access:
69
+ - GRANT
70
+ - AUDIT
71
+ channel-groups:
72
+ - ADD-CHANNELS
73
+ - REMOVE-CHANNELS
74
+ - LIST-GROUPS
75
+ - LIST-CHANNELS-IN-GROUP
76
+ presence:
77
+ - HERE-NOW
78
+ - WHERE-NOW
79
+ - SET-STATE
80
+ - GET-STATE
81
+ - HEARTBEAT
82
+ publish:
83
+ - STORE-FLAG
84
+ push:
85
+ - ADD-DEVICE-TO-CHANNELS
86
+ - REMOVE-DEVICE-FROM-CHANNELS
87
+ - LIST-CHANNELS-FROM-DEVICE
88
+ - REMOVE-DEVICE
1
89
  name: ruby
2
- features:
3
- publish:
4
- - STORE-FLAG
90
+ schema: 1
91
+ scm: github.com/pubnub/ruby
92
+ version: "4.0.6"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ##### 4.0.7
2
+ * Added message decrypting in history
3
+
1
4
  ##### 4.0.6
2
5
  * channel and channels are the same argument
3
6
  * channel_group and channel_groups are the same argument
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (4.0.5)
4
+ pubnub (4.0.6)
5
5
  celluloid (~> 0.17)
6
6
  dry-validation (~> 0.8)
7
7
  httpclient (~> 2.8)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.6
1
+ 4.0.7
@@ -66,6 +66,11 @@ module Pubnub
66
66
  def valid_envelope(parsed_response, req_res_objects)
67
67
  messages = parsed_response[0]
68
68
 
69
+ if @app.env[:cipher_key] && messages
70
+ crypto = Crypto.new(@app.env[:cipher_key])
71
+ messages = messages.map { |message| crypto.decrypt(message) }
72
+ end
73
+
69
74
  start = parsed_response[1]
70
75
  finish = parsed_response[2]
71
76
 
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '4.0.6'
3
+ VERSION = '4.0.7'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubnub
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.6
4
+ version: 4.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid