vonage 7.16.0 → 7.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eee7072db61e23948a8659c05fa1c1a071a231de32da5506c2a0a1f8e0dec525
4
- data.tar.gz: 7082dab4129bb5f251f14cb5cbfc19cdd21b82da8349535194258bb95c656a88
3
+ metadata.gz: c55251a1296c1c7e13ef6a3f491868be1d21c3b43905f21f3042c1901b2bef23
4
+ data.tar.gz: d9ed23ef4f8b1e8a6a25bc4c72e904b9ffa7b2b622b60a1afd8369f1268b253f
5
5
  SHA512:
6
- metadata.gz: 9274d4f25c3ac03361e7024aa24685e2be658db11c57601bbc349bc3c65784ef097d836e309318e87de8f4256dab45bbe814638d708230b7463df58589968fa8
7
- data.tar.gz: e410a075c96c179c18ca87e047c9c16c3e364c97c36c535eb946dabe4497070a3d465332756db899016ee20af2b45c09dfa846156e9392dde29dfecda4955ae0
6
+ metadata.gz: 5ee43b28d5fad08043d51e30b4093939717dd3786e5ed1a85086d16bd3b88aec2535d957fdef93801ede173ec4b447d96ef504ed95f5dff6a1d2f3425f0dd013
7
+ data.tar.gz: ac4727ee0577c863d4f2cb181003b0b67b3bc78e6b9b43e66da89a402d401e2459198ba336ace27e1588b9d2f7ecf67f157b30918fd56ab8b6a48cc63581e0d7
data/lib/vonage/config.rb CHANGED
@@ -130,7 +130,11 @@ module Vonage
130
130
 
131
131
  # @return [Vonage::Logger]
132
132
  #
133
- sig { params(logger: T.nilable(T.any(::Logger, Vonage::Logger))).returns(T.nilable(Vonage::Logger)) }
133
+ sig { params(logger: T.nilable(
134
+ defined?(ActiveSupport::BroadcastLogger) ?
135
+ T.any(::Logger, Vonage::Logger, ActiveSupport::BroadcastLogger)
136
+ : T.any(::Logger, Vonage::Logger)
137
+ )).returns(T.nilable(Vonage::Logger)) }
134
138
  def logger=(logger)
135
139
  @logger = T.let(Logger.new(logger), T.nilable(Vonage::Logger))
136
140
  end
data/lib/vonage/logger.rb CHANGED
@@ -7,7 +7,11 @@ module Vonage
7
7
  class Logger
8
8
  extend T::Sig
9
9
 
10
- sig { params(logger: T.nilable(T.any(::Logger, Vonage::Logger))).void }
10
+ sig { params(logger: T.nilable(
11
+ defined?(ActiveSupport::BroadcastLogger) ?
12
+ T.any(::Logger, Vonage::Logger, ActiveSupport::BroadcastLogger)
13
+ : T.any(::Logger, Vonage::Logger)
14
+ )).void }
11
15
  def initialize(logger)
12
16
  @logger = logger || ::Logger.new(nil)
13
17
  end
@@ -20,8 +24,6 @@ module Vonage
20
24
 
21
25
  sig { params(request: T.any(Net::HTTP::Post, Net::HTTP::Get, Net::HTTP::Delete, Net::HTTP::Put, Net::HTTP::Patch)).void }
22
26
  def log_request_info(request)
23
- @logger = T.let(@logger, T.nilable(T.any(::Logger, Vonage::Logger)))
24
-
25
27
  T.must(@logger).info do
26
28
  format('Vonage API request', {
27
29
  method: request.method,
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
 
3
3
  module Vonage
4
- VERSION = "7.16.0"
4
+ VERSION = "7.16.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vonage
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.16.0
4
+ version: 7.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vonage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-25 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vonage-jwt