parallel_minion 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/parallel_minion/minion.rb +1 -2
- data/lib/parallel_minion/version.rb +1 -1
- data/test/minion_test.rb +22 -0
- data/test/test_db.sqlite3 +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c21b49137a63767cfe4e2099511a16d6c62ec23
|
4
|
+
data.tar.gz: c3e35379f6faa44e69d5531df99836bd2d4a1068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa5d3339ef72c040c39be80c32a02830f15e3f206c0f24c7d1b7b4acb7ff7d6108abf60c2614cef4d95ff126c40a5deca8ab4a8342cbcca94b1e214eab5cb47
|
7
|
+
data.tar.gz: 2ea29aaf2d674970bd6040714c783016964c3c3f4f81479e3f778541caadf0690dd71b5f576f9331b8f54ba47c798730fb5b3bd00b3c39251ac148ccdb29fc86
|
data/README.md
CHANGED
@@ -241,6 +241,11 @@ lines to config/environments/production.rb:
|
|
241
241
|
thread.pool.enabled=true
|
242
242
|
```
|
243
243
|
|
244
|
+
|
245
|
+
## Compatibility
|
246
|
+
|
247
|
+
ParallelMinion is tested against MRI 2.0.0, and JRuby 1.7.8.
|
248
|
+
|
244
249
|
Meta
|
245
250
|
----
|
246
251
|
|
@@ -256,10 +261,6 @@ Author
|
|
256
261
|
|
257
262
|
Reid Morrison :: reidmo@gmail.com :: @reidmorrison
|
258
263
|
|
259
|
-
Contributors
|
260
|
-
------------
|
261
|
-
|
262
|
-
|
263
264
|
License
|
264
265
|
-------
|
265
266
|
|
@@ -222,8 +222,7 @@ module ParallelMinion
|
|
222
222
|
# Returns the current scopes for each of the models for which scopes will be
|
223
223
|
# copied to the Minions
|
224
224
|
def self.current_scopes
|
225
|
-
|
226
|
-
@@scoped_classes.collect {|klass| klass.scoped.dup}
|
225
|
+
@@scoped_classes.collect {|klass| klass.all.dup}
|
227
226
|
end
|
228
227
|
|
229
228
|
protected
|
data/test/minion_test.rb
CHANGED
@@ -101,6 +101,28 @@ class MinionTest < Test::Unit::TestCase
|
|
101
101
|
assert_equal nil, minion.result
|
102
102
|
end
|
103
103
|
end
|
104
|
+
|
105
|
+
should 'make description instance variable available' do
|
106
|
+
minion = ParallelMinion::Minion.new(description: 'Test') do
|
107
|
+
description
|
108
|
+
end
|
109
|
+
assert_equal 'Test', minion.result
|
110
|
+
end
|
111
|
+
|
112
|
+
should 'make timeout instance variable available' do
|
113
|
+
minion = ParallelMinion::Minion.new(description: 'Test', timeout: 1000 ) do
|
114
|
+
timeout
|
115
|
+
end
|
116
|
+
assert_equal 1000, minion.result
|
117
|
+
end
|
118
|
+
|
119
|
+
should 'make enabled? method available' do
|
120
|
+
minion = ParallelMinion::Minion.new(description: 'Test') do
|
121
|
+
enabled?
|
122
|
+
end
|
123
|
+
assert_equal enabled, minion.result
|
124
|
+
end
|
125
|
+
|
104
126
|
end
|
105
127
|
|
106
128
|
end
|
data/test/test_db.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_minion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic_logger
|
@@ -44,7 +44,7 @@ files:
|
|
44
44
|
- test/minion_scope_test.rb
|
45
45
|
- test/minion_test.rb
|
46
46
|
- test/test_db.sqlite3
|
47
|
-
homepage: https://github.com/
|
47
|
+
homepage: https://github.com/reidmorrison/parallel_minion
|
48
48
|
licenses:
|
49
49
|
- Apache License V2.0
|
50
50
|
metadata: {}
|