pubnub 5.2.1 → 5.2.2

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: c7916711ab1dff6d2e5b260b9a110954ad1d27db486b2650a532f77828a70833
4
- data.tar.gz: c3c6cca9e2911670b8770ad98a90b95f8b80a2d11e1f6153f86257afee1b08ea
3
+ metadata.gz: f32d00b144dc8b386aaf9fcccc75c2d65a781068120e248b1d00d72ecd09b717
4
+ data.tar.gz: 50543ea5dc212a93d4e468a33e2462e962a673e0241126a0ddf03cef277f2d61
5
5
  SHA512:
6
- metadata.gz: b16aa2090b8b9c185e48f7513549b25fc628782320d6768d52e44d6935cfa6905a4e551a0637dd78f05f9b041cf4684b2ae873e9a0b1c03bbc227039899ac8d4
7
- data.tar.gz: 2d77b28da1bc846236de1216ced19168a118baf6fa14942a6c28b1b076fa69aecd6dbb28c70faedc5c4ebf01593145ac0e54ee1ee84ef79d17bae2e9c88f8f28
6
+ metadata.gz: e74dff21f6979c2329a030205ed1aae0255ce5e1ef9392d0462fbca753ddee9348a55bccec40ab0049889ed171a297f96feedfb82c5e15b0e938a80c810cb9f7
7
+ data.tar.gz: a70f58b2998364701e2d2db3ce91b5ed73b52e9c37b3e6e5edd00b8d5f6ea3ae93471bbd3ca5d14ceaf8d5d9a4475e216044ef1de47136c534e58827b55f877f
@@ -3,16 +3,31 @@ name: Commands processor
3
3
  on:
4
4
  issue_comment:
5
5
  types: [created]
6
+ defaults:
7
+ run:
8
+ shell: bash
6
9
 
7
10
  jobs:
8
11
  process:
9
12
  name: Process command
10
- if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, format('@{0} ', ${{ secrets.CLEN_BOT }})) }}
13
+ if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
11
14
  runs-on: ubuntu-latest
12
15
  steps:
16
+ - name: Check referred user
17
+ id: user-check
18
+ env:
19
+ CLEN_BOT: ${{ secrets.CLEN_BOT }}
20
+ run: echo "expected-user=${{ startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) }}" >> $GITHUB_OUTPUT
21
+ - name: Regular comment
22
+ if: steps.user-check.outputs.expected-user != 'true'
23
+ run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m"
13
24
  - name: Checkout repository
25
+ if: steps.user-check.outputs.expected-user == 'true'
14
26
  uses: actions/checkout@v3
27
+ with:
28
+ token: ${{ secrets.GH_TOKEN }}
15
29
  - name: Checkout release actions
30
+ if: steps.user-check.outputs.expected-user == 'true'
16
31
  uses: actions/checkout@v3
17
32
  with:
18
33
  repository: pubnub/client-engineering-deployment-tools
@@ -20,8 +35,9 @@ jobs:
20
35
  token: ${{ secrets.GH_TOKEN }}
21
36
  path: .github/.release/actions
22
37
  - name: Process changelog entries
38
+ if: steps.user-check.outputs.expected-user == 'true'
23
39
  uses: ./.github/.release/actions/actions/commands
24
40
  with:
25
41
  token: ${{ secrets.GH_TOKEN }}
26
42
  listener: ${{ secrets.CLEN_BOT }}
27
- jira-api-key: ${{ secrets.JIRA_API_KEY }}
43
+ jira-api-key: ${{ secrets.JIRA_API_KEY }}
@@ -15,33 +15,33 @@ jobs:
15
15
  tests:
16
16
  name: Integration and Unit tests
17
17
  runs-on: ubuntu-latest
18
+ strategy:
19
+ fail-fast: true
20
+ matrix:
21
+ ruby: [2.5.8, 2.6.6, 2.7.1]
18
22
  steps:
19
23
  - name: Checkout repository
20
24
  uses: actions/checkout@v3
21
25
  with:
22
26
  token: ${{ secrets.GH_TOKEN }}
23
- - name: Setup Ruby 2.5.8
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: 2.5.8
27
- bundler-cache: true
28
- - name: Build and run tests for Ruby 2.5.8
29
- run: bundle exec rspec
30
- - name: Setup Ruby 2.6.6
31
- uses: ruby/setup-ruby@v1
27
+ - name: Checkout actions
28
+ uses: actions/checkout@v3
32
29
  with:
33
- ruby-version: 2.6.6
34
- bundler-cache: true
35
- - name: Build and run tests for Ruby 2.6.6
36
- run: bundle exec rspec
37
- - name: Setup Ruby 2.7.1
30
+ repository: pubnub/client-engineering-deployment-tools
31
+ ref: v1
32
+ token: ${{ secrets.GH_TOKEN }}
33
+ path: .github/.release/actions
34
+ - name: Setup Ruby ${{ matrix.ruby }}
38
35
  uses: ruby/setup-ruby@v1
39
36
  with:
40
- ruby-version: 2.7.1
37
+ ruby-version: ${{ matrix.ruby }}
41
38
  bundler-cache: true
