bandwidth-sdk 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bandwidth.rb +0 -1
- data/lib/bandwidth/configuration.rb +4 -4
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +2 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/send_dtmf.rb +4 -1
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07e5fe50a991db2fb94f074067e8288020c363c5aef6640f9e56d7e5f2ddc0c6
|
4
|
+
data.tar.gz: 7d726b1e2b912c334bc376d1851f087fc609f1c0ab20ad478dfd9c297f35b59e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 525fd5027e01ea00e4912d5f8f02f5f89442a794558f79d3df37065c6bb3a8fd567e3bf3e11713771a166965a5e532abcbf15d8a99d6ace7120d868eb6877dbc
|
7
|
+
data.tar.gz: eccbe5576ad3f247f8e24b0e7708f1caf04339e0ed6741e649bb9e1344f85f662b76016af062735a8965375f4786ea55c1a0120b246e0d3edf9e32c48e6ba510
|
data/lib/bandwidth.rb
CHANGED
@@ -59,7 +59,7 @@ module Bandwidth
|
|
59
59
|
@backoff_factor = backoff_factor
|
60
60
|
|
61
61
|
# Current API environment
|
62
|
-
@environment = environment
|
62
|
+
@environment = String(environment)
|
63
63
|
|
64
64
|
# The username to use with basic authentication
|
65
65
|
@messaging_basic_auth_user_name = messaging_basic_auth_user_name
|
@@ -111,20 +111,20 @@ module Bandwidth
|
|
111
111
|
end
|
112
112
|
|
113
113
|
# All the environments the SDK can run in.
|
114
|
-
|
114
|
+
ENVIRONMENTS = {
|
115
115
|
Environment::PRODUCTION => {
|
116
116
|
Server::DEFAULT => 'api.bandwidth.com',
|
117
117
|
Server::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
|
118
118
|
Server::VOICEDEFAULT => 'https://voice.bandwidth.com'
|
119
119
|
}
|
120
|
-
}
|
120
|
+
}.freeze
|
121
121
|
|
122
122
|
# Generates the appropriate base URI for the environment and the server.
|
123
123
|
# @param [Configuration::Server] The server enum for which the base URI is
|
124
124
|
# required.
|
125
125
|
# @return [String] The base URI.
|
126
126
|
def get_base_uri(server = Server::DEFAULT)
|
127
|
-
|
127
|
+
ENVIRONMENTS[environment][server].clone
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
@@ -20,7 +20,8 @@ module Bandwidth
|
|
20
20
|
'fileFormat' => file_format,
|
21
21
|
'transcribe' => transcribe,
|
22
22
|
'transcriptionAvailableUrl' => transcription_available_url,
|
23
|
-
'transcriptionAvailableMethod' => transcription_available_method
|
23
|
+
'transcriptionAvailableMethod' => transcription_available_method,
|
24
|
+
'silenceTimeout' => silence_timeout
|
24
25
|
}))
|
25
26
|
end
|
26
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bandwidth-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- APIMatic SDK Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.0
|
75
|
+
version: '2.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.0
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: builder
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|