plivo 4.60.0 → 4.60.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: 42e9961c1458627e0fd5d95540f9032d9654d88d
4
- data.tar.gz: b042ca75f5dd628eddad9495d3df159a05c08cc9
3
+ metadata.gz: d491b832472c9c8b1ee944cf961481f4110cf980
4
+ data.tar.gz: a5a534a6a8ece66d5e826a34f96c8b96ddf300d5
5
5
  SHA512:
6
- metadata.gz: 036a9fe1398b92ba5feda2b7d0d5c154a3b38eeaa6903cb1b64bbe91bc42e09da5efc1198a70c2bf5ac2945b0b2ea00da3c71727b5b0de7553bec4d4e635d693
7
- data.tar.gz: b286290f67510a1262d58ee71c8b779b6dd53530dc60a97cbd6cf2e5c9c23741bbdd4333e4134abfb2f42389288d0c6d2408b868076332f8d5ed008e67b8bbbc
6
+ metadata.gz: 8f103c4da8334a8df74c527f7f23b5c12d5b7e852b4bdb4da88c273b7f641793d32a9e22148e0a6798836696b42efb49ce507d7102c77aaa708f78c9b9827686
7
+ data.tar.gz: b0acc21ba7b9ee19f01842a142949c561540fbb2961b216e499ba1ae6235a9793cfdd0c378da1a370392be3b7a1d0b3431d6c981a2ca39979ce135b9d07a2e93
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.60.1](https://github.com/plivo/plivo-ruby/tree/v4.60.1) (2024-09-03)
4
+ **Feature - Adding new element for Audio Stream XML **
5
+ - Added `keepCallAlive` element in Audio Stream XML
6
+
3
7
  ## [4.60.0](https://github.com/plivo/plivo-ruby/tree/v4.60.0) (2024-07-11)
4
8
  **Feature - Adding support for Locale param in Create, Get and List Session**
5
9
  - Added new request param `locale` in create Session API
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.60.0'
12
+ gem 'plivo', '>= 4.60.1'
13
13
  ```
14
14
 
15
15
  And then execute:
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.60.0".freeze
2
+ VERSION = "4.60.1".freeze
3
3
  end
@@ -3,11 +3,12 @@ module Plivo
3
3
  class Stream < Element
4
4
  @nestables = []
5
5
  @valid_attributes = %w[bidirectional audioTrack streamTimeout statusCallbackUrl
6
- statusCallbackMethod contentType extraHeaders]
6
+ statusCallbackMethod contentType extraHeaders keepCallAlive]
7
7
 
8
8
  SUPPORTED_BIDIRECTIONAL=%w(true false)
9
9
  SUPPORTED_AUDIOTRACK=%w(inbound outbound both)
10
10
  SUPPORTED_CALLBACKMETHOD=%w(GET POST)
11
+ SUPPORTED_KEEPCALLALIVE=%w(true false)
11
12
 
12
13
  def initialize(body, attributes = {})
13
14
  if attributes[:bidirectional] && !SUPPORTED_BIDIRECTIONAL.include?(attributes[:bidirectional])
@@ -19,6 +20,9 @@ module Plivo
19
20
  if attributes[:statusCallbackMethod] && !SUPPORTED_CALLBACKMETHOD.include?(attributes[:statusCallbackMethod].upcase)
20
21
  raise PlivoXMLError, "<Stream> statusCallbackMethod #{attributes[:statusCallbackMethod]} is not valid."
21
22
  end
23
+ if attributes[:keepCallAlive] && !SUPPORTED_KEEPCALLALIVE.include?(attributes[:keepCallAlive])
24
+ raise PlivoXMLError, "<Stream> keepCallAlive #{attributes[:keepCallAlive]} is not valid."
25
+ end
22
26
  raise PlivoXMLError, 'No text set for Stream' unless body
23
27
  super(body, attributes)
24
28
  end
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.60.0
4
+ version: 4.60.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: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday