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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba4bc73da8594cb544d75365ae616634584cb197
4
- data.tar.gz: 14a7ccfde7406ba6f41b0c28b133fb989160c67f
3
+ metadata.gz: 5c21b49137a63767cfe4e2099511a16d6c62ec23
4
+ data.tar.gz: c3e35379f6faa44e69d5531df99836bd2d4a1068
5
5
  SHA512:
6
- metadata.gz: d9dca76b499fa4484575825bfe0e7a86feb49e3a46f921e1a34211c5db4bca6506ad3456a947b1423a8914fb0f371f29443bbd465d7db5525bae1c4b40f97ca6
7
- data.tar.gz: 571076e7b09162becba4c8d1c8a79f3f568722b6f276798cbaf5f97cae8abff608c778ec6d0289e9ecc1c931a17bb8dc788f1170a7191e31377b2d989eb66b9e
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
- # Apparently #scoped is deprecated, but its replacement #all does not behave the same
226
- @@scoped_classes.collect {|klass| klass.scoped.dup}
225
+ @@scoped_classes.collect {|klass| klass.all.dup}
227
226
  end
228
227
 
229
228
  protected
@@ -1,3 +1,3 @@
1
1
  module ParallelMinion #:nodoc
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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
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.1.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-04 00:00:00.000000000 Z
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/ClarityServices/semantic_logger
47
+ homepage: https://github.com/reidmorrison/parallel_minion
48
48
  licenses:
49
49
  - Apache License V2.0
50
50
  metadata: {}