resque-aps 0.9.2 → 0.9.3
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.
- data/HISTORY.md +5 -1
- data/lib/resque_aps/application.rb +1 -1
- data/lib/resque_aps/version.rb +1 -1
- data/lib/resque_aps.rb +1 -9
- metadata +3 -3
data/HISTORY.md
CHANGED
@@ -32,11 +32,11 @@ module ResqueAps
|
|
32
32
|
begin
|
33
33
|
socket.write(n.formatted)
|
34
34
|
app.after_aps_write n
|
35
|
+
count += 1
|
35
36
|
rescue
|
36
37
|
logger.error Application.application_exception($!, name) if logger
|
37
38
|
app.failed_aps_write n, $!
|
38
39
|
end
|
39
|
-
count += 1
|
40
40
|
end
|
41
41
|
end
|
42
42
|
logger.info("Sent #{count} #{app_name} notifications in batch over #{Time.now - start} sec.") if logger
|
data/lib/resque_aps/version.rb
CHANGED
data/lib/resque_aps.rb
CHANGED
@@ -98,14 +98,6 @@ module ResqueAps
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
def aps_application_class=(klass)
|
102
|
-
@aps_application_class = klass
|
103
|
-
end
|
104
|
-
|
105
|
-
def aps_application_class
|
106
|
-
@aps_application_class ||= ResqueAps::Application
|
107
|
-
end
|
108
|
-
|
109
101
|
def create_aps_application(name, cert_file, cert_passwd = nil)
|
110
102
|
redis.set(aps_application_key(name), encode({'name' => name, 'cert_file' => cert_file, 'cert_passwd' => cert_passwd}))
|
111
103
|
redis.sadd(:aps_applications, name)
|
@@ -113,7 +105,7 @@ module ResqueAps
|
|
113
105
|
|
114
106
|
def aps_application(name)
|
115
107
|
h = decode(redis.get(aps_application_key(name)))
|
116
|
-
return
|
108
|
+
return ResqueAps::Application.new(h) if h
|
117
109
|
nil
|
118
110
|
end
|
119
111
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 3
|
9
|
+
version: 0.9.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ashley Martens
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-08 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|