rapns 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/lib/rapns/daemon.rb +1 -6
- data/lib/rapns/version.rb +1 -1
- data/spec/rapns/daemon_spec.rb +2 -3
- metadata +2 -3
data/CHANGELOG.md
CHANGED
data/lib/rapns/daemon.rb
CHANGED
@@ -58,12 +58,7 @@ module Rapns
|
|
58
58
|
end
|
59
59
|
|
60
60
|
if count == 0
|
61
|
-
|
62
|
-
puts
|
63
|
-
puts "You must create an Rapns::App."
|
64
|
-
puts "See https://github.com/ileitch/rapns for instructions."
|
65
|
-
puts
|
66
|
-
exit 1
|
61
|
+
logger.warn("You have not created an Rapns::App yet. See https://github.com/ileitch/rapns for instructions.")
|
67
62
|
end
|
68
63
|
|
69
64
|
if File.exists?(File.join(Rails.root, 'config', 'rapns', 'rapns.yml'))
|
data/lib/rapns/version.rb
CHANGED
data/spec/rapns/daemon_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe Rapns::Daemon, "when starting" do
|
|
6
6
|
let(:certificate) { stub }
|
7
7
|
let(:password) { stub }
|
8
8
|
let(:config) { stub(:pid_file => nil, :push_poll => 2, :airbrake_notify => false, :foreground => true) }
|
9
|
-
let(:logger) { stub(:info => nil, :error => nil) }
|
9
|
+
let(:logger) { stub(:info => nil, :error => nil, :warn => nil) }
|
10
10
|
|
11
11
|
before do
|
12
12
|
Rapns::Daemon::Feeder.stub(:start)
|
@@ -65,8 +65,7 @@ describe Rapns::Daemon, "when starting" do
|
|
65
65
|
|
66
66
|
it 'prints a warning if there are no apps' do
|
67
67
|
Rapns::App.stub(:count => 0)
|
68
|
-
|
69
|
-
Rapns::Daemon.should_receive(:exit).with(1)
|
68
|
+
logger.should_receive(:warn).any_number_of_times
|
70
69
|
Rapns::Daemon.start(config)
|
71
70
|
end
|
72
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07
|
12
|
+
date: 2012-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -125,4 +125,3 @@ test_files:
|
|
125
125
|
- spec/rapns/feedback_spec.rb
|
126
126
|
- spec/rapns/notification_spec.rb
|
127
127
|
- spec/spec_helper.rb
|
128
|
-
has_rdoc:
|