plivo 4.47.0 → 4.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf67752d6471e1885a20a7a0c8aef55ca805320b
4
- data.tar.gz: 801e00b7b478b937765f5e94ba96b4d61e00c006
3
+ metadata.gz: ed30e13d70b2483bb821add7ba7cb7207be1096d
4
+ data.tar.gz: 155092cdb1a1983dab872b2810ee6a0ad497daed
5
5
  SHA512:
6
- metadata.gz: ba7ca1524870ee29ee121ce601ac1bf1884c41ceb78378e634a6fea6aff11540112b5c70f2e4bbd49881038858faddb3b1d0217a891481cbbedada127fd983e3
7
- data.tar.gz: 7ea47c993a2c9c2958732f2a94bdff50e1e146daa6f4e608c0a44e4db3fa54cc65c825532150405b9efc2047f938bf03987c0e339ab5a90088e4305319c051c0
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,10 @@
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
+
5
+ ## [4.48.0](https://github.com/plivo/plivo-ruby/tree/v4.48.0) (2023-08-25)
6
+ **Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
7
+ - Added new params on message get and list response
2
8
 
3
9
  ## [4.47.0](https://github.com/plivo/plivo-ruby/tree/v4.47.0) (2023-08-03)
4
10
  **Feature - DLT parameters**
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.47.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
@@ -39,7 +39,10 @@ module Plivo
39
39
  replaced_sender: @replaced_sender,
40
40
  dlt_entity_id: @dlt_entity_id,
41
41
  dlt_template_id: @dlt_template_id,
42
- dlt_template_category: @dlt_template_category
42
+ dlt_template_category: @dlt_template_category,
43
+ destination_network: @destination_network,
44
+ carrier_fees_rate: @carrier_fees_rate,
45
+ carrier_fees: @carrier_fees
43
46
  }.to_s
44
47
  end
45
48
  end
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.47.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.47.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-03 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