42
- - name: Build and run tests for Ruby 2.7.1
39
+ - name: Build and run tests for Ruby ${{ matrix.ruby }}
43
40
  run: bundle exec rspec
44
- acceptance:
41
+ - name: Cancel workflow runs for commit on error
42
+ if: failure()
43
+ uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
44
+ acceptance-tests:
45
45
  name: Acceptance tests
46
46
  runs-on: ubuntu-latest
47
47
  steps:
@@ -83,3 +83,13 @@ jobs:
83
83
  main.xml
84
84
  beta.xml
85
85
  retention-days: 7
86
+ - name: Cancel workflow runs for commit on error
87
+ if: failure()
88
+ uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
89
+ all-tests:
90
+ name: Tests
91
+ runs-on: ubuntu-latest
92
+ needs: [tests, acceptance-tests]
93
+ steps:
94
+ - name: Tests summary
95
+ run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
@@ -3,7 +3,7 @@ name: Validations
3
3
  on: [push]
4
4
 
5
5
  jobs:
6
- validators:
6
+ pubnub-yml:
7
7
  name: "Validate .pubnub.yml"
8
8
  runs-on: ubuntu-latest
9
9
  steps:
@@ -19,4 +19,14 @@ jobs:
19
19
  - name: "Run '.pubnub.yml' file validation"
20
20
  uses: ./.github/.release/actions/actions/validators/pubnub-yml
21
21
  with:
22
- token: ${{ secrets.GH_TOKEN }}
22
+ token: ${{ secrets.GH_TOKEN }}
23
+ - name: Cancel workflow runs for commit on error
24
+ if: failure()
25
+ uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
26
+ all-validations:
27
+ name: Validations
28
+ runs-on: ubuntu-latest
29
+ needs: [pubnub-yml]
30
+ steps:
31
+ - name: Validations summary
32
+ run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"
data/.pubnub.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  ---
2
- version: "5.2.1"
2
+ version: "5.2.2"
3
3
  changelog:
4
+ - date: 2023-03-14
5
+ version: v5.2.2
6
+ changes:
7
+ - type: bug
8
+ text: "Fix issue which raised an exception when PubNub client has been configured with a secret key."
4
9
  - date: 2022-12-13
5
10
  version: v5.2.1
6
11
  changes:
@@ -451,6 +456,10 @@ features:
451
456
  - CHANNEL-GROUPS-REMOVE-CHANNELS
452
457
  - CHANNEL-GROUPS-REMOVE-GROUPS
453
458
  - CHANNEL-GROUPS-LIST-CHANNELS-IN-GROUP
459
+ message-actions:
460
+ - MESSAGE-ACTIONS-GET
461
+ - MESSAGE-ACTIONS-ADD
462
+ - MESSAGE-ACTIONS-REMOVE
454
463
  notify:
455
464
  - REQUEST-MESSAGE-COUNT-EXCEEDED
456
465
  presence:
@@ -654,7 +663,7 @@ sdks:
654
663
  - x86-64
655
664
  - distribution-type: package
656
665
  distribution-repository: RubyGems
657
- package-name: pubnub-5.2.1.gem
666
+ package-name: pubnub-5.2.2.gem
658
667
  location: https://rubygems.org/gems/pubnub
659
668
  requires:
660
669
  - name: addressable
@@ -759,8 +768,8 @@ sdks:
759
768
  - x86-64
760
769
  - distribution-type: library
761
770
  distribution-repository: GitHub release
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
771
+ package-name: pubnub-5.2.2.gem
772
+ location: https://github.com/pubnub/ruby/releases/download/v5.2.2/pubnub-5.2.2.gem
764
773
  requires:
765
774
  - name: addressable
766
775
  min-version: 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v5.2.2
2
+ March 14 2023
3
+
4
+ #### Fixed
5
+ - Fix issue which raised an exception when PubNub client has been configured with a secret key.
6
+
1
7
  ## v5.2.1
2
8
  December 13 2022
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (5.2.1)
4
+ pubnub (5.2.2)
5
5
  addressable (>= 2.0.0)
6
6
  concurrent-ruby (~> 1.1.5)
7
7
  concurrent-ruby-edge (~> 0.5.0)
data/README.md CHANGED
@@ -39,7 +39,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
39
39
  ```ruby
40
40
  callback = Pubnub::SubscribeCallback.new(
41
41
  message: ->(envelope) {
42
- puts "MESSAGE: # {puts envelope.result[:data][:message]['msg']}"
42
+ puts "MESSAGE: #{puts envelope.result[:data][:message]['msg']}"
43
43
  },
44
44
  presence: ->(envelope) {
45
45
  puts "PRESENCE: #{envelope.result[:data]}"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.1
1
+ 5.2.2
@@ -13,7 +13,7 @@ module Pubnub
13
13
 
14
14
  private
15
15
 
16
- def parameters
16
+ def parameters(*_args)
17
17
  parameters = super
18
18
  parameters['start'] = @start unless @start.nil?
19
19
  parameters['end'] = @end unless @end.nil?
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '5.2.1'.freeze
3
+ VERSION = '5.2.2'.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.1
4
+ version: 5.2.2
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-13 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable