Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
SDK_PAM_SEC_KEY: ${{ secrets.SDK_PAM_SEC_KEY }}
SDK_SUB_KEY: ${{ secrets.SDK_SUB_KEY }}
SDK_PUB_KEY: ${{ secrets.SDK_PUB_KEY }}
SDK_SEC_KEY: ${{ secrets.SDK_SEC_KEY }}

jobs:
tests:
Expand Down
13 changes: 9 additions & 4 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
version: "5.5.0"
version: "5.5.1"
changelog:
- date: 2025-09-08
version: v5.5.1
changes:
- type: bug
text: "Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error."
- date: 2025-01-28
version: v5.5.0
changes:
Expand Down Expand Up @@ -603,7 +608,7 @@ sdks:
- x86-64
- distribution-type: package
distribution-repository: RubyGems
package-name: pubnub-5.5.0.gem
package-name: pubnub-5.5.1.gem
location: https://rubygems.org/gems/pubnub
requires:
- name: addressable
Expand Down Expand Up @@ -708,8 +713,8 @@ sdks:
- x86-64
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub-5.5.0.gem
location: https://github.com/pubnub/ruby/releases/download/v5.5.0/pubnub-5.5.0.gem
package-name: pubnub-5.5.1.gem
location: https://github.com/pubnub/ruby/releases/download/v5.5.1/pubnub-5.5.1.gem
requires:
- name: addressable
min-version: 2.0.0
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v5.5.1
September 08 2025

#### Fixed
- Fix the issue introduced by RuboCop linter suggestion acceptance, which caused a wrong number of arguments error.

## v5.5.0
January 28 2025

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pubnub (5.5.0)
pubnub (5.5.1)
addressable (>= 2.0.0)
concurrent-ruby (~> 1.3.4)
concurrent-ruby-edge (~> 0.7.1)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.5.0
5.5.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/pubnub/events/fetch_messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def current_operation
@include_message_actions ? Pubnub::Constants::OPERATION_FETCH_MESSAGES_WITH_ACTIONS : Pubnub::Constants::OPERATION_FETCH_MESSAGES
end

def parameters(signature: false)
def parameters(signature = false)
parameters = super(signature)
parameters[:include_meta] = 'true' if @include_meta
parameters[:include_uuid] = 'true' if @include_uuid
Expand Down
2 changes: 1 addition & 1 deletion lib/pubnub/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Toplevel Pubnub module.
module Pubnub
VERSION = '5.5.0'.freeze
VERSION = '5.5.1'.freeze
end
18 changes: 18 additions & 0 deletions spec/lib/events/fetch_messages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
)
end

it 'should not crash with secret key' do
pubnub_sec = Pubnub::Client.new(
subscribe_key: "sub-a-mock-key",
publish_key: "pub-a-mock-key",
secret_key: "sec-a-mock-key",
auth_key: "ruby-test-auth",
user_id: "ruby-test-uuid",
)
VCR.use_cassette("lib/events/fetch_messages_with_secret", record: :once) do
expect {
pubnub_sec.fetch_messages(
channels: %w[channel-1 channel-2],
:http_sync => true
)
}.to_not raise_error(ArgumentError)
end
end

it 'works with channels list' do
VCR.use_cassette("lib/events/fetch_messages", record: :once) do
envelope = @pubnub.fetch_messages(
Expand Down
Loading