af_minion 0.1.15.2 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -3
- data/VERSION +1 -1
- data/lib/minion.rb +2 -1
- metadata +12 -14
data/Rakefile
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
require 'jeweler'
|
2
2
|
|
3
3
|
Jeweler::Tasks.new do |s|
|
4
|
-
s.name = "
|
4
|
+
s.name = "af_minion"
|
5
5
|
s.description = "Super simple job queue over AMQP"
|
6
6
|
s.summary = s.description
|
7
7
|
s.author = "Orion Henry"
|
8
8
|
s.email = "orion@heroku.com"
|
9
|
-
s.homepage = "http://github.com/
|
10
|
-
s.rubyforge_project = "minion"
|
9
|
+
s.homepage = "http://github.com/tusharr/minion"
|
11
10
|
s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
|
12
11
|
s.add_dependency "amqp", ">= 0.6.7"
|
13
12
|
s.add_dependency "bunny", ">= 0.6.0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.16
|
data/lib/minion.rb
CHANGED
@@ -63,7 +63,7 @@ module Minion
|
|
63
63
|
|
64
64
|
handler.sub = lambda do
|
65
65
|
log "subscribing to #{queue}"
|
66
|
-
MQ.queue(queue, :durable => false, :auto_delete => false).subscribe(:ack =>
|
66
|
+
MQ.queue(queue, :durable => false, :auto_delete => false).subscribe(:ack => true) do |h,m|
|
67
67
|
return if AMQP.closing?
|
68
68
|
begin
|
69
69
|
log "recv: #{queue}:#{m}"
|
@@ -77,6 +77,7 @@ module Minion
|
|
77
77
|
raise unless error_handler
|
78
78
|
error_handler.call(e,queue,m,h)
|
79
79
|
end
|
80
|
+
h.ack
|
80
81
|
check_all
|
81
82
|
end
|
82
83
|
end
|
metadata
CHANGED
@@ -1,23 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: af_minion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 0.1.15.2
|
9
|
+
- 16
|
10
|
+
version: 0.1.16
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Orion Henry
|
15
|
-
- AppFolio Dev Team
|
16
14
|
autorequire:
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2010-
|
18
|
+
date: 2010-12-07 00:00:00 -08:00
|
21
19
|
default_executable:
|
22
20
|
dependencies:
|
23
21
|
- !ruby/object:Gem::Dependency
|
@@ -68,8 +66,8 @@ dependencies:
|
|
68
66
|
version: 1.2.0
|
69
67
|
type: :runtime
|
70
68
|
version_requirements: *id003
|
71
|
-
description: Super simple job queue over AMQP
|
72
|
-
email:
|
69
|
+
description: Super simple job queue over AMQP
|
70
|
+
email: orion@heroku.com
|
73
71
|
executables: []
|
74
72
|
|
75
73
|
extensions: []
|
@@ -88,12 +86,12 @@ files:
|
|
88
86
|
- examples/sandwich.rb
|
89
87
|
- examples/when.rb
|
90
88
|
has_rdoc: true
|
91
|
-
homepage: http://github.com/
|
89
|
+
homepage: http://github.com/tusharr/minion
|
92
90
|
licenses: []
|
93
91
|
|
94
92
|
post_install_message:
|
95
|
-
rdoc_options:
|
96
|
-
|
93
|
+
rdoc_options: []
|
94
|
+
|
97
95
|
require_paths:
|
98
96
|
- lib
|
99
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -116,14 +114,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
114
|
version: "0"
|
117
115
|
requirements: []
|
118
116
|
|
119
|
-
rubyforge_project:
|
117
|
+
rubyforge_project:
|
120
118
|
rubygems_version: 1.3.7
|
121
119
|
signing_key:
|
122
120
|
specification_version: 3
|
123
121
|
summary: Super simple job queue over AMQP
|
124
122
|
test_files:
|
125
|
-
- spec/base.rb
|
126
|
-
- spec/enqueue_spec.rb
|
127
123
|
- examples/math.rb
|
128
124
|
- examples/sandwich.rb
|
129
125
|
- examples/when.rb
|
126
|
+
- spec/base.rb
|
127
|
+
- spec/enqueue_spec.rb
|