outbox-bandwidth 0.2.0 → 0.3.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
  SHA256:
3
- metadata.gz: 9540fc2230928fe1912747fc6e8796a1ac9084d4ce3d97bc6fab09f052b45055
4
- data.tar.gz: 66fcd4093260919f202b67376423a31a239e37473a70ad020fc6178f9ae5dbe6
3
+ metadata.gz: fe84da290b87177f84735ff437f2d5600d8efbfda6c55920db8ea720882061b9
4
+ data.tar.gz: bb13853fa6ae2fa479cb5349cf2f909824b16cbdbf161e5d1e023387e7ffe2fb
5
5
  SHA512:
6
- metadata.gz: f68281caf5333c8065e56b75fdd26504234db41be3fea62f0a8c0241fa8b676e22273fab72f382a18dda28240b6ee436b30af39bba35b3befa69a93c1d6a53ba
7
- data.tar.gz: 97feaa0e94177e3a5b9b40f786be39c36b161159c10b13d0a32cfbb0f3736cfa54770481d4258f79b21ed1ccf8d304cb5712261d5735833738e8af479a831be3
6
+ metadata.gz: '08f16ee11879814ac458d923dee1e94717a8e6402ce94cb15e05fbcae2dfa3891b4506595113d5084b3e642faaad5e715256474934e96a3fa61938af9ea1c894'
7
+ data.tar.gz: 8c1387469eaddb1eb2225ef320e5477653e31d6258d392b59d2c136afbd93d92791a1769791121ba0f2c8b49f0e78ec8160b479e9324aa24ea14b77f2fec7b2b
@@ -48,15 +48,18 @@ module Outbox
48
48
  @account_id
49
49
  end
50
50
 
51
+ # rubocop:disable Metrics/AbcSize
51
52
  def create_message_body(sms)
52
53
  body = ::Bandwidth::MessageRequest.new
53
54
  body.application_id = sms[:application_id] || @application_id
54
55
  body.to = sms.to.is_a?(Array) ? sms.to : [sms.to]
55
56
  body.from = sms.from
56
57
  body.text = sms.body
58
+ body.tag = sms[:tag] unless sms[:tag].nil?
57
59
  body.media = [sms[:media_url]] unless sms[:media_url].nil?
58
60
  body
59
61
  end
62
+ # rubocop:enable Metrics/AbcSize
60
63
  end
61
64
  end
62
65
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Outbox
4
4
  module Bandwidth
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outbox-bandwidth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Browne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-10-07 00:00:00.000000000 Z
12
+ date: 2020-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bandwidth-sdk