twilio-ruby 5.10.4 → 5.10.5
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 +4 -4
- data/CHANGES.md +10 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +15 -15
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/twiml/messaging_response_spec.rb +17 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7002623d1c11cda3d127cb2ef84cb57a80505f8
|
4
|
+
data.tar.gz: 3b5a00a000a072b22d6d771533c2c7181611e9b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 684ad0135b1149ee74dc4926e9d1a9c2ecb47e1e33e7f2b56630cf3b7984e138e678f1d0f95c5bf505205b3ca0ccf966cb736a2b1b6529fff73d26b03bf741de
|
7
|
+
data.tar.gz: 40f1c9e5ce371ca3656d8d714aff33929f28db4f8531e8877fa12fb085835599df69df2f49234268b8bd4b1277058d5f6048ff6004d086894ba47bf5334262c2
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2018-06-21] Version 5.10.5
|
5
|
+
----------------------------
|
6
|
+
**Library**
|
7
|
+
- PR #414: Added test for mixed content. Thanks to @ekarson!
|
8
|
+
|
9
|
+
**Video**
|
10
|
+
- Allow user to set `ContentDisposition` when obtaining media URLs for Room Recordings and Compositions
|
11
|
+
- Add Composition Settings resource
|
12
|
+
|
13
|
+
|
4
14
|
[2018-06-19] Version 5.10.4
|
5
15
|
----------------------------
|
6
16
|
**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.10.
|
30
|
+
gem 'twilio-ruby', '~> 5.10.5'
|
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.10.
|
36
|
+
gem install twilio-ruby -v 5.10.5
|
37
37
|
```
|
38
38
|
|
39
39
|
To build and install the development branch yourself from the latest source:
|
@@ -134,6 +134,14 @@ module Twilio
|
|
134
134
|
self.hosted_numbers.hosted_number_orders(sid)
|
135
135
|
end
|
136
136
|
|
137
|
+
##
|
138
|
+
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
139
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
140
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
141
|
+
def available_add_ons(sid=:unset)
|
142
|
+
self.marketplace.available_add_ons(sid)
|
143
|
+
end
|
144
|
+
|
137
145
|
##
|
138
146
|
# @param [String] sid 34 character string that uniquely identifies the Add-on.
|
139
147
|
# This Sid can also be found in the Console on that specific Add-ons page as the
|
@@ -144,14 +152,6 @@ module Twilio
|
|
144
152
|
self.marketplace.installed_add_ons(sid)
|
145
153
|
end
|
146
154
|
|
147
|
-
##
|
148
|
-
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
149
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
150
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
151
|
-
def available_add_ons(sid=:unset)
|
152
|
-
self.marketplace.available_add_ons(sid)
|
153
|
-
end
|
154
|
-
|
155
155
|
##
|
156
156
|
# @param [String] sid The sid
|
157
157
|
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
@@ -15,37 +15,37 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'marketplace'
|
18
|
-
@installed_add_ons = nil
|
19
18
|
@available_add_ons = nil
|
19
|
+
@installed_add_ons = nil
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] sid The
|
23
|
+
# @param [String] sid The Available Add-on Sid that uniquely identifies this
|
24
24
|
# resource
|
25
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
26
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
27
|
-
def
|
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)
|
28
28
|
if sid.nil?
|
29
29
|
raise ArgumentError, 'sid cannot be nil'
|
30
30
|
elsif sid == :unset
|
31
|
-
@
|
31
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
32
32
|
else
|
33
|
-
|
33
|
+
AvailableAddOnContext.new(self, sid)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
##
|
38
|
-
# @param [String] sid The
|
38
|
+
# @param [String] sid The Installed Add-on Sid that uniquely identifies this
|
39
39
|
# resource
|
40
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
41
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
42
|
-
def
|
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)
|
43
43
|
if sid.nil?
|
44
44
|
raise ArgumentError, 'sid cannot be nil'
|
45
45
|
elsif sid == :unset
|
46
|
-
@
|
46
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
47
47
|
else
|
48
|
-
|
48
|
+
InstalledAddOnContext.new(self, sid)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -28,15 +28,6 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
-
##
|
32
|
-
# @param [String] sid `RTxx…xx` A system-generated 34-character string that
|
33
|
-
# uniquely identifies this Recording.
|
34
|
-
# @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
|
35
|
-
# @return [Twilio::REST::Video::V1::RecordingList]
|
36
|
-
def recordings(sid=:unset)
|
37
|
-
self.v1.recordings(sid)
|
38
|
-
end
|
39
|
-
|
40
31
|
##
|
41
32
|
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
42
33
|
# uniquely identifies this Composition.
|
@@ -46,6 +37,15 @@ module Twilio
|
|
46
37
|
self.v1.compositions(sid)
|
47
38
|
end
|
48
39
|
|
40
|
+
##
|
41
|
+
# @param [String] sid `RTxx…xx` A system-generated 34-character string that
|
42
|
+
# uniquely identifies this Recording.
|
43
|
+
# @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
|
44
|
+
# @return [Twilio::REST::Video::V1::RecordingList]
|
45
|
+
def recordings(sid=:unset)
|
46
|
+
self.v1.recordings(sid)
|
47
|
+
end
|
48
|
+
|
49
49
|
##
|
50
50
|
# @param [String] sid A system-generated 34-character string that uniquely
|
51
51
|
# identifies this resource.
|
@@ -15,38 +15,38 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@recordings = nil
|
19
18
|
@compositions = nil
|
19
|
+
@recordings = nil
|
20
20
|
@rooms = nil
|
21
21
|
end
|
22
22
|
|
23
23
|
##
|
24
|
-
# @param [String] sid The
|
25
|
-
# fetch.
|
26
|
-
# @return [Twilio::REST::Video::V1::
|
27
|
-
# @return [Twilio::REST::Video::V1::
|
28
|
-
def
|
24
|
+
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
25
|
+
# to fetch.
|
26
|
+
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
27
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
28
|
+
def compositions(sid=:unset)
|
29
29
|
if sid.nil?
|
30
30
|
raise ArgumentError, 'sid cannot be nil'
|
31
31
|
elsif sid == :unset
|
32
|
-
@
|
32
|
+
@compositions ||= CompositionList.new self
|
33
33
|
else
|
34
|
-
|
34
|
+
CompositionContext.new(self, sid)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
##
|
39
|
-
# @param [String] sid The
|
40
|
-
#
|
41
|
-
# @return [Twilio::REST::Video::V1::
|
42
|
-
# @return [Twilio::REST::Video::V1::
|
43
|
-
def
|
39
|
+
# @param [String] sid The Recording Sid that uniquely identifies the Recording to
|
40
|
+
# fetch.
|
41
|
+
# @return [Twilio::REST::Video::V1::RecordingContext] if sid was passed.
|
42
|
+
# @return [Twilio::REST::Video::V1::RecordingList]
|
43
|
+
def recordings(sid=:unset)
|
44
44
|
if sid.nil?
|
45
45
|
raise ArgumentError, 'sid cannot be nil'
|
46
46
|
elsif sid == :unset
|
47
|
-
@
|
47
|
+
@recordings ||= RecordingList.new self
|
48
48
|
else
|
49
|
-
|
49
|
+
RecordingContext.new(self, sid)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -52,6 +52,23 @@ describe Twilio::TwiML::MessagingResponse do
|
|
52
52
|
expect(parse(twiml)).to be_equivalent_to(expected_doc).respecting_element_order
|
53
53
|
end
|
54
54
|
|
55
|
+
it 'should allow mixed text and generic nodes' do
|
56
|
+
expected_doc = parse <<-XML
|
57
|
+
<Response>
|
58
|
+
before
|
59
|
+
<Child>content</Child>
|
60
|
+
after
|
61
|
+
</Response>
|
62
|
+
XML
|
63
|
+
|
64
|
+
twiml = Twilio::TwiML::MessagingResponse.new
|
65
|
+
twiml.add_text('before')
|
66
|
+
.add_child('Child', 'content')
|
67
|
+
.add_text('after')
|
68
|
+
|
69
|
+
expect(parse(twiml)).to be_equivalent_to(expected_doc).respecting_element_order
|
70
|
+
end
|
71
|
+
|
55
72
|
it 'should allow populated response' do
|
56
73
|
expected_doc = parse <<-XML
|
57
74
|
<Response>
|
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.10.
|
4
|
+
version: 5.10.5
|
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-06-
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -752,7 +752,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
752
752
|
version: '0'
|
753
753
|
requirements: []
|
754
754
|
rubyforge_project:
|
755
|
-
rubygems_version: 2.
|
755
|
+
rubygems_version: 2.6.11
|
756
756
|
signing_key:
|
757
757
|
specification_version: 4
|
758
758
|
summary: The official library for communicating with the Twilio REST API, building
|