pubnub 5.2.0 → 5.2.1
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/.github/workflows/commands-handler.yml +2 -2
- data/.github/workflows/run-tests.yml +6 -5
- data/.pubnub.yml +9 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/events/get_message_actions.rb +8 -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: c7916711ab1dff6d2e5b260b9a110954ad1d27db486b2650a532f77828a70833
|
|
4
|
+
data.tar.gz: c3c6cca9e2911670b8770ad98a90b95f8b80a2d11e1f6153f86257afee1b08ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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, '@
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
758
|
-
location: https://github.com/pubnub/ruby/releases/download/v5.2.
|
|
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
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.2.
|
|
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:
|
|
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.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-
|
|
11
|
+
date: 2022-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|