pubnub 5.2.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pubnub might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54a4586bf266ad9fd5d51168e215ac8dcf0f31a765ac15129314e184d4ae6a97
4
- data.tar.gz: e814f4fee3cecaf6ba20c2ad0f349af4b5eabf7507261fcadd986339624a8bdc
3
+ metadata.gz: c7916711ab1dff6d2e5b260b9a110954ad1d27db486b2650a532f77828a70833
4
+ data.tar.gz: c3c6cca9e2911670b8770ad98a90b95f8b80a2d11e1f6153f86257afee1b08ea
5
5
  SHA512:
6
- metadata.gz: 71223b6e8268f6a126e780f55ce1b57488e73d86b0185fe283b9665cde7aa470b3a9168fddd99b7090f3f5a1ff04ac5b49fd1ef12cb0b14c06b76f24828375a9
7
- data.tar.gz: 5133e307589a55f0b352a016b3301cfff3c946fb0e750c391ceca648e2551bb7f970b321be8365a26d3f2bbff5771de2dc6ec1665a2ce84dfb65b13fd20ed4da
6
+ metadata.gz: b16aa2090b8b9c185e48f7513549b25fc628782320d6768d52e44d6935cfa6905a4e551a0637dd78f05f9b041cf4684b2ae873e9a0b1c03bbc227039899ac8d4
7
+ data.tar.gz: 2d77b28da1bc846236de1216ced19168a118baf6fa14942a6c28b1b076fa69aecd6dbb28c70faedc5c4ebf01593145ac0e54ee1ee84ef79d17bae2e9c88f8f28
@@ -7,7 +7,7 @@ on:
7
7
  jobs:
8
8
  process:
9
9
  name: Process command
10
- if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, '@client-engineering-bot ') }}
10
+ if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, format('@{0} ', ${{ secrets.CLEN_BOT }})) }}
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout repository
@@ -23,5 +23,5 @@ jobs:
23
23
  uses: ./.github/.release/actions/actions/commands
24
24
  with:
25
25
  token: ${{ secrets.GH_TOKEN }}
26
- listener: client-engineering-bot
26
+ listener: ${{ secrets.CLEN_BOT }}
27
27
  jira-api-key: ${{ secrets.JIRA_API_KEY }}
@@ -3,6 +3,12 @@ name: Tests
3
3
  on:
4
4
  push:
5
5
  workflow_dispatch:
6
+ concurrency:
7
+ group: ${{ github.workflow }}-${{ github.ref }}
8
+ cancel-in-progress: true
9
+ defaults:
10
+ run:
11
+ shell: bash
6
12
 
7
13
 
8
14
  jobs:
@@ -35,11 +41,6 @@ jobs:
35
41
  bundler-cache: true
36
42
  - name: Build and run tests for Ruby 2.7.1
37
43
  run: bundle exec rspec
38
- - name: Setup JRuby
39
- uses: ruby/setup-ruby@v1
40
- with:
41
- ruby-version: jruby
42
- bundler-cache: true
43
44
  acceptance:
44
45
  name: Acceptance tests
45
46
  runs-on: ubuntu-latest
data/.pubnub.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  ---
2
- version: "5.2.0"
2
+ version: "5.2.1"
3
3
  changelog:
4
+ - date: 2022-12-13
5
+ version: v5.2.1
6
+ changes:
7
+ - type: bug
8
+ text: "Fix format which is used to return server data from `get_message_actions` method call."
4
9
  - date: 2022-12-12
5
10
  version: v5.2.0
6
11
  changes:
@@ -649,7 +654,7 @@ sdks:
649
654
  - x86-64
650
655
  - distribution-type: package
651
656
  distribution-repository: RubyGems
652
- package-name: pubnub-5.2.0.gem
657
+ package-name: pubnub-5.2.1.gem
653
658
  location: https://rubygems.org/gems/pubnub
654
659
  requires:
655
660
  - name: addressable
@@ -754,8 +759,8 @@ sdks:
754
759
  - x86-64
755
760
  - distribution-type: library
756
761
  distribution-repository: GitHub release
757
- package-name: pubnub-5.2.0.gem
758
- location: https://github.com/pubnub/ruby/releases/download/v5.2.0/pubnub-5.2.0.gem
762
+ package-name: pubnub-5.2.1.gem
763
+ location: https://github.com/pubnub/ruby/releases/download/v5.2.1/pubnub-5.2.1.gem
759
764
  requires:
760
765
  - name: addressable
761
766
  min-version: 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v5.2.1
2
+ December 13 2022
3
+
4
+ #### Fixed
5
+ - Fix format which is used to return server data from `get_message_actions` method call.
6
+
1
7
  ## v5.2.0
2
8
  December 12 2022
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (5.2.0)
4
+ pubnub (5.2.1)
5
5
  addressable (>= 2.0.0)
6
6
  concurrent-ruby (~> 1.1.5)
7
7
  concurrent-ruby-edge (~> 0.5.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.0
1
+ 5.2.1
@@ -40,8 +40,12 @@ module Pubnub
40
40
  v['message_timetoken'] = v['messageTimetoken'].to_i
41
41
  v['action_timetoken'] = v['actionTimetoken'].to_i
42
42
  v.delete_if { |key| %w[messageTimetoken actionTimetoken].include? key }
43
+ v.transform_keys(&:to_sym)
43
44
  end
44
45
 
46
+ more = parsed_response.key?('more') ? parsed_response['more'].transform_keys(&:to_sym) : {}
47
+ more.delete :url unless more.empty?
48
+
45
49
  Pubnub::Envelope.new(
46
50
  event: @event,
47
51
  event_options: @given_options,
@@ -52,7 +56,10 @@ module Pubnub
52
56
  operation: current_operation,
53
57
  client_request: req_res_objects[:request],
54
58
  server_response: req_res_objects[:response],
55
- data: actions
59
+ data: {
60
+ message_actions: actions,
61
+ more: more.empty? ? nil : more
62
+ }
56
63
  },
57
64
 
58
65
  status: {
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '5.2.0'.freeze
3
+ VERSION = '5.2.1'.freeze
4
4
  end
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.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PubNub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable