twilio-ruby 3.11.5 → 3.12.3
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 +13 -5
- data/.gitignore +1 -1
- data/.travis.yml +20 -8
- data/AUTHORS.md +29 -25
- data/{CHANGES → CHANGES.md} +45 -1
- data/Gemfile +8 -1
- data/{LICENSE → LICENSE.md} +1 -1
- data/Makefile +1 -2
- data/README.md +57 -26
- data/Rakefile +8 -10
- data/docs/getting-started.rst +3 -3
- data/docs/usage/applications.rst +5 -5
- data/docs/usage/basics.rst +17 -4
- data/docs/usage/caller-ids.rst +2 -2
- data/docs/usage/conferences.rst +5 -5
- data/docs/usage/errors.rst +1 -1
- data/docs/usage/messages.rst +6 -6
- data/docs/usage/notifications.rst +2 -2
- data/docs/usage/phone-calls.rst +7 -7
- data/docs/usage/phone-numbers.rst +12 -12
- data/docs/usage/queues.rst +6 -6
- data/docs/usage/recordings.rst +5 -5
- data/docs/usage/sip.rst +5 -5
- data/docs/usage/token-generation.rst +18 -3
- data/docs/usage/transcriptions.rst +1 -1
- data/docs/usage/twiml.rst +1 -1
- data/docs/usage/validation.rst +27 -1
- data/examples/print-call-log.rb +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +40 -0
- data/lib/twilio-ruby/rest/call_feedback.rb +28 -0
- data/lib/twilio-ruby/rest/call_feedback_summary.rb +13 -0
- data/lib/twilio-ruby/rest/calls.rb +6 -1
- data/lib/twilio-ruby/rest/client.rb +43 -5
- data/lib/twilio-ruby/rest/list_resource.rb +10 -4
- data/lib/twilio-ruby/rest/usage/records.rb +2 -2
- data/lib/twilio-ruby/twiml/response.rb +1 -0
- data/lib/twilio-ruby/util/capability.rb +6 -3
- data/lib/twilio-ruby/util/configuration.rb +7 -0
- data/lib/twilio-ruby/util/request_validator.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +25 -0
- data/spec/rack/twilio_webhook_authentication_spec.rb +76 -0
- data/spec/rest/account_spec.rb +20 -20
- data/spec/rest/call_feedback_spec.rb +12 -0
- data/spec/rest/call_feedback_summary_spec.rb +9 -0
- data/spec/rest/call_spec.rb +4 -4
- data/spec/rest/client_spec.rb +114 -38
- data/spec/rest/conference_spec.rb +2 -2
- data/spec/rest/instance_resource_spec.rb +3 -3
- data/spec/rest/message_spec.rb +2 -2
- data/spec/rest/numbers_spec.rb +12 -12
- data/spec/rest/queue_spec.rb +2 -2
- data/spec/rest/recording_spec.rb +2 -2
- data/spec/spec_helper.rb +12 -3
- data/spec/support/fakeweb.rb +2 -0
- data/spec/twilio_spec.rb +15 -0
- data/spec/util/capability_spec.rb +167 -118
- data/spec/util/configuration_spec.rb +13 -0
- data/spec/util/request_validator_spec.rb +31 -3
- data/spec/util/url_encode_spec.rb +1 -1
- data/twilio-ruby.gemspec +28 -27
- metadata +46 -71
metadata
CHANGED
@@ -1,128 +1,87 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Benton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.1.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.1.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jwt
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 1.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 1.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '1.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.6.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.6.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: fakeweb
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.3.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 1.3.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rack
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 1.3.0
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 1.3.0
|
68
|
+
version: '1.5'
|
111
69
|
description: A simple library for communicating with the Twilio REST API, building
|
112
70
|
TwiML, and generating Twilio Client Capability Tokens
|
113
|
-
email:
|
71
|
+
email:
|
72
|
+
- andrew@twilio.com
|
114
73
|
executables: []
|
115
74
|
extensions: []
|
116
75
|
extra_rdoc_files:
|
117
76
|
- README.md
|
118
|
-
- LICENSE
|
77
|
+
- LICENSE.md
|
119
78
|
files:
|
120
|
-
-
|
121
|
-
-
|
79
|
+
- .gitignore
|
80
|
+
- .travis.yml
|
122
81
|
- AUTHORS.md
|
123
|
-
- CHANGES
|
82
|
+
- CHANGES.md
|
124
83
|
- Gemfile
|
125
|
-
- LICENSE
|
84
|
+
- LICENSE.md
|
126
85
|
- Makefile
|
127
86
|
- README.md
|
128
87
|
- Rakefile
|
@@ -165,6 +124,7 @@ files:
|
|
165
124
|
- docs/usage/validation.rst
|
166
125
|
- examples/examples.rb
|
167
126
|
- examples/print-call-log.rb
|
127
|
+
- lib/rack/twilio_webhook_authentication.rb
|
168
128
|
- lib/twilio-ruby.rb
|
169
129
|
- lib/twilio-ruby/rest/accounts.rb
|
170
130
|
- lib/twilio-ruby/rest/applications.rb
|
@@ -174,6 +134,8 @@ files:
|
|
174
134
|
- lib/twilio-ruby/rest/available_phone_numbers/local.rb
|
175
135
|
- lib/twilio-ruby/rest/available_phone_numbers/mobile.rb
|
176
136
|
- lib/twilio-ruby/rest/available_phone_numbers/toll_free.rb
|
137
|
+
- lib/twilio-ruby/rest/call_feedback.rb
|
138
|
+
- lib/twilio-ruby/rest/call_feedback_summary.rb
|
177
139
|
- lib/twilio-ruby/rest/calls.rb
|
178
140
|
- lib/twilio-ruby/rest/client.rb
|
179
141
|
- lib/twilio-ruby/rest/conferences.rb
|
@@ -213,9 +175,13 @@ files:
|
|
213
175
|
- lib/twilio-ruby/twiml/response.rb
|
214
176
|
- lib/twilio-ruby/util.rb
|
215
177
|
- lib/twilio-ruby/util/capability.rb
|
178
|
+
- lib/twilio-ruby/util/configuration.rb
|
216
179
|
- lib/twilio-ruby/util/request_validator.rb
|
217
180
|
- lib/twilio-ruby/version.rb
|
181
|
+
- spec/rack/twilio_webhook_authentication_spec.rb
|
218
182
|
- spec/rest/account_spec.rb
|
183
|
+
- spec/rest/call_feedback_spec.rb
|
184
|
+
- spec/rest/call_feedback_summary_spec.rb
|
219
185
|
- spec/rest/call_spec.rb
|
220
186
|
- spec/rest/client_spec.rb
|
221
187
|
- spec/rest/conference_spec.rb
|
@@ -225,7 +191,10 @@ files:
|
|
225
191
|
- spec/rest/queue_spec.rb
|
226
192
|
- spec/rest/recording_spec.rb
|
227
193
|
- spec/spec_helper.rb
|
194
|
+
- spec/support/fakeweb.rb
|
195
|
+
- spec/twilio_spec.rb
|
228
196
|
- spec/util/capability_spec.rb
|
197
|
+
- spec/util/configuration_spec.rb
|
229
198
|
- spec/util/request_validator_spec.rb
|
230
199
|
- spec/util/url_encode_spec.rb
|
231
200
|
- twilio-ruby.gemspec
|
@@ -235,33 +204,36 @@ licenses:
|
|
235
204
|
metadata: {}
|
236
205
|
post_install_message:
|
237
206
|
rdoc_options:
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
207
|
+
- --line-numbers
|
208
|
+
- --inline-source
|
209
|
+
- --title
|
241
210
|
- twilio-ruby
|
242
|
-
-
|
211
|
+
- --main
|
243
212
|
- README.md
|
244
213
|
require_paths:
|
245
214
|
- lib
|
246
215
|
required_ruby_version: !ruby/object:Gem::Requirement
|
247
216
|
requirements:
|
248
|
-
- -
|
217
|
+
- - ! '>='
|
249
218
|
- !ruby/object:Gem::Version
|
250
|
-
version:
|
219
|
+
version: 1.8.7
|
251
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
221
|
requirements:
|
253
|
-
- -
|
222
|
+
- - ! '>='
|
254
223
|
- !ruby/object:Gem::Version
|
255
224
|
version: '0'
|
256
225
|
requirements: []
|
257
226
|
rubyforge_project:
|
258
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.4.1
|
259
228
|
signing_key:
|
260
229
|
specification_version: 4
|
261
230
|
summary: A simple library for communicating with the Twilio REST API, building TwiML,
|
262
231
|
and generating Twilio Client Capability Tokens
|
263
232
|
test_files:
|
233
|
+
- spec/rack/twilio_webhook_authentication_spec.rb
|
264
234
|
- spec/rest/account_spec.rb
|
235
|
+
- spec/rest/call_feedback_spec.rb
|
236
|
+
- spec/rest/call_feedback_summary_spec.rb
|
265
237
|
- spec/rest/call_spec.rb
|
266
238
|
- spec/rest/client_spec.rb
|
267
239
|
- spec/rest/conference_spec.rb
|
@@ -271,6 +243,9 @@ test_files:
|
|
271
243
|
- spec/rest/queue_spec.rb
|
272
244
|
- spec/rest/recording_spec.rb
|
273
245
|
- spec/spec_helper.rb
|
246
|
+
- spec/support/fakeweb.rb
|
247
|
+
- spec/twilio_spec.rb
|
274
248
|
- spec/util/capability_spec.rb
|
249
|
+
- spec/util/configuration_spec.rb
|
275
250
|
- spec/util/request_validator_spec.rb
|
276
251
|
- spec/util/url_encode_spec.rb
|