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 +4 -4
- data/chantier.gemspec +3 -3
- data/lib/chantier.rb +1 -1
- data/lib/process_pool_with_kill.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c4e130a470bcbd6888307a6130b049ada83ec34
|
4
|
+
data.tar.gz: aac008cb10feec2ab5e804a5c6bccfb77c660bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3daeffddbc5134d1247c2af7edeb109011f25072f4428d10805306c005f6236c74a1779dcf66993d8e741f5cfb1544d6b44ffae8e74b7944a52a324afa2f87e8
|
7
|
+
data.tar.gz: d58a273d22173f4de4c07f49cf1102d0ee4b91c2c31a72b29ddf063f7a263a4b20fd6e5f361c425b0598ca92afe721fc25173d345674af5cb59bc2316444e436
|
data/chantier.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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 = [
|
data/lib/chantier.rb
CHANGED
@@ -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
|
-
|
39
|
-
|
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.
|
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-
|
11
|
+
date: 2014-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|