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: 686cfdb462120ccab5c110158373764e03e6168c
4
- data.tar.gz: 453aecc745aba06d542e2349325e409f84d6f0b8
3
+ metadata.gz: 69c085d26804871906e6a332871b4f1bf3832ed3
4
+ data.tar.gz: 4f6cbe38811409ad8e22a7c558b4ed5e44a46cfc
5
5
  SHA512:
6
- metadata.gz: 8f428a12a91a9d1d05a62e74dcec0ca9024211c447d9a97409710341d96e7860f54934ae37b8dcd61e460551a14bd2be27cfbac5e4708acb63c72bf6250ed198
7
- data.tar.gz: d1d17d00836ba37ecc6f5c1abb979a32dbebdfb96b6fe93e58373f9ad1930c7c91f7dd460e9c7d077fd45d74fff82fc4397d5cadbf70c0a661ca41c6bab23837
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
@@ -2,7 +2,7 @@
2
2
  module Hertz
3
3
  module Courier
4
4
  module Twilio
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
8
8
  end
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.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-05-08 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails