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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89a86f78707e451c2071a10a18b529a0b855038f7a4742998ba3b062c52914e0
4
- data.tar.gz: 6aa239130c44d0c394628325e99e01d7fffb524c30724a866f61bd6ac81bb9e0
3
+ metadata.gz: 8ab231752184e8e0fb198800962847666494246eae64ddbb185bfdc5a3e23ce7
4
+ data.tar.gz: bfee347ab0bc3c7bd0f3db38f51ad64f03cc3fa70fecfc90e5788b16bbf2ee17
5
5
  SHA512:
6
- metadata.gz: 2edf7dfd9065411dda766acb1fd0ac8c28b59b27597b533924e9337bda4983a216902140c100fadc8d6a35c8ff0bf11a51b574fcc5a3fdc40a9dbad0354d0ca7
7
- data.tar.gz: 7e99fb7c9d1d9b8594756d4621089583926b332626d3e0eacca7d4e817dcd2d4cead7ddbd59b73dd45324b4719498962e8261bd08b53ceb3bf9b2eadd7415e3e
6
+ metadata.gz: 13f77360f2d111f123d7f49c93da4a2ca9c024d24dc36b7b72b7e6a13af52842dba8f6286f881b0b9b1d4be4c61852e9d059ca13e3dda6a5bb5dd67b6a7656e3
7
+ data.tar.gz: d0004712861e4578b45694f97d43782d47d3c74019104866ae738ce12bba29afff4abed355b7f429a76bea71e037bcd18a1540bd41441a1de82e57010e16368d
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ /db
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.0)
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
 
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Apnotic
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
@@ -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", "~> 3.0"
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.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: '3.0'
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: '3.0'
96
+ version: '0'
97
97
  description:
98
98
  email:
99
99
  - matt@futureworkshops.com