plivo 4.61.4 → 4.62.1

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: 32adb2993a31e298a5739fdbf41b390c3cc16f68
4
- data.tar.gz: 8b41028cfec6b74dfb46d316e7f70949392ffc46
3
+ metadata.gz: 13c2fd610b217dfc2c71ed97fca15d2d6f4fbf1b
4
+ data.tar.gz: e69c1e2d7e29c5dc66fff2d10f2f0ee110ea3860
5
5
  SHA512:
6
- metadata.gz: eae1ac6873f457d79736b9f9492bab0085533f55c22d52d3dfea90c6de394d502f0fc8002cf6cf929e85ff308294820ed0c6761a0841194142b7931a6da10b63
7
- data.tar.gz: '018aadb508be8ed0719d036dc7fa66476509a4a6b76cac184ed3f6f8843e91f5f792cc3e1f767c86061aaa4bfe30a3c7095ee996f3dfbb599c17406a29f35bc7'
6
+ metadata.gz: 0505f0b6b61652f3a45e4d2281440264877099dbc722cd2fa6e31fb88d3e24a7cc30aba4d482f62373a163ddf565bd9c9b22aa1c2baf0edd048bdbfaba684056
7
+ data.tar.gz: b5507ed81a5899df3a6d3acb179c44a9e5c0c9d2c45a9ae14d27a1d5ed5646467142caad4cf4a8a64d5be34dc5cd7b4e9fb95d1b14423727a80898833aad7209
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.62.1](https://github.com/plivo/plivo-ruby/tree/v4.62.1) (2025-08-06)
4
+ **Feature - Expanded Media Type Support for Media Upload**
5
+ - Added support for additional media file formats: GIF, MP3, WAV, OGG, 3GPP, 3GPP2, VCARD, CSV, XLS, XLSX, and PLAIN text files
6
+
7
+ ## [4.62.0](https://github.com/plivo/plivo-ruby/tree/v4.62.0) (2025-04-30)
8
+ **Feature - New Param added for Start Recording API.**
9
+ - Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML.
10
+
3
11
  ## [4.61.4](https://github.com/plivo/plivo-ruby/tree/v4.61.4) (2025-02-25)
4
12
  **Feature - Supporting parameter_name in WhatsApp Template .**
5
13
  - Supporting `parameter_name` in WhatsApp Template .
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.61.4'
12
+ gem 'plivo', '>= 4.62.1'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -99,6 +99,12 @@ module Plivo
99
99
  params[:transcription_type] = options[:transcription_type]
100
100
  end
101
101
 
102
+ if options.key?(:record_channel_type) &&
103
+ valid_param?(:record_channel_type, options[:record_channel_type],
104
+ [String, Symbol], true)
105
+ params[:record_channel_type] = options[:record_channel_type]
106
+ end
107
+
102
108
  perform_action('Record', 'POST', params, true)
103
109
  end
104
110
 
@@ -79,11 +79,22 @@ module Plivo
79
79
  when 'jpeg' then 'image/jpeg'
80
80
  when 'jpg' then 'image/jpeg'
81
81
  when 'png' then 'image/png'
82
+ when 'gif' then 'image/gif'
83
+ when 'mp3' then 'audio/mp3'
84
+ when 'mp4' then 'video/mp4'
85
+ when 'mpeg' then 'video/mpeg'
86
+ when 'wav' then 'audio/wav'
87
+ when 'ogg' then 'audio/ogg'
88
+ when '3gpp' then 'video/3gpp'
89
+ when '3gpp2' then 'video/3gpp2'
90
+ when 'vcard' then 'text/vcard'
91
+ when 'csv' then 'text/csv'
82
92
  when 'pdf' then 'application/pdf'
93
+ when 'xls' then 'application/vnd.ms-excel'
94
+ when 'xlsx' then 'application/vnd.ms-excel'
83
95
  when 'xcf' then 'image/xcf'
84
96
  when 'text' then 'text/plain'
85
- when 'mpeg' then 'video/mpeg'
86
- when 'mp4' then 'video/mp4'
97
+ when 'plain' then 'text/plain'
87
98
  else raise_invalid_request("#{file_extension} is not yet supported for upload")
88
99
  end
89
100
 
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.61.4".freeze
2
+ VERSION = "4.62.1".freeze
3
3
  end
@@ -7,7 +7,7 @@ module Plivo
7
7
  startOnDialAnswer redirect fileFormat
8
8
  callbackUrl callbackMethod
9
9
  transcriptionType transcriptionUrl
10
- transcriptionMethod]
10
+ transcriptionMethod recordChannelType]
11
11
 
12
12
  def initialize(attributes = {})
13
13
  super(nil, attributes)
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.61.4
4
+ version: 4.62.1
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: 2025-02-25 00:00:00.000000000 Z
11
+ date: 2025-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday