twilio-ruby 5.21.0 → 5.21.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 +4 -4
- data/CHANGES.md +6 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +48 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 033d99c22bd8c3c4917074619d7339aa1dd541a235f35198a0cf6fa901a5bea4
|
4
|
+
data.tar.gz: c5d36cc844d6f9df0da19d03b91e3c84fa8c2877be215c25b3a63120bc252865
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac7dc68e920d156be2f1dac6c02af1da3d9b6d54cb9e2d93886d2807c84d34bec5f1ef14ffee43fdd7c89a9228732def563cfe6428a6aad527cbbdd85173b86
|
7
|
+
data.tar.gz: dca9534370604592a18c3ffaeb290abdcc3bac1f27dfa6b97b1950edc6a5d08d162ad14b55702d57a9dea8780ab8ef9debdb6a7c09da63ca3510d623a212edd7
|
data/CHANGES.md
CHANGED
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.21.
|
30
|
+
gem 'twilio-ruby', '~> 5.21.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.21.
|
36
|
+
gem install twilio-ruby -v 5.21.1
|
37
37
|
```
|
38
38
|
|
39
39
|
To build and install the development branch yourself from the latest source:
|
@@ -71,9 +71,9 @@ module Twilio
|
|
71
71
|
# '`#`' character has special meaning in a URL. If both `SendDigits` and
|
72
72
|
# `MachineDetection` parameters are provided, then `MachineDetection` will be
|
73
73
|
# ignored.
|
74
|
-
# @param [String] if_machine
|
75
|
-
#
|
76
|
-
#
|
74
|
+
# @param [String] if_machine Deprecated. Tell Twilio to try and determine if a
|
75
|
+
# machine (like voicemail) or a human has answered the call. Possible value are
|
76
|
+
# `Continue` and `Hangup`.
|
77
77
|
# @param [String] timeout The integer number of seconds that we should allow the
|
78
78
|
# phone to ring before assuming there is no answer. The default is `60` seconds
|
79
79
|
# and the maximum is `600` seconds. For some call flows, we will add a 5-second
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -297,7 +297,54 @@ describe 'Call' do
|
|
297
297
|
"status": "completed",
|
298
298
|
"subresource_uris": {
|
299
299
|
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
|
300
|
-
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
|
300
|
+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
|
301
|
+
"feedback": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json",
|
302
|
+
"feedback_summaries": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/FeedbackSummary.json"
|
303
|
+
},
|
304
|
+
"to": "+14158675309",
|
305
|
+
"to_formatted": "(415) 867-5309",
|
306
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
307
|
+
}
|
308
|
+
]
|
309
|
+
))
|
310
|
+
|
311
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
312
|
+
.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
313
|
+
|
314
|
+
expect(actual).to_not eq(nil)
|
315
|
+
end
|
316
|
+
|
317
|
+
it "receives cancel responses" do
|
318
|
+
@holodeck.mock(Twilio::Response.new(
|
319
|
+
200,
|
320
|
+
%q[
|
321
|
+
{
|
322
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
323
|
+
"annotation": null,
|
324
|
+
"answered_by": null,
|
325
|
+
"api_version": "2010-04-01",
|
326
|
+
"caller_name": null,
|
327
|
+
"date_created": "Tue, 31 Aug 2010 20:36:28 +0000",
|
328
|
+
"date_updated": "Tue, 31 Aug 2010 20:36:44 +0000",
|
329
|
+
"direction": "inbound",
|
330
|
+
"duration": "15",
|
331
|
+
"end_time": "Tue, 31 Aug 2010 20:36:44 +0000",
|
332
|
+
"forwarded_from": "+141586753093",
|
333
|
+
"from": "+14158675308",
|
334
|
+
"from_formatted": "(415) 867-5308",
|
335
|
+
"group_sid": null,
|
336
|
+
"parent_call_sid": null,
|
337
|
+
"phone_number_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
338
|
+
"price": "-0.03000",
|
339
|
+
"price_unit": "USD",
|
340
|
+
"sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
341
|
+
"start_time": "Tue, 31 Aug 2010 20:36:29 +0000",
|
342
|
+
"status": "canceled",
|
343
|
+
"subresource_uris": {
|
344
|
+
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
|
345
|
+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
|
346
|
+
"feedback": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json",
|
347
|
+
"feedback_summaries": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/FeedbackSummary.json"
|
301
348
|
},
|
302
349
|
"to": "+14158675309",
|
303
350
|
"to_formatted": "(415) 867-5309",
|
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.21.
|
4
|
+
version: 5.21.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: 2019-03-
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -851,7 +851,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
851
851
|
- !ruby/object:Gem::Version
|
852
852
|
version: '0'
|
853
853
|
requirements: []
|
854
|
-
rubygems_version: 3.0.
|
854
|
+
rubygems_version: 3.0.2
|
855
855
|
signing_key:
|
856
856
|
specification_version: 4
|
857
857
|
summary: The official library for communicating with the Twilio REST API, building
|