twilio-ruby 5.14.0 → 5.14.1

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
- SHA256:
3
- metadata.gz: b283a5a375b8c792fdbecff0c19851d34fe3fb4a2b2909e6c41ef66224831061
4
- data.tar.gz: 36684ae1b0e4354ab6bba18c10bf636716e0084a4b6c08c3e0e5e8f055262e51
2
+ SHA1:
3
+ metadata.gz: 695b02619ce6b0eb12679c7f6b581834a3fd01cc
4
+ data.tar.gz: 45c5a81aaf31343678d57c14f0029b7f742ad550
5
5
  SHA512:
6
- metadata.gz: 5a214307f7f74ba3ec34042448afd90e559603400bf25c37541c5be7d9235c809a2ad06f471b40d92f3330ed69045e7be19bb7c10cf9f939e1f96898389d6021
7
- data.tar.gz: b98cb6532290b313e508a09400090184c1e79abf4ca97ad33b886044c50c154caca88482e482d470378a430cfa1370a1886967716eb2e7c2d19c6fbe6346ce94
6
+ metadata.gz: f71591f4762fefee517c5278de1d742f64b1e3a36e6de2c3ae3f7930d5779a4e49bda592fed71750b27dedea492bf290d79a0421936c85640160150ead8e18a1
7
+ data.tar.gz: c7c9bf6c34747894d9372f152fb0f5c4f7eeeb05607f8f2af2600138150f4aee0b645ecd1889217d6508c7fbd59bc805cabd6a3bbbeae67fb23ee0d5be712bce
data/CHANGES.md CHANGED
@@ -1,6 +1,13 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2018-10-04] Version 5.14.1
5
+ ----------------------------
6
+ **Twiml**
7
+ - Add `debug` to `Gather`
8
+ - Add `participantIdentity` to `Room`
9
+
10
+
4
11
  [2018-09-28] Version 5.14.0
5
12
  ----------------------------
6
13
  **Api**
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.14.0'
30
+ gem 'twilio-ruby', '~> 5.14.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.14.0
36
+ gem install twilio-ruby -v 5.14.1
37
37
  ```
38
38
 
39
39
  To build and install the development branch yourself from the latest source:
@@ -15,37 +15,37 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'marketplace'
18
- @available_add_ons = nil
19
18
  @installed_add_ons = nil
19
+ @available_add_ons = nil
20
20
  end
21
21
 
22
22
  ##
23
- # @param [String] sid The Available Add-on Sid that uniquely identifies this
23
+ # @param [String] sid The Installed Add-on Sid that uniquely identifies this
24
24
  # resource
25
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
26
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
27
- def available_add_ons(sid=:unset)
25
+ # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
26
+ # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
27
+ def installed_add_ons(sid=:unset)
28
28
  if sid.nil?
29
29
  raise ArgumentError, 'sid cannot be nil'
30
30
  elsif sid == :unset
31
- @available_add_ons ||= AvailableAddOnList.new self
31
+ @installed_add_ons ||= InstalledAddOnList.new self
32
32
  else
33
- AvailableAddOnContext.new(self, sid)
33
+ InstalledAddOnContext.new(self, sid)
34
34
  end
35
35
  end
36
36
 
37
37
  ##
38
- # @param [String] sid The Installed Add-on Sid that uniquely identifies this
38
+ # @param [String] sid The Available Add-on Sid that uniquely identifies this
39
39
  # resource
40
- # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
41
- # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
42
- def installed_add_ons(sid=:unset)
40
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
41
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
42
+ def available_add_ons(sid=:unset)
43
43
  if sid.nil?
44
44
  raise ArgumentError, 'sid cannot be nil'
45
45
  elsif sid == :unset
46
- @installed_add_ons ||= InstalledAddOnList.new self
46
+ @available_add_ons ||= AvailableAddOnList.new self
47
47
  else
48
- InstalledAddOnContext.new(self, sid)
48
+ AvailableAddOnContext.new(self, sid)
49
49
  end
50
50
  end
51
51
 
@@ -135,14 +135,6 @@ module Twilio
135
135
  self.hosted_numbers.hosted_number_orders(sid)
136
136
  end
137
137
 
138
- ##
139
- # @param [String] sid A 34 character string that uniquely identifies this Add-on.
140
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
141
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
142
- def available_add_ons(sid=:unset)
143
- self.marketplace.available_add_ons(sid)
144
- end
145
-
146
138
  ##
147
139
  # @param [String] sid 34 character string that uniquely identifies the Add-on.
148
140
  # This Sid can also be found in the Console on that specific Add-ons page as the
@@ -153,6 +145,14 @@ module Twilio
153
145
  self.marketplace.installed_add_ons(sid)
154
146
  end
155
147
 
148
+ ##
149
+ # @param [String] sid A 34 character string that uniquely identifies this Add-on.
150
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
151
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
152
+ def available_add_ons(sid=:unset)
153
+ self.marketplace.available_add_ons(sid)
154
+ end
155
+
156
156
  ##
157
157
  # @param [String] sid A 34 character string that uniquely identifies this
158
158
  # resource.
@@ -15,29 +15,14 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
- @compositions = nil
19
18
  @composition_hooks = nil
20
19
  @composition_settings = nil
21
20
  @recordings = nil
22
21
  @recording_settings = nil
22
+ @compositions = nil
23
23
  @rooms = nil
24
24
  end
25
25
 
26
- ##
27
- # @param [String] sid The Composition Sid that uniquely identifies the Composition
28
- # to fetch.
29
- # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
30
- # @return [Twilio::REST::Video::V1::CompositionList]
31
- def compositions(sid=:unset)
32
- if sid.nil?
33
- raise ArgumentError, 'sid cannot be nil'
34
- elsif sid == :unset
35
- @compositions ||= CompositionList.new self
36
- else
37
- CompositionContext.new(self, sid)
38
- end
39
- end
40
-
41
26
  ##
42
27
  # @param [String] sid The Composition Hook Sid that uniquely identifies the
43
28
  # Composition Hook to fetch.
@@ -80,6 +65,21 @@ module Twilio
80
65
  @recording_settings ||= RecordingSettingsContext.new self
81
66
  end
82
67
 
68
+ ##
69
+ # @param [String] sid The Composition Sid that uniquely identifies the Composition
70
+ # to fetch.
71
+ # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
72
+ # @return [Twilio::REST::Video::V1::CompositionList]
73
+ def compositions(sid=:unset)
74
+ if sid.nil?
75
+ raise ArgumentError, 'sid cannot be nil'
76
+ elsif sid == :unset
77
+ @compositions ||= CompositionList.new self
78
+ else
79
+ CompositionContext.new(self, sid)
80
+ end
81
+ end
82
+
83
83
  ##
84
84
  # @param [String] sid The Room Sid or name that uniquely identifies this resource.
85
85
  # @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
@@ -28,15 +28,6 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
- ##
32
- # @param [String] sid `CJxx…xx` A system-generated 34-character string that
33
- # uniquely identifies this Composition.
34
- # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
35
- # @return [Twilio::REST::Video::V1::CompositionList]
36
- def compositions(sid=:unset)
37
- self.v1.compositions(sid)
38
- end
39
-
40
31
  ##
41
32
  # @param [String] sid `HKxx…xx` A system-generated 34-character string that
42
33
  # uniquely identifies this Composition Hook.
@@ -67,6 +58,15 @@ module Twilio
67
58
  self.v1.recording_settings()
68
59
  end
69
60
 
61
+ ##
62
+ # @param [String] sid `CJxx…xx` A system-generated 34-character string that
63
+ # uniquely identifies this Composition.
64
+ # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
65
+ # @return [Twilio::REST::Video::V1::CompositionList]
66
+ def compositions(sid=:unset)
67
+ self.v1.compositions(sid)
68
+ end
69
+
70
70
  ##
71
71
  # @param [String] sid A system-generated 34-character string that uniquely
72
72
  # identifies this resource.
@@ -93,9 +93,10 @@ module Twilio
93
93
  # language:: Language to use
94
94
  # hints:: Speech recognition hints
95
95
  # barge_in:: Stop playing media upon speech
96
+ # debug:: Allow debug for gather
96
97
  # keyword_args:: additional attributes
97
- def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, **keyword_args)
98
- gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: barge_in, **keyword_args)
98
+ def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, debug: nil, **keyword_args)
99
+ gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: barge_in, debug: debug, **keyword_args)
99
100
 
100
101
  yield(gather) if block_given?
101
102
  append(gather)
@@ -773,9 +774,10 @@ module Twilio
773
774
  ##
774
775
  # Create a new <Room> element
775
776
  # name:: Room name
777
+ # participantIdentity:: Participant identity when connecting to the Room
776
778
  # keyword_args:: additional attributes
777
- def room(name, **keyword_args)
778
- append(Room.new(name, **keyword_args))
779
+ def room(name, participantIdentity: nil, **keyword_args)
780
+ append(Room.new(name, participantIdentity: participantIdentity, **keyword_args))
779
781
  end
780
782
  end
781
783
 
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.14.0'
2
+ VERSION = '5.14.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.14.0
4
+ version: 5.14.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-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -791,7 +791,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
791
791
  version: '0'
792
792
  requirements: []
793
793
  rubyforge_project:
794
- rubygems_version: 2.7.6
794
+ rubygems_version: 2.5.2.3
795
795
  signing_key:
796
796
  specification_version: 4
797
797
  summary: The official library for communicating with the Twilio REST API, building