plivo 4.15.1 → 4.15.2

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: af8812c959e30b03f4ab8312e6d5c65aeaff4dd3
4
- data.tar.gz: ed5f67dc23cf3e31a3247688e3969ff8611255f7
3
+ metadata.gz: 9623fb2c4baf69935048acfa538cb061326de346
4
+ data.tar.gz: 30629da34bc63fed7092e9c264c34cd41a496870
5
5
  SHA512:
6
- metadata.gz: 81b47688dfe92855000e1bb118f1a53ecee5a10744f323ccbb4aaf721073a7e9be06ed23b5a88d2bcdab6fc7c0169a66a45c74ff1725e01da81460c0ce8e1dcf
7
- data.tar.gz: '09c20aecb34e44472269a8239c4f9f3ccc8dea27a8b44347aeccae1f7ae73dea7a346467fad9d3648400d11c2d8992f3ce3e1563354eb7f34faa800121ac5827'
6
+ metadata.gz: 69b585a499ec727dbc3f615d654b429f39a3f699028994de89cb79298b333e0a2d54501697644f579f4266fadc7bc0bb4fd4a43d50f021722e2defda30d8f979
7
+ data.tar.gz: 843e1f620186e4c8e6153f8a2cac6793c666e49479382622e9d24fa2452801fe99c7240480b2b04495e45d939d4731f11910607617e0b1eee815f73ebf5fd43f
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.15.2](https://github.com/plivo/plivo-ruby/releases/tag/v4.15.2) (2021-01-27)
4
+ - Fix Call API resource - Set answer_method as Optional param.
5
+
3
6
  ## [4.15.1](https://github.com/plivo/plivo-ruby/releases/tag/v4.15.1) (2021-01-06)
4
7
  - Fix Search Phone Numbers API using City Attribute.
5
8
 
data/README.md CHANGED
@@ -8,7 +8,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'plivo', '>= 4.15.1'
11
+ gem 'plivo', '>= 4.15.2'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -252,7 +252,6 @@ module Plivo
252
252
  # @param [String] from
253
253
  # @param [Array] to
254
254
  # @param [String] answer_url
255
- # @param [String] answer_method
256
255
  # @param [Hash] options
257
256
  # @option options [String] :answer_method - The method used to call the answer_url. Defaults to POST.
258
257
  # @option options [String] :ring_url - The URL that is notified by Plivo when the call is ringing. Defaults not set.
@@ -275,21 +274,19 @@ module Plivo
275
274
  # @option options [String] :parent_call_uuid - The call_uuid of the first leg in an ongoing conference call. It is recommended to use this parameter in scenarios where a member who is already present in the conference intends to add new members by initiating outbound API calls. This minimizes the delay in adding a new memeber to the conference.
276
275
  # @option options [Boolean] :error_parent_not_found - if set to true and the parent_call_uuid cannot be found, the API request would return an error. If set to false, the outbound call API request will be executed even if the parent_call_uuid is not found. Defaults to false.
277
276
  # @return [Call] Call
278
- def create(from, to, answer_url, answer_method = 'POST', options = nil)
277
+ def create(from, to, answer_url, options = nil)
279
278
  valid_param?(:from, from, [String, Symbol, Integer], true)
280
279
  valid_param?(:to, to, Array, true)
281
280
  to.each do |to_num|
282
281
  valid_param?(:to_num, to_num, [Integer, String, Symbol], true)
283
282
  end
284
283
  valid_param?(:answer_url, answer_url, [String, Symbol], true)
285
- valid_param?(:answer_method, answer_method, [String, Symbol],
286
- true, %w[GET POST])
284
+
287
285
 
288
286
  params = {
289
287
  from: from,
290
288
  to: to.join('<'),
291
289
  answer_url: answer_url,
292
- answer_method: answer_method
293
290
  }
294
291
 
295
292
  return perform_create(params, false) if options.nil?
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.15.1".freeze
2
+ VERSION = "4.15.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.15.1
4
+ version: 4.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Plivo SDKs Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday