plivo 4.37.1 → 4.38.1

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
  SHA1:
3
- metadata.gz: 9868a4be02dd30339bda337a837f89304bbc22fc
4
- data.tar.gz: '08438aa41d55f366e04c23a8c9c19cf80a4eda57'
3
+ metadata.gz: b9cc9b79affac615fa30dd25bbebfc105437f2a8
4
+ data.tar.gz: 9bf7124784874f27665ecfbf36460bdb0ccbe5f0
5
5
  SHA512:
6
- metadata.gz: 9221a5183a4a060ab3422bcb6c8a96103aac4631162f30333f01a4d1b89433dfb029a416656d4d5c9f47d349fda8c22beba493c3b8088158dd3c60e517d26a79
7
- data.tar.gz: 4635e9c48e4f789c24da1c72e8e318f9a898684b5a2dea920aad46a1786c9336a4692c5ffd08ab2037dc559aa083cbe509e0820c5d142f7a3472ff1606a6a683
6
+ metadata.gz: abd1a7738261e1ff43f9ba8b4c41af4c0d4305fdd70f5c56b06c4a2a65fa5200e07f43a4af2c40cf09911a842172864eefe334cd9fab40dea1251856587c7375
7
+ data.tar.gz: d05b08bbcc5fcdcd019db742e150b5579e2072a16239ce27dd3ffed9678469c86f5dc7093bab1890bcb2c9c41208afc5095119f3b799f57eac7a8414d0f7bbf0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
  # Change Log
2
+ ## [4.38.1](https://github.com/plivo/plivo-ruby/tree/v4.38.1) (2023-03-06)
3
+ **Bug fix on create message**
4
+ - Bulk send message fix
5
+
6
+ ## [4.38.0](https://github.com/plivo/plivo-ruby/tree/v4.38.0) (2023-03-03)
7
+ **Adding new attribute - 'is_domestic' in Get Message and List Message APIs**
8
+ - Add `is_domestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
9
+
2
10
  ## [4.37.1](https://github.com/plivo/plivo-ruby/tree/v4.37.1) (2023-02-23)
3
11
  **Bug fix on Messaging object **
4
12
  -
data/README.md CHANGED
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.37.1'
12
+ gem 'plivo', '>= 4.38.1'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -34,7 +34,8 @@ module Plivo
34
34
  tendlc_campaign_id: @tendlc_campaign_id,
35
35
  destination_country_iso2: @destination_country_iso2,
36
36
  tendlc_registration_status: @tendlc_registration_status,
37
- requester_ip: @requester_ip
37
+ requester_ip: @requester_ip,
38
+ is_domestic: @is_domestic
38
39
  }.to_s
39
40
  end
40
41
  end
@@ -104,10 +105,17 @@ module Plivo
104
105
 
105
106
  params = {
106
107
  src: value[:src],
107
- dst: value[:dst],
108
108
  text: value[:text],
109
109
  powerpack_uuid: value[:powerpack_uuid]
110
110
  }
111
+ if (value[:dst].is_a?(Array))
112
+ value[:dst].each do |dst_num|
113
+ valid_param?(:dst_num, dst_num, [Integer, String, Symbol], true)
114
+ params[:dst] = value[:dst].join('<')
115
+ end
116
+ else
117
+ params[:dst] = value[:dst]
118
+ end
111
119
 
112
120
  #Handling optional params in One HASH
113
121
  if value.key?(:type) && valid_param?(:type, value[:type],String, true, %w[sms mms])
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.37.1".freeze
2
+ VERSION = "4.38.1".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.37.1
4
+ version: 4.38.1
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: 2023-02-28 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday