twilio-ruby 5.70.1 → 5.71.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31be56012661b361f67bad5424d468afd6c943f9
4
- data.tar.gz: ff3daacb26a2f6a155f946148f390dac47f9faf0
3
+ metadata.gz: 7d7e60b68cf1a5f9620b2f01e94b16ed38b39af8
4
+ data.tar.gz: edcf56d0de5fb32699a9b59558b1df3b300a3cd3
5
5
  SHA512:
6
- metadata.gz: a0d1bbbc8001ff14862d1e4920ae622afb79e0e0c5670892bf122f5b478a7e6107b9ace69f970d458d1fae59b30ce0d9d22e72a5379cd3490fdf4b40c395964a
7
- data.tar.gz: e1190b1ad68da46e6bf96a86da1fa95105037048ee7a9398647aeff584c404fe8018ec2ebc131434e94c9c818d19762a7d45d4ebafb6867cacdcf42a81c818a0
6
+ metadata.gz: 1e5d000f1bcef5af1371aa474d87968fac4320540223516476d577ad7f97970dadb5658e1819cc8f05182ad708901e798f380ebadd9807ef7bd30782ba669310
7
+ data.tar.gz: 9e7ab524c31d2502af6a0e0619b92308c25964500220f0a1dc67e39b4b462b837621347c0d2ef0cc7334e7f7ff8fd88bc3dc99d16bcdc661f053e24f883a2bb1
data/CHANGES.md CHANGED
@@ -1,6 +1,22 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2022-08-24] Version 5.71.0
5
+ ---------------------------
6
+ **Library - Test**
7
+ - [PR #615](https://github.com/twilio/twilio-ruby/pull/615): add test-docker rule. Thanks to [@beebzz](https://github.com/beebzz)!
8
+
9
+ **Api**
10
+ - Remove `beta feature` from scheduling params and remove optimize parameters. **(breaking change)**
11
+
12
+ **Routes**
13
+ - Remove Duplicate Create Method - Update Method will work even if Inbound Processing Region is currently empty/404. **(breaking change)**
14
+
15
+ **Twiml**
16
+ - Add new Polly Neural voices
17
+ - Add new languages to SSML `<lang>`.
18
+
19
+
4
20
  [2022-08-10] Version 5.70.1
5
21
  ---------------------------
6
22
  **Library - Fix**
data/Makefile CHANGED
@@ -1,4 +1,4 @@
1
- .PHONY: githooks install test lint docs docker-build docker-push
1
+ .PHONY: githooks install test test-docker lint docs docker-build docker-push
2
2
 
3
3
  githooks:
4
4
  ln -sf ../../githooks/pre-commit .git/hooks/pre-commit
@@ -9,6 +9,10 @@ install:
9
9
  test:
10
10
  bundle exec rake spec
11
11
 
12
+ test-docker:
13
+ docker build -t twilio/twilio-ruby .
14
+ docker run twilio/twilio-ruby bundle exec rake spec
15
+
12
16
  docs:
13
17
  bundle exec yard doc --output-dir ./doc
14
18
 
data/README.md CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
34
34
  To install using [Bundler][bundler] grab the latest stable version:
35
35
 
36
36
  ```ruby
37
- gem 'twilio-ruby', '~> 5.70.1'
37
+ gem 'twilio-ruby', '~> 5.71.0'
38
38
  ```
39
39
 
40
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
41
41
 
42
42
  ```bash
43
- gem install twilio-ruby -v 5.70.1
43
+ gem install twilio-ruby -v 5.71.0
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -72,21 +72,6 @@ module Twilio
72
72
  @uri = "/PhoneNumbers/#{@solution[:phone_number]}"
73
73
  end
74
74
 
75
- ##
76
- # Create the PhoneNumberInstance
77
- # @param [String] voice_region The Inbound Processing Region used for this phone
78
- # number for voice
79
- # @param [String] friendly_name A human readable description of this resource, up
80
- # to 64 characters.
81
- # @return [PhoneNumberInstance] Created PhoneNumberInstance
82
- def create(voice_region: :unset, friendly_name: :unset)
83
- data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
84
-
85
- payload = @version.create('POST', @uri, data: data)
86
-
87
- PhoneNumberInstance.new(@version, payload, phone_number: @solution[:phone_number], )
88
- end
89
-
90
75
  ##
91
76
  # Update the PhoneNumberInstance
92
77
  # @param [String] voice_region The Inbound Processing Region used for this phone
@@ -94,7 +79,7 @@ module Twilio
94
79
  # @param [String] friendly_name A human readable description of this resource, up
95
80
  # to 64 characters.
96
81
  # @return [PhoneNumberInstance] Updated PhoneNumberInstance
97
- def update(voice_region: nil, friendly_name: nil)
82
+ def update(voice_region: :unset, friendly_name: :unset)
98
83
  data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
99
84
 
100
85
  payload = @version.update('POST', @uri, data: data)
@@ -212,17 +197,6 @@ module Twilio
212
197
  @properties['date_updated']
213
198
  end
214
199
 
215
- ##
216
- # Create the PhoneNumberInstance
217
- # @param [String] voice_region The Inbound Processing Region used for this phone
218
- # number for voice
219
- # @param [String] friendly_name A human readable description of this resource, up
220
- # to 64 characters.
221
- # @return [PhoneNumberInstance] Created PhoneNumberInstance
222
- def create(voice_region: :unset, friendly_name: :unset)
223
- context.create(voice_region: voice_region, friendly_name: friendly_name, )
224
- end
225
-
226
200
  ##
227
201
  # Update the PhoneNumberInstance
228
202
  # @param [String] voice_region The Inbound Processing Region used for this phone
@@ -230,7 +204,7 @@ module Twilio
230
204
  # @param [String] friendly_name A human readable description of this resource, up
231
205
  # to 64 characters.
232
206
  # @return [PhoneNumberInstance] Updated PhoneNumberInstance
233
- def update(voice_region: nil, friendly_name: nil)
207
+ def update(voice_region: :unset, friendly_name: :unset)
234
208
  context.update(voice_region: voice_region, friendly_name: friendly_name, )
235
209
  end
236
210
 
@@ -72,19 +72,6 @@ module Twilio
72
72
  @uri = "/SipDomains/#{@solution[:sip_domain]}"
73
73
  end
74
74
 
75
- ##
76
- # Create the SipDomainInstance
77
- # @param [String] voice_region The voice_region
78
- # @param [String] friendly_name The friendly_name
79
- # @return [SipDomainInstance] Created SipDomainInstance
80
- def create(voice_region: :unset, friendly_name: :unset)
81
- data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
82
-
83
- payload = @version.create('POST', @uri, data: data)
84
-
85
- SipDomainInstance.new(@version, payload, sip_domain: @solution[:sip_domain], )
86
- end
87
-
88
75
  ##
89
76
  # Update the SipDomainInstance
90
77
  # @param [String] voice_region The voice_region
@@ -208,15 +195,6 @@ module Twilio
208
195
  @properties['date_updated']
209
196
  end
210
197
 
211
- ##
212
- # Create the SipDomainInstance
213
- # @param [String] voice_region The voice_region
214
- # @param [String] friendly_name The friendly_name
215
- # @return [SipDomainInstance] Created SipDomainInstance
216
- def create(voice_region: :unset, friendly_name: :unset)
217
- context.create(voice_region: voice_region, friendly_name: friendly_name, )
218
- end
219
-
220
198
  ##
221
199
  # Update the SipDomainInstance
222
200
  # @param [String] voice_region The voice_region
@@ -72,21 +72,6 @@ module Twilio
72
72
  @uri = "/Trunks/#{@solution[:sip_trunk_domain]}"
73
73
  end
74
74
 
75
- ##
76
- # Create the TrunkInstance
77
- # @param [String] voice_region The Inbound Processing Region used for this SIP
78
- # Trunk for voice
79
- # @param [String] friendly_name A human readable description of this resource, up
80
- # to 64 characters.
81
- # @return [TrunkInstance] Created TrunkInstance
82
- def create(voice_region: :unset, friendly_name: :unset)
83
- data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
84
-
85
- payload = @version.create('POST', @uri, data: data)
86
-
87
- TrunkInstance.new(@version, payload, sip_trunk_domain: @solution[:sip_trunk_domain], )
88
- end
89
-
90
75
  ##
91
76
  # Update the TrunkInstance
92
77
  # @param [String] voice_region The Inbound Processing Region used for this SIP
@@ -212,17 +197,6 @@ module Twilio
212
197
  @properties['date_updated']
213
198
  end
214
199
 
215
- ##
216
- # Create the TrunkInstance
217
- # @param [String] voice_region The Inbound Processing Region used for this SIP
218
- # Trunk for voice
219
- # @param [String] friendly_name A human readable description of this resource, up
220
- # to 64 characters.
221
- # @return [TrunkInstance] Created TrunkInstance
222
- def create(voice_region: :unset, friendly_name: :unset)
223
- context.create(voice_region: voice_region, friendly_name: friendly_name, )
224
- end
225
-
226
200
  ##
227
201
  # Update the TrunkInstance
228
202
  # @param [String] voice_region The Inbound Processing Region used for this SIP
@@ -43,11 +43,10 @@ module Twilio
43
43
  # for example, to dial an extension. For more information, see the Programmable
44
44
  # Voice documentation of
45
45
  # {sendDigits}[https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits].
46
- # @param [String] locale The locale to use for the verification SMS, WhatsApp or
47
- # call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`,
48
- # `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`,
49
- # `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or
50
- # `zh-HK.`
46
+ # @param [String] locale Locale will automatically resolve based on phone number
47
+ # country code for SMS, WhatsApp and call channel verifications. This parameter
48
+ # will override the automatic locale. {See supported languages and more
49
+ # information here.}[https://www.twilio.com/docs/verify/supported-languages].
51
50
  # @param [String] custom_code A pre-generated code to use for verification. The
52
51
  # code can be between 4 and 10 characters, inclusive.
53
52
  # @param [String] amount The amount of the associated PSD2 compliant transaction.
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.70.1'
2
+ VERSION = '5.71.0'
3
3
  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.70.1
4
+ version: 5.71.0
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: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt