pubnub 5.1.0 → 5.1.1
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 +2 -2
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/run_acceptance_tests.yml +4 -4
- data/.github/workflows/validate-pubnub-yml.yml +1 -1
- data/.pubnub.yml +9 -4
- data/.tool-versions +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/pubnub/client/events.rb +3 -1
- data/lib/pubnub/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d70695efe21884b16439d5da8f0f79bf6b109b11ada3bfae03b845ab24de5c2
|
4
|
+
data.tar.gz: ca0dd0fb96e5996e4fae11e8c17e0650db7e349f0e4efd26224bdcd5400294f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78c9e309072c4f9260671678f8da2300b9939e9a2a0e98d156c89bc461d31dc266150e92ef672b5d3875442c1070fac16bcfbea218021b307257679e0fbe1d79
|
7
|
+
data.tar.gz: e7a4ada62d551ebc5fe04b5d3474b9c04b30bb0b0414f7c629b85a0dc30906a57dca45f38364e47ffc2da6f4a51d747312e1307a81b1617bfa824b4aec20d789
|
@@ -11,9 +11,9 @@ jobs:
|
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
steps:
|
13
13
|
- name: Checkout repository
|
14
|
-
uses: actions/checkout@
|
14
|
+
uses: actions/checkout@v3
|
15
15
|
- name: Checkout release actions
|
16
|
-
uses: actions/checkout@
|
16
|
+
uses: actions/checkout@v3
|
17
17
|
with:
|
18
18
|
repository: pubnub/client-engineering-deployment-tools
|
19
19
|
ref: v1
|
@@ -33,12 +33,12 @@ jobs:
|
|
33
33
|
if: ${{ needs.check-release.outputs.release == 'true' }}
|
34
34
|
steps:
|
35
35
|
- name: Checkout repository
|
36
|
-
uses: actions/checkout@
|
36
|
+
uses: actions/checkout@v3
|
37
37
|
with:
|
38
38
|
# This should be the same as the one specified for on.pull_request.branches
|
39
39
|
ref: master
|
40
40
|
- name: Checkout actions
|
41
|
-
uses: actions/checkout@
|
41
|
+
uses: actions/checkout@v3
|
42
42
|
with:
|
43
43
|
repository: pubnub/client-engineering-deployment-tools
|
44
44
|
ref: v1
|
@@ -8,12 +8,12 @@ jobs:
|
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
steps:
|
10
10
|
- name: Checkout project
|
11
|
-
uses: actions/checkout@
|
11
|
+
uses: actions/checkout@v3
|
12
12
|
- name: Checkout mock-server action
|
13
|
-
uses: actions/checkout@
|
13
|
+
uses: actions/checkout@v3
|
14
14
|
with:
|
15
15
|
repository: pubnub/client-engineering-deployment-tools
|
16
|
-
ref:
|
16
|
+
ref: v1
|
17
17
|
token: ${{ secrets.GH_TOKEN }}
|
18
18
|
path: client-engineering-deployment-tools
|
19
19
|
- name: Run mock server action
|
@@ -36,7 +36,7 @@ jobs:
|
|
36
36
|
jrm ./main.xml "./main/**/*.xml" &&
|
37
37
|
jrm ./beta.xml "./beta/**/*.xml"
|
38
38
|
- name: Expose main report
|
39
|
-
uses: actions/upload-artifact@
|
39
|
+
uses: actions/upload-artifact@v3
|
40
40
|
if: always()
|
41
41
|
with:
|
42
42
|
name: acceptance-test-reports
|
data/.pubnub.yml
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
---
|
2
|
-
version: "5.1.
|
2
|
+
version: "5.1.1"
|
3
3
|
changelog:
|
4
|
+
- date: 2022-10-26
|
5
|
+
version: v5.1.1
|
6
|
+
changes:
|
7
|
+
- type: bug
|
8
|
+
text: "Fix issue because of which `callback` and `http_sync` provided during client configuration not used when missing in method call."
|
4
9
|
- date: 2022-07-26
|
5
10
|
version: v5.1.0
|
6
11
|
changes:
|
@@ -632,7 +637,7 @@ sdks:
|
|
632
637
|
- x86-64
|
633
638
|
- distribution-type: package
|
634
639
|
distribution-repository: RubyGems
|
635
|
-
package-name: pubnub-5.1.
|
640
|
+
package-name: pubnub-5.1.1.gem
|
636
641
|
location: https://rubygems.org/gems/pubnub
|
637
642
|
requires:
|
638
643
|
- name: addressable
|
@@ -737,8 +742,8 @@ sdks:
|
|
737
742
|
- x86-64
|
738
743
|
- distribution-type: library
|
739
744
|
distribution-repository: GitHub release
|
740
|
-
package-name: pubnub-5.1.
|
741
|
-
location: https://github.com/pubnub/ruby/releases/download/v5.1.
|
745
|
+
package-name: pubnub-5.1.1.gem
|
746
|
+
location: https://github.com/pubnub/ruby/releases/download/v5.1.1/pubnub-5.1.1.gem
|
742
747
|
requires:
|
743
748
|
- name: addressable
|
744
749
|
min-version: 2.0.0
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 2.7.6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.1.
|
1
|
+
5.1.1
|
data/lib/pubnub/client/events.rb
CHANGED
@@ -15,11 +15,13 @@ module Pubnub
|
|
15
15
|
EVENTS.each do |event_name|
|
16
16
|
define_method event_name do |options = {}, &block|
|
17
17
|
options[:callback] = block if options[:callback].nil?
|
18
|
+
# Use constructor-provided :callback if nothing passed to method call.
|
19
|
+
options[:callback] = self.env[:callback] if options[:callback].nil?
|
18
20
|
event = Pubnub.const_get(
|
19
21
|
Formatter.classify_method(event_name)
|
20
22
|
).new(options, self)
|
21
23
|
|
22
|
-
if
|
24
|
+
if event.sync?
|
23
25
|
event.fire
|
24
26
|
elsif event.is_a? SubscribeEvent
|
25
27
|
@subscriber.add_subscription(event)
|
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.1.
|
4
|
+
version: 5.1.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-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- ".gitignore"
|
140
140
|
- ".pubnub.yml"
|
141
141
|
- ".rubocop.yml"
|
142
|
+
- ".tool-versions"
|
142
143
|
- ".travis.yml"
|
143
144
|
- ".yardopts"
|
144
145
|
- CHANGELOG.md
|