noticed 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/noticed/delivery_methods/fcm.rb +6 -2
- data/lib/noticed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a428bc0978afe8b14abcb97a3d1044aa6b44acca00822f4f561eb2315392420d
|
4
|
+
data.tar.gz: 5dc07c6c18523c083e981f0440f1c4d273f36e1b83e78c04e31f0822ada927c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958fde4c959e18dfa7c569d4c5e3449b13332bd9a2161b1e0083b327f148edfb1ac454030576dc7f366d82c62ae7c6466f4a6d27fd44b97927d1b57e391498ca
|
7
|
+
data.tar.gz: 1a18f5937d945ecf386a74002ca5dc7b61b441d583b41dd9383f1cb171ca442dd82827ecf93febf2053441cf566f3739b5eddbe8da2c7ab0ec7ac8b647e27f5e
|
@@ -19,8 +19,12 @@ module Noticed
|
|
19
19
|
def deliver
|
20
20
|
device_tokens.each do |device_token|
|
21
21
|
post("#{BASE_URI}#{project_id}/messages:send", headers: {authorization: "Bearer #{access_token}"}, json: {message: format(device_token)})
|
22
|
-
rescue ResponseUnsuccessful
|
23
|
-
|
22
|
+
rescue ResponseUnsuccessful => exception
|
23
|
+
if exception.code == 404
|
24
|
+
cleanup_invalid_token(device_token)
|
25
|
+
else
|
26
|
+
raise
|
27
|
+
end
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
data/lib/noticed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noticed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
rubygems_version: 3.
|
173
|
+
rubygems_version: 3.3.3
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Notifications for Ruby on Rails applications
|