notify_user 0.0.30 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5980a65a991cb1e398fbbcda1ce3f44f446752a0
4
- data.tar.gz: 8d5ce270933bb2cf0739d5c15835e5653ace2b52
3
+ metadata.gz: 515bd96984f21b7704d46e69ce490f248f16d199
4
+ data.tar.gz: 16953745c27f417ba4061bdac8d26c7ea0971302
5
5
  SHA512:
6
- metadata.gz: d409a8e666e78e51ab3f6b5e8c6344c5717a994bf099a82b1fd089a6a912f8c86d520d7ceb86628e83f80cf5b2e8e2153787933adc86c8c3e8c039b592c61278
7
- data.tar.gz: 62aa3a3c24b490c11420d5021b6ad749f99d47b156908ff61b3b803ce6d35acf670ba6233014bac2b76071722fc378cdb98bcede15200fd9139d16c2bdea6edd
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 [arcade](https://github.com/Papercloud/arcade), 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.
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 == ERROR_INVALID_TOKEN
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
@@ -1,3 +1,3 @@
1
1
  module NotifyUser
2
- VERSION = "0.0.30"
2
+ VERSION = "0.1.1"
3
3
  end
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.0.30
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-18 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails