File tree Expand file tree Collapse file tree 12 files changed +57
-17
lines changed Expand file tree Collapse file tree 12 files changed +57
-17
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout repository
14
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
15
15
- name : Checkout release actions
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
17
17
with :
18
18
repository : pubnub/client-engineering-deployment-tools
19
19
ref : v1
Original file line number Diff line number Diff line change @@ -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@v2
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@v2
41
+ uses : actions/checkout@v3
42
42
with :
43
43
repository : pubnub/client-engineering-deployment-tools
44
44
ref : v1
Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Checkout project
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v3
12
12
- name : Checkout mock-server action
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v3
14
14
with :
15
15
repository : pubnub/client-engineering-deployment-tools
16
- ref : github-actions
16
+ ref : v1
17
17
token : ${{ secrets.GH_TOKEN }}
18
18
path : client-engineering-deployment-tools
19
19
- name : Run mock server action
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@v2
39
+ uses : actions/upload-artifact@v3
40
40
if : always()
41
41
with :
42
42
name : acceptance-test-reports
Original file line number Diff line number Diff line change 9
9
name : Validate PubNub yml
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v2
12
+ - uses : actions/checkout@v3
13
13
- name : Use Node.js
14
14
uses : actions/setup-node@v1
15
15
with :
Original file line number Diff line number Diff line change 1
1
---
2
- version : " 5.1.0 "
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.0 .gem
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.0 .gem
741
- location : https://github.com/pubnub/ruby/releases/download/v5.1.0 /pubnub-5.1.0 .gem
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
Original file line number Diff line number Diff line change
1
+ ruby 2.7.6
Original file line number Diff line number Diff line change
1
+ ## v5.1.1
2
+ October 26 2022
3
+
4
+ #### Fixed
5
+ - Fix issue because of which ` callback ` and ` http_sync ` provided during client configuration not used when missing in method call.
6
+
1
7
## v5.1.0
2
8
July 26 2022
3
9
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- pubnub (5.1.0 )
4
+ pubnub (5.1.1 )
5
5
addressable (>= 2.0.0 )
6
6
concurrent-ruby (~> 1.1.5 )
7
7
concurrent-ruby-edge (~> 0.5.0 )
Original file line number Diff line number Diff line change 1
- 5.1.0
1
+ 5.1.1
Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ module Events
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 options [ :http_sync ]
24
+ if event . sync?
23
25
event . fire
24
26
elsif event . is_a? SubscribeEvent
25
27
@subscriber . add_subscription ( event )
You can’t perform that action at this time.
0 commit comments