pubnub 5.5.1 → 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 +14 -4
 - data/CHANGELOG.md +12 -0
 - data/Gemfile.lock +1 -1
 - data/VERSION +1 -1
 - data/lib/pubnub/constants.rb +1 -0
 - data/lib/pubnub/event.rb +2 -2
 - data/lib/pubnub/events/fetch_messages.rb +2 -0
 - 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,16 @@ 
     | 
|
| 
       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."
         
     | 
| 
      
 9 
     | 
    
         
            +
              - date: 2025-09-11
         
     | 
| 
      
 10 
     | 
    
         
            +
                version: v5.6.0
         
     | 
| 
      
 11 
     | 
    
         
            +
                changes:
         
     | 
| 
      
 12 
     | 
    
         
            +
                  - type: feature
         
     | 
| 
      
 13 
     | 
    
         
            +
                    text: "Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response."
         
     | 
| 
       4 
14 
     | 
    
         
             
              - date: 2025-09-08
         
     | 
| 
       5 
15 
     | 
    
         
             
                version: v5.5.1
         
     | 
| 
       6 
16 
     | 
    
         
             
                changes:
         
     | 
| 
         @@ -608,7 +618,7 @@ sdks: 
     | 
|
| 
       608 
618 
     | 
    
         
             
                                - x86-64
         
     | 
| 
       609 
619 
     | 
    
         
             
                      - distribution-type: package
         
     | 
| 
       610 
620 
     | 
    
         
             
                        distribution-repository: RubyGems
         
     | 
| 
       611 
     | 
    
         
            -
                        package-name: pubnub- 
     | 
| 
      
 621 
     | 
    
         
            +
                        package-name: pubnub-6.0.0.gem
         
     | 
| 
       612 
622 
     | 
    
         
             
                        location: https://rubygems.org/gems/pubnub
         
     | 
| 
       613 
623 
     | 
    
         
             
                        requires:
         
     | 
| 
       614 
624 
     | 
    
         
             
                          - name: addressable
         
     | 
| 
         @@ -713,8 +723,8 @@ sdks: 
     | 
|
| 
       713 
723 
     | 
    
         
             
                                - x86-64
         
     | 
| 
       714 
724 
     | 
    
         
             
                      - distribution-type: library
         
     | 
| 
       715 
725 
     | 
    
         
             
                        distribution-repository: GitHub release
         
     | 
| 
       716 
     | 
    
         
            -
                        package-name: pubnub- 
     | 
| 
       717 
     | 
    
         
            -
                        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
         
     | 
| 
       718 
728 
     | 
    
         
             
                        requires:
         
     | 
| 
       719 
729 
     | 
    
         
             
                          - name: addressable
         
     | 
| 
       720 
730 
     | 
    
         
             
                            min-version: 2.0.0
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,3 +1,15 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ## v6.0.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            October 15 2025
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #### Added
         
     | 
| 
      
 5 
     | 
    
         
            +
            - BREAKING CHANGES: Add 'limit' and 'offset' parameters for 'here_now' for pagination support.
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ## v5.6.0
         
     | 
| 
      
 8 
     | 
    
         
            +
            September 11 2025
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            #### Added
         
     | 
| 
      
 11 
     | 
    
         
            +
            - Add the `encode_channels` parameter for `fetch` to enable or disable channel names percent-encoding in response.
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       1 
13 
     | 
    
         
             
            ## v5.5.1
         
     | 
| 
       2 
14 
     | 
    
         
             
            September 08 2025
         
     | 
| 
       3 
15 
     | 
    
         | 
    
        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,12 +173,12 @@ 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
         
     | 
| 
       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)
         
     | 
| 
         @@ -52,6 +53,7 @@ module Pubnub 
     | 
|
| 
       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?
         
     | 
| 
         @@ -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
         
     |