twilio-ruby 5.11.0 → 5.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/video/v1.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +5 -5
- data/lib/twilio-ruby/twiml/twiml.rb +7 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +9 -9
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d79aab968011fb62de18f17359571d5862ced4c1
|
4
|
+
data.tar.gz: 4cb4acd2876abcfc03e5826504b56dfa26a8d3e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9298425a36512096811df2f169d624da2d6176c9639914d3d65f2f3b1bf0285e3307881fdc926281556164146c53a4144bc9244cdd82f437168e9051cadca1e9
|
7
|
+
data.tar.gz: 1bda3d7826f4acab8ac74c01d5142a5720d109b0bfae08e57500218ab49b01482361a85db157a35f1d9c8f9c0f9332c777044fcaf85fdb882ff26f5250873319
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2018-07-17] Version 5.11.1
|
5
|
+
----------------------------
|
6
|
+
**Library**
|
7
|
+
- PR #422: Add attribute overrides from generated code. Thanks to @cjcodes!
|
8
|
+
|
9
|
+
**Video**
|
10
|
+
- Add `group-small` room type
|
11
|
+
|
12
|
+
|
4
13
|
[2018-07-16] Version 5.11.0
|
5
14
|
----------------------------
|
6
15
|
**Library**
|
data/README.md
CHANGED
@@ -27,13 +27,13 @@ in-line code documentation here in the library.
|
|
27
27
|
To install using [Bundler][bundler] grab the latest stable version:
|
28
28
|
|
29
29
|
```ruby
|
30
|
-
gem 'twilio-ruby', '~> 5.11.
|
30
|
+
gem 'twilio-ruby', '~> 5.11.1'
|
31
31
|
```
|
32
32
|
|
33
33
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
34
34
|
|
35
35
|
```bash
|
36
|
-
gem install twilio-ruby -v 5.11.
|
36
|
+
gem install twilio-ruby -v 5.11.1
|
37
37
|
```
|
38
38
|
|
39
39
|
To build and install the development branch yourself from the latest source:
|
@@ -65,7 +65,7 @@ module Twilio
|
|
65
65
|
end
|
66
66
|
|
67
67
|
##
|
68
|
-
# @param [String] sid The
|
68
|
+
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
69
69
|
# @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
|
70
70
|
# @return [Twilio::REST::Video::V1::RoomList]
|
71
71
|
def rooms(sid=:unset)
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
# Request is executed immediately.
|
29
29
|
# @param [Boolean] enable_turn Use Twilio Network Traversal for TURN service.
|
30
30
|
# Defaults to true. Only applicable to Rooms with type `peer-to-peer`.
|
31
|
-
# @param [room.RoomType] type Type of room, either `peer-to-peer
|
32
|
-
# be `group` by default.
|
31
|
+
# @param [room.RoomType] type Type of room, either `peer-to-peer`, `group-small`
|
32
|
+
# or `group`. Will be `group` by default.
|
33
33
|
# @param [String] unique_name Name of the Room. This is unique for `in-progress`
|
34
34
|
# rooms. If not provided, Room name will be set to the Room Sid.
|
35
35
|
# @param [String] status_callback A URL that Twilio sends asynchronous webhook
|
@@ -227,7 +227,7 @@ module Twilio
|
|
227
227
|
##
|
228
228
|
# Initialize the RoomContext
|
229
229
|
# @param [Version] version Version that contains the resource
|
230
|
-
# @param [String] sid The
|
230
|
+
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
231
231
|
# @return [RoomContext] RoomContext
|
232
232
|
def initialize(version, sid)
|
233
233
|
super(version)
|
@@ -321,7 +321,7 @@ module Twilio
|
|
321
321
|
# Initialize the RoomInstance
|
322
322
|
# @param [Version] version Version that contains the resource
|
323
323
|
# @param [Hash] payload payload that contains response from Twilio
|
324
|
-
# @param [String] sid The
|
324
|
+
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
325
325
|
# @return [RoomInstance] RoomInstance
|
326
326
|
def initialize(version, payload, sid: nil)
|
327
327
|
super(version)
|
@@ -431,7 +431,7 @@ module Twilio
|
|
431
431
|
end
|
432
432
|
|
433
433
|
##
|
434
|
-
# @return [room.RoomType] Type of Room, either peer-to-peer or group.
|
434
|
+
# @return [room.RoomType] Type of Room, either peer-to-peer, group-small or group.
|
435
435
|
def type
|
436
436
|
@properties['type']
|
437
437
|
end
|
@@ -26,13 +26,19 @@ module Twilio
|
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
28
|
def initialize(**keyword_args)
|
29
|
+
@overrides = {
|
30
|
+
aliasAttribute: 'alias',
|
31
|
+
xmlLang: 'xml:lang',
|
32
|
+
interpretAs: 'interpret-as',
|
33
|
+
}
|
29
34
|
@name = self.class.name.split('::').last
|
30
35
|
@value = nil
|
31
36
|
@verbs = []
|
32
37
|
@attrs = {}
|
33
38
|
|
34
39
|
keyword_args.each do |key, val|
|
35
|
-
@
|
40
|
+
corrected_key = @overrides.fetch(key, TwiML.to_lower_camel_case(key))
|
41
|
+
@attrs[corrected_key] = val unless val.nil?
|
36
42
|
end
|
37
43
|
end
|
38
44
|
|
@@ -306,7 +306,7 @@ module Twilio
|
|
306
306
|
class SsmlW < TwiML
|
307
307
|
def initialize(words, **keyword_args)
|
308
308
|
super(**keyword_args)
|
309
|
-
@name = '
|
309
|
+
@name = 'w'
|
310
310
|
@value = words
|
311
311
|
yield(self) if block_given?
|
312
312
|
end
|
@@ -317,7 +317,7 @@ module Twilio
|
|
317
317
|
class SsmlSub < TwiML
|
318
318
|
def initialize(words, **keyword_args)
|
319
319
|
super(**keyword_args)
|
320
|
-
@name = '
|
320
|
+
@name = 'sub'
|
321
321
|
@value = words
|
322
322
|
yield(self) if block_given?
|
323
323
|
end
|
@@ -328,7 +328,7 @@ module Twilio
|
|
328
328
|
class SsmlSayAs < TwiML
|
329
329
|
def initialize(words, **keyword_args)
|
330
330
|
super(**keyword_args)
|
331
|
-
@name = '
|
331
|
+
@name = 'say-as'
|
332
332
|
@value = words
|
333
333
|
yield(self) if block_given?
|
334
334
|
end
|
@@ -339,7 +339,7 @@ module Twilio
|
|
339
339
|
class SsmlS < TwiML
|
340
340
|
def initialize(words, **keyword_args)
|
341
341
|
super(**keyword_args)
|
342
|
-
@name = '
|
342
|
+
@name = 's'
|
343
343
|
@value = words
|
344
344
|
yield(self) if block_given?
|
345
345
|
end
|
@@ -350,7 +350,7 @@ module Twilio
|
|
350
350
|
class SsmlProsody < TwiML
|
351
351
|
def initialize(words, **keyword_args)
|
352
352
|
super(**keyword_args)
|
353
|
-
@name = '
|
353
|
+
@name = 'prosody'
|
354
354
|
@value = words
|
355
355
|
yield(self) if block_given?
|
356
356
|
end
|
@@ -361,7 +361,7 @@ module Twilio
|
|
361
361
|
class SsmlPhoneme < TwiML
|
362
362
|
def initialize(words, **keyword_args)
|
363
363
|
super(**keyword_args)
|
364
|
-
@name = '
|
364
|
+
@name = 'phoneme'
|
365
365
|
@value = words
|
366
366
|
yield(self) if block_given?
|
367
367
|
end
|
@@ -372,7 +372,7 @@ module Twilio
|
|
372
372
|
class SsmlP < TwiML
|
373
373
|
def initialize(words, **keyword_args)
|
374
374
|
super(**keyword_args)
|
375
|
-
@name = '
|
375
|
+
@name = 'p'
|
376
376
|
@value = words
|
377
377
|
yield(self) if block_given?
|
378
378
|
end
|
@@ -383,7 +383,7 @@ module Twilio
|
|
383
383
|
class SsmlEmphasis < TwiML
|
384
384
|
def initialize(words, **keyword_args)
|
385
385
|
super(**keyword_args)
|
386
|
-
@name = '
|
386
|
+
@name = 'emphasis'
|
387
387
|
@value = words
|
388
388
|
yield(self) if block_given?
|
389
389
|
end
|
@@ -394,7 +394,7 @@ module Twilio
|
|
394
394
|
class SsmlBreak < TwiML
|
395
395
|
def initialize(**keyword_args)
|
396
396
|
super(**keyword_args)
|
397
|
-
@name = '
|
397
|
+
@name = 'break'
|
398
398
|
|
399
399
|
yield(self) if block_given?
|
400
400
|
end
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.11.
|
4
|
+
version: 5.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|