hertz-courier-twilio 1.0.0 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69c085d26804871906e6a332871b4f1bf3832ed3
|
4
|
+
data.tar.gz: 4f6cbe38811409ad8e22a7c558b4ed5e44a46cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a493c56a5432a3a49f7db420e0438e9528fc5c28175e06df7a585ae6b60e37707866c7a4e2ad00c097b8a9d2efadd2ca3c59c811f7b39a225d1ddebe2792e329
|
7
|
+
data.tar.gz: ef72ea0c5c79c9504812b951c5f38f93f8fb46df2725a34768eea59f69f06dba64c1acff2c06b11fc8155896ceacbbcdaffb1ff3d98f1c98cfa50f365cdfbb8c
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Hertz::Courier::Twilio
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/hertz-courier-twilio.svg)](https://badge.fury.io/rb/hertz-courier-twilio)
|
3
4
|
[![Dependency Status](https://gemnasium.com/badges/github.com/alessandro1997/hertz-courier-twilio.svg)](https://gemnasium.com/github.com/alessandro1997/hertz-courier-twilio)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/alessandro1997/hertz-courier-twilio/badges/gpa.svg)](https://codeclimate.com/github/alessandro1997/hertz-courier-twilio)
|
5
6
|
|
@@ -7,12 +7,15 @@ module Hertz
|
|
7
7
|
|
8
8
|
def perform(notification)
|
9
9
|
return unless notification.receiver.hertz_phone_number.present?
|
10
|
+
return if notification.delivered_with?(:twilio)
|
10
11
|
|
11
12
|
twilio_client.messages.create(
|
12
13
|
to: notification.receiver.hertz_phone_number,
|
13
14
|
from: Hertz::Courier::Twilio.phone_number,
|
14
15
|
body: notification.sms_body
|
15
16
|
)
|
17
|
+
|
18
|
+
notification.mark_delivered_with(:twilio)
|
16
19
|
end
|
17
20
|
|
18
21
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hertz-courier-twilio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|