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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9393969418b064ec9d7b89500f7fbf2556607985ba14c3a61f77a5452830b2d
4
- data.tar.gz: bb033ee292892b54dd13d606eee102f719bd1d51012307e3e87aa8f33ed6cde0
3
+ metadata.gz: 4d70695efe21884b16439d5da8f0f79bf6b109b11ada3bfae03b845ab24de5c2
4
+ data.tar.gz: ca0dd0fb96e5996e4fae11e8c17e0650db7e349f0e4efd26224bdcd5400294f1
5
5
  SHA512:
6
- metadata.gz: 0a9eabe43321053374680972c48aea024f80c47b53fb98650698bffb522fd53995246749eb9561b2e136564c1a1367e6eda7a6b2307646690e8f670ff88bd30f
7
- data.tar.gz: 2160579b9069914c28f0fdc2992608737cfc5a7235b9eac86e42a2f02fa984f5179c327cb1a3a93c4f22d0de596e662e2ce8dea84e51ade44a29f770196c60a6
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@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
@@ -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
@@ -8,12 +8,12 @@ jobs:
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,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@v2
39
+ uses: actions/upload-artifact@v3
40
40
  if: always()
41
41
  with:
42
42
  name: acceptance-test-reports
@@ -9,7 +9,7 @@ jobs:
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:
data/.pubnub.yml CHANGED
@@ -1,6 +1,11 @@
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
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
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
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
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)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.1.0
1
+ 5.1.1
@@ -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 options[:http_sync]
24
+ if event.sync?
23
25
  event.fire
24
26
  elsif event.is_a? SubscribeEvent
25
27
  @subscriber.add_subscription(event)
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '5.1.0'.freeze
3
+ VERSION = '5.1.1'.freeze
4
4
  end
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.0
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-07-26 00:00:00.000000000 Z
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