Skip to content

Commit b2540e2

Browse files
authored
Remove limit value clamping (#172)
refactor(here-now): remove `limit` value clamping Don't cap `limit` and let the server perform value validation. refactor(subscribe): replace legacy `t` with `tt` and `tr` Replace legacy timetoken query parameter with subscribe v2 parameters. fix(heartbeat): fix `state` query parameter Send proper object for `state` with the `heartbeat` request.
1 parent 650d2fd commit b2540e2

File tree

508 files changed

+1321
-1071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

508 files changed

+1321
-1071
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* @parfeon @jguz-pubnub
2-
README.md @techwritermat @kazydek @parfeon @jguz-pubnub
1+
* @parfeon @mohitpubnub @jguz-pubnub
2+
README.md @techwritermat @kazydek @parfeon @mohitpubnub @jguz-pubnub

.pubnub.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
---
2-
version: "6.0.0"
2+
version: "6.0.1"
33
changelog:
4+
- date: 2025-11-04
5+
version: v6.0.1
6+
changes:
7+
- type: bug
8+
text: "Send proper object for `state` with the `heartbeat` request."
9+
- type: improvement
10+
text: "Don't cap `limit` and let the server perform value validation."
11+
- type: improvement
12+
text: "Replace legacy timetoken query parameter with subscribe v2 parameters."
413
- date: 2025-10-15
514
version: v6.0.0
615
changes:
@@ -618,7 +627,7 @@ sdks:
618627
- x86-64
619628
- distribution-type: package
620629
distribution-repository: RubyGems
621-
package-name: pubnub-6.0.0.gem
630+
package-name: pubnub-6.0.1.gem
622631
location: https://rubygems.org/gems/pubnub
623632
requires:
624633
- name: addressable
@@ -723,8 +732,8 @@ sdks:
723732
- x86-64
724733
- distribution-type: library
725734
distribution-repository: GitHub release
726-
package-name: pubnub-6.0.0.gem
727-
location: https://github.com/pubnub/ruby/releases/download/v6.0.0/pubnub-6.0.0.gem
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
728737
requires:
729738
- name: addressable
730739
min-version: 2.0.0

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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+
111
## v6.0.0
212
October 15 2025
313

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
pubnub (6.0.0)
4+
pubnub (6.0.1)
55
addressable (>= 2.0.0)
66
concurrent-ruby (~> 1.3.4)
77
concurrent-ruby-edge (~> 0.7.1)

Pubnub Ruby SDK upgrade guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Most important part: `result[:data]`
113113
{:code=>200,
114114
:operation=>:subscribe,
115115
:client_request=>
116-
#<URI::HTTP http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&t=%7B%22r%22%3A12%2C%22t%22%3A%2214793085739462384%22%7D&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
116+
#<URI::HTTP http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&tr=12&tt=14793085739462384&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
117117
:server_response=>
118118
#<HTTP::Message:0x0056126377b368
119119
@http_body=
@@ -147,7 +147,7 @@ Most important part: `result[:data]`
147147
@request_method="GET",
148148
@request_query=nil,
149149
@request_uri=
150-
#<Addressable::URI:0x2b0931bbdf54 URI:http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&t=%7B%22r%22%3A12%2C%22t%22%3A%2214793085739462384%22%7D&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
150+
#<Addressable::URI:0x2b0931bbdf54 URI:http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&tr=12&tt=14793085739462384&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
151151
@status_code=200>,
152152
@peer_cert=nil,
153153
@previous=nil>,
@@ -162,7 +162,7 @@ Most important part: `result[:data]`
162162
@status=
163163
{:code=>200,
164164
:client_request=>
165-
#<URI::HTTP http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&t=%7B%22r%22%3A12%2C%22t%22%3A%2214793085739462384%22%7D&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
165+
#<URI::HTTP http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&tr=12&tt=14793085739462384&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
166166
:server_response=>
167167
#<HTTP::Message:0x0056126377b368
168168
@http_body=
@@ -196,7 +196,7 @@ Most important part: `result[:data]`
196196
@request_method="GET",
197197
@request_query=nil,
198198
@request_uri=
199-
#<Addressable::URI:0x2b0931bbdf54 URI:http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&t=%7B%22r%22%3A12%2C%22t%22%3A%2214793085739462384%22%7D&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
199+
#<Addressable::URI:0x2b0931bbdf54 URI:http://pubsub.pubnub.com/v2/subscribe/demo/whatever/0?pnsdk=PubNub-Ruby%2F4.0.13&tr=12&tt=14793085739462384&uuid=37c5370b-6fca-4fcc-a7d1-f82f18596e88>,
200200
@status_code=200>,
201201
@peer_cert=nil,
202202
@previous=nil>,

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.0
1+
6.0.1

fixtures/vcr_cassettes/client/connection_callbacks_0.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/vcr_cassettes/client/connection_callbacks_1.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/vcr_cassettes/client/connection_callbacks_2.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/vcr_cassettes/examples/here_now/37.yml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)