pubnub 4.2.2 → 4.2.3

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
  SHA256:
3
- metadata.gz: da9ad5e2ce01753fef0366bfe1fc6c4c1d5c1ecd83701109b8818692cb60de27
4
- data.tar.gz: f3936f0f4692c30264d7b126ac8e07b98394ef9da0c31d911fef33693fb82961
3
+ metadata.gz: bbb5f3abc66e4deb1784b0a928d54108e80b3b38a1e0fa04988f05fc35515895
4
+ data.tar.gz: 7c10d370b696a222f3cb31f725579bed30f8be4dcc859be4d09b7963d7541da8
5
5
  SHA512:
6
- metadata.gz: 887b3fae6d3d7c351b7ff85cc7abd9aa4a53013f8a2792c03e1285098f3d1fdcd8956d6167f13e66ff2930bc9334653d4536f5784c4573a0cd3aa6790e514ea8
7
- data.tar.gz: 9acdeb0e68788e985baada0ef8abd34ea465229613995fe27c6045b483929c410707eb9e2357f63b5e081c786318b39364fb4931134734bce192d0274d480c4b
6
+ metadata.gz: 1e7e61974d05c6ef84340a60baf65a10ea0f81577fbf109aaf373a176bbb87a96773c6089aea6d449bfdcfd9023cd5f2b03d6835f5130c0dd8954f2fa9a17948
7
+ data.tar.gz: e0e31ac662f7c781eb4e822941554387d99aff1436f05b92800768bfec31b3c55a4d630d632f23a959d69f55be648b1ad7132e90814a0a2af1b405a2d0003c8f
@@ -1,6 +1,13 @@
1
1
  ---
2
- version: "4.2.2"
2
+ version: "4.2.3"
3
3
  changelog:
4
+ -
5
+ changes:
6
+ -
7
+ text: "Resolved issue with subscribe loop where the connection was reinitiated after receiving a 4xx error code from the server"
8
+ type: bugfix
9
+ date: 14-02-2020
10
+ version: "4.2.3"
4
11
  -
5
12
  changes:
6
13
  -
@@ -27,28 +34,28 @@ changelog:
27
34
  -
28
35
  text: "Added signal feature"
29
36
  type: feature
30
- date: 21-8-2019
37
+ date: 21-08-2019
31
38
  version: "4.1.6"
32
39
  -
33
40
  changes:
34
41
  -
35
42
  text: "Updated dependencies"
36
43
  type: improvement
37
- date: 29-7-2019
44
+ date: 29-07-2019
38
45
  version: "4.1.5"
39
46
  -
40
47
  changes:
41
48
  -
42
49
  text: "Added push API"
43
50
  type: feature
44
- date: 08-4-2019
51
+ date: 08-04-2019
45
52
  version: "4.1.1"
46
53
  -
47
54
  changes:
48
55
  -
49
56
  text: "Added 'message_count' API endpoint"
50
57
  type: feature
51
- date: 28-2-2019
58
+ date: 28-02-2019
52
59
  version: "4.1.0"
53
60
  -
54
61
  changes:
@@ -1,102 +1,105 @@
1
- ##### 4.2.2
2
- * Resolved issue with multiple timetokens in message counts endpoint
3
-
4
- ##### 4.2.1
5
- * Updated listener methods
6
-
7
- ##### 4.2.0
8
- * Added objects feature
9
-
10
- ##### 4.1.6
11
- * Added signal feature
12
-
13
- ##### 4.1.5
14
- * Update dependency dry-validation
15
- * Includes minimum Ruby version requirement of 2.4+
16
-
17
- ##### 4.0.28
18
- * Added Concurrent-ruby Gem
19
- * Removed Celluloid
20
-
21
- ##### 4.0.25
22
- * Added Telemetry
23
-
24
- ##### 4.0.24
25
- * Added #delete_messages method
26
- * Improved timeout error handling (thanks @f1sherman)
27
-
28
- ##### 4.0.23
29
- * Fixed HereNow envelope generation
30
-
31
- ##### 4.0.22
32
- * Fixed signature generation and channel name escaping
33
-
34
- ##### 4.0.21
35
- * Fixed signature generation
36
-
37
- ##### 4.0.20
38
- * Allowing using multiple cipher keys
39
-
40
- ##### 4.0.19
41
- * Fixed sync subscribe.
42
-
43
- ##### 4.0.16
44
- * Fixed missing channel group parameter in Leave event
45
-
46
- ##### 4.0.15
47
- * Fixed PAM signature when some special characters are present
48
-
49
- ##### 4.0.13
50
- * Changed init message log level to debug
51
- * Added ttl parameter for publish
52
-
53
- ##### 4.0.12
54
- * Added alert on catchup failure (REQUEST_MESSAGE_COUNT_EXCEEDED)
55
-
56
- ##### 4.0.11
57
- * Added super admin mode (Enabled when secret key is set on Pubnub::Client init)
58
-
59
- ##### 4.0.10
60
- * Better single events timeout handling
61
- * DRYed envelope formatting a bit
62
-
63
- ##### 4.0.9
64
- * Removed json dependency
65
- * Updated dependecies
66
-
67
- ##### 4.0.8
68
- * Updated dry-validation
69
- * Dropped support for ruby 2.0
70
-
71
- ##### 4.0.7
72
- * Added message decrypting in history
73
-
74
- ##### 4.0.6
75
- * channel and channels are the same argument
76
- * channel_group and channel_groups are the same argument
77
- * added `with_presence` flag for subscibe, default false.
78
-
79
- ##### 4.0.5
80
- * Required CGI
81
-
82
- ##### 4.0.2
83
- * Added #subscribe_filter for client
84
-
85
- ##### 4.0.1
86
- * Updated dry-validation and EnvelopeSchema
87
-
88
- ##### 4.0.0
89
- * Removed auth_key and uuid setters (#set_auth_key, #auth_key=, #set_uuid, #uuid=)
90
- * Added #subscribed_to, #current_region, #region=, #current_heartbeat
91
-
92
- ##### 3.8.3
93
- * Restored auth_key and uuid setters. Important notice: they will be removed in v4 of this library.
94
-
95
- ##### 3.8.2
96
- * Added :include_token parameter to history call.
97
-
98
- ##### 3.8.1
99
- * Updated celluloid dependency.
100
-
101
- ##### 3.8.0
102
- * Release of celluloid version of pubnub gem. It's complete rewrite but public API doesn't change.
1
+ ##### 4.2.3
2
+ * Resolved issue with subscribe loop where the connection was reinitiated after receiving a 4xx error code from the server
3
+
4
+ ##### 4.2.2
5
+ * Resolved issue with multiple timetokens in message counts endpoint
6
+
7
+ ##### 4.2.1
8
+ * Updated listener methods
9
+
10
+ ##### 4.2.0
11
+ * Added objects feature
12
+
13
+ ##### 4.1.6
14
+ * Added signal feature
15
+
16
+ ##### 4.1.5
17
+ * Update dependency dry-validation
18
+ * Includes minimum Ruby version requirement of 2.4+
19
+
20
+ ##### 4.0.28
21
+ * Added Concurrent-ruby Gem
22
+ * Removed Celluloid
23
+
24
+ ##### 4.0.25
25
+ * Added Telemetry
26
+
27
+ ##### 4.0.24
28
+ * Added #delete_messages method
29
+ * Improved timeout error handling (thanks @f1sherman)
30
+
31
+ ##### 4.0.23
32
+ * Fixed HereNow envelope generation
33
+
34
+ ##### 4.0.22
35
+ * Fixed signature generation and channel name escaping
36
+
37
+ ##### 4.0.21
38
+ * Fixed signature generation
39
+
40
+ ##### 4.0.20
41
+ * Allowing using multiple cipher keys
42
+
43
+ ##### 4.0.19
44
+ * Fixed sync subscribe.
45
+
46
+ ##### 4.0.16
47
+ * Fixed missing channel group parameter in Leave event
48
+
49
+ ##### 4.0.15
50
+ * Fixed PAM signature when some special characters are present
51
+
52
+ ##### 4.0.13
53
+ * Changed init message log level to debug
54
+ * Added ttl parameter for publish
55
+
56
+ ##### 4.0.12
57
+ * Added alert on catchup failure (REQUEST_MESSAGE_COUNT_EXCEEDED)
58
+
59
+ ##### 4.0.11
60
+ * Added super admin mode (Enabled when secret key is set on Pubnub::Client init)
61
+
62
+ ##### 4.0.10
63
+ * Better single events timeout handling
64
+ * DRYed envelope formatting a bit
65
+
66
+ ##### 4.0.9
67
+ * Removed json dependency
68
+ * Updated dependecies
69
+
70
+ ##### 4.0.8
71
+ * Updated dry-validation
72
+ * Dropped support for ruby 2.0
73
+
74
+ ##### 4.0.7
75
+ * Added message decrypting in history
76
+
77
+ ##### 4.0.6
78
+ * channel and channels are the same argument
79
+ * channel_group and channel_groups are the same argument
80
+ * added `with_presence` flag for subscibe, default false.
81
+
82
+ ##### 4.0.5
83
+ * Required CGI
84
+
85
+ ##### 4.0.2
86
+ * Added #subscribe_filter for client
87
+
88
+ ##### 4.0.1
89
+ * Updated dry-validation and EnvelopeSchema
90
+
91
+ ##### 4.0.0
92
+ * Removed auth_key and uuid setters (#set_auth_key, #auth_key=, #set_uuid, #uuid=)
93
+ * Added #subscribed_to, #current_region, #region=, #current_heartbeat
94
+
95
+ ##### 3.8.3
96
+ * Restored auth_key and uuid setters. Important notice: they will be removed in v4 of this library.
97
+
98
+ ##### 3.8.2
99
+ * Added :include_token parameter to history call.
100
+
101
+ ##### 3.8.1
102
+ * Updated celluloid dependency.
103
+
104
+ ##### 3.8.0
105
+ * Release of celluloid version of pubnub gem. It's complete rewrite but public API doesn't change.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (4.2.2)
4
+ pubnub (4.2.3)
5
5
  concurrent-ruby (~> 1.1.5)
6
6
  concurrent-ruby-edge (~> 0.5.0)
7
7
  dry-validation (~> 1.0)
@@ -29,37 +29,37 @@ GEM
29
29
  debug_inspector (0.0.3)
30
30
  diff-lcs (1.3)
31
31
  docile (1.3.2)
32
- dry-configurable (0.8.3)
32
+ dry-configurable (0.9.0)
33
33
  concurrent-ruby (~> 1.0)
34
34
  dry-core (~> 0.4, >= 0.4.7)
35
35
  dry-container (0.7.2)
36
36
  concurrent-ruby (~> 1.0)
37
37
  dry-configurable (~> 0.1, >= 0.1.3)
38
- dry-core (0.4.8)
38
+ dry-core (0.4.9)
39
39
  concurrent-ruby (~> 1.0)
40
- dry-equalizer (0.2.2)
41
- dry-inflector (0.1.2)
42
- dry-initializer (3.0.1)
43
- dry-logic (1.0.2)
40
+ dry-equalizer (0.3.0)
41
+ dry-inflector (0.2.0)
42
+ dry-initializer (3.0.2)
43
+ dry-logic (1.0.5)
44
44
  concurrent-ruby (~> 1.0)
45
45
  dry-core (~> 0.2)
46
46
  dry-equalizer (~> 0.2)
47
- dry-schema (1.3.1)
47
+ dry-schema (1.4.1)
48
48
  concurrent-ruby (~> 1.0)
49
49
  dry-configurable (~> 0.8, >= 0.8.3)
50
50
  dry-core (~> 0.4)
51
51
  dry-equalizer (~> 0.2)
52
52
  dry-initializer (~> 3.0)
53
53
  dry-logic (~> 1.0)
54
- dry-types (~> 1.0)
55
- dry-types (1.1.0)
54
+ dry-types (~> 1.2)
55
+ dry-types (1.2.1)
56
56
  concurrent-ruby (~> 1.0)
57
57
  dry-container (~> 0.3)
58
58
  dry-core (~> 0.4, >= 0.4.4)
59
59
  dry-equalizer (~> 0.2, >= 0.2.2)
60
60
  dry-inflector (~> 0.1, >= 0.1.2)
61
61
  dry-logic (~> 1.0, >= 1.0.2)
62
- dry-validation (1.2.1)
62
+ dry-validation (1.3.1)
63
63
  concurrent-ruby (~> 1.0)
64
64
  dry-container (~> 0.7, >= 0.7.1)
65
65
  dry-core (~> 0.4)
@@ -155,4 +155,4 @@ DEPENDENCIES
155
155
  webmock
156
156
 
157
157
  BUNDLED WITH
158
- 1.17.2
158
+ 2.0.2
data/README.md CHANGED
@@ -1,34 +1,34 @@
1
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b744287bb0324e2883f95525b12cf19f)](https://www.codacy.com/app/blazeroot/ruby?utm_source=github.com&utm_medium=referral&utm_content=pubnub/ruby&utm_campaign=badger)
2
- [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b744287bb0324e2883f95525b12cf19f)](https://www.codacy.com/app/blazeroot/ruby?utm_source=github.com&utm_medium=referral&utm_content=pubnub/ruby&utm_campaign=Badge_Coverage)
3
- [![Build Status](https://travis-ci.org/pubnub/ruby.svg?branch=master)](https://travis-ci.org/pubnub/ruby)
4
-
5
- # Please direct all Support Questions and Concerns to Support@PubNub.com
6
-
7
- # Complete Documentation
8
- Available at https://www.pubnub.com/docs/ruby/pubnub-ruby-sdk-v4 **v4.x**
9
-
10
- ## PubNub Gem version 4.2.2
11
-
12
- ##### YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
13
- ##### http://www.pubnub.com/account
14
-
15
- www.pubnub.com - PubNub Real-time Push Service in the Cloud.
16
-
17
-
18
- The PubNub Network is a blazingly fast Global Messaging Service for building real-time web and mobile apps. Thousands of apps and developers rely on PubNub for delivering human-perceptive real-time experiences that scale to millions of users worldwide. PubNub delivers the infrastructure needed to build amazing Mobile, MMO games, social apps, business collaborative solutions, and more.
19
-
20
- ### Upgrading from PubNub 3.6.x / 3.7.x
21
-
22
- Main change is that we're no longer using EventMachine. Right now Celluloid is used. Public API remain unchanged.
23
- If you encounter any issues while upgrading from EventMachine version, please contact us at support@pubnub.com you can also find eventmachine version in "eventmachine" branch of this repo.
24
-
25
- ### Upgrading from PubNub 3.5.x
26
-
27
- We've made the response format compatible across all operations. This may break existing parsing of where_now, leave, state, and PAM responses. So if you are monitoring these operation responses, please be sure to modify your code accordingly.
28
-
29
- Examples of affected operations can be found [here](3.5_to_3.6_upgrade_notes.md).
30
-
31
- ### Upgrading from PubNub 3.3.x and Earlier
32
- PubNub 3.7.3 is NOT compatible with earlier than 3.4 versions of Pubnub Ruby Client.
33
-
34
- # Please direct all Support Questions and Concerns to Support@PubNub.com
1
+ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b744287bb0324e2883f95525b12cf19f)](https://www.codacy.com/app/blazeroot/ruby?utm_source=github.com&utm_medium=referral&utm_content=pubnub/ruby&utm_campaign=badger)
2
+ [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b744287bb0324e2883f95525b12cf19f)](https://www.codacy.com/app/blazeroot/ruby?utm_source=github.com&utm_medium=referral&utm_content=pubnub/ruby&utm_campaign=Badge_Coverage)
3
+ [![Build Status](https://travis-ci.org/pubnub/ruby.svg?branch=master)](https://travis-ci.org/pubnub/ruby)
4
+
5
+ # Please direct all Support Questions and Concerns to Support@PubNub.com
6
+
7
+ # Complete Documentation
8
+ Available at https://www.pubnub.com/docs/ruby/pubnub-ruby-sdk-v4 **v4.x**
9
+
10
+ ## PubNub Gem version 4.2.3
11
+
12
+ ##### YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
13
+ ##### http://www.pubnub.com/account
14
+
15
+ www.pubnub.com - PubNub Real-time Push Service in the Cloud.
16
+
17
+
18
+ The PubNub Network is a blazingly fast Global Messaging Service for building real-time web and mobile apps. Thousands of apps and developers rely on PubNub for delivering human-perceptive real-time experiences that scale to millions of users worldwide. PubNub delivers the infrastructure needed to build amazing Mobile, MMO games, social apps, business collaborative solutions, and more.
19
+
20
+ ### Upgrading from PubNub 3.6.x / 3.7.x
21
+
22
+ Main change is that we're no longer using EventMachine. Right now Celluloid is used. Public API remain unchanged.
23
+ If you encounter any issues while upgrading from EventMachine version, please contact us at support@pubnub.com you can also find eventmachine version in "eventmachine" branch of this repo.
24
+
25
+ ### Upgrading from PubNub 3.5.x
26
+
27
+ We've made the response format compatible across all operations. This may break existing parsing of where_now, leave, state, and PAM responses. So if you are monitoring these operation responses, please be sure to modify your code accordingly.
28
+
29
+ Examples of affected operations can be found [here](3.5_to_3.6_upgrade_notes.md).
30
+
31
+ ### Upgrading from PubNub 3.3.x and Earlier
32
+ PubNub 3.7.3 is NOT compatible with earlier than 3.4 versions of Pubnub Ruby Client.
33
+
34
+ # Please direct all Support Questions and Concerns to Support@PubNub.com
data/VERSION CHANGED
@@ -1,2 +1 @@
1
- 4.2.2
2
-
1
+ 4.2.3
@@ -37,6 +37,8 @@ module Pubnub
37
37
 
38
38
  envelopes = finalize_event(fire_callbacks(handle(response, uri)))
39
39
 
40
+ return false if response.status_code.between?(400, 499)
41
+
40
42
  Concurrent::Future.execute { fire } unless @http_sync
41
43
 
42
44
  envelopes
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '4.2.2'.freeze
3
+ VERSION = '4.2.3'.freeze
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.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby