pubnub 6.0.1 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cc78cb2f721089e3b11e296957eb5ff594532d14153ce87a9cc24e6fcff027f
4
- data.tar.gz: 8208d0dfed383cefe4ccad85561d4817ec29b034ad576d8c0071e7128d028b4a
3
+ metadata.gz: daa6325913f4e4fa3b9a42a89dcb268ec8b9174ca7c30d1b26e0b94bb4e8d3c3
4
+ data.tar.gz: e8cdc5e228388108d80cc51daa58e7a0a08d71aa69f51ae206fbcfe020aa7433
5
5
  SHA512:
6
- metadata.gz: 99188584f3be07b794f73b64ab005476a28089605c44b5caf5f146682c26e2451f4ff8ed383ec48690f778f30f0d78c7fbd2fd8c91f1ca4a1d1febd4d50cb472
7
- data.tar.gz: c9e646909f7b6cfdebb8c3ea2b07c2a2ce3a773ff1d1ef7b204c4176b40d24e321e34545293864e264adee5f9c26de2a20ed2e0e90c92055f69614f2cd9f9373
6
+ metadata.gz: 3a2c68e75729803cd99a560b82b4974929a8e10d8b8c2845c4146655055c9505ea606b58427eb631860fdded94a8df7b16f36b35617ac59e2c5dbb50ed8d46da
7
+ data.tar.gz: 8cb3e679e395a59214da0a21233ae080097a4600a6351644a59021e80dff85f9fb86e22a6b784d7c00092ed3944d80d7cbb89276842becc0df998a7e15d8bbf3
data/.bundle/config CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- BUNDLE_WITHOUT: "development"
2
+ BUNDLE_WITHOUT: "'development'"
data/.pubnub.yml CHANGED
@@ -1,6 +1,13 @@
1
1
  ---
2
- version: "6.0.1"
2
+ version: "6.0.2"
3
3
  changelog:
4
+ - date: 2026-03-03
5
+ version: v6.0.2
6
+ changes:
7
+ - type: improvement
8
+ text: "Add `.uniq` calls when building subscribe URL path and channel-group query parameter to prevent duplicate channels and channel groups from leaking into HTTP requests."
9
+ - type: improvement
10
+ text: "Add `.uniq` calls when building heartbeat URL path and channel-group query parameter to prevent duplicate channels and channel groups from leaking into HTTP requests."
4
11
  - date: 2025-11-04
5
12
  version: v6.0.1
6
13
  changes:
@@ -627,7 +634,7 @@ sdks:
627
634
  - x86-64
628
635
  - distribution-type: package
629
636
  distribution-repository: RubyGems
630
- package-name: pubnub-6.0.1.gem
637
+ package-name: pubnub-6.0.2.gem
631
638
  location: https://rubygems.org/gems/pubnub
632
639
  requires:
633
640
  - name: addressable
@@ -732,8 +739,8 @@ sdks:
732
739
  - x86-64
733
740
  - distribution-type: library
734
741
  distribution-repository: GitHub release
735
- package-name: pubnub-6.0.1.gem
736
- location: https://github.com/pubnub/ruby/releases/download/v6.0.1/pubnub-6.0.1.gem
742
+ package-name: pubnub-6.0.2.gem
743
+ location: https://github.com/pubnub/ruby/releases/download/v6.0.2/pubnub-6.0.2.gem
737
744
  requires:
738
745
  - name: addressable
739
746
  min-version: 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,38 +1,45 @@
