mb-minion 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +30 -0
- data/examples/batch.rb +31 -0
- data/examples/batch_wait.rb +36 -0
- data/examples/batch_wait_2.rb +52 -0
- data/examples/math.rb +42 -0
- data/examples/sandwich.rb +38 -0
- data/examples/sandwich_batch.rb +44 -0
- data/examples/when.rb +34 -0
- data/lib/mb-ext/string.rb +7 -0
- data/lib/mb-minion.rb +231 -0
- data/lib/mb-minion/handler.rb +177 -0
- data/lib/mb-minion/message.rb +58 -0
- data/lib/mb-minion/version.rb +4 -0
- data/spec/minion/handler_spec.rb +147 -0
- data/spec/minion/message_spec.rb +38 -0
- data/spec/minion_spec.rb +238 -0
- data/spec/spec_helper.rb +11 -0
- metadata +201 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
3
|
+
|
4
|
+
require "minion"
|
5
|
+
require "mocha"
|
6
|
+
require "rspec"
|
7
|
+
|
8
|
+
Rspec.configure do |config|
|
9
|
+
config.mock_with(:mocha)
|
10
|
+
# config.filter_run :focus => true
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mb-minion
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Orion Henry
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-07-28 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: amqp
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 11
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 7
|
32
|
+
- 4
|
33
|
+
version: 0.7.4
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bunny
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 11
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 7
|
48
|
+
- 4
|
49
|
+
version: 0.7.4
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: json
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 31
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 2
|
64
|
+
- 0
|
65
|
+
version: 1.2.0
|
66
|
+
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: activesupport
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 5
|
77
|
+
segments:
|
78
|
+
- 3
|
79
|
+
- 1
|
80
|
+
version: "3.1"
|
81
|
+
type: :runtime
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mocha
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - "="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 43
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
- 9
|
95
|
+
- 8
|
96
|
+
version: 0.9.8
|
97
|
+
type: :development
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: rspec
|
101
|
+
prerelease: false
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ~>
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 11
|
108
|
+
segments:
|
109
|
+
- 2
|
110
|
+
- 4
|
111
|
+
version: "2.4"
|
112
|
+
type: :development
|
113
|
+
version_requirements: *id006
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: watchr
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ~>
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
hash: 7
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
- 6
|
126
|
+
version: "0.6"
|
127
|
+
type: :development
|
128
|
+
version_requirements: *id007
|
129
|
+
description: Super simple job queue over AMQP
|
130
|
+
email: orion@heroku.com
|
131
|
+
executables: []
|
132
|
+
|
133
|
+
extensions: []
|
134
|
+
|
135
|
+
extra_rdoc_files: []
|
136
|
+
|
137
|
+
files:
|
138
|
+
- lib/mb-minion.rb
|
139
|
+
- lib/mb-ext/string.rb
|
140
|
+
- lib/mb-minion/handler.rb
|
141
|
+
- lib/mb-minion/version.rb
|
142
|
+
- lib/mb-minion/message.rb
|
143
|
+
- Rakefile
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
- spec/minion/handler_spec.rb
|
146
|
+
- spec/minion/message_spec.rb
|
147
|
+
- spec/minion_spec.rb
|
148
|
+
- examples/batch.rb
|
149
|
+
- examples/sandwich.rb
|
150
|
+
- examples/math.rb
|
151
|
+
- examples/batch_wait_2.rb
|
152
|
+
- examples/when.rb
|
153
|
+
- examples/sandwich_batch.rb
|
154
|
+
- examples/batch_wait.rb
|
155
|
+
homepage: http://github.com/osallou/minion
|
156
|
+
licenses: []
|
157
|
+
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options:
|
160
|
+
- --charset=UTF-8
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
hash: 3
|
169
|
+
segments:
|
170
|
+
- 0
|
171
|
+
version: "0"
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
none: false
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
hash: 23
|
178
|
+
segments:
|
179
|
+
- 1
|
180
|
+
- 3
|
181
|
+
- 6
|
182
|
+
version: 1.3.6
|
183
|
+
requirements: []
|
184
|
+
|
185
|
+
rubyforge_project: minion
|
186
|
+
rubygems_version: 1.8.15
|
187
|
+
signing_key:
|
188
|
+
specification_version: 3
|
189
|
+
summary: Super simple job queue over AMQP, forked from jgwmaxwell/minion for latest rabbitmq support
|
190
|
+
test_files:
|
191
|
+
- spec/spec_helper.rb
|
192
|
+
- spec/minion/handler_spec.rb
|
193
|
+
- spec/minion/message_spec.rb
|
194
|
+
- spec/minion_spec.rb
|
195
|
+
- examples/batch.rb
|
196
|
+
- examples/sandwich.rb
|
197
|
+
- examples/math.rb
|
198
|
+
- examples/batch_wait_2.rb
|
199
|
+
- examples/when.rb
|
200
|
+
- examples/sandwich_batch.rb
|
201
|
+
- examples/batch_wait.rb
|