mock-twilio 0.7.0 → 0.7.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58f6856b33391f0b81aebc0c46347bd74394f562566def73e8a3dbf7e7cc02f4
|
4
|
+
data.tar.gz: 3315b80f6a87db016d88fafdabd02154363b4bc597063d99441f87904a923fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee811c5534f9cb9083f9a2f96156e12871003ed27a2c8303bbb311035937d70b36e4f08fa4fb68463ac0164e9a318d704841bcd58df11e21874d67b6bd7bde4a
|
7
|
+
data.tar.gz: d3eb04ea5ccc63452acf17ebf3ec620c14faca67dc5a0b650834d963ae962b9be3b0d4884b2ae2e9c39191ddf2c509bd321d540a80c69cd5bfe6d4cb54e718bb
|
data/CHANGELOG.md
CHANGED
@@ -9,7 +9,7 @@ module Mock
|
|
9
9
|
phone_number_sid(body) if body["phone_numbers"].first["sid"]
|
10
10
|
body["phone_numbers"].first["account_sid"] = ::Twilio.account_sid if body["phone_numbers"].first["account_sid"]
|
11
11
|
parse_messaging_service_sid(body, request) if body["phone_numbers"].first["service_sid"]
|
12
|
-
body["phone_numbers"].first["phone_number"] = "
|
12
|
+
body["phone_numbers"].first["phone_number"] = "+19876543210" if body["phone_numbers"].first["phone_number"]
|
13
13
|
body["phone_numbers"].first["country_code"] = "US" if body["phone_numbers"].first["country_code"]
|
14
14
|
|
15
15
|
# Params for twilio pagination, needed for twilio-ruby serializers and absolute paths
|
data/lib/mock/twilio/version.rb
CHANGED
data/lib/mock/twilio.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "rufus-scheduler"
|
4
4
|
require "active_support"
|
5
5
|
require "active_support/core_ext/time"
|
6
|
+
require "twilio-ruby"
|
6
7
|
require_relative "twilio/middleware/proxy"
|
7
8
|
require_relative "twilio/webhook_client"
|
8
9
|
require_relative "twilio/webhooks/base"
|
@@ -16,6 +17,7 @@ require_relative "twilio/client"
|
|
16
17
|
require_relative "twilio/decorator"
|
17
18
|
require_relative "twilio/response"
|
18
19
|
require_relative "twilio/version"
|
20
|
+
require_relative "../twilio/rest/messaging/v1/service/phone_number_decorator"
|
19
21
|
|
20
22
|
module Mock
|
21
23
|
module Twilio
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Twilio::REST::Messaging::V1::ServiceContext::PhoneNumberList.class_eval do
|
2
|
+
def list(limit: nil, page_size: nil)
|
3
|
+
limit = 1 if @version.domain.client.http_client.class == Mock::Twilio::Client
|
4
|
+
|
5
|
+
self.stream(
|
6
|
+
limit: limit,
|
7
|
+
page_size: page_size
|
8
|
+
).entries
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mock-twilio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SchoolStatus Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/mock/twilio/webhooks/conferences.rb
|
106
106
|
- lib/mock/twilio/webhooks/customer_profiles.rb
|
107
107
|
- lib/mock/twilio/webhooks/messages.rb
|
108
|
+
- lib/twilio/rest/messaging/v1/service/phone_number_decorator.rb
|
108
109
|
- sig/mock/twilio.rbs
|
109
110
|
homepage: https://github.com/schoolstatus/mock-twilio
|
110
111
|
licenses:
|