README.md in twilio-ruby-5.36.0 vs README.md in twilio-ruby-5.37.0
- old
+ new
@@ -30,17 +30,17 @@
## Installation
To install using [Bundler][bundler] grab the latest stable version:
```ruby
-gem 'twilio-ruby', '~> 5.36.0'
+gem 'twilio-ruby', '~> 5.37.0'
```
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
```bash
-gem install twilio-ruby -v 5.36.0
+gem install twilio-ruby -v 5.37.0
```
To build and install the development branch yourself from the latest source:
```bash
@@ -64,10 +64,12 @@
@client = Twilio::REST::Client.new account_sid, auth_token
```
### Specify a Region and/or Edge
+To take advantage of Twilio's [Global Infrastructure](https://www.twilio.com/docs/global-infrastructure), specify the target Region and/or Edge for the client:
+
```ruby
# set up a client to talk to the Twilio REST API over a specific region and edge
@client = Twilio::REST::Client.new account_sid, auth_token, nil, 'au1'
@client.edge = 'sydney'
@@ -119,18 +121,22 @@
```ruby
@client.http_client.adapter = :typhoeus
```
+To use a custom HTTP client with this helper library, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/ruby/custom-http-clients).
+
### Handling Errors
```ruby
begin
messages = @client.messages.list(limit: 20)
-rescue Twilio::REST::TwilioError => e
+rescue Twilio::REST::RestError => e
puts e.message
end
```
+
+For more descriptive exception types, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/ruby/usage-guide#error-handling).
### Getting Started With Client Capability Tokens
If you just need to generate a Capability Token for use with Twilio Client, you can do this: