twilio-ruby 5.11.0 → 5.11.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: 1b2e383ba3a1cdb7ac1935ff265cf2c2c7f984da
4
- data.tar.gz: ab1586c39a2a53cd964a89f8401d31056522070d
3
+ metadata.gz: d79aab968011fb62de18f17359571d5862ced4c1
4
+ data.tar.gz: 4cb4acd2876abcfc03e5826504b56dfa26a8d3e0
5
5
  SHA512:
6
- metadata.gz: d0924160a623cb392ffc3ed6d6b863afcced646cb19beccec461d1d9e16bf3f77f1c08a522b09edee4524cc0db12a3d4c826be22d9179bf8cf3ad5070e0a570c
7
- data.tar.gz: 00f50a63129f3b0ef5e92c98f95890bcc48fc753041b8997c6a2899fd4e022caa57552c0fa6566940bee0fbb9779e0af85014ae9bf493eea8c1d3faae96cdc3f
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.0'
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.0
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 sid
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` or `group`. Will
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 sid
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 sid
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
- @attrs[TwiML.to_lower_camel_case(key)] = val unless val.nil?
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 = 'W'
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 = 'Sub'
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 = 'Say-As'
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 = 'S'
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 = 'Prosody'
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 = 'Phoneme'
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 = 'P'
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 = 'Emphasis'
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 = 'Break'
397
+ @name = 'break'
398
398
 
399
399
  yield(self) if block_given?
400
400
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.11.0'
2
+ VERSION = '5.11.1'
3
3
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt