chantier 0.0.3 → 0.0.4

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: 335d81b6d4f243e4d8516d63f27444fc786f1b43
4
- data.tar.gz: a4918eb5ca7855e60056abef9441735ee63e474e
3
+ metadata.gz: 0c4e130a470bcbd6888307a6130b049ada83ec34
4
+ data.tar.gz: aac008cb10feec2ab5e804a5c6bccfb77c660bbf
5
5
  SHA512:
6
- metadata.gz: d1fa0022f0fa6d41f715ba08677cb4a8ad6863b9d2da73ccee86d42612c1693a56c92bf61abe7a427d51a46d13eae10242a5d5bd250ba18b6e46a35efed1854d
7
- data.tar.gz: b3a59f59fdf5d17bfcc62ee2772f9a15c835dce742e6e65daf1ab28478a45fd2d19dd409ea4582a9f3b951e18f942948e3e27a1ba1e5ce9007b39f91eb18d15d
6
+ metadata.gz: 3daeffddbc5134d1247c2af7edeb109011f25072f4428d10805306c005f6236c74a1779dcf66993d8e741f5cfb1544d6b44ffae8e74b7944a52a324afa2f87e8
7
+ data.tar.gz: d58a273d22173f4de4c07f49cf1102d0ee4b91c2c31a72b29ddf063f7a263a4b20fd6e5f361c425b0598ca92afe721fc25173d345674af5cb59bc2316444e436
@@ -2,16 +2,16 @@
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 0.0.3 ruby lib
5
+ # stub: chantier 0.0.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "chantier"
9
- s.version = "0.0.3"
9
+ s.version = "0.0.4"
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"]
13
13
  s.authors = ["Julik Tarkhanov"]
14
- s.date = "2014-08-02"
14
+ s.date = "2014-08-03"
15
15
  s.description = " Process your jobs in parallel with a simple table of processes or threads "
16
16
  s.email = "me@julik.nl"
17
17
  s.extra_rdoc_files = [
@@ -1,5 +1,5 @@
1
1
  module Chantier
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  require_relative 'process_pool'
4
4
  require_relative 'process_pool_with_kill'
5
5
  require_relative 'thread_pool'
@@ -35,14 +35,13 @@ class Chantier::ProcessPoolWithKill < Chantier::ProcessPool
35
35
  # gets terminated it will bounce back to the standard wait() above.
36
36
  Thread.new do
37
37
  sleep @kill_after_seconds
38
- TERMINATION_SIGNALS.each do | sig |
39
- puts "Dispatching #{sig}"
40
- begin
38
+ begin
39
+ TERMINATION_SIGNALS.each do | sig |
41
40
  Process.kill(sig, task_pid)
42
41
  sleep 1 # Give it some time to react
43
- rescue Errno::ESRCH
44
- # It has already quit, nothing to do
45
42
  end
43
+ rescue Errno::ESRCH
44
+ # It has already quit, nothing to do
46
45
  end
47
46
  end
48
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chantier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-02 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec