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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b091e4f65311a633a4393b5e027e18ddbb274f3
4
- data.tar.gz: 16db543b3825769f7c0abf35e52bd0f1ea9f5bb4
3
+ metadata.gz: ed30e13d70b2483bb821add7ba7cb7207be1096d
4
+ data.tar.gz: 155092cdb1a1983dab872b2810ee6a0ad497daed
5
5
  SHA512:
6
- metadata.gz: 41476161f9eb8140be760123b72eb41ed1e95a8882b0ad74d5fea45b238ab41e2eefcb9d6c877aa0e14355a47e22330bf90fe4807d3497ee98868b48885a5758
7
- data.tar.gz: d5046d8dec3a31c078d813d4e5ac6b33324560f7c270a692281e664bef7da85caf42f9a865a7d2e6889ee5f53456bbc59f12e9299d1edacd58c8bcb2ef51e52c
6
+ metadata.gz: bb91ca43cb84672006c71ceb1aab588db855bae029840f7e353a9d768359cf354b4641075cd1212cfbbc95bd140f22290aca7f4b9f277500b8ba13ace6a1606e
7
+ data.tar.gz: 83e334ec371050c18eed54a74e8658d265fd04eeb60b6d37a8c56c18b508fa4c99fcada29d5d420efecea7e5dce3490212b8074746c7da49141a9e46962f9602
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: [ '2.4', '2.5', '2.6' ,'2.7', '3.0' ]
15
+ ruby-version: [ '2.6' ,'2.7', '3.0' ]
16
16
 
17
17
  steps:
18
18
  - name: Checkout
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
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.48.0'
12
+ gem 'plivo', '>= 4.49.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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.request(:basic_auth, auth_id, auth_token)
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$/
@@ -1,6 +1,5 @@
1
1
  require 'json'
2
2
  require 'faraday'
3
- require 'faraday_middleware'
4
3
 
5
4
  module Plivo
6
5
  module Resources
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.48.0".freeze
2
+ VERSION = "4.49.0".freeze
3
3
  end
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', '~> 1.0'
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.48.0
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-08-25 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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