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 +4 -4
- data/.github/workflows/commands-handler.yml +18 -2
- data/.github/workflows/run-tests.yml +27 -17
- data/.github/workflows/run-validations.yml +12 -2
- data/.pubnub.yml +13 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/events/get_message_actions.rb +1 -1
- 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: f32d00b144dc8b386aaf9fcccc75c2d65a781068120e248b1d00d72ecd09b717
|
4
|
+
data.tar.gz: 50543ea5dc212a93d4e468a33e2462e962a673e0241126a0ddf03cef277f2d61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
24
|
-
uses:
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
- name: Setup Ruby
|
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:
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
41
38
|
bundler-cache: true
|
42
|
-
- name: Build and run tests for Ruby
|
39
|
+
- name: Build and run tests for Ruby ${{ matrix.ruby }}
|
43
40
|
run: bundle exec rspec
|
44
|
-
|
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
|
-
|
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.
|
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.
|
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.
|
763
|
-
location: https://github.com/pubnub/ruby/releases/download/v5.2.
|
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
data/Gemfile.lock
CHANGED
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: #
|
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
|
+
5.2.2
|
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: 5.2.
|
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:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|