telesign 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/telesign/rest.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62cd8fd6fe5ed694c68d2b03fb9cc68d670fce071823eaed1494b7ce63bb93a9
|
|
4
|
+
data.tar.gz: 55089fd13108db6607ad5d53ea20170d836718b6e6ad88fe0f347914ede43f52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3776b0f11278168a3018fcbc6fbf95c402ca8f119f6198e83a9952d166f18ebf795aa66cffcd0cabe1ba8782202eda96dfdc015c290744be2633c535b3d03b91
|
|
7
|
+
data.tar.gz: 677e20105874dbd80ade1467284fc99f8597b51b73850c6e2d109e696155b52c42733dd44a25f8c4801fe1d9e94772a10cacde9f01bf8540c28a16eff575cea6
|
data/lib/telesign/rest.rb
CHANGED
|
@@ -7,7 +7,7 @@ require 'securerandom'
|
|
|
7
7
|
require 'net/http/persistent'
|
|
8
8
|
|
|
9
9
|
module Telesign
|
|
10
|
-
SDK_VERSION = '2.2.
|
|
10
|
+
SDK_VERSION = '2.2.3'
|
|
11
11
|
|
|
12
12
|
# The TeleSign RestClient is a generic HTTP REST client that can be extended to make requests against any of
|
|
13
13
|
# TeleSign's REST API endpoints.
|
|
@@ -192,10 +192,9 @@ module Telesign
|
|
|
192
192
|
|
|
193
193
|
resource_uri = URI.parse("#{@rest_endpoint}#{resource}")
|
|
194
194
|
|
|
195
|
-
request = method_function.new(resource_uri.request_uri)
|
|
196
|
-
|
|
197
195
|
encoded_fields = ''
|
|
198
196
|
if %w[POST PUT].include? method_name
|
|
197
|
+
request = method_function.new(resource_uri.request_uri)
|
|
199
198
|
if content_type == "application/x-www-form-urlencoded"
|
|
200
199
|
unless params.empty?
|
|
201
200
|
encoded_fields = URI.encode_www_form(params, Encoding::UTF_8)
|
|
@@ -208,6 +207,7 @@ module Telesign
|
|
|
208
207
|
end
|
|
209
208
|
else
|
|
210
209
|
resource_uri.query = URI.encode_www_form(params, Encoding::UTF_8)
|
|
210
|
+
request = method_function.new(resource_uri.request_uri)
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
headers = RestClient.generate_telesign_headers(@customer_id,
|