pubnub 5.1.0 → 5.1.2

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: 02ec93862ae59cbf3c741a3cf1b8a52424d091bd004f12c6430a733ff025b759
4
+ data.tar.gz: 320a4002c58c092b7b62d618841e54b3b718c8efe627f2fa7c551e123aca74ab
5
5
  SHA512:
6
- metadata.gz: 0a9eabe43321053374680972c48aea024f80c47b53fb98650698bffb522fd53995246749eb9561b2e136564c1a1367e6eda7a6b2307646690e8f670ff88bd30f
7
- data.tar.gz: 2160579b9069914c28f0fdc2992608737cfc5a7235b9eac86e42a2f02fa984f5179c327cb1a3a93c4f22d0de596e662e2ce8dea84e51ade44a29f770196c60a6
6
+ metadata.gz: a08577ad50fcd03b44fadd091d621aab6667ae76bc27574582afbd8b445a554e6ea1056e30646af88c1ccfd7cd1561d4de88639333f5f40ef63e35bcde205116
7
+ data.tar.gz: c0aec4363fef5e2056d5c3e4d530d5d1453cafd6a1fe9c08723c6c6cdcafed7f431519e1dbe8791ce23d1bff56486a9390d707f8c9908920f5fce14770b53004
data/.github/CODEOWNERS CHANGED
@@ -1,3 +1,3 @@
1
- * @parfeon @CraigLn @bartk @kleewho
2
- .github/* @parfeon @CraigLn @bartk @kleewho
3
- README.md @techwritermat @kazydek
1
+ * @parfeon @CraigLn @kleewho @seba-aln
2
+ .github/* @parfeon @CraigLn @kleewho @seba-aln
3
+ README.md @techwritermat @kazydek
@@ -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,16 @@
1
1
  ---
2
- version: "5.1.0"
2
+ version: "5.1.2"
3
3
  changelog:
4
+ - date: 2022-11-23
5
+ version: v5.1.2
6
+ changes:
7
+ - type: bug
8
+ text: "Fix issue because of which channel hasn't been encoded properly with endpoint call."
9
+ - date: 2022-10-26
10
+ version: v5.1.1
11
+ changes:
12
+ - type: bug
13
+ text: "Fix issue because of which `callback` and `http_sync` provided during client configuration not used when missing in method call."
4
14
  - date: 2022-07-26
5
15
  version: v5.1.0
6
16
  changes:
@@ -632,7 +642,7 @@ sdks:
632
642
  - x86-64
633
643
  - distribution-type: package
634
644
  distribution-repository: RubyGems
635
- package-name: pubnub-5.1.0.gem
645
+ package-name: pubnub-5.1.2.gem
636
646
  location: https://rubygems.org/gems/pubnub
637
647
  requires:
638
648
  - name: addressable
@@ -737,8 +747,8 @@ sdks:
737
747
  - x86-64
738
748
  - distribution-type: library
739
749
  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
750
+ package-name: pubnub-5.1.2.gem
751
+ location: https://github.com/pubnub/ruby/releases/download/v5.1.2/pubnub-5.1.2.gem
742
752
  requires:
743
753
  - name: addressable
744
754
  min-version: 2.0.0
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## v5.1.2
2
+ November 23 2022
3
+
4
+ #### Fixed
5
+ - Fix issue because of which channel hasn't been encoded properly with endpoint call.
6
+
7
+ ## v5.1.1
8
+ October 26 2022
9
+
10
+ #### Fixed
11
+ - Fix issue because of which `callback` and `http_sync` provided during client configuration not used when missing in method call.
12
+
1
13
  ## v5.1.0
2
14
  July 26 2022
3
15
 
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ group :test do
9
9
  gem 'rspec-retry'
10
10
  gem 'rspec-expectations'
11
11
  gem 'rubocop'
12
- gem 'simplecov', '>= 0.12', require: false
12
+ gem 'simplecov', '>= 0.21.2', require: false
13
13
  gem 'vcr'
14
14
  gem 'webmock'
15
15
  gem 'cucumber'
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.2)
5
5
  addressable (>= 2.0.0)
6
6
  concurrent-ruby (~> 1.1.5)
7
7
  concurrent-ruby-edge (~> 0.5.0)
@@ -61,7 +61,7 @@ GEM
61
61
  cucumber-messages (~> 17.0, >= 17.0.1)
62
62
  debug_inspector (0.0.3)
63
63
  diff-lcs (1.4.4)
64
- docile (1.3.2)
64
+ docile (1.4.0)
65
65
  dry-configurable (0.11.6)
66
66
  concurrent-ruby (~> 1.0)
67
67
  dry-core (~> 0.4, >= 0.4.7)
@@ -161,10 +161,12 @@ GEM
161
161
  parser (>= 2.7.1.4)
162
162
  ruby-progressbar (1.10.1)
163
163
  safe_yaml (1.0.5)
164
- simplecov (0.18.5)
164
+ simplecov (0.21.2)
165
165
  docile (~> 1.1)
166
166
  simplecov-html (~> 0.11)
167
- simplecov-html (0.12.2)
167
+ simplecov_json_formatter (~> 0.1)
168
+ simplecov-html (0.12.3)
169
+ simplecov_json_formatter (0.1.4)
168
170
  spoon (0.0.6)
169
171
  ffi
170
172
  sys-uname (1.2.2)
@@ -194,7 +196,7 @@ DEPENDENCIES
194
196
  rspec-expectations
195
197
  rspec-retry
196
198
  rubocop
197
- simplecov (>= 0.12)
199
+ simplecov (>= 0.21.2)
198
200
  vcr
199
201
  webmock
200
202
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.1.0
1
+ 5.1.2
@@ -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)
@@ -31,7 +31,7 @@ module Pubnub
31
31
  'sub-key',
32
32
  @subscribe_key,
33
33
  'channel',
34
- @channel
34
+ Formatter.format_channel(@channel, true)
35
35
  ].join('/')
36
36
  end
37
37
 
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '5.1.0'.freeze
3
+ VERSION = '5.1.2'.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.2
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-11-23 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
@@ -295,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
296
  - !ruby/object:Gem::Version
296
297
  version: '0'
297
298
  requirements: []
298
- rubygems_version: 3.1.2
299
+ rubygems_version: 3.3.5
299
300
  signing_key:
300
301
  specification_version: 4
301
302
  summary: PubNub Official Ruby gem.