push_to_sns 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/push_to_sns/push_notifier.rb +5 -1
- data/lib/push_to_sns/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bc2d75a5de46a5ae4087652c90eb3870ed15943
|
4
|
+
data.tar.gz: 0f902d5c2762b01446ecaf4ca935b773b876c7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3cbf7dc3e11e6096d2e39ec2d4938fbe614f3064ef486024f509781943b7ef94299e2e51705bdcb40c8ddd0fbb4e1c7262559cefe4c73ae107caa0fafa5bbad
|
7
|
+
data.tar.gz: ad5993bb652467ad5ca2909b9cc9690c35fd2aa51a64f09e5407152df31b3fd2ebc4f6a692f126ed853a568fe6a08d631bcd198a46bc155ce9104adc9993ee1f
|
@@ -8,7 +8,11 @@ module PushToSNS
|
|
8
8
|
|
9
9
|
def deliver
|
10
10
|
devices.each do |device|
|
11
|
-
|
11
|
+
begin
|
12
|
+
SendPushNotification.new(device).perform(full_notification_for_device(device))
|
13
|
+
rescue AWS::SNS::Errors::Base => e
|
14
|
+
$stderr.puts "Device can't send push notifications: #{e.message}"
|
15
|
+
end
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
data/lib/push_to_sns/version.rb
CHANGED