twilio-ruby 5.12.0 → 5.12.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
2
  SHA1:
3
- metadata.gz: 02849d8df876c76f3c0e29a3d4ec38493bcf5ecd
4
- data.tar.gz: f4514adc1ef619b30c6b0c42c92613acf11d1465
3
+ metadata.gz: 2dd637e607cf8d303bb213be5ea8a1f1ce75441f
4
+ data.tar.gz: 00405a6defe283ec52708f85925f1f319b339ca0
5
5
  SHA512:
6
- metadata.gz: 641f98ebe268e4d053634aab266a8bd82557dd4707a8e1d1fb975a3f21d89f3e61079ce2a27a6250aedf8f446e3ecac40d78571f8171b7e43ff8021df47f2d22
7
- data.tar.gz: b83458bd8141c8aabb1c4c8430a3d848ff154b572677462f1f581284475ee8c581a21f3defb403e2e497ac870a903dc23427103f2707f8262e9277e94ef541f3
6
+ metadata.gz: 9e0d6dc89387fd633c430dfbbed872cd83ea06f802509247f3ab734558ee3195d7bfc42c48fdbb8236cd6fe2a9bb620f0dbf4780243751b47ebc4046f4a701fc
7
+ data.tar.gz: 6bf0db05b1eba98295fc75ff79de0a6d26c64c9c1eef51f3cb3449542e30f3e5e61bfbeef2940eb4472c10f8b6adfb3ec9a366f86a9cd8b419f1f24838f46c03
data/CHANGES.md CHANGED
@@ -1,6 +1,15 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2018-08-09] Version 5.12.1
5
+ ----------------------------
6
+ **Library**
7
+ - PR #426: Add a test showing how to emit "interpret-as". Thanks to @ekarson!
8
+
9
+ **Studio**
10
+ - Studio is now GA
11
+
12
+
4
13
  [2018-08-03] Version 5.12.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.12.0'
30
+ gem 'twilio-ruby', '~> 5.12.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.12.0
36
+ gem install twilio-ruby -v 5.12.1
37
37
  ```
38
38
 
39
39
  To build and install the development branch yourself from the latest source:
@@ -154,8 +154,9 @@ module Twilio
154
154
  # @param [String] to The phone number or SIP address to send the fax to,
155
155
  # E.164-formatted.
156
156
  # @param [String] media_url The HTTP or HTTPS URL where the fax media PDF resides
157
- # (see our [security](https://www.twilio.com/docs/security) page for information
158
- # on how to ensure the request for your media comes from Twilio)
157
+ # that Twilio will make a GET request to. (See our
158
+ # [security](https://www.twilio.com/docs/security) page for information on how to
159
+ # ensure the request for your media comes from Twilio)
159
160
  # @param [fax.Quality] quality A [quality
160
161
  # value](https://www.twilio.com/docs/api/fax/rest/faxes#fax-quality-values), which
161
162
  # defaults to `fine`
@@ -23,7 +23,6 @@ module Twilio
23
23
  @deployed_devices = nil
24
24
  @hosted_numbers = nil
25
25
  @marketplace = nil
26
- @studio = nil
27
26
  @acc_security = nil
28
27
  @sync = nil
29
28
  @understand = nil
@@ -54,12 +53,6 @@ module Twilio
54
53
  @marketplace ||= Marketplace.new self
55
54
  end
56
55
 
57
- ##
58
- # Version studio of preview
59
- def studio
60
- @studio ||= Studio.new self
61
- end
62
-
63
56
  ##
64
57
  # Version acc_security of preview
65
58
  def acc_security
@@ -145,14 +138,6 @@ module Twilio
145
138
  self.marketplace.available_add_ons(sid)
146
139
  end
147
140
 
148
- ##
149
- # @param [String] sid A 34 character string that uniquely identifies this Flow.
150
- # @return [Twilio::REST::Preview::Studio::FlowInstance] if sid was passed.
151
- # @return [Twilio::REST::Preview::Studio::FlowList]
152
- def flows(sid=:unset)
153
- self.studio.flows(sid)
154
- end
155
-
156
141
  ##
157
142
  # @param [String] sid The sid
158
143
  # @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Studio < Domain
12
12
  class V1 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class FlowList < ListResource
16
14
  ##
17
15
  # Initialize the FlowList
@@ -114,8 +112,6 @@ module Twilio
114
112
  end
115
113
  end
116
114
 
117
- ##
118
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
119
115
  class FlowPage < Page
120
116
  ##
121
117
  # Initialize the FlowPage
@@ -145,8 +141,6 @@ module Twilio
145
141
  end
146
142
  end
147
143
 
148
- ##
149
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
150
144
  class FlowContext < InstanceContext
151
145
  ##
152
146
  # Initialize the FlowContext
@@ -231,8 +225,6 @@ module Twilio
231
225
  end
232
226
  end
233
227
 
234
- ##
235
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
236
228
  class FlowInstance < InstanceResource
237
229
  ##
238
230
  # Initialize the FlowInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Studio < Domain
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class EngagementList < ListResource
17
15
  ##
18
16
  # Initialize the EngagementList
@@ -147,8 +145,6 @@ module Twilio
147
145
  end
148
146
  end
149
147
 
150
- ##
151
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
148
  class EngagementPage < Page
153
149
  ##
154
150
  # Initialize the EngagementPage
@@ -178,8 +174,6 @@ module Twilio
178
174
  end
179
175
  end
180
176
 
181
- ##
182
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
183
177
  class EngagementContext < InstanceContext
184
178
  ##
185
179
  # Initialize the EngagementContext
@@ -255,8 +249,6 @@ module Twilio
255
249
  end
256
250
  end
257
251
 
258
- ##
259
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
260
252
  class EngagementInstance < InstanceResource
261
253
  ##
262
254
  # Initialize the EngagementInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class EngagementContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class EngagementContextList < ListResource
18
16
  ##
19
17
  # Initialize the EngagementContextList
@@ -35,8 +33,6 @@ module Twilio
35
33
  end
36
34
  end
37
35
 
38
- ##
39
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
40
36
  class EngagementContextPage < Page
41
37
  ##
42
38
  # Initialize the EngagementContextPage
@@ -71,8 +67,6 @@ module Twilio
71
67
  end
72
68
  end
73
69
 
74
- ##
75
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
76
70
  class EngagementContextContext < InstanceContext
77
71
  ##
78
72
  # Initialize the EngagementContextContext
@@ -116,8 +110,6 @@ module Twilio
116
110
  end
117
111
  end
118
112
 
119
- ##
120
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
121
113
  class EngagementContextInstance < InstanceResource
122
114
  ##
123
115
  # Initialize the EngagementContextInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class EngagementContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class StepList < ListResource
18
16
  ##
19
17
  # Initialize the StepList
@@ -118,8 +116,6 @@ module Twilio
118
116
  end
119
117
  end
120
118
 
121
- ##
122
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
123
119
  class StepPage < Page
124
120
  ##
125
121
  # Initialize the StepPage
@@ -154,8 +150,6 @@ module Twilio
154
150
  end
155
151
  end
156
152
 
157
- ##
158
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
159
153
  class StepContext < InstanceContext
160
154
  ##
161
155
  # Initialize the StepContext
@@ -212,8 +206,6 @@ module Twilio
212
206
  end
213
207
  end
214
208
 
215
- ##
216
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
217
209
  class StepInstance < InstanceResource
218
210
  ##
219
211
  # Initialize the StepInstance
@@ -13,8 +13,6 @@ module Twilio
13
13
  class FlowContext < InstanceContext
14
14
  class EngagementContext < InstanceContext
15
15
  class StepContext < InstanceContext
16
- ##
17
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
18
16
  class StepContextList < ListResource
19
17
  ##
20
18
  # Initialize the StepContextList
@@ -38,8 +36,6 @@ module Twilio
38
36
  end
39
37
  end
40
38
 
41
- ##
42
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
43
39
  class StepContextPage < Page
44
40
  ##
45
41
  # Initialize the StepContextPage
@@ -75,8 +71,6 @@ module Twilio
75
71
  end
76
72
  end
77
73
 
78
- ##
79
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
80
74
  class StepContextContext < InstanceContext
81
75
  ##
82
76
  # Initialize the StepContextContext
@@ -122,8 +116,6 @@ module Twilio
122
116
  end
123
117
  end
124
118
 
125
- ##
126
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
127
119
  class StepContextInstance < InstanceResource
128
120
  ##
129
121
  # Initialize the StepContextInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Studio < Domain
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class ExecutionList < ListResource
17
15
  ##
18
16
  # Initialize the ExecutionList
@@ -147,8 +145,6 @@ module Twilio
147
145
  end
148
146
  end
149
147
 
150
- ##
151
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
148
  class ExecutionPage < Page
153
149
  ##
154
150
  # Initialize the ExecutionPage
@@ -178,8 +174,6 @@ module Twilio
178
174
  end
179
175
  end
180
176
 
181
- ##
182
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
183
177
  class ExecutionContext < InstanceContext
184
178
  ##
185
179
  # Initialize the ExecutionContext
@@ -259,8 +253,6 @@ module Twilio
259
253
  end
260
254
  end
261
255
 
262
- ##
263
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
264
256
  class ExecutionInstance < InstanceResource
265
257
  ##
266
258
  # Initialize the ExecutionInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionContextList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionContextList
@@ -35,8 +33,6 @@ module Twilio
35
33
  end
36
34
  end
37
35
 
38
- ##
39
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
40
36
  class ExecutionContextPage < Page
41
37
  ##
42
38
  # Initialize the ExecutionContextPage
@@ -71,8 +67,6 @@ module Twilio
71
67
  end
72
68
  end
73
69
 
74
- ##
75
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
76
70
  class ExecutionContextContext < InstanceContext
77
71
  ##
78
72
  # Initialize the ExecutionContextContext
@@ -116,8 +110,6 @@ module Twilio
116
110
  end
117
111
  end
118
112
 
119
- ##
120
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
121
113
  class ExecutionContextInstance < InstanceResource
122
114
  ##
123
115
  # Initialize the ExecutionContextInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionStepList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionStepList
@@ -118,8 +116,6 @@ module Twilio
118
116
  end
119
117
  end
120
118
 
121
- ##
122
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
123
119
  class ExecutionStepPage < Page
124
120
  ##
125
121
  # Initialize the ExecutionStepPage
@@ -154,8 +150,6 @@ module Twilio
154
150
  end
155
151
  end
156
152
 
157
- ##
158
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
159
153
  class ExecutionStepContext < InstanceContext
160
154
  ##
161
155
  # Initialize the ExecutionStepContext
@@ -217,8 +211,6 @@ module Twilio
217
211
  end
218
212
  end
219
213
 
220
- ##
221
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
222
214
  class ExecutionStepInstance < InstanceResource
223
215
  ##
224
216
  # Initialize the ExecutionStepInstance
@@ -13,8 +13,6 @@ module Twilio
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
15
  class ExecutionStepContext < InstanceContext
16
- ##
17
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
18
16
  class ExecutionStepContextList < ListResource
19
17
  ##
20
18
  # Initialize the ExecutionStepContextList
@@ -38,8 +36,6 @@ module Twilio
38
36
  end
39
37
  end
40
38
 
41
- ##
42
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
43
39
  class ExecutionStepContextPage < Page
44
40
  ##
45
41
  # Initialize the ExecutionStepContextPage
@@ -75,8 +71,6 @@ module Twilio
75
71
  end
76
72
  end
77
73
 
78
- ##
79
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
80
74
  class ExecutionStepContextContext < InstanceContext
81
75
  ##
82
76
  # Initialize the ExecutionStepContextContext
@@ -122,8 +116,6 @@ module Twilio
122
116
  end
123
117
  end
124
118
 
125
- ##
126
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
127
119
  class ExecutionStepContextInstance < InstanceResource
128
120
  ##
129
121
  # Initialize the ExecutionStepContextInstance
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.12.0'
2
+ VERSION = '5.12.1'
3
3
  end
@@ -803,5 +803,22 @@ describe Twilio::TwiML::VoiceResponse do
803
803
  doc = parse(response)
804
804
  expect(doc).to be_equivalent_to(expected_doc).respecting_element_order
805
805
  end
806
+
807
+ it 'should render ssml attributes correctly' do
808
+ expected_doc = parse <<-XML
809
+ <Response>
810
+ <Say>
811
+ <say-as interpret-as="spell-out">Twilio</say-as>
812
+ </Say>
813
+ </Response>
814
+ XML
815
+
816
+ response = Twilio::TwiML::VoiceResponse.new
817
+ response.say do |s|
818
+ s.say_as('Twilio', interpretAs: 'spell-out')
819
+ end
820
+
821
+ expect(parse(response)).to be_equivalent_to(expected_doc).respecting_element_order
822
+ end
806
823
  end
807
824
  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.12.0
4
+ version: 5.12.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-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -330,10 +330,6 @@ files:
330
330
  - lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
331
331
  - lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
332
332
  - lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
333
- - lib/twilio-ruby/rest/preview/studio.rb
334
- - lib/twilio-ruby/rest/preview/studio/flow.rb
335
- - lib/twilio-ruby/rest/preview/studio/flow/engagement.rb
336
- - lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb
337
333
  - lib/twilio-ruby/rest/preview/sync.rb
338
334
  - lib/twilio-ruby/rest/preview/sync/service.rb
339
335
  - lib/twilio-ruby/rest/preview/sync/service/document.rb
@@ -614,9 +610,6 @@ files:
614
610
  - spec/integration/preview/marketplace/available_add_on_spec.rb
615
611
  - spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb
616
612
  - spec/integration/preview/marketplace/installed_add_on_spec.rb
617
- - spec/integration/preview/studio/flow/engagement/step_spec.rb
618
- - spec/integration/preview/studio/flow/engagement_spec.rb
619
- - spec/integration/preview/studio/flow_spec.rb
620
613
  - spec/integration/preview/sync/service/document/document_permission_spec.rb
621
614
  - spec/integration/preview/sync/service/document_spec.rb
622
615
  - spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb
@@ -758,7 +751,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
758
751
  version: '0'
759
752
  requirements: []
760
753
  rubyforge_project:
761
- rubygems_version: 2.5.1
754
+ rubygems_version: 2.5.2.3
762
755
  signing_key:
763
756
  specification_version: 4
764
757
  summary: The official library for communicating with the Twilio REST API, building
@@ -917,9 +910,6 @@ test_files:
917
910
  - spec/integration/preview/marketplace/available_add_on_spec.rb
918
911
  - spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb
919
912
  - spec/integration/preview/marketplace/installed_add_on_spec.rb
920
- - spec/integration/preview/studio/flow/engagement/step_spec.rb
921
- - spec/integration/preview/studio/flow/engagement_spec.rb
922
- - spec/integration/preview/studio/flow_spec.rb
923
913
  - spec/integration/preview/sync/service/document/document_permission_spec.rb
924
914
  - spec/integration/preview/sync/service/document_spec.rb
925
915
  - spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb