plivo 4.48.0 → 4.49.0
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/.github/workflows/unitTests.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/plivo/base_client.rb +7 -8
- data/lib/plivo/resources/call_feedback.rb +0 -1
- data/lib/plivo/version.rb +1 -1
- data/plivo.gemspec +1 -2
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed30e13d70b2483bb821add7ba7cb7207be1096d
|
4
|
+
data.tar.gz: 155092cdb1a1983dab872b2810ee6a0ad497daed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb91ca43cb84672006c71ceb1aab588db855bae029840f7e353a9d768359cf354b4641075cd1212cfbbc95bd140f22290aca7f4b9f277500b8ba13ace6a1606e
|
7
|
+
data.tar.gz: 83e334ec371050c18eed54a74e8658d265fd04eeb60b6d37a8c56c18b508fa4c99fcada29d5d420efecea7e5dce3490212b8074746c7da49141a9e46962f9602
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
# Change Log
|
2
|
+
## [4.49.0](https://github.com/plivo/plivo-ruby/tree/v4.49.0) (2023-09-13)
|
3
|
+
**Removing the faraday_middleware dependency and upgrade to farady latest version
|
4
|
+
|
2
5
|
## [4.48.0](https://github.com/plivo/plivo-ruby/tree/v4.48.0) (2023-08-25)
|
3
6
|
**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
|
4
7
|
- Added new params on message get and list response
|
data/README.md
CHANGED
data/lib/plivo/base_client.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'faraday'
|
3
|
-
require 'faraday_middleware'
|
4
3
|
|
5
4
|
require_relative 'exceptions'
|
6
5
|
require_relative 'utils'
|
@@ -137,7 +136,7 @@ module Plivo
|
|
137
136
|
# DANGER: Basic auth should always come after headers, else
|
138
137
|
# The headers will replace the basic_auth
|
139
138
|
|
140
|
-
faraday.
|
139
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
141
140
|
|
142
141
|
faraday.proxy=@proxy_hash if @proxy_hash
|
143
142
|
faraday.response :json, content_type: /\bjson$/
|
@@ -150,7 +149,7 @@ module Plivo
|
|
150
149
|
# DANGER: Basic auth should always come after headers, else
|
151
150
|
# The headers will replace the basic_auth
|
152
151
|
|
153
|
-
faraday.
|
152
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
154
153
|
|
155
154
|
faraday.proxy=@proxy_hash if @proxy_hash
|
156
155
|
faraday.response :json, content_type: /\bjson$/
|
@@ -163,7 +162,7 @@ module Plivo
|
|
163
162
|
# DANGER: Basic auth should always come after headers, else
|
164
163
|
# The headers will replace the basic_auth
|
165
164
|
|
166
|
-
faraday.
|
165
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
167
166
|
|
168
167
|
faraday.proxy=@proxy_hash if @proxy_hash
|
169
168
|
faraday.response :json, content_type: /\bjson$/
|
@@ -176,7 +175,7 @@ module Plivo
|
|
176
175
|
# DANGER: Basic auth should always come after headers, else
|
177
176
|
# The headers will replace the basic_auth
|
178
177
|
|
179
|
-
faraday.
|
178
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
180
179
|
|
181
180
|
faraday.proxy=@proxy_hash if @proxy_hash
|
182
181
|
faraday.response :json, content_type: /\bjson$/
|
@@ -189,7 +188,7 @@ module Plivo
|
|
189
188
|
# DANGER: Basic auth should always come after headers, else
|
190
189
|
# The headers will replace the basic_auth
|
191
190
|
|
192
|
-
faraday.
|
191
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
193
192
|
|
194
193
|
faraday.proxy=@proxy_hash if @proxy_hash
|
195
194
|
faraday.response :json, content_type: /\bjson$/
|
@@ -202,7 +201,7 @@ module Plivo
|
|
202
201
|
# DANGER: Basic auth should always come after headers, else
|
203
202
|
# The headers will replace the basic_auth
|
204
203
|
|
205
|
-
faraday.
|
204
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
206
205
|
|
207
206
|
faraday.proxy=@proxy_hash if @proxy_hash
|
208
207
|
faraday.response :json, content_type: /\bjson$/
|
@@ -255,7 +254,7 @@ module Plivo
|
|
255
254
|
|
256
255
|
faraday.request :multipart
|
257
256
|
faraday.request :url_encoded
|
258
|
-
faraday.
|
257
|
+
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{auth_id}:#{auth_token}")}"
|
259
258
|
|
260
259
|
faraday.proxy=@proxy_hash if @proxy_hash
|
261
260
|
faraday.response :json, content_type: /\bjson$/
|
data/lib/plivo/version.rb
CHANGED
data/plivo.gemspec
CHANGED
@@ -31,8 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.required_ruby_version = '>= 2.0.0'
|
33
33
|
|
34
|
-
spec.add_dependency 'faraday', '~>
|
35
|
-
spec.add_dependency 'faraday_middleware', '~> 1.0'
|
34
|
+
spec.add_dependency 'faraday', '~> 2.7'
|
36
35
|
spec.add_dependency 'htmlentities'
|
37
36
|
spec.add_dependency 'jwt'
|
38
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plivo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Plivo SDKs Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday_middleware
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.0'
|
26
|
+
version: '2.7'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: htmlentities
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|