pubnub 5.5.0 → 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: fc4c6cc7d070726bb7046638c4cb142a9f902b21b0da50ae924d450f39e6e8a7
4
- data.tar.gz: 27cb6f7c2e3ec634654b4d6e78984ea51b2ee8338f5cc58b0b08cf136bf1b15f
3
+ metadata.gz: 304a86981a706724e51340a70ca1a0c8f14c02803b89f9108ba4798e1f756330
4
+ data.tar.gz: 1ecab7629106dee0931aef68c8a3b0eec893741938de64d373c860336a15d496
5
5
  SHA512:
6
- metadata.gz: 401aa81c9dcafdd86d3d9626c18c321d3758f5a8278be2dca699e8210a2c20412cef22f7001f33fbde630c75c61fb88735deba59657df4e5f0c7e05a0582c672
7
- data.tar.gz: 6d6715e518fe654f37d795b4d4ab283b22aab1e29c93d71f1c2df85964a8b52530cdc4f011ec128c053f472668a6f1dd7a4fee09aa0c6b726c3d1583b0b672c7
6
+ metadata.gz: da99e4c09b2947aa8ad0c046bf4ca21a84003effa9832c6857ff6a57b7b5f1d42a07f97b6d5b1edf3f2d9a62e827a25b22148215c23feac71681b9521e8409d2
7
+ data.tar.gz: a2ceb555c05d015fda428ee4ae8996d6d85973335a4b4597c2496e9d4dffe26c836eb4bb6bd8991e955c8b70a002e396d08d1d1c51ca650ecac3569555322b89
data/.github/CODEOWNERS CHANGED
@@ -1,2 +1,2 @@
1
- * @parfeon @seba-aln
2
- README.md @techwritermat @kazydek @parfeon @seba-aln
1
+ * @parfeon @jguz-pubnub
2
+ README.md @techwritermat @kazydek @parfeon @jguz-pubnub
@@ -15,6 +15,7 @@ env:
15
15
  SDK_PAM_SEC_KEY: ${{ secrets.SDK_PAM_SEC_KEY }}
16
16
  SDK_SUB_KEY: ${{ secrets.SDK_SUB_KEY }}
17
17
  SDK_PUB_KEY: ${{ secrets.SDK_PUB_KEY }}
18
+ SDK_SEC_KEY: ${{ secrets.SDK_SEC_KEY }}
18
19
 
19
20
  jobs:
20
21
  tests:
data/.pubnub.yml CHANGED
@@ -1,6 +1,16 @@
1
1
  ---
2
- version: "5.5.0"
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."
9
+ - date: 2025-09-08
10
+ version: v5.5.1
11
+ changes:
12
+ - type: bug
13
+ text: "Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error."
4
14
  - date: 2025-01-28
5
15
  version: v5.5.0
6
16
  changes:
@@ -603,7 +613,7 @@ sdks:
603
613
  - x86-64
604
614
  - distribution-type: package
605
615
  distribution-repository: RubyGems
606
- package-name: pubnub-5.5.0.gem
616
+ package-name: pubnub-5.6.0.gem
607
617
  location: https://rubygems.org/gems/pubnub
608
618
  requires:
609
619
  - name: addressable
@@ -708,8 +718,8 @@ sdks:
708
718
  - x86-64
709
719
  - distribution-type: library
710
720
  distribution-repository: GitHub release
711
- package-name: pubnub-5.5.0.gem
712
- location: https://github.com/pubnub/ruby/releases/download/v5.5.0/pubnub-5.5.0.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
713
723
  requires:
714
724
  - name: addressable
715
725
  min-version: 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
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
+
7
+ ## v5.5.1
8
+ September 08 2025
9
+
10
+ #### Fixed
11
+ - Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error.
12
+
1
13
  ## v5.5.0
2
14
  January 28 2025
3
15
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (5.5.0)
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.0
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)
@@ -46,12 +47,13 @@ module Pubnub
46
47
  @include_message_actions ? Pubnub::Constants::OPERATION_FETCH_MESSAGES_WITH_ACTIONS : Pubnub::Constants::OPERATION_FETCH_MESSAGES
47
48
  end
48
49
 
49
- def parameters(signature: false)
50
+ def parameters(signature = false)
50
51
  parameters = super(signature)
51
52
  parameters[:include_meta] = 'true' if @include_meta
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.0'.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.0
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-01-28 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