pushr-gcm 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: eacd1d24b8a94657b4329e960f0e6a5864fb7b5a
4
- data.tar.gz: be1116d4b35743ca8db413c4d6d557a421a7034b
3
+ metadata.gz: 5dd2a46d4a0325ec2971d546f9630eb661a92954
4
+ data.tar.gz: 8b8a58a24821ed6a9f73e1fba39196910b81911f
5
5
  SHA512:
6
- metadata.gz: b46ec7bcade405d6df91d789a648a868db8fb0ed95b102e068a4b11ef958dbdac3649ffafc09299cd397adc1601e87d88acf1db4f93e89437b446124c255fce6
7
- data.tar.gz: f900c4a5fda73b443594d5ddaa544a0530c284610ad2a05ec2f04d690802560d4595d42e7d10609fbf7e2789a0dda29a8cb9ece9b77e97792374dd264df9ccf1
6
+ metadata.gz: ba804143ffb8ce78e9ab62f6ad348f20b436b20ea40379be109b7cd822feab3ccc06c37976c0e3c169690311cffa399ef6131dd5a6630e5ea321bbefb7e091b8
7
+ data.tar.gz: dc44d91122404a656d093770a9858f8213a76d9bd7d5a0a6dfa882a564776d4d9819f53da69ae13b5453c9de74fa7a7a1b488bce4ad895bba71596131244b374
data/README.md CHANGED
@@ -4,4 +4,4 @@
4
4
  [![Code Climate](https://codeclimate.com/github/9to5/pushr-gcm.png)](https://codeclimate.com/github/9to5/pushr-gcm)
5
5
  [![Coverage Status](https://coveralls.io/repos/9to5/pushr-gcm/badge.png)](https://coveralls.io/r/9to5/pushr-gcm)
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 PushrGcm
2
- VERSION = '1.0.0.rc.1'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -18,7 +18,7 @@ module Pushr
18
18
  def handle_single(result, registration_id)
19
19
  if result.key?('error')
20
20
  if result['error'] == 'NotRegistered' || result['error'] == 'InvalidRegistration'
21
- Pushr::FeedbackGcm.new(app: message.app, failed_at: Time.now, device: registration_id, follow_up: 'delete').save
21
+ Pushr::FeedbackGcm.create(app: message.app, failed_at: Time.now, device: registration_id, follow_up: 'delete')
22
22
  end
23
23
 
24
24
  if result['error'] == 'Unavailable'
@@ -35,7 +35,7 @@ module Pushr
35
35
  # success, but update device token
36
36
  hsh = { app: message.app, failed_at: Time.now, device: registration_id,
37
37
  follow_up: 'update', update_to: result['registration_id'] }
38
- Pushr::FeedbackGcm.new(hsh).save
38
+ Pushr::FeedbackGcm.create(hsh)
39
39
  end
40
40
  end
41
41
  end
@@ -17,11 +17,12 @@ describe Pushr::FeedbackGcm do
17
17
  end
18
18
 
19
19
  describe 'save' do
20
- let(:feedback) { Pushr::FeedbackGcm.new(app: 'app_name', device: 'ab' * 20, follow_up: 'delete', failed_at: Time.now, update_to: nil) }
20
+ let!(:feedback) do
21
+ Pushr::FeedbackGcm.create(app: 'app_name', device: 'ab' * 20, follow_up: 'delete', failed_at: Time.now,
22
+ update_to: nil)
23
+ end
21
24
  it 'should save a feedback' do
22
- feedback.save
23
- feedback2 = Pushr::Feedback.next
24
- expect(feedback2.class).to eql(Pushr::FeedbackGcm)
25
+ expect(Pushr::Feedback.next.class).to eql(Pushr::FeedbackGcm)
25
26
  end
26
27
  end
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushr-gcm
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
@@ -238,9 +238,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
238
  version: 1.9.3
239
239
  required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - ">"
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
- version: 1.3.1
243
+ version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
246
  rubygems_version: 2.1.11