pubnub 5.3.3 → 5.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/run-tests.yml +7 -0
- data/.pubnub.yml +9 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/event/signature.rb +5 -4
- data/lib/pubnub/formatter.rb +4 -3
- 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: 1213c034b2eeee79fc88cb7b95d77def64665c4f863395bce507b04d3bbe49d5
|
4
|
+
data.tar.gz: 3442430e58dde62d0565c0ec1f66a03116b3ac84e4d0b8289f00e4f2003d2813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 210c6d30c24c741531cd62314907b748185d59db786db62acdbdb46cf529cf7e5d0ca83e147f2a4c7a99087abec4bc62c7d91ccd3a5a0c421a841e001a3e69f4
|
7
|
+
data.tar.gz: 44c6bf35f3e3b5c6e82dd10418a60a16c7ed19c39400f872f2d300941cea2dbb83808f2c340bf0713b09164cbe99fefe439430b02938a35da3cc4543a1422b0c
|
@@ -9,6 +9,13 @@ concurrency:
|
|
9
9
|
defaults:
|
10
10
|
run:
|
11
11
|
shell: bash
|
12
|
+
env:
|
13
|
+
SDK_PAM_SUB_KEY: ${{ secrets.SDK_PAM_SUB_KEY }}
|
14
|
+
SDK_PAM_PUB_KEY: ${{ secrets.SDK_PAM_PUB_KEY }}
|
15
|
+
SDK_PAM_SEC_KEY: ${{ secrets.SDK_PAM_SEC_KEY }}
|
16
|
+
SDK_SUB_KEY: ${{ secrets.SDK_SUB_KEY }}
|
17
|
+
SDK_PUB_KEY: ${{ secrets.SDK_PUB_KEY }}
|
18
|
+
|
12
19
|
|
13
20
|
|
14
21
|
jobs:
|
data/.pubnub.yml
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
---
|
2
|
-
version: "5.3.
|
2
|
+
version: "5.3.4"
|
3
3
|
changelog:
|
4
|
+
- date: 2024-04-29
|
5
|
+
version: v5.3.4
|
6
|
+
changes:
|
7
|
+
- type: bug
|
8
|
+
text: "Fix issue because of which client didn't encode App Context get all event `filter` query value."
|
4
9
|
- date: 2024-01-29
|
5
10
|
version: v5.3.3
|
6
11
|
changes:
|
@@ -571,7 +576,7 @@ sdks:
|
|
571
576
|
- x86-64
|
572
577
|
- distribution-type: package
|
573
578
|
distribution-repository: RubyGems
|
574
|
-
package-name: pubnub-5.3.
|
579
|
+
package-name: pubnub-5.3.4.gem
|
575
580
|
location: https://rubygems.org/gems/pubnub
|
576
581
|
requires:
|
577
582
|
- name: addressable
|
@@ -676,8 +681,8 @@ sdks:
|
|
676
681
|
- x86-64
|
677
682
|
- distribution-type: library
|
678
683
|
distribution-repository: GitHub release
|
679
|
-
package-name: pubnub-5.3.
|
680
|
-
location: https://github.com/pubnub/ruby/releases/download/v5.3.
|
684
|
+
package-name: pubnub-5.3.4.gem
|
685
|
+
location: https://github.com/pubnub/ruby/releases/download/v5.3.4/pubnub-5.3.4.gem
|
681
686
|
requires:
|
682
687
|
- name: addressable
|
683
688
|
min-version: 2.0.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.3.
|
1
|
+
5.3.4
|
@@ -39,12 +39,13 @@ module Pubnub
|
|
39
39
|
|
40
40
|
def variables_for_signature
|
41
41
|
unsorted_params = parameters(true)
|
42
|
-
sorted_keys = unsorted_params.sort_by {|k, v| k.to_s}
|
42
|
+
sorted_keys = unsorted_params.sort_by { |k, v| k.to_s }
|
43
43
|
sorted_keys.map do |k, v|
|
44
|
-
if %w[meta ortt].include?(k.to_s)
|
45
|
-
|
44
|
+
if %w[meta ortt filter].include?(k.to_s)
|
45
|
+
value_for_encoding = v.is_a?(String) ? v : v.to_json
|
46
|
+
encoded_value = URI.encode_www_form_component(value_for_encoding).gsub('+', '%20')
|
46
47
|
"#{k}=#{encoded_value}"
|
47
|
-
elsif %w[t state filter-expr sort
|
48
|
+
elsif %w[t state filter-expr sort].include?(k.to_s)
|
48
49
|
"#{k}=#{v}"
|
49
50
|
else
|
50
51
|
"#{k}=#{URI.encode_www_form_component(v.to_s).gsub('+', '%20')}"
|
data/lib/pubnub/formatter.rb
CHANGED
@@ -118,10 +118,11 @@ module Pubnub
|
|
118
118
|
def params_hash_to_url_params(hash)
|
119
119
|
params = ''
|
120
120
|
hash.sort_by { |k, _v| k.to_s }.to_h.each do |key, value|
|
121
|
-
if %w[meta ortt].include?(key.to_s)
|
122
|
-
|
121
|
+
if %w[meta ortt filter].include?(key.to_s)
|
122
|
+
value_for_encoding = value.is_a?(String) ? value : value.to_json
|
123
|
+
encoded_value = URI.encode_www_form_component(value_for_encoding).gsub('+', '%20')
|
123
124
|
params << "#{key}=#{encoded_value}&"
|
124
|
-
elsif %w[t state filter
|
125
|
+
elsif %w[t state filter-expr].include?(key.to_s)
|
125
126
|
params << "#{key}=#{value}&"
|
126
127
|
else
|
127
128
|
params << "#{key}=#{URI.encode_www_form_component(value).gsub('+', '%20')}&"
|
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.3.
|
4
|
+
version: 5.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PubNub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|