chantier 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/chantier.gemspec +2 -2
- data/lib/chantier.rb +1 -1
- data/lib/process_pool.rb +1 -1
- data/lib/thread_pool.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 660ee309448264d0145308eff8b86a95265dc7ef
|
4
|
+
data.tar.gz: 7d06459d30aa057bdc1259ea0ff20f911218f715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ce634cf3d1513a28a90c0489a7ba7217a305cb623eeff2947e3d739336c96b3405fabc7907329f14def6c3d739bf2d5d57c2136c03ae2f3c44d4350cb9f30f
|
7
|
+
data.tar.gz: 36259ad1a63f328ca4dcc125ae47b5f5df89bf0a26504da446538547749f58e99f8864de2b26e496623241d801fc7376873a80c9c66648ed96c818a1e3bf9d0e
|
data/chantier.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: chantier 2.1.
|
5
|
+
# stub: chantier 2.1.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "chantier"
|
9
|
-
s.version = "2.1.
|
9
|
+
s.version = "2.1.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/chantier.rb
CHANGED
data/lib/process_pool.rb
CHANGED
@@ -64,7 +64,7 @@ class Chantier::ProcessPool
|
|
64
64
|
|
65
65
|
# Launch copies of the given task in all available slots for this Pool.
|
66
66
|
def fork_task_in_all_slots(&blk)
|
67
|
-
@pids.times { fork_task(&blk) }
|
67
|
+
@pids.length.times { fork_task(&blk) }
|
68
68
|
end
|
69
69
|
|
70
70
|
# Run the given block in a forked subprocess. This method will block
|
data/lib/thread_pool.rb
CHANGED
@@ -50,7 +50,7 @@ class Chantier::ThreadPool
|
|
50
50
|
|
51
51
|
# Launch copies of the given task in all available slots for this Pool.
|
52
52
|
def fork_task_in_all_slots(&blk)
|
53
|
-
@threads.times { fork_task(&blk) }
|
53
|
+
@threads.length.times { fork_task(&blk) }
|
54
54
|
end
|
55
55
|
|
56
56
|
# Distributes the elements in the given Enumerable to parallel workers,
|