chantier 2.1.0 → 2.1.1

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: df6ec380493c999c846abeb870e45720b428f35b
4
- data.tar.gz: 354b14a6eab4824369ea8bc52e0c45ab1f034d2a
3
+ metadata.gz: 660ee309448264d0145308eff8b86a95265dc7ef
4
+ data.tar.gz: 7d06459d30aa057bdc1259ea0ff20f911218f715
5
5
  SHA512:
6
- metadata.gz: 55d0986d79834e5c7efec3cf0f850a7da33915fd37471960cf921644a29c67436b3d4a39df62b973cbab8206cb635ac34ff9726fdb4d50a14e5e174ac9151fd5
7
- data.tar.gz: 5b03b35c3161c98a8db5a23b3b83290b2d530182c39bcad262bef955089f99db645bd7ad1bf492cbb3cb14357fa71c5c877c10f23df30286c1ae22c39eafe378
6
+ metadata.gz: f1ce634cf3d1513a28a90c0489a7ba7217a305cb623eeff2947e3d739336c96b3405fabc7907329f14def6c3d739bf2d5d57c2136c03ae2f3c44d4350cb9f30f
7
+ data.tar.gz: 36259ad1a63f328ca4dcc125ae47b5f5df89bf0a26504da446538547749f58e99f8864de2b26e496623241d801fc7376873a80c9c66648ed96c818a1e3bf9d0e
@@ -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.0 ruby lib
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.0"
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"]
@@ -1,5 +1,5 @@
1
1
  module Chantier
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  require_relative 'process_pool'
4
4
  require_relative 'process_pool_with_kill'
5
5
  require_relative 'thread_pool'
@@ -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
@@ -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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chantier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov