pushr-apns 1.0.0.rc.1 → 1.0.0

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: c96cb0793ec34675dad88454fef5acb152b278d7
4
- data.tar.gz: 21570b81ee97e8fc9132cd9bc8e5ae904e356c18
3
+ metadata.gz: be35b92d178e4e0652169d57668d42a117f44e2a
4
+ data.tar.gz: 0d9070b18593f0fbf2076fc069ab251d238df822
5
5
  SHA512:
6
- metadata.gz: 5cab65d46970744c9fbd0a94fc287cbc999ef7a9e857bc0cbca3f5f20d8d448a2ab25a6dc116c92bc7e6e52305adcee97fab19a9ffd3c60630f520a5ff0ac687
7
- data.tar.gz: 8fb1f7e0ca76d10ae96fcbe83cc531b9c0a291bc464e6940b52e09595129c50a3529a6aab45aa31849da061b94b8eb8d4a22a588df4565ecdd2f0f4771e589ef
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/tompesman/pushr-core) for more information.
7
+ Please see [pushr-core](https://github.com/9to5/pushr-core) for more information.
@@ -1,3 +1,3 @@
1
1
  module PushrApns
2
- VERSION = '1.0.0.rc.1'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -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, notification_id, description, 'APNS')
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.new(app: config.app, failed_at: failed_at, device: device, follow_up: 'delete').save
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.new(app: 'app_name', device: 'a' * 64, follow_up: 'delete', failed_at: Time.now) }
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
- feedback.save
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.rc.1
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-19 00:00:00.000000000 Z
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: 1.3.1
216
+ version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
219
  rubygems_version: 2.1.11