pubnub 5.2.0 → 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 +19 -3
- data/.github/workflows/run-tests.yml +33 -22
- data/.github/workflows/run-validations.yml +12 -2
- data/.pubnub.yml +18 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/events/get_message_actions.rb +9 -2
- 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
|
-
listener:
|
27
|
-
jira-api-key: ${{ secrets.JIRA_API_KEY }}
|
42
|
+
listener: ${{ secrets.CLEN_BOT }}
|
43
|
+
jira-api-key: ${{ secrets.JIRA_API_KEY }}
|
@@ -3,44 +3,45 @@ 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:
|
9
15
|
tests:
|
10
16
|
name: Integration and Unit tests
|
11
17
|
runs-on: ubuntu-latest
|
18
|
+
strategy:
|
19
|
+
fail-fast: true
|
20
|
+
matrix:
|
21
|
+
ruby: [2.5.8, 2.6.6, 2.7.1]
|
12
22
|
steps:
|
13
23
|
- name: Checkout repository
|
14
24
|
uses: actions/checkout@v3
|
15
25
|
with:
|
16
26
|
token: ${{ secrets.GH_TOKEN }}
|
17
|
-
- name:
|
18
|
-
uses:
|
19
|
-
with:
|
20
|
-
ruby-version: 2.5.8
|
21
|
-
bundler-cache: true
|
22
|
-
- name: Build and run tests for Ruby 2.5.8
|
23
|
-
run: bundle exec rspec
|
24
|
-
- name: Setup Ruby 2.6.6
|
25
|
-
uses: ruby/setup-ruby@v1
|
27
|
+
- name: Checkout actions
|
28
|
+
uses: actions/checkout@v3
|
26
29
|
with:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- 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 }}
|
32
35
|
uses: ruby/setup-ruby@v1
|
33
36
|
with:
|
34
|
-
ruby-version:
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
35
38
|
bundler-cache: true
|
36
|
-
- name: Build and run tests for Ruby
|
39
|
+
- name: Build and run tests for Ruby ${{ matrix.ruby }}
|
37
40
|
run: bundle exec rspec
|
38
|
-
- name:
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
bundler-cache: true
|
43
|
-
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:
|
44
45
|
name: Acceptance tests
|
45
46
|
runs-on: ubuntu-latest
|
46
47
|
steps:
|
@@ -82,3 +83,13 @@ jobs:
|
|
82
83
|
main.xml
|
83
84
|
beta.xml
|
84
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,16 @@
|
|
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."
|
9
|
+
- date: 2022-12-13
|
10
|
+
version: v5.2.1
|
11
|
+
changes:
|
12
|
+
- type: bug
|
13
|
+
text: "Fix format which is used to return server data from `get_message_actions` method call."
|
4
14
|
- date: 2022-12-12
|
5
15
|
version: v5.2.0
|
6
16
|
changes:
|
@@ -446,6 +456,10 @@ features:
|
|
446
456
|
- CHANNEL-GROUPS-REMOVE-CHANNELS
|
447
457
|
- CHANNEL-GROUPS-REMOVE-GROUPS
|
448
458
|
- CHANNEL-GROUPS-LIST-CHANNELS-IN-GROUP
|
459
|
+
message-actions:
|
460
|
+
- MESSAGE-ACTIONS-GET
|
461
|
+
- MESSAGE-ACTIONS-ADD
|
462
|
+
- MESSAGE-ACTIONS-REMOVE
|
449
463
|
notify:
|
450
464
|
- REQUEST-MESSAGE-COUNT-EXCEEDED
|
451
465
|
presence:
|
@@ -649,7 +663,7 @@ sdks:
|
|
649
663
|
- x86-64
|
650
664
|
- distribution-type: package
|
651
665
|
distribution-repository: RubyGems
|
652
|
-
package-name: pubnub-5.2.
|
666
|
+
package-name: pubnub-5.2.2.gem
|
653
667
|
location: https://rubygems.org/gems/pubnub
|
654
668
|
requires:
|
655
669
|
- name: addressable
|
@@ -754,8 +768,8 @@ sdks:
|
|
754
768
|
- x86-64
|
755
769
|
- distribution-type: library
|
756
770
|
distribution-repository: GitHub release
|
757
|
-
package-name: pubnub-5.2.
|
758
|
-
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
|
759
773
|
requires:
|
760
774
|
- name: addressable
|
761
775
|
min-version: 2.0.0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
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
|
+
|
7
|
+
## v5.2.1
|
8
|
+
December 13 2022
|
9
|
+
|
10
|
+
#### Fixed
|
11
|
+
- Fix format which is used to return server data from `get_message_actions` method call.
|
12
|
+
|
1
13
|
## v5.2.0
|
2
14
|
December 12 2022
|
3
15
|
|
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
|
@@ -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?
|
@@ -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:
|
59
|
+
data: {
|
60
|
+
message_actions: actions,
|
61
|
+
more: more.empty? ? nil : more
|
62
|
+
}
|
56
63
|
},
|
57
64
|
|
58
65
|
status: {
|
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
|