twilio-ruby 5.31.1 → 5.31.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +4 -3
- data/CHANGES.md +16 -0
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby.rb +5 -5
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/numbers.rb +44 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +189 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +482 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +361 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +281 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +374 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +281 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +30 -5
- data/lib/twilio-ruby/rest/studio.rb +16 -3
- data/lib/twilio-ruby/rest/studio/v2.rb +50 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +451 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +343 -0
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +126 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +198 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +226 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +214 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +143 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +226 -0
- data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +133 -0
- data/spec/integration/numbers/v2/regulatory_compliance_spec.rb +12 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +2 -2
- data/spec/integration/studio/v2/flow/flow_revision_spec.rb +112 -0
- data/spec/integration/studio/v2/flow_spec.rb +234 -0
- data/spec/integration/studio/v2/flow_validate_spec.rb +42 -0
- data/twilio-ruby.gemspec +2 -2
- metadata +39 -6
@@ -33,13 +33,13 @@ describe 'Log' do
|
|
33
33
|
{
|
34
34
|
"logs": [],
|
35
35
|
"meta": {
|
36
|
-
"first_page_url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Logs?FunctionSid=ZH00000000000000000000000000000000&PageSize=50&Page=0",
|
36
|
+
"first_page_url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Logs?StartDate=2018-11-10T20%3A00%3A00Z&EndDate=2018-12-10T20%3A00%3A00Z&FunctionSid=ZH00000000000000000000000000000000&PageSize=50&Page=0",
|
37
37
|
"key": "logs",
|
38
38
|
"next_page_url": null,
|
39
39
|
"page": 0,
|
40
40
|
"page_size": 50,
|
41
41
|
"previous_page_url": null,
|
42
|
-
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Logs?FunctionSid=ZH00000000000000000000000000000000&PageSize=50&Page=0"
|
42
|
+
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Logs?StartDate=2018-11-10T20%3A00%3A00Z&EndDate=2018-12-10T20%3A00%3A00Z&FunctionSid=ZH00000000000000000000000000000000&PageSize=50&Page=0"
|
43
43
|
}
|
44
44
|
}
|
45
45
|
]
|
@@ -0,0 +1,112 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'FlowRevision' do
|
12
|
+
it "can read" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.revisions.list()
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
values = {}
|
21
|
+
expect(
|
22
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
+
method: 'get',
|
24
|
+
url: 'https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Revisions',
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives read_empty responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"meta": {
|
34
|
+
"previous_page_url": null,
|
35
|
+
"next_page_url": null,
|
36
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions?PageSize=50&Page=0",
|
37
|
+
"page": 0,
|
38
|
+
"first_page_url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions?PageSize=50&Page=0",
|
39
|
+
"page_size": 50,
|
40
|
+
"key": "revisions"
|
41
|
+
},
|
42
|
+
"revisions": [
|
43
|
+
{
|
44
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
45
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
46
|
+
"friendly_name": "Test Flow",
|
47
|
+
"status": "published",
|
48
|
+
"revision": 1,
|
49
|
+
"definition": null,
|
50
|
+
"commit_message": null,
|
51
|
+
"valid": null,
|
52
|
+
"errors": null,
|
53
|
+
"date_created": "2017-11-06T12:00:00Z",
|
54
|
+
"date_updated": "2017-11-06T12:00:00Z",
|
55
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions/1"
|
56
|
+
}
|
57
|
+
]
|
58
|
+
}
|
59
|
+
]
|
60
|
+
))
|
61
|
+
|
62
|
+
actual = @client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
63
|
+
.revisions.list()
|
64
|
+
|
65
|
+
expect(actual).to_not eq(nil)
|
66
|
+
end
|
67
|
+
|
68
|
+
it "can fetch" do
|
69
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
70
|
+
|
71
|
+
expect {
|
72
|
+
@client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
73
|
+
.revisions('revision').fetch()
|
74
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
75
|
+
|
76
|
+
values = {}
|
77
|
+
expect(
|
78
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
79
|
+
method: 'get',
|
80
|
+
url: 'https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Revisions/revision',
|
81
|
+
))).to eq(true)
|
82
|
+
end
|
83
|
+
|
84
|
+
it "receives fetch responses" do
|
85
|
+
@holodeck.mock(Twilio::Response.new(
|
86
|
+
200,
|
87
|
+
%q[
|
88
|
+
{
|
89
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
90
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
91
|
+
"definition": {
|
92
|
+
"initial_state": "Trigger"
|
93
|
+
},
|
94
|
+
"friendly_name": "Test Flow",
|
95
|
+
"status": "published",
|
96
|
+
"revision": 1,
|
97
|
+
"commit_message": null,
|
98
|
+
"valid": true,
|
99
|
+
"errors": [],
|
100
|
+
"date_created": "2017-11-06T12:00:00Z",
|
101
|
+
"date_updated": null,
|
102
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions/1"
|
103
|
+
}
|
104
|
+
]
|
105
|
+
))
|
106
|
+
|
107
|
+
actual = @client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
108
|
+
.revisions('revision').fetch()
|
109
|
+
|
110
|
+
expect(actual).to_not eq(nil)
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,234 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Flow' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.studio.v2.flows.create(friendly_name: 'friendly_name', status: 'draft', definition: 'definition')
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {'FriendlyName' => 'friendly_name', 'Status' => 'draft', 'Definition' => 'definition', }
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'post',
|
23
|
+
url: 'https://studio.twilio.com/v2/Flows',
|
24
|
+
data: values,
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives create responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
201,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"definition": {
|
36
|
+
"initial_state": "Trigger"
|
37
|
+
},
|
38
|
+
"friendly_name": "Test Flow",
|
39
|
+
"status": "published",
|
40
|
+
"revision": 1,
|
41
|
+
"commit_message": null,
|
42
|
+
"valid": true,
|
43
|
+
"errors": [],
|
44
|
+
"date_created": "2017-11-06T12:00:00Z",
|
45
|
+
"date_updated": null,
|
46
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
47
|
+
"links": {
|
48
|
+
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
]
|
52
|
+
))
|
53
|
+
|
54
|
+
actual = @client.studio.v2.flows.create(friendly_name: 'friendly_name', status: 'draft', definition: 'definition')
|
55
|
+
|
56
|
+
expect(actual).to_not eq(nil)
|
57
|
+
end
|
58
|
+
|
59
|
+
it "can update" do
|
60
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
61
|
+
|
62
|
+
expect {
|
63
|
+
@client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(status: 'draft')
|
64
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
65
|
+
|
66
|
+
values = {'Status' => 'draft', }
|
67
|
+
expect(
|
68
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
69
|
+
method: 'post',
|
70
|
+
url: 'https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
71
|
+
data: values,
|
72
|
+
))).to eq(true)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "receives update responses" do
|
76
|
+
@holodeck.mock(Twilio::Response.new(
|
77
|
+
200,
|
78
|
+
%q[
|
79
|
+
{
|
80
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
81
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
82
|
+
"definition": {
|
83
|
+
"initial_state": "Trigger"
|
84
|
+
},
|
85
|
+
"friendly_name": "Test Flow",
|
86
|
+
"status": "published",
|
87
|
+
"revision": 1,
|
88
|
+
"commit_message": null,
|
89
|
+
"valid": true,
|
90
|
+
"errors": [],
|
91
|
+
"date_created": "2017-11-06T12:00:00Z",
|
92
|
+
"date_updated": "2017-11-06T12:00:00Z",
|
93
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
94
|
+
"links": {
|
95
|
+
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions"
|
96
|
+
}
|
97
|
+
}
|
98
|
+
]
|
99
|
+
))
|
100
|
+
|
101
|
+
actual = @client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(status: 'draft')
|
102
|
+
|
103
|
+
expect(actual).to_not eq(nil)
|
104
|
+
end
|
105
|
+
|
106
|
+
it "can read" do
|
107
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
108
|
+
|
109
|
+
expect {
|
110
|
+
@client.studio.v2.flows.list()
|
111
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
112
|
+
|
113
|
+
values = {}
|
114
|
+
expect(
|
115
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
116
|
+
method: 'get',
|
117
|
+
url: 'https://studio.twilio.com/v2/Flows',
|
118
|
+
))).to eq(true)
|
119
|
+
end
|
120
|
+
|
121
|
+
it "receives read_empty responses" do
|
122
|
+
@holodeck.mock(Twilio::Response.new(
|
123
|
+
200,
|
124
|
+
%q[
|
125
|
+
{
|
126
|
+
"meta": {
|
127
|
+
"previous_page_url": null,
|
128
|
+
"next_page_url": null,
|
129
|
+
"url": "https://studio.twilio.com/v2/Flows?PageSize=50&Page=0",
|
130
|
+
"page": 0,
|
131
|
+
"first_page_url": "https://studio.twilio.com/v2/Flows?PageSize=50&Page=0",
|
132
|
+
"page_size": 50,
|
133
|
+
"key": "flows"
|
134
|
+
},
|
135
|
+
"flows": [
|
136
|
+
{
|
137
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
138
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
139
|
+
"friendly_name": "Test Flow",
|
140
|
+
"status": "published",
|
141
|
+
"revision": 1,
|
142
|
+
"definition": null,
|
143
|
+
"commit_message": null,
|
144
|
+
"valid": null,
|
145
|
+
"errors": null,
|
146
|
+
"date_created": "2017-11-06T12:00:00Z",
|
147
|
+
"date_updated": "2017-11-06T12:00:00Z",
|
148
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
149
|
+
"links": {
|
150
|
+
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions"
|
151
|
+
}
|
152
|
+
}
|
153
|
+
]
|
154
|
+
}
|
155
|
+
]
|
156
|
+
))
|
157
|
+
|
158
|
+
actual = @client.studio.v2.flows.list()
|
159
|
+
|
160
|
+
expect(actual).to_not eq(nil)
|
161
|
+
end
|
162
|
+
|
163
|
+
it "can fetch" do
|
164
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
165
|
+
|
166
|
+
expect {
|
167
|
+
@client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
168
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
169
|
+
|
170
|
+
values = {}
|
171
|
+
expect(
|
172
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
173
|
+
method: 'get',
|
174
|
+
url: 'https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
175
|
+
))).to eq(true)
|
176
|
+
end
|
177
|
+
|
178
|
+
it "receives fetch responses" do
|
179
|
+
@holodeck.mock(Twilio::Response.new(
|
180
|
+
200,
|
181
|
+
%q[
|
182
|
+
{
|
183
|
+
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
184
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
185
|
+
"friendly_name": "Test Flow",
|
186
|
+
"definition": {
|
187
|
+
"initial_state": "Trigger"
|
188
|
+
},
|
189
|
+
"status": "published",
|
190
|
+
"revision": 1,
|
191
|
+
"commit_message": "commit",
|
192
|
+
"valid": true,
|
193
|
+
"errors": [],
|
194
|
+
"date_created": "2017-11-06T12:00:00Z",
|
195
|
+
"date_updated": null,
|
196
|
+
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
197
|
+
"links": {
|
198
|
+
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions"
|
199
|
+
}
|
200
|
+
}
|
201
|
+
]
|
202
|
+
))
|
203
|
+
|
204
|
+
actual = @client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
205
|
+
|
206
|
+
expect(actual).to_not eq(nil)
|
207
|
+
end
|
208
|
+
|
209
|
+
it "can delete" do
|
210
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
211
|
+
|
212
|
+
expect {
|
213
|
+
@client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
214
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
215
|
+
|
216
|
+
values = {}
|
217
|
+
expect(
|
218
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
219
|
+
method: 'delete',
|
220
|
+
url: 'https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
221
|
+
))).to eq(true)
|
222
|
+
end
|
223
|
+
|
224
|
+
it "receives delete responses" do
|
225
|
+
@holodeck.mock(Twilio::Response.new(
|
226
|
+
204,
|
227
|
+
nil,
|
228
|
+
))
|
229
|
+
|
230
|
+
actual = @client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
231
|
+
|
232
|
+
expect(actual).to eq(true)
|
233
|
+
end
|
234
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'FlowValidate' do
|
12
|
+
it "can update" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.studio.v2.flow_valid.update(friendly_name: 'friendly_name', status: 'draft', definition: 'definition')
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {'FriendlyName' => 'friendly_name', 'Status' => 'draft', 'Definition' => 'definition', }
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'post',
|
23
|
+
url: 'https://studio.twilio.com/v2/Flows/Validate',
|
24
|
+
data: values,
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives update responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"valid": true
|
34
|
+
}
|
35
|
+
]
|
36
|
+
))
|
37
|
+
|
38
|
+
actual = @client.studio.v2.flow_valid.update(friendly_name: 'friendly_name', status: 'draft', definition: 'definition')
|
39
|
+
|
40
|
+
expect(actual).to_not eq(nil)
|
41
|
+
end
|
42
|
+
end
|
data/twilio-ruby.gemspec
CHANGED
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency('jwt', '>= 1.5', '<= 2.5')
|
28
28
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
29
|
-
spec.add_dependency('faraday', '~>0.
|
29
|
+
spec.add_dependency('faraday', '~> 1.0.0')
|
30
30
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|
31
31
|
spec.add_dependency('rubysl') if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
32
32
|
|
33
33
|
spec.add_development_dependency 'bundler', '>= 1.5', '< 3.0'
|
34
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.79.0'
|
35
35
|
spec.add_development_dependency 'yard', '~> 0.9.9'
|
36
36
|
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.31.
|
4
|
+
version: 5.31.2
|
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:
|
11
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 1.0.0
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: 1.0.0
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: bundler
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,14 +90,14 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
93
|
+
version: 0.79.0
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.
|
100
|
+
version: 0.79.0
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: yard
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -361,6 +361,15 @@ files:
|
|
361
361
|
- lib/twilio-ruby/rest/notify/v1/service.rb
|
362
362
|
- lib/twilio-ruby/rest/notify/v1/service/binding.rb
|
363
363
|
- lib/twilio-ruby/rest/notify/v1/service/notification.rb
|
364
|
+
- lib/twilio-ruby/rest/numbers.rb
|
365
|
+
- lib/twilio-ruby/rest/numbers/v2.rb
|
366
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
367
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
368
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
369
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
370
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
371
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
372
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
364
373
|
- lib/twilio-ruby/rest/preview.rb
|
365
374
|
- lib/twilio-ruby/rest/preview/acc_security.rb
|
366
375
|
- lib/twilio-ruby/rest/preview/acc_security/service.rb
|
@@ -471,6 +480,10 @@ files:
|
|
471
480
|
- lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb
|
472
481
|
- lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb
|
473
482
|
- lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
|
483
|
+
- lib/twilio-ruby/rest/studio/v2.rb
|
484
|
+
- lib/twilio-ruby/rest/studio/v2/flow.rb
|
485
|
+
- lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb
|
486
|
+
- lib/twilio-ruby/rest/studio/v2/flow_validate.rb
|
474
487
|
- lib/twilio-ruby/rest/sync.rb
|
475
488
|
- lib/twilio-ruby/rest/sync/v1.rb
|
476
489
|
- lib/twilio-ruby/rest/sync/v1/service.rb
|
@@ -737,6 +750,13 @@ files:
|
|
737
750
|
- spec/integration/notify/v1/service/binding_spec.rb
|
738
751
|
- spec/integration/notify/v1/service/notification_spec.rb
|
739
752
|
- spec/integration/notify/v1/service_spec.rb
|
753
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
754
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
755
|
+
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
756
|
+
- spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb
|
757
|
+
- spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb
|
758
|
+
- spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb
|
759
|
+
- spec/integration/numbers/v2/regulatory_compliance_spec.rb
|
740
760
|
- spec/integration/preview/acc_security/service/verification_check_spec.rb
|
741
761
|
- spec/integration/preview/acc_security/service/verification_spec.rb
|
742
762
|
- spec/integration/preview/acc_security/service_spec.rb
|
@@ -828,6 +848,9 @@ files:
|
|
828
848
|
- spec/integration/studio/v1/flow/execution/execution_step_spec.rb
|
829
849
|
- spec/integration/studio/v1/flow/execution_spec.rb
|
830
850
|
- spec/integration/studio/v1/flow_spec.rb
|
851
|
+
- spec/integration/studio/v2/flow/flow_revision_spec.rb
|
852
|
+
- spec/integration/studio/v2/flow_spec.rb
|
853
|
+
- spec/integration/studio/v2/flow_validate_spec.rb
|
831
854
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
832
855
|
- spec/integration/sync/v1/service/document_spec.rb
|
833
856
|
- spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb
|
@@ -1118,6 +1141,13 @@ test_files:
|
|
1118
1141
|
- spec/integration/notify/v1/service/binding_spec.rb
|
1119
1142
|
- spec/integration/notify/v1/service/notification_spec.rb
|
1120
1143
|
- spec/integration/notify/v1/service_spec.rb
|
1144
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
1145
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
1146
|
+
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
1147
|
+
- spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb
|
1148
|
+
- spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb
|
1149
|
+
- spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb
|
1150
|
+
- spec/integration/numbers/v2/regulatory_compliance_spec.rb
|
1121
1151
|
- spec/integration/preview/acc_security/service/verification_check_spec.rb
|
1122
1152
|
- spec/integration/preview/acc_security/service/verification_spec.rb
|
1123
1153
|
- spec/integration/preview/acc_security/service_spec.rb
|
@@ -1209,6 +1239,9 @@ test_files:
|
|
1209
1239
|
- spec/integration/studio/v1/flow/execution/execution_step_spec.rb
|
1210
1240
|
- spec/integration/studio/v1/flow/execution_spec.rb
|
1211
1241
|
- spec/integration/studio/v1/flow_spec.rb
|
1242
|
+
- spec/integration/studio/v2/flow/flow_revision_spec.rb
|
1243
|
+
- spec/integration/studio/v2/flow_spec.rb
|
1244
|
+
- spec/integration/studio/v2/flow_validate_spec.rb
|
1212
1245
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
1213
1246
|
- spec/integration/sync/v1/service/document_spec.rb
|
1214
1247
|
- spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb
|