web47core 1.1.15 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app/models/sms_notification.rb +9 -6
- data/lib/web47core/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7e886a348260b75a1a9bc39a1442cb96736b86568acc693eb9e68e2cd060cf3
|
4
|
+
data.tar.gz: 343664865ffe80bd9a1b459edf147f42315174900e05e2fa61dc35d1a8a15e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
data/lib/web47core/version.rb
CHANGED
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.
|
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-
|
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: '
|
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: '
|
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
|