pushr-apns 1.0.0.rc.1 → 1.0.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be35b92d178e4e0652169d57668d42a117f44e2a
|
4
|
+
data.tar.gz: 0d9070b18593f0fbf2076fc069ab251d238df822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9915dab070788f52fbe6bf588985d06b03470f899d7851dec18228057d41c62f79e986364af382e1d0cd102911b992991595288d66bdb058ccb3e7d7a9517451
|
7
|
+
data.tar.gz: 13940b4a48a3a3e5c369e2a6bde55c5d5dcc437521ec2bc5a5ecca9fba8ccaafe4c6d3759218098e9994f8578c5c6a9871a6edddf77a982fbbcba82c66cafa58
|
data/README.md
CHANGED
@@ -4,4 +4,4 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/9to5/pushr-apns.png)](https://codeclimate.com/github/9to5/pushr-apns)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/9to5/pushr-apns/badge.png)](https://coveralls.io/r/9to5/pushr-apns)
|
6
6
|
|
7
|
-
Please see [pushr-core](https://github.com/
|
7
|
+
Please see [pushr-core](https://github.com/9to5/pushr-core) for more information.
|
data/lib/pushr-apns/version.rb
CHANGED
@@ -98,7 +98,7 @@ module Pushr
|
|
98
98
|
_, code, notification_id = tuple.unpack('ccN')
|
99
99
|
|
100
100
|
description = APN_ERRORS[code.to_i] || 'Unknown error. Possible push bug?'
|
101
|
-
error = Pushr::Daemon::DeliveryError.new(code,
|
101
|
+
error = Pushr::Daemon::DeliveryError.new(code, notification, description, 'APNS')
|
102
102
|
else
|
103
103
|
error = DisconnectionError.new
|
104
104
|
end
|
@@ -61,7 +61,7 @@ module Pushr
|
|
61
61
|
def create_feedback(config, connection, failed_at, device)
|
62
62
|
formatted_failed_at = failed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
|
63
63
|
Pushr::Daemon.logger.info("[#{connection.name}: Delivery failed at #{formatted_failed_at} for #{device}")
|
64
|
-
Pushr::FeedbackApns.
|
64
|
+
Pushr::FeedbackApns.create(app: config.app, failed_at: failed_at, device: device, follow_up: 'delete')
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
@@ -17,11 +17,9 @@ describe Pushr::FeedbackApns do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
describe 'save' do
|
20
|
-
let(:feedback) { Pushr::FeedbackApns.
|
20
|
+
let!(:feedback) { Pushr::FeedbackApns.create(app: 'app_name', device: 'a' * 64, follow_up: 'delete', failed_at: Time.now) }
|
21
21
|
it 'should save a feedback' do
|
22
|
-
|
23
|
-
feedback2 = Pushr::Feedback.next
|
24
|
-
expect(feedback2.class).to eql(Pushr::FeedbackApns)
|
22
|
+
expect(Pushr::Feedback.next.class).to eql(Pushr::FeedbackApns)
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushr-apns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Pesman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -211,9 +211,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: 1.9.3
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
|
-
- - "
|
214
|
+
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version:
|
216
|
+
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
219
|
rubygems_version: 2.1.11
|