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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a40aa3e43e1fac9e594bbaeadb9786f0899cf34bf0849f73f3c0b9f2d3a01e4f
4
- data.tar.gz: 366611b5ea88dc0b621bfd5c65af356a0481a045ccfce94dc41e588e0377be61
3
+ metadata.gz: 0ff5900ff0b0c0df9d4b094808816536b86a210e680dcd0f73bcf68e6b8074cc
4
+ data.tar.gz: 4d5c618f7cd62127d79320676c0636e286296ee7e41de867033323df3ea83622
5
5
  SHA512:
6
- metadata.gz: 7ccc4d563a11b51a84049d521db264129a693f78e92f8173ecdd02b02373e184701b8924baa3c2bc20cb853da8765b2156289456fdb714bc87592626642f9403
7
- data.tar.gz: 6f019d7df35f9d48225f1b62173c67eb6a65b3ccf04f763d3897de12be2d98312911a9fa11834250290f9c2361cfd89fb94e3013ddfde170342b2f9c7d77aabd
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(cli)
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(CLI.parse(ARGV, STDIN))
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
@@ -9,4 +9,10 @@ require 'tempfile'
9
9
  require 'open3'
10
10
  require 'etc'
11
11
 
12
+ module Enparallel
13
+ def self.root_dir
14
+ File.expand_path('../..', __FILE__)
15
+ end
16
+ end
17
+
12
18
  require_rel 'enparallel'
@@ -1,3 +1,3 @@
1
1
  module Enparallel
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
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
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-18 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all