pubnub 5.6.0 → 6.0.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/.pubnub.yml +9 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/constants.rb +1 -0
- data/lib/pubnub/event.rb +1 -1
- data/lib/pubnub/events/here_now.rb +13 -0
- 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: c36bc86a2f133f6f5974503383e8a341f517bbf7891b42ff0cdbf72bc476cf78
|
4
|
+
data.tar.gz: 11419a00c1d4e4a7fbe4490c02c620b6f53c9eb4ce271fd9066906179ad11703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a14e16bb803de51bcf238ec6da333089361e7488840fe404c855ddf9773bfdd644f27e50b6bce1f0e797f0de2b0622e65a13ff39eb26b849918f4dd4c7629a0
|
7
|
+
data.tar.gz: fc9f7a8ddeb94dd53734b5fb7a8cbfc2158c0ce1a43db29d8e91dd19d08ef3ab32a39e1dd3177c1963ed531f80253c73bcc15539b5de91c76868d54c98a966a6
|
data/.pubnub.yml
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
---
|
2
|
-
version: "
|
2
|
+
version: "6.0.0"
|
3
3
|
changelog:
|
4
|
+
- date: 2025-10-15
|
5
|
+
version: v6.0.0
|
6
|
+
changes:
|
7
|
+
- type: feature
|
8
|
+
text: "BREAKING CHANGES: Add 'limit' and 'offset' parameters for 'here_now' for pagination support."
|
4
9
|
- date: 2025-09-11
|
5
10
|
version: v5.6.0
|
6
11
|
changes:
|
@@ -613,7 +618,7 @@ sdks:
|
|
613
618
|
- x86-64
|
614
619
|
- distribution-type: package
|
615
620
|
distribution-repository: RubyGems
|
616
|
-
package-name: pubnub-
|
621
|
+
package-name: pubnub-6.0.0.gem
|
617
622
|
location: https://rubygems.org/gems/pubnub
|
618
623
|
requires:
|
619
624
|
- name: addressable
|
@@ -718,8 +723,8 @@ sdks:
|
|
718
723
|
- x86-64
|
719
724
|
- distribution-type: library
|
720
725
|
distribution-repository: GitHub release
|
721
|
-
package-name: pubnub-
|
722
|
-
location: https://github.com/pubnub/ruby/releases/download/
|
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
|
723
728
|
requires:
|
724
729
|
- name: addressable
|
725
730
|
min-version: 2.0.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
6.0.0
|
data/lib/pubnub/constants.rb
CHANGED
data/lib/pubnub/event.rb
CHANGED
@@ -173,7 +173,7 @@ module Pubnub
|
|
173
173
|
crypto_module secret_key auth_key publish_key subscribe_key timetoken
|
174
174
|
action_timetoken message_timetoken open_timeout read_timeout idle_timeout
|
175
175
|
heartbeat group action read write delete manage ttl presence start end count
|
176
|
-
limit max reverse presence_callback store skip_validate state channel_group
|
176
|
+
offset limit max reverse presence_callback store skip_validate state channel_group
|
177
177
|
channel_groups compressed meta customs custom_message_type include_token
|
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
|
@@ -50,6 +50,19 @@ module Pubnub
|
|
50
50
|
def parameters(*_args)
|
51
51
|
parameters = super
|
52
52
|
parameters['channel-group'] = @group.join(',') unless @group.blank?
|
53
|
+
|
54
|
+
if current_operation == Pubnub::Constants::OPERATION_HERE_NOW
|
55
|
+
@limit = if !@limit&.positive?
|
56
|
+
Pubnub::Constants::MAXIMUM_HERE_NOW_COUNT
|
57
|
+
else
|
58
|
+
[Pubnub::Constants::MAXIMUM_HERE_NOW_COUNT, @limit].min
|
59
|
+
end
|
60
|
+
@offset = 0 if @offset.nil?
|
61
|
+
|
62
|
+
parameters['limit'] = @limit
|
63
|
+
parameters['offset'] = @offset if @offset&.positive?
|
64
|
+
end
|
65
|
+
|
53
66
|
parameters
|
54
67
|
end
|
55
68
|
|
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:
|
4
|
+
version: 6.0.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-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|