pubnub 5.5.1 → 5.6.0

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: 8d054b29a4bfcfdd5b926e9986e5eece8167eb8af2f1179532188fe13be3e012
4
- data.tar.gz: 566fa2a5da4e92f250d858114fc02ab5922faa9114d639876dc4416dde25d1e0
3
+ metadata.gz: 304a86981a706724e51340a70ca1a0c8f14c02803b89f9108ba4798e1f756330
4
+ data.tar.gz: 1ecab7629106dee0931aef68c8a3b0eec893741938de64d373c860336a15d496
5
5
  SHA512:
6
- metadata.gz: 3919bb4e27a99c24002066f0dcdfdb10ca2f1adb438084cb7f2dcb899df9a58261b8c9cfc11e259cfd6a8652d05b03d6a147737e8593fed95ccf7c81c40c8446
7
- data.tar.gz: 36083fdc199921fe4a2e3bc5ea5ff5eaa388e3d6b8f83500e3a0c4c47e512c9c9cc5845285348321cf0c96018d3aa775cda78eb3e52cfb943fc78ae128f5ff6d
6
+ metadata.gz: da99e4c09b2947aa8ad0c046bf4ca21a84003effa9832c6857ff6a57b7b5f1d42a07f97b6d5b1edf3f2d9a62e827a25b22148215c23feac71681b9521e8409d2
7
+ data.tar.gz: a2ceb555c05d015fda428ee4ae8996d6d85973335a4b4597c2496e9d4dffe26c836eb4bb6bd8991e955c8b70a002e396d08d1d1c51ca650ecac3569555322b89
data/.pubnub.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  ---
2
- version: "5.5.1"
2
+ version: "5.6.0"
3
3
  changelog:
4
+ - date: 2025-09-11
5
+ version: v5.6.0
6
+ changes:
7
+ - type: feature
8
+ text: "Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response."
4
9
  - date: 2025-09-08
5
10
  version: v5.5.1
6
11
  changes:
@@ -608,7 +613,7 @@ sdks:
608
613
  - x86-64
609
614
  - distribution-type: package
610
615
  distribution-repository: RubyGems
611
- package-name: pubnub-5.5.1.gem
616
+ package-name: pubnub-5.6.0.gem
612
617
  location: https://rubygems.org/gems/pubnub
613
618
  requires:
614
619
  - name: addressable
@@ -713,8 +718,8 @@ sdks:
713
718
  - x86-64
714
719
  - distribution-type: library
715
720
  distribution-repository: GitHub release
716
- package-name: pubnub-5.5.1.gem
717
- location: https://github.com/pubnub/ruby/releases/download/v5.5.1/pubnub-5.5.1.gem
721
+ package-name: pubnub-5.6.0.gem
722
+ location: https://github.com/pubnub/ruby/releases/download/v5.6.0/pubnub-5.6.0.gem
718
723
  requires:
719
724
  - name: addressable
720
725
  min-version: 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v5.6.0
2
+ September 11 2025
3
+
4
+ #### Added
5
+ - Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response.
6
+
1
7
  ## v5.5.1
2
8
  September 08 2025
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (5.5.1)
4
+ pubnub (5.6.0)
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
- 5.5.1
1
+ 5.6.0
data/lib/pubnub/event.rb CHANGED
@@ -178,7 +178,7 @@ module Pubnub
178
178
  include_custom_message_type include_message_actions include_message_type
179
179
  replicate with_presence cipher_key_selector include_meta include_uuid join
180
180
  update get add remove push_token push_gateway environment topic
181
- authorized_uuid authorized_user_id token type status value]
181
+ authorized_uuid authorized_user_id token type status value encode_channels]
182
182
 
183
183
  options = options.each_with_object({}) { |option, obj| obj[option.first.to_sym] = option.last }
184
184
 
@@ -13,6 +13,7 @@ module Pubnub
13
13
  @include_custom_message_type = options.fetch(:include_custom_message_type, false)
14
14
  @include_message_actions = options.fetch(:include_message_actions, false)
15
15
  @include_message_type = options.fetch(:include_message_type, true)
16
+ @encode_channels = options.fetch(:encode_channels, true)
16
17
  @include_uuid = options.fetch(:include_uuid, true)
17
18
  @include_meta = options.fetch(:include_meta, false)
18
19
  @start = options[:start] if options.key?(:start)
@@ -52,6 +53,7 @@ module Pubnub
52
53
  parameters[:include_uuid] = 'true' if @include_uuid
53
54
  parameters[:include_custom_message_type] = 'true' if @include_custom_message_type
54
55
  parameters[:include_message_type] = 'true' if @include_message_type
56
+ parameters[:encode_channels] = 'false' if !@encode_channels && !@include_message_actions
55
57
  parameters[:start] = @start unless @start.nil?
56
58
  parameters[:end] = @end unless @end.nil?
57
59
  parameters[:max] = @max unless @max.nil?
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '5.5.1'.freeze
3
+ VERSION = '5.6.0'.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: 5.5.1
4
+ version: 5.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-08 00:00:00.000000000 Z
11
+ date: 2025-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable