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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85a89c655531764a6b6c97213a6b1368c21bee48e55298cb35be1154c32534ff
4
- data.tar.gz: 404987e57e6f834fe21dc9b895664643767ed08e0d23e05c32cb31ebe0a8c5ab
3
+ metadata.gz: a428bc0978afe8b14abcb97a3d1044aa6b44acca00822f4f561eb2315392420d
4
+ data.tar.gz: 5dc07c6c18523c083e981f0440f1c4d273f36e1b83e78c04e31f0822ada927c1
5
5
  SHA512:
6
- metadata.gz: 2cd89b9b0d0c0b76792861aba31db3402effab9136574425abfa44cb26130be894166834b1d80aca357c7d811c81d9f32dc5d5f4ad2e8bb68096310c9a8a7a1e
7
- data.tar.gz: ec0b3c75c8976cd3e4789e54ca8d1744dad95d118f3c4d20a648153422425f03b8a34f1a5b16ed583db85eb3bfe778c996d354d168ac32765421b8a0bd33b8c6
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
- cleanup_invalid_token(device_token)
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
 
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
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.6
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.2.32
173
+ rubygems_version: 3.3.3
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Notifications for Ruby on Rails applications