notifiable-apns-apnotic 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +5 -10
- data/lib/notifiable/apns/apnotic/async.rb +2 -4
- data/lib/notifiable/apns/apnotic/version.rb +1 -1
- data/notifiable-apns-apnotic.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ab231752184e8e0fb198800962847666494246eae64ddbb185bfdc5a3e23ce7
|
4
|
+
data.tar.gz: bfee347ab0bc3c7bd0f3db38f51ad64f03cc3fa70fecfc90e5788b16bbf2ee17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f77360f2d111f123d7f49c93da4a2ca9c024d24dc36b7b72b7e6a13af52842dba8f6286f881b0b9b1d4be4c61852e9d059ca13e3dda6a5bb5dd67b6a7656e3
|
7
|
+
data.tar.gz: d0004712861e4578b45694f97d43782d47d3c74019104866ae738ce12bba29afff4abed355b7f429a76bea71e037bcd18a1540bd41441a1de82e57010e16368d
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,7 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../notifiable-rails
|
3
|
-
specs:
|
4
|
-
notifiable-rails (0.29.0)
|
5
|
-
activerecord-postgis-adapter
|
6
|
-
pg
|
7
|
-
rails
|
8
|
-
|
9
1
|
PATH
|
10
2
|
remote: .
|
11
3
|
specs:
|
12
|
-
notifiable-apns-apnotic (0.1.
|
4
|
+
notifiable-apns-apnotic (0.1.2)
|
13
5
|
apnotic (~> 1.4.1)
|
14
6
|
notifiable-rails (>= 0.29.0)
|
15
7
|
|
@@ -92,6 +84,10 @@ GEM
|
|
92
84
|
nio4r (2.3.1)
|
93
85
|
nokogiri (1.8.4)
|
94
86
|
mini_portile2 (~> 2.3.0)
|
87
|
+
notifiable-rails (0.30.1)
|
88
|
+
activerecord-postgis-adapter
|
89
|
+
pg
|
90
|
+
rails
|
95
91
|
pg (1.0.0)
|
96
92
|
rack (2.0.5)
|
97
93
|
rack-test (1.1.0)
|
@@ -160,7 +156,6 @@ PLATFORMS
|
|
160
156
|
DEPENDENCIES
|
161
157
|
bundler (~> 1.16)
|
162
158
|
notifiable-apns-apnotic!
|
163
|
-
notifiable-rails!
|
164
159
|
rake (~> 10.0)
|
165
160
|
rspec (~> 3.0)
|
166
161
|
sqlite3
|
@@ -27,11 +27,9 @@ module Notifiable
|
|
27
27
|
push.on(:response) do |response|
|
28
28
|
if response.ok?
|
29
29
|
processed(device, 0)
|
30
|
-
elsif response.status == '410' || (response.status == '400' && response.body['reason'] == 'BadDeviceToken')
|
31
|
-
device.destroy
|
32
|
-
processed(device, response.status)
|
33
30
|
else
|
34
|
-
processed(device, response.status)
|
31
|
+
processed(device, response.status, response.body['reason'])
|
32
|
+
device.destroy if response.status == '410' || (response.status == '400' && response.body['reason'] == 'BadDeviceToken')
|
35
33
|
end
|
36
34
|
end
|
37
35
|
|
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.16"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
-
spec.add_development_dependency "sqlite3"
|
29
|
+
spec.add_development_dependency "sqlite3"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiable-apns-apnotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
description:
|
98
98
|
email:
|
99
99
|
- matt@futureworkshops.com
|