web47core 1.1.15 → 1.1.16

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: 8bf2d4642ca25a82b1e6dfe3b8a96aa40a694464290128b3c4c644dc5084dd11
4
- data.tar.gz: 67dce9ec98fa99ebc16a6404ddf4d2db2be2503e85471d79f2b30e0c7ba3b490
3
+ metadata.gz: c7e886a348260b75a1a9bc39a1442cb96736b86568acc693eb9e68e2cd060cf3
4
+ data.tar.gz: 343664865ffe80bd9a1b459edf147f42315174900e05e2fa61dc35d1a8a15e62
5
5
  SHA512:
6
- metadata.gz: 1700c583d10bf42a5798bfbdd2cf5bb2962d804898907b12a4a2f51b21ce0e78f8c5778933eef74e306de275ed48340dfe52113e30efa87d18f9c40b28ebe06f
7
- data.tar.gz: eba4ba933dea6c482c78f7b35c581752d176f67c8feb6571fb90989343d218b82bfc22567d37a7b3ee605631f4e2f3f7bbd129c1e847d48437fd6350909b9805
6
+ metadata.gz: 0fab6ed638e678f9daaef7afb26440579b142536f551ee368156491fe51a83534addb675c09e028aa54dbb5559ad0b647d60612d1e44135be2ebd4f308777d76
7
+ data.tar.gz: fc649419956e85eb0c3d084ae655e1bf3067416c1a5a847e8f79a9cbf5472edc799e6de0f1834764907534145676defe841822f7c4f796d014ffd9e61f09ed31
@@ -35,12 +35,15 @@ class SmsNotification < Notification
35
35
  account_sid = config.twilio_account_id
36
36
  auth_token = config.twilio_auth_token
37
37
  client = Twilio::REST::Client.new account_sid, auth_token
38
-
39
- twilio_message = client.account.messages.create(
40
- body: message,
41
- to: to,
42
- from: config.twilio_phone_number
43
- )
38
+ twilio_message = if client.respond_to?(:account)
39
+ client.account.messages.create(body: message,
40
+ to: to,
41
+ from: config.twilio_phone_number)
42
+ else
43
+ client.messages.create(body: message,
44
+ to: to,
45
+ from: config.twilio_phone_number)
46
+ end
44
47
  # We are saved in the calling class, no reason to save again
45
48
  set sid: twilio_message.sid
46
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '1.1.15'
4
+ VERSION = '1.1.16'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 1.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-17 00:00:00.000000000 Z
11
+ date: 2021-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -278,20 +278,14 @@ dependencies:
278
278
  requirements:
279
279
  - - ">="
280
280
  - !ruby/object:Gem::Version
281
- version: '3.0'
282
- - - "<="
283
- - !ruby/object:Gem::Version
284
- version: '4.13'
281
+ version: '5'
285
282
  type: :runtime
286
283
  prerelease: false
287
284
  version_requirements: !ruby/object:Gem::Requirement
288
285
  requirements:
289
286
  - - ">="
290
287
  - !ruby/object:Gem::Version
291
- version: '3.0'
292
- - - "<="
293
- - !ruby/object:Gem::Version
294
- version: '4.13'
288
+ version: '5'
295
289
  - !ruby/object:Gem::Dependency
296
290
  name: tzinfo
297
291
  requirement: !ruby/object:Gem::Requirement