notify_user 0.0.30 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/notify_user/houston.rb +1 -1
- data/lib/notify_user/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 515bd96984f21b7704d46e69ce490f248f16d199
|
4
|
+
data.tar.gz: 16953745c27f417ba4061bdac8d26c7ea0971302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7876509ccbcf8851e75f08d719b615dd56e65b21faa5028960083cba81c2bd1712c9ee130cfdb7c397ea8f9feb4f6159c2d162c4c81961cfc2ca2013e21843f
|
7
|
+
data.tar.gz: d1f7a817c8da8eea278c005fcc3f73fadb9425b9074d985de67fa73a7635bc5e263f51475588999f671d4d145a8f007b225b984300d32b02fad9ac78dc523f26
|
data/README.md
CHANGED
@@ -95,7 +95,7 @@ class Device < ActiveRecord::Base
|
|
95
95
|
end
|
96
96
|
```
|
97
97
|
|
98
|
-
A gem that provides such a model is [
|
98
|
+
A gem that provides such a model is [dre](https://github.com/Papercloud/dre), a mountable Rails engine that lets you flag a model (e.g. `User`) as a device owner and provides a number of routes to allow device registration.
|
99
99
|
|
100
100
|
By default, we assume the relation is named `:devices`, but this can be passed through when enabling APNS for a notification if you want to use something else:
|
101
101
|
|
@@ -82,7 +82,7 @@ module NotifyUser
|
|
82
82
|
Rails.logger.info "Error: #{status} with id: #{error_index}. Token: #{device.token}."
|
83
83
|
|
84
84
|
# If we encounter the Invalid Token error from APNS, just remove the device:
|
85
|
-
if status ==
|
85
|
+
if status == INVALID_TOKEN_ERROR
|
86
86
|
Rails.logger.info "Invalid token encountered, removing device. Token: #{device.token}."
|
87
87
|
device.destroy
|
88
88
|
end
|
data/lib/notify_user/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notify_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Spacek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|