enparallel-bin 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/enparallel +4 -4
- data/lib/enparallel.rb +6 -0
- data/lib/enparallel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ff5900ff0b0c0df9d4b094808816536b86a210e680dcd0f73bcf68e6b8074cc
|
4
|
+
data.tar.gz: 4d5c618f7cd62127d79320676c0636e286296ee7e41de867033323df3ea83622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a32a1a2c4b19c0a8665b783e77f906d037000a7d9e50eb30f4c182a3e80e03739aa0905660a78dc13c9fef4b1fc099f96cc5eea624bb8699ec7666e7a01d93
|
7
|
+
data.tar.gz: 285544b0af690012452dd727674dc20298465672eec678f1f3c4cd8b8b5998c6fa982503aed82e24affcbc84151c51b43228c38d5eb9cc613d0b5ed0b6b7bcdf
|
data/bin/enparallel
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
2
|
require_relative '../lib/enparallel'
|
4
3
|
include Enparallel
|
5
4
|
|
6
5
|
class Main
|
7
|
-
def self.run
|
6
|
+
def self.run
|
7
|
+
cli = CLI.parse(ARGV, STDIN)
|
8
8
|
tasks = cli.inputs.map { |input| Task.new(cli.command, input) }
|
9
9
|
pool = ThreadPool.new(tasks, cli.workers, cli.pick)
|
10
10
|
new(pool).run
|
@@ -89,8 +89,8 @@ class Main
|
|
89
89
|
end
|
90
90
|
|
91
91
|
begin
|
92
|
-
Main.run
|
92
|
+
Main.run
|
93
93
|
rescue Docopt::Exit => e
|
94
94
|
puts e.message
|
95
|
-
exit
|
95
|
+
exit 1
|
96
96
|
end
|
data/lib/enparallel.rb
CHANGED
data/lib/enparallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enparallel-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- crdx
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: require_all
|