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 +4 -4
- data/.github/CODEOWNERS +2 -2
- data/.github/workflows/run-tests.yml +1 -0
- data/.pubnub.yml +14 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/event.rb +1 -1
- data/lib/pubnub/events/fetch_messages.rb +3 -1
- data/lib/pubnub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 304a86981a706724e51340a70ca1a0c8f14c02803b89f9108ba4798e1f756330
|
4
|
+
data.tar.gz: 1ecab7629106dee0931aef68c8a3b0eec893741938de64d373c860336a15d496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da99e4c09b2947aa8ad0c046bf4ca21a84003effa9832c6857ff6a57b7b5f1d42a07f97b6d5b1edf3f2d9a62e827a25b22148215c23feac71681b9521e8409d2
|
7
|
+
data.tar.gz: a2ceb555c05d015fda428ee4ae8996d6d85973335a4b4597c2496e9d4dffe26c836eb4bb6bd8991e955c8b70a002e396d08d1d1c51ca650ecac3569555322b89
|
data/.github/CODEOWNERS
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
* @parfeon @
|
2
|
-
README.md @techwritermat @kazydek @parfeon @
|
1
|
+
* @parfeon @jguz-pubnub
|
2
|
+
README.md @techwritermat @kazydek @parfeon @jguz-pubnub
|
data/.pubnub.yml
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
---
|
2
|
-
version: "5.
|
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.
|
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.
|
712
|
-
location: https://github.com/pubnub/ruby/releases/download/v5.
|
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
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
|
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?
|
data/lib/pubnub/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|