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 +4 -4
- data/lib/vonage/config.rb +5 -1
- data/lib/vonage/logger.rb +5 -3
- data/lib/vonage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55251a1296c1c7e13ef6a3f491868be1d21c3b43905f21f3042c1901b2bef23
|
4
|
+
data.tar.gz: d9ed23ef4f8b1e8a6a25bc4c72e904b9ffa7b2b622b60a1afd8369f1268b253f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
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,
|
data/lib/vonage/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vonage-jwt
|