resque-aps 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.9.11 (2010-08-31)
2
+
3
+ * Added version 2 of the push protocol
4
+ * Loads of bug fixes for conditions around broken pipes
5
+
1
6
  ## 0.9.9 (2010-08-10)
2
7
 
3
8
  * Changed the module from ResqueAps to Resque::Plugins::Aps, per Resque documentation
@@ -45,7 +45,7 @@ module Resque
45
45
  logger.error Application.application_exception($!, app_name) if logger
46
46
  app.failed_aps_write n, $!
47
47
  logger.error "Sent #{count} notifications before failure." if logger
48
- redis.rpush(aps_application_queue_key(app_name), encode(n.to_hash))
48
+ Resque.enqueue_aps(app_name, n)
49
49
  break
50
50
  end
51
51
  end
@@ -2,14 +2,14 @@
2
2
  module Resque
3
3
  module Plugins
4
4
  module Aps
5
- module Helper
6
- extend Resque::Helpers
5
+ module Helper
6
+ extend Resque::Helpers
7
7
 
8
- def logger
9
- Resque.logger
10
- end
8
+ def logger
9
+ Resque.logger
10
+ end
11
11
 
12
+ end
13
+ end
12
14
  end
13
- end
14
- end
15
15
  end
@@ -4,34 +4,34 @@ module Resque
4
4
  module Plugins
5
5
  module Aps
6
6
 
7
- module Server
7
+ module Server
8
8
 
9
- def self.included(base)
9
+ def self.included(base)
10
10
 
11
- base.class_eval do
11
+ base.class_eval do
12
12
 
13
- get "/aps" do
14
- # Is there a better way to specify alternate template locations with sinatra?
15
- erb File.read(File.join(File.dirname(__FILE__), 'server/views/aps_applications.erb'))
16
- end
13
+ get "/aps" do
14
+ # Is there a better way to specify alternate template locations with sinatra?
15
+ erb File.read(File.join(File.dirname(__FILE__), 'server/views/aps_applications.erb'))
16
+ end
17
17
 
18
- get "/aps/:application_name" do
19
- # Is there a better way to specify alternate template locations with sinatra?
20
- erb File.read(File.join(File.dirname(__FILE__), 'server/views/notifications.erb'))
21
- end
18
+ get "/aps/:application_name" do
19
+ # Is there a better way to specify alternate template locations with sinatra?
20
+ erb File.read(File.join(File.dirname(__FILE__), 'server/views/notifications.erb'))
21
+ end
22
22
 
23
- post "/aps/:application_name" do
24
- Resque.enqueue(Resque::Plugins::Aps::Application, params[:application_name])
25
- redirect url("/aps")
26
- end
27
- end
23
+ post "/aps/:application_name" do
24
+ Resque.enqueue(Resque::Plugins::Aps::Application, params[:application_name])
25
+ redirect url("/aps")
26
+ end
27
+ end
28
28
 
29
- end
29
+ end
30
30
 
31
- Resque::Server.tabs << 'APS'
31
+ Resque::Server.tabs << 'APS'
32
32
 
33
- end
33
+ end
34
34
 
35
+ end
35
36
  end
36
- end
37
37
  end
@@ -1,8 +1,8 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Aps
4
- class UnknownAttributeError < Exception
4
+ class UnknownAttributeError < Exception
5
+ end
6
+ end
5
7
  end
6
- end
7
- end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Aps
4
- Version = '0.9.10'
4
+ Version = '0.9.11'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-aps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashley Martens