1
- ## v6.0.1
2
- November 04 2025
3
-
4
- #### Fixed
5
- - Send proper object for `state` with the `heartbeat` request.
6
-
7
- #### Modified
8
- - Don't cap `limit` and let the server perform value validation.
9
- - Replace legacy timetoken query parameter with subscribe v2 parameters.
10
-
11
- ## v6.0.0
12
- October 15 2025
13
-
14
- #### Added
15
- - BREAKING CHANGES: Add 'limit' and 'offset' parameters for 'here_now' for pagination support.
16
-
17
- ## v5.6.0
18
- September 11 2025
19
-
20
- #### Added
21
- - Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response.
22
-
23
- ## v5.5.1
24
- September 08 2025
25
-
26
- #### Fixed
27
- - Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error.
28
-
29
- ## v5.5.0
30
- January 28 2025
31
-
32
- #### Added
33
- - Add the ability to specify `type` and `status` fields for `channel metadata`, `uuid metadata`, `member`, and `membership`.
34
- - Add missing `include` options for App Context APIs: `custom`, `status`, `type`, `uuid_status`, `uuid_type`, `channel_status`, and `channel_type`.
35
-
1
+ ## v6.0.2
2
+ March 03 2026
3
+
4
+ #### Modified
5
+ - Add `.uniq` calls when building subscribe URL path and channel-group query parameter to prevent duplicate channels and channel groups from leaking into HTTP requests.
6
+ - Add `.uniq` calls when building heartbeat URL path and channel-group query parameter to prevent duplicate channels and channel groups from leaking into HTTP requests.
7
+
8
+ ## v6.0.1
9
+ November 04 2025
10
+
11
+ #### Fixed
12
+ - Send proper object for `state` with the `heartbeat` request.
13
+
14
+ #### Modified
15
+ - Don't cap `limit` and let the server perform value validation.
16
+ - Replace legacy timetoken query parameter with subscribe v2 parameters.
17
+
18
+ ## v6.0.0
19
+ October 15 2025
20
+
21
+ #### Added
22
+ - BREAKING CHANGES: Add 'limit' and 'offset' parameters for 'here_now' for pagination support.
23
+
24
+ ## v5.6.0
25
+ September 11 2025
26
+
27
+ #### Added
28
+ - Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response.
29
+
30
+ ## v5.5.1
31
+ September 08 2025
32
+
33
+ #### Fixed
34
+ - Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error.
35
+
36
+ ## v5.5.0
37
+ January 28 2025
38
+
39
+ #### Added
40
+ - Add the ability to specify `type` and `status` fields for `channel metadata`, `uuid metadata`, `member`, and `membership`.
41
+ - Add missing `include` options for App Context APIs: `custom`, `status`, `type`, `uuid_status`, `uuid_type`, `channel_status`, and `channel_type`.
42
+
36
43
  ## v5.4.0
37
44
  January 07 2025
38
45
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (6.0.1)
4
+ pubnub (6.0.2)
5
5
  addressable (>= 2.0.0)
6
6
  concurrent-ruby (~> 1.3.4)
7
7
  concurrent-ruby-edge (~> 0.7.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.0.1
1
+ 6.0.2
@@ -25,7 +25,7 @@ module Pubnub
25
25
  'sub-key',
26
26
  @subscribe_key,
27
27
  'channel',
28
- Formatter.channels_for_url(@channel),
28
+ Formatter.channels_for_url(@channel.uniq),
29
29
  'heartbeat'
30
30
  ].join('/')
31
31
  end
@@ -37,7 +37,7 @@ module Pubnub
37
37
  parameters.delete(:state) if parameters[:state] == '%7B%7D'
38
38
  end
39
39
  parameters[:heartbeat] = @heartbeat
40
- parameters['channel-group'] = @group.join(',') unless @group.blank?
40
+ parameters['channel-group'] = @group.uniq.join(',') unless @group.blank?
41
41
  parameters
42
42
  end
43
43
 
@@ -124,7 +124,7 @@ module Pubnub
124
124
  'v2',
125
125
  'subscribe',
126
126
  @subscribe_key,
127
- Pubnub::Formatter.channels_for_url(@channel + @wildcard_channel),
127
+ Pubnub::Formatter.channels_for_url((@channel + @wildcard_channel).uniq),
128
128
  0
129
129
  ].join('/').gsub(/\?/, '%3F')
130
130
  end
@@ -151,7 +151,7 @@ module Pubnub
151
151
  end
152
152
 
153
153
  def add_group_to_params(params)
154
- params['channel-group'] = @group.join(',') unless @group.empty?
154
+ params['channel-group'] = @group.uniq.join(',') unless @group.empty?
155
155
  params
156
156
  end
157
157
 
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '6.0.1'.freeze
3
+ VERSION = '6.0.2'.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: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-04 00:00:00.000000000 Z
11
+ date: 2026-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable