twilio-ruby 7.8.6 → 7.8.8
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 +23 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +28 -1
- data/lib/twilio-ruby/rest/content/v1/content.rb +677 -1
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +462 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +15 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +208 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +378 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +6 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +3 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b11058a2f22cd95283f218eb0ead8ea6b142992
|
|
4
|
+
data.tar.gz: d51db32ebc6312550f6ed59fbe6d58b9fe1cc8a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2c86f3c669803955244b87d44a7ef30baad9226eb6d065c7c98762a99b3ec43b403bb5e034e8cb1774fd76970a5192ac7051ee233162b77341100ea8c85bcaa
|
|
7
|
+
data.tar.gz: 1852bb1350df711ca233eb055277b20613b71b99bd9bcb4420d2ca89c43656deb8982b4cb9838b778b9344e564911f3ef2ad52d0f467db17f17de5646de8dc1c
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
twilio-ruby changelog
|
|
2
2
|
=====================
|
|
3
3
|
|
|
4
|
+
[2025-12-03] Version 7.8.8
|
|
5
|
+
--------------------------
|
|
6
|
+
**Library - Fix**
|
|
7
|
+
- [PR #765](https://github.com/twilio/twilio-ruby/pull/765): Regional API domain processing. Thanks to [@manisha1997](https://github.com/manisha1997)!
|
|
8
|
+
|
|
9
|
+
**Api**
|
|
10
|
+
- Add `twiml_session` resource for calls
|
|
11
|
+
- Add `twiml_session` resource for calls
|
|
12
|
+
|
|
13
|
+
**Monitor**
|
|
14
|
+
- Update default output properties
|
|
15
|
+
|
|
16
|
+
**Trusthub**
|
|
17
|
+
- Added customer_profile_sid in toll-free initialize api payload.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
[2025-11-20] Version 7.8.7
|
|
21
|
+
--------------------------
|
|
22
|
+
**Memory**
|
|
23
|
+
- # Memory API Changes
|
|
24
|
+
- Added initial Memory API endpoints with darkseagreen badge status
|
|
25
|
+
|
|
26
|
+
|
|
4
27
|
[2025-11-11] Version 7.8.6
|
|
5
28
|
--------------------------
|
|
6
29
|
**Twiml**
|
data/README.md
CHANGED
|
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
|
40
40
|
|
|
41
41
|
```ruby
|
|
42
|
-
gem 'twilio-ruby', '~> 7.8.
|
|
42
|
+
gem 'twilio-ruby', '~> 7.8.8'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
gem install twilio-ruby -v 7.8.
|
|
48
|
+
gem install twilio-ruby -v 7.8.8
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
|
@@ -3,6 +3,19 @@ module Twilio
|
|
|
3
3
|
class ClientBase
|
|
4
4
|
# rubocop:disable Style/ClassVars
|
|
5
5
|
@@default_region = 'us1'
|
|
6
|
+
# Maps region codes to their corresponding edge location names
|
|
7
|
+
# Used to automatically set edge based on region for backward compatibility
|
|
8
|
+
@@region_mappings = {
|
|
9
|
+
'au1' => 'sydney',
|
|
10
|
+
'br1' => 'sao-paulo',
|
|
11
|
+
'de1' => 'frankfurt',
|
|
12
|
+
'ie1' => 'dublin',
|
|
13
|
+
'jp1' => 'tokyo',
|
|
14
|
+
'jp2' => 'osaka',
|
|
15
|
+
'sg1' => 'singapore',
|
|
16
|
+
'us1' => 'ashburn',
|
|
17
|
+
'us2' => 'umatilla'
|
|
18
|
+
}
|
|
6
19
|
# rubocop:enable Style/ClassVars
|
|
7
20
|
|
|
8
21
|
attr_accessor :http_client, :username, :password, :account_sid, :auth_token, :region, :edge, :logger,
|
|
@@ -14,7 +27,17 @@ module Twilio
|
|
|
14
27
|
@username = username || Twilio.account_sid
|
|
15
28
|
@password = password || Twilio.auth_token
|
|
16
29
|
@region = region || Twilio.region
|
|
17
|
-
|
|
30
|
+
if (region.nil? && !Twilio.edge.nil?) || (!region.nil? && Twilio.edge.nil?)
|
|
31
|
+
# rubocop:disable Layout/LineLength
|
|
32
|
+
warn '[DEPRECATION] For regional processing, DNS is of format product.<edge>.<region>.twilio.com;otherwise use product.twilio.com.'
|
|
33
|
+
end
|
|
34
|
+
if Twilio.edge
|
|
35
|
+
@edge = Twilio.edge
|
|
36
|
+
elsif @region && @@region_mappings[region]
|
|
37
|
+
warn '[DEPRECATION] Setting default `Edge` for the provided `region`.'
|
|
38
|
+
# rubocop:enable Layout/LineLength
|
|
39
|
+
@edge = @@region_mappings[region]
|
|
40
|
+
end
|
|
18
41
|
@account_sid = account_sid || @username
|
|
19
42
|
@auth_token = @password
|
|
20
43
|
@auth = [@username, @password]
|
|
@@ -78,6 +101,10 @@ module Twilio
|
|
|
78
101
|
##
|
|
79
102
|
# Build the final request uri
|
|
80
103
|
def build_uri(uri)
|
|
104
|
+
if @edge.nil? && @region && @@region_mappings[@region]
|
|
105
|
+
warn '[DEPRECATION] Setting default `Edge` for the provided `region`.'
|
|
106
|
+
@edge = @@region_mappings[@region]
|
|
107
|
+
end
|
|
81
108
|
return uri if @region.nil? && @edge.nil?
|
|
82
109
|
|
|
83
110
|
parsed_url = URI(uri)